|
|
|
|
|
|
|
|
|
|
xen-api
[Xen-API] [PATCH 09 of 14] Add upstream ocaml-getopt RPM spec file by Fl
# HG changeset patch
# User David Scott <dave.scott@xxxxxxxxxxxxx>
# Date 1275056334 -3600
# Node ID 1a1ae7c3614f1626d4204f6c784b408bc89a5d64
# Parent 9ef4a3cdf6aba0d633e2f4bf4fa933bbbd5f115e
Add upstream ocaml-getopt RPM spec file by Florent Monnier
<blue_prawn@xxxxxxxxxxxx>
Signed-off-by: David Scott <dave.scott@xxxxxxxxxxxxx>
diff -r 9ef4a3cdf6ab -r 1a1ae7c3614f getopt.spec
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/getopt.spec Fri May 28 15:18:54 2010 +0100
@@ -0,0 +1,74 @@
+Name: ocaml-getopt
+Version: 20040811
+Release: %mkrel 1
+Summary: Command line parsing a la GNU getopt
+License: MIT-like
+Group: Development/Other
+URL: http://alain.frisch.fr/soft#Getopt
+Source0: http://alain.frisch.fr/info/getopt-20040811.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
+BuildRequires: ocaml-findlib
+
+%description
+The OCaml distribution comes with the module Arg specialized in
+command-line parsing. However, it doesn't support the well known
+features of GNU getopt and getopt_long.
+
+The module Getopt is an alternative; it supports GNU syntax, but from the
+programmer point of view, it is close to the spirit of Arg: the programmer
+gives to the general parsing function a list of possible options, together
+with the behaviour of these options.
+
+%package devel
+Summary: Development files for %{name}
+Group: Development/Other
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+The %{name}-devel package contains libraries and signature files for
+developing applications that use %{name}.
+
+%prep
+%setup -q -n getopt
+
+%build
+make all allopt
+make doc
+
+%install
+rm -rf %{buildroot}
+export DESTDIR=%{buildroot}
+export OCAMLFIND_DESTDIR=%{buildroot}/%{_libdir}/ocaml
+export DLLDIR=$OCAMLFIND_DESTDIR/stublibs
+mkdir -p $OCAMLFIND_DESTDIR/stublibs
+mkdir -p $OCAMLFIND_DESTDIR/getopt
+make install
+cp getopt.mli $OCAMLFIND_DESTDIR/getopt
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-,root,root)
+%doc COPYING Changes README
+%dir %{_libdir}/ocaml/getopt
+%{_libdir}/ocaml/getopt/META
+%{_libdir}/ocaml/getopt/*.cma
+%{_libdir}/ocaml/getopt/*.cmi
+
+%files devel
+%defattr(-,root,root)
+%doc doc
+%doc sample.ml
+%{_libdir}/ocaml/getopt/*.a
+%{_libdir}/ocaml/getopt/*.cmxa
+%{_libdir}/ocaml/getopt/*.mli
+%{_libdir}/ocaml/getopt/*.o
+
+
+
+%changelog
+* Fri Sep 11 2009 Florent Monnier <blue_prawn@xxxxxxxxxxxx> 20040811-1mdv2010.0
++ Revision: 438504
+- import ocaml-getopt
+
_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-API] [PATCH 00 of 14] Switch xen-dist-ocaml.hg over to generating RPMs rather than tarballs, David Scott
- [Xen-API] [PATCH 01 of 14] Add upstream ocaml rpm spec file by Dries Verachtert <dries@xxxxxxxxxxx>, David Scott
- [Xen-API] [PATCH 02 of 14] Customise ocaml RPM spec file, David Scott
- [Xen-API] [PATCH 05 of 14] Add upstream ocaml-omake RPM spec file by Jason Hickey <jyh_@xxxxxxxxxxxxxx> and Aleksey Nogin <rpm@xxxxxxxxx>, David Scott
- [Xen-API] [PATCH 04 of 14] Customise ocaml-findlib RPM spec file, David Scott
- [Xen-API] [PATCH 06 of 14] Customise ocaml-omake RPM spec file, David Scott
- [Xen-API] [PATCH 03 of 14] Add upstream ocaml-findlib RPM spec file by Richard W.M. Jones <rjones@xxxxxxxxxx>, David Scott
- [Xen-API] [PATCH 09 of 14] Add upstream ocaml-getopt RPM spec file by Florent Monnier <blue_prawn@xxxxxxxxxxxx>,
David Scott <=
- [Xen-API] [PATCH 07 of 14] Add upstream ocaml-xmlm RPM spec file by Florent Monnier <blue_prawn@xxxxxxxxxxxx>, David Scott
- [Xen-API] [PATCH 08 of 14] Customise ocaml-xmlm RPM spec file, David Scott
- [Xen-API] [PATCH 11 of 14] Add upstream ocaml-type-conf RPM spec file by Florent Monnier <fmonnier@xxxxxxxxxxxxxxxx>, David Scott
- [Xen-API] [PATCH 12 of 14] Customise ocaml-type-conv RPM spec file, David Scott
- [Xen-API] [PATCH 13 of 14] [xmlm] upgrade to version 1.0.1, David Scott
- [Xen-API] [PATCH 10 of 14] Customise ocaml-getopt RPM spec file, David Scott
- [Xen-API] [PATCH 14 of 14] Hook RPM build into main mk/Makefile, David Scott
|
|
|
|
|