WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

[Xen-API] [PATCH 09 of 14] Add upstream ocaml-getopt RPM spec file by Fl

To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-API] [PATCH 09 of 14] Add upstream ocaml-getopt RPM spec file by Florent Monnier <blue_prawn@xxxxxxxxxxxx>
From: David Scott <dave.scott@xxxxxxxxxxxxx>
Date: Fri, 28 May 2010 15:20:44 +0100
Delivery-date: Fri, 28 May 2010 07:21:25 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <patchbomb.1275056435@xxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
# 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>