]> git.pld-linux.org Git - packages/ocaml-stew.git/commitdiff
- initial; from scratch
authorMichal Moskal <michal@moskal.me>
Mon, 13 May 2002 11:43:42 +0000 (11:43 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    ocaml-stew.spec -> 1.1

ocaml-stew.spec [new file with mode: 0644]

diff --git a/ocaml-stew.spec b/ocaml-stew.spec
new file mode 100644 (file)
index 0000000..f56fa01
--- /dev/null
@@ -0,0 +1,101 @@
+Summary:       A stew of OCaml utility function
+Summary(pl):   Zbiór funkcji narzêdziowych dla OCamla
+Name:          ocaml-stew
+Version:       0.9.0
+Release:       1
+License:       LGPL
+Group:         Libraries
+Vendor:                Shawn Wagner <shawnw@speakeasy.org>
+URL:           http://raevnos.pennmush.org/code/ocaml.html
+Source0:       http://raevnos.pennmush.org/code/stew-%{version}.tar.gz
+BuildRequires: ocaml >= 3.04-7
+%requires_eq   ocaml-runtime
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Stew is a general-purpose library of useful utility and extension
+routines. Highlights include random number generators and
+distributions, locale support, improved time printing, and character
+classification routines that are locale-dependant.
+
+This package contains files needed to run bytecode executables using
+this library.
+
+%description -l pl
+Stew jest ogólnego u¿ytku bibliotek± u¿ytecznych funkcji narzêdziowych
+i rozszerzeñ. Zawiera generatory i dystrybucje liczb losowych,
+wsparcie dla lokalizacji, ulepszone drukowanie czasu, oraz funkcje
+klasyfikacji znaków (<ctype.h>), które s± zale¿ne od locale.
+
+Pakiet ten zawiera binaria potrzebne do uruchamiania programów
+u¿ywaj±cych tej biblioteki.
+
+%package devel
+Summary:       A stew of OCaml utility function - development part
+Summary(pl):   Zbiór funkcji narzêdziowych dla OCamla - cze¶æ programistyczna
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+%requires_eq   ocaml
+
+%description devel
+Stew is a general-purpose library of useful utility and extension
+routines. Highlights include random number generators and
+distributions, locale support, improved time printing, and character
+classification routines that are locale-dependant.
+
+This package contains files needed to develop OCaml programs using
+this library.
+
+%description devel -l pl
+Stew jest ogólnego u¿ytku bibliotek± u¿ytecznych funkcji narzêdziowych
+i rozszerzeñ. Zawiera generatory i dystrybucje liczb losowych,
+wsparcie dla lokalizacji, ulepszone drukowanie czasu, oraz funkcje
+klasyfikacji znaków (<ctype.h>), które s± zale¿ne od locale.
+
+Pakiet ten zawiera pliki niezbêdne do tworzenia programów u¿ywaj±cych
+tej biblioteki.
+
+%prep
+%setup -q -n stew-%{version}
+
+%build
+autoconf
+%configure
+%{__make} all opt
+rm -f *.cma
+%{__make} DLL='-cclib -lstew'
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/stew
+
+%{__make} install \
+       CAMLLIB=$RPM_BUILD_ROOT%{_libdir}/ocaml \
+       OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
+
+echo >> $RPM_BUILD_ROOT%{_libdir}/ocaml/stew/META
+echo 'directory = "+stew"' >> $RPM_BUILD_ROOT%{_libdir}/ocaml/stew/META
+mv -f $RPM_BUILD_ROOT%{_libdir}/ocaml/stew/META \
+       $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/stew
+rm -f $RPM_BUILD_ROOT%{_libdir}/ocaml/stew/*.mli
+
+(cd $RPM_BUILD_ROOT%{_libdir}/ocaml && ln -s stew/dll*.so .)
+
+gzip -9nf LICENSE README AUTHORS
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%dir %{_libdir}/ocaml/stew
+%attr(755,root,root) %{_libdir}/ocaml/stew/*.so
+%{_libdir}/ocaml/*.so
+
+%files devel
+%defattr(644,root,root,755)
+%doc *.gz stew.html
+%{_libdir}/ocaml/stew/*.cm[ixa]*
+%{_libdir}/ocaml/stew/*.a
+%{_libdir}/ocaml/site-lib/stew
This page took 0.069983 seconds and 4 git commands to generate.