[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-API] [PATCH 09 of 14] Add upstream ocaml-getopt RPM spec file by Florent Monnier <blue_prawn@xxxxxxxxxxxx>

# 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 

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
+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}.
+%setup -q -n getopt
+make all allopt
+make doc
+rm -rf %{buildroot}
+export DESTDIR=%{buildroot}
+export OCAMLFIND_DESTDIR=%{buildroot}/%{_libdir}/ocaml
+mkdir -p $OCAMLFIND_DESTDIR/stublibs
+mkdir -p $OCAMLFIND_DESTDIR/getopt
+make install
+cp getopt.mli $OCAMLFIND_DESTDIR/getopt
+rm -rf %{buildroot}
+%doc COPYING Changes README
+%dir %{_libdir}/ocaml/getopt
+%files devel
+%doc doc
+%doc sample.ml
+* Fri Sep 11 2009 Florent Monnier <blue_prawn@xxxxxxxxxxxx> 20040811-1mdv2010.0
++ Revision: 438504
+- import ocaml-getopt

xen-api mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.