]> git.pld-linux.org Git - packages/ocaml-net.git/blobdiff - ocaml-net.spec
- updated to 0.98.1
[packages/ocaml-net.git] / ocaml-net.spec
index 7fe7d38e4a4702bbad267bc82aff84ff2eeb4f5d..eeb56e308009231e5721b71aed0707792aa281b4 100644 (file)
@@ -1,12 +1,13 @@
 Summary:       Modules for Internet programming in OCaml
 Summary(pl):   Modu³y u³atwiaj±ce pisanie programów internetowych w OCamlu
 Name:          ocaml-net
-Version:       0.92
+Version:       0.98.1
 Release:       1
 License:       BSD
 Group:         Libraries
+Source0:       http://dl.sourceforge.net/ocamlnet/ocamlnet-%{version}.tar.gz
+# Source0-md5: 991a004ab8137b50eb42d035570250a4
 URL:           http://ocamlnet.sourceforge.net/
-Source0:       http://telia.dl.sourceforge.net/sourceforge/ocamlnet/ocamlnet-%{version}.tar.gz
 BuildRequires: ocaml-pcre-devel
 BuildRequires: ocaml-findlib
 BuildRequires: ocaml >= 3.04-7
@@ -84,18 +85,21 @@ mv -f Makefile.rules.tmp Makefile.rules
 %install
 rm -rf $RPM_BUILD_ROOT
 
+install -d $RPM_BUILD_ROOT%{_libdir}/ocaml
+
 cd src
+%{__make} install OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
+
 for f in cgi pop netstring ; do
-       %{__make} -C $f install \
-               INSTMETHOD=conventional \
-               LIBDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml/$f
        install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/$f
        mv $RPM_BUILD_ROOT%{_libdir}/ocaml/$f/META \
-               $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/$f
+               $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/$f/
        echo "directory = \"+$f\"" \
                >> $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/$f/META
 done
 cd ..
+# not sure about *.o
+rm $RPM_BUILD_ROOT%{_libdir}/ocaml/*/*.mli
 
 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-{pop3,cgi}-%{version}
 cp -r examples/{cgi,jserv} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-cgi-%{version}
@@ -106,26 +110,24 @@ rm -rf $RPM_BUILD_ROOT
 
 %files netstring-devel
 %defattr(644,root,root,755)
-%doc LICENSE README src/netstring/*
+%doc LICENSE README doc/intro/html
 %dir %{_libdir}/ocaml/netstring
-%{_libdir}/ocaml/netstring/*.cm[ixa]*
+%{_libdir}/ocaml/netstring/*.cm[ixao]*
 %{_libdir}/ocaml/netstring/*.a
 %{_libdir}/ocaml/site-lib/netstring
 
 %files cgi-devel
 %defattr(644,root,root,755)
-%doc LICENSE README src/cgi/*
 %dir %{_libdir}/ocaml/cgi
-%{_libdir}/ocaml/cgi/*.cm[ixa]*
+%{_libdir}/ocaml/cgi/*.cm[ixao]*
 %{_libdir}/ocaml/cgi/*.a
 %{_libdir}/ocaml/site-lib/cgi
 %{_examplesdir}/%{name}-cgi-%{version}
 
 %files pop3-devel
 %defattr(644,root,root,755)
-%doc LICENSE README src/pop/*
 %dir %{_libdir}/ocaml/pop
-%{_libdir}/ocaml/pop/*.cm[ixa]*
+%{_libdir}/ocaml/pop/*.cm[ixao]*
 %{_libdir}/ocaml/pop/*.a
 %{_libdir}/ocaml/site-lib/pop
 %{_examplesdir}/%{name}-pop3-%{version}
This page took 0.027156 seconds and 4 git commands to generate.