SPECS: ocaml-net.spec - release 3 - package all files - added doc ...
baggins
baggins at pld-linux.org
Sun Dec 11 16:51:27 CET 2005
Author: baggins Date: Sun Dec 11 15:51:27 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- release 3
- package all files
- added doc package
---- Files affected:
SPECS:
ocaml-net.spec (1.24 -> 1.25)
---- Diffs:
================================================================
Index: SPECS/ocaml-net.spec
diff -u SPECS/ocaml-net.spec:1.24 SPECS/ocaml-net.spec:1.25
--- SPECS/ocaml-net.spec:1.24 Sat Dec 10 19:45:03 2005
+++ SPECS/ocaml-net.spec Sun Dec 11 16:51:21 2005
@@ -6,7 +6,7 @@
Summary(pl): Moduły ułatwiające pisanie programów internetowych w OCamlu
Name: ocaml-net
Version: 1.1
-Release: 2
+Release: 3
License: GPL v2
Group: Libraries
Source0: http://dl.sourceforge.net/ocamlnet/ocamlnet-%{version}.tar.gz
@@ -26,6 +26,17 @@
%description -l pl
Moduły ułatwiające pisanie programów internetowych w OCamlu.
+%package doc
+Summary: ocaml-net documentation
+Summary(pl): Dokumentacja dla pakietów ocaml-net
+Group: Development/Libraries
+
+%description doc
+ocaml-net documentation
+
+%description doc -l pl
+Dokumentacja dla pakietów ocaml-net
+
%package netstring-devel
Summary: String processing library
Summary(pl): Biblioteka do przetwarzania napisów
@@ -42,7 +53,22 @@
ten zawiera pliki niezbędne do tworzenia programów używających tej
biblioteki.
-#%package nethttpd-devel
+%package nethttpd-devel
+Summary: HTTPd library
+Summary(pl): Biblioteka do obsługi protokołu HTTP
+Group: Development/Libraries
+%requires_eq ocaml-pcre-devel
+%requires_eq ocaml
+
+%description nethttpd-devel
+HTTPd library, part of Ocamlnet. This package contains
+files needed to develop OCaml programs using this library.
+
+%description nethttpd-devel -l pl
+Biblioteka do obsługi protokołu HTTP, część pakietu Ocamlnet. Pakiet
+ten zawiera pliki niezbędne do tworzenia programów używających tej
+biblioteki.
+
%package cgi-devel
Summary: Common Gateway Interface library
@@ -97,9 +123,12 @@
# no %%configure, please
./configure \
-enable-findlib \
+ -enable-compatcgi \
-with-netstring \
+ -with-nethttpd \
-with-cgi \
- -with-pop
+ -with-pop \
+ -with-smtp
sed -e 's/-g//' Makefile.rules > Makefile.rules.tmp
mv -f Makefile.rules.tmp Makefile.rules
@@ -111,9 +140,11 @@
install -d $RPM_BUILD_ROOT%{_libdir}/ocaml
cd src
-%{__make} -j1 install OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
+%{__make} -j1 install \
+ OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml \
+ DESTDIR=$RPM_BUILD_ROOT
-for f in cgi pop netstring ; do
+for f in smtp cgi pop netstring nethttpd; do
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/
@@ -124,28 +155,33 @@
# 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}
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-{pop3,cgi,nethttpd}-%{version}
+cp -r examples/{*cgi,jserv} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-cgi-%{version}
cp -r examples/pop/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-pop3-%{version}
+cp -r examples/nethttpd/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-nethttpd-%{version}
%clean
rm -rf $RPM_BUILD_ROOT
-#%files nethttpd-devel
-#%defattr(644,root,root,755)
-#%doc LICENSE README doc/html
-#%dir %{_libdir}/ocaml/nethttpd
-#%{_libdir}/ocaml/nethttpd/*.cm[ixao]*
-#%{_libdir}/ocaml/nethttpd/*.a
-#%{_libdir}/ocaml/nethttpd/*.o
+%files doc
+%defattr(644,root,root,755)
+%doc LICENSE README doc/html
+
+%files nethttpd-devel
+%defattr(644,root,root,755)
+%dir %{_libdir}/ocaml/nethttpd
+%{_libdir}/ocaml/nethttpd/*.cm[ixao]*
+%{_libdir}/ocaml/nethttpd/*.a
+%{_libdir}/ocaml/site-lib/nethttpd
+%{_examplesdir}/%{name}-nethttpd-%{version}
%files netstring-devel
%defattr(644,root,root,755)
-%doc LICENSE README doc/html
%dir %{_libdir}/ocaml/netstring
%{_libdir}/ocaml/netstring/*.cm[ixao]*
%{_libdir}/ocaml/netstring/*.a
%{_libdir}/ocaml/netstring/*.o
+%attr(755,root,root) %{_libdir}/ocaml/netstring/*.so
%{_libdir}/ocaml/site-lib/netstring
%files cgi-devel
@@ -169,6 +205,7 @@
%dir %{_libdir}/ocaml/smtp
%{_libdir}/ocaml/smtp/*.cm[ixao]*
%{_libdir}/ocaml/smtp/*.a
+%{_libdir}/ocaml/site-lib/smtp
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -176,6 +213,11 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.25 2005/12/11 15:51:21 baggins
+- release 3
+- package all files
+- added doc package
+
Revision 1.24 2005/12/10 18:45:03 baggins
- release 2 for ocaml 3.09.0
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/ocaml-net.spec?r1=1.24&r2=1.25&f=u
More information about the pld-cvs-commit
mailing list