SPECS: ocaml-pg.spec - builds
baggins
baggins at pld-linux.org
Sun Dec 2 13:50:00 CET 2007
Author: baggins Date: Sun Dec 2 12:50:00 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- builds
---- Files affected:
SPECS:
ocaml-pg.spec (1.2 -> 1.3)
---- Diffs:
================================================================
Index: SPECS/ocaml-pg.spec
diff -u SPECS/ocaml-pg.spec:1.2 SPECS/ocaml-pg.spec:1.3
--- SPECS/ocaml-pg.spec:1.2 Tue Nov 27 19:28:28 2007
+++ SPECS/ocaml-pg.spec Sun Dec 2 13:49:55 2007
@@ -10,12 +10,14 @@
URL: http://merjis.com/developers/pgocaml/
Source0: http://merjis.com/_file/pgocaml-%{version}.tar.gz
# Source0-md5: 4f12ab37e75cc863560600e458e202d5
+Patch0: %{name}-notest.patch
BuildRequires: ocaml >= %{ocaml_ver}
-BuildRequires: ocaml-calendar
-BuildRequires: ocaml-csv
-BuildRequires: ocaml-extlib
+BuildRequires: ocaml-calendar-devel
+BuildRequires: ocaml-camlp4
+BuildRequires: ocaml-csv-devel
+BuildRequires: ocaml-extlib-devel
BuildRequires: ocaml-findlib
-BuildRequires: ocaml-pcre
+BuildRequires: ocaml-pcre-devel
%requires_eq ocaml-runtime
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -24,10 +26,9 @@
It lets you embed SQL statements directly into OCaml code.
%package devel
-Summary: PostgreSQL binding for OCaml - development part
-Summary(pl.UTF-8): Wiązania PostgreSQL dla OCamla - cześć programistyczna
+Summary: PostgreSQL binding for OCaml
+Summary(pl.UTF-8): Wiązania PostgreSQL dla OCamla
Group: Development/Libraries
-Requires: %{name} = %{version}-%{release}
%requires_eq ocaml
%description devel
@@ -36,6 +37,7 @@
%prep
%setup -q -n pgocaml-%{version}
+%patch0 -p1
%build
%{__make}
@@ -43,34 +45,29 @@
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/{postgres,stublibs}
+install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/{pgocaml,stublibs}
-install *.cm[ixa]* *.a $RPM_BUILD_ROOT%{_libdir}/ocaml/postgres
-install dll*.so $RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs
+install *.cm[ixa]* *.a $RPM_BUILD_ROOT%{_libdir}/ocaml/pgocaml
install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
-cp -r tests/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -r test* pgocaml_prof.ml $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
# META for findlib
-install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/postgres
-echo 'directory = "+postgres"' >> META
-install META $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/postgres
+install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/pgocaml
+echo 'directory = "+pgocaml"' >> META
+install META $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/pgocaml
%clean
rm -rf $RPM_BUILD_ROOT
-%files
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/ocaml/stublibs/dll*.so
-
%files devel
%defattr(644,root,root,755)
-%doc README *.mli
-%dir %{_libdir}/ocaml/postgres
-%{_libdir}/ocaml/postgres/*.cm[ixa]*
-%{_libdir}/ocaml/postgres/*.a
+%doc README* BUGS.txt CONTRIBUTORS.txt HOW_IT_WORKS.txt *.mli
+%dir %{_libdir}/ocaml/pgocaml
+%{_libdir}/ocaml/pgocaml/*.cm[ixa]*
+%{_libdir}/ocaml/pgocaml/*.a
%{_examplesdir}/%{name}-%{version}
-%{_libdir}/ocaml/site-lib/postgres
+%{_libdir}/ocaml/site-lib/pgocaml
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -78,6 +75,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.3 2007-12-02 12:49:55 baggins
+- builds
+
Revision 1.2 2007-11-27 18:28:28 baggins
- proper license
- proper ocaml BR
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/ocaml-pg.spec?r1=1.2&r2=1.3&f=u
More information about the pld-cvs-commit
mailing list