commit a92ae8e24316462475407a6fe2a7d8ae53c2f65d Author: Jan Rękorajski <bagg...@pld-linux.org> Date: Tue Mar 23 22:34:12 2021 +0100
- up to 4.1.3 ocaml-sqlite.spec | 43 +++++++++++++++++++++++-------------------- 1 file changed, 23 insertions(+), 20 deletions(-) --- diff --git a/ocaml-sqlite.spec b/ocaml-sqlite.spec index fc4a755..ada3c9d 100644 --- a/ocaml-sqlite.spec +++ b/ocaml-sqlite.spec @@ -12,13 +12,13 @@ %define module sqlite3 Summary: sqlite3 binding for OCaml Name: ocaml-sqlite -Version: 2.0.4 -Release: 5 +Version: 4.1.3 +Release: 1 License: BSD Group: Libraries -Source0: https://bitbucket.org/mmottl/sqlite3-ocaml/downloads/sqlite3-ocaml-%{version}.tar.gz -# Source0-md5: ae90c81f24322afad47678ffdc6c2a64 -URL: https://bitbucket.org/mmottl/sqlite3-ocaml +Source0: https://github.com/mmottl/sqlite3-ocaml/archive/v%{version}/sqlite3-ocaml-%{version}.tar.gz +# Source0-md5: 1b7c29a831fb517dfa0df399eaea2ceb +URL: http://mmottl.github.io/sqlite3-ocaml/ BuildRequires: ocaml >= 3.04-7 BuildRequires: ocaml-camlp4 BuildRequires: ocaml-findlib-devel @@ -33,7 +33,7 @@ SQLite 3 database library wrapper for OCaml. Summary: sqlite3 binding for OCaml - development part Group: Development/Libraries Requires: %{name} = %{version}-%{release} -%requires_eq ocaml +%requires_eq ocaml %description devel This package contains files needed to develop OCaml programs using @@ -44,28 +44,25 @@ ocaml-sqlite3 library. %build ./configure \ - --libdir=%{_libdir} + --prefix=%{_prefix} \ + --libdir=%{_libdir} \ + --docdir=%{_docdir}/%{name} \ + --destdir=$RPM_BUILD_ROOT %{__make} -j1 all \ CC="%{__cc} %{rpmcflags} -fPIC" %install rm -rf $RPM_BUILD_ROOT - install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/{%{module},stublibs} -cp -p _build/lib/*.cm[ixa]* _build/lib/*.a $RPM_BUILD_ROOT%{_libdir}/ocaml/%{module} -install -p _build/lib/dll*.so $RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs + +%{__make} -j1 install \ + DESTDIR=$RPM_BUILD_ROOT \ + OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml \ + OCAMLFIND_DOCDIR=$RPM_BUILD_ROOT%{_docdir}/%{name} install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/%{module} -cat > $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/%{module}/META <<EOF -requires = "" -version = "%{version}" -description="Ocaml bindings to Sqlite3" -directory = "+%{module}" -archive(byte) = "%{module}.cma" -archive(native) = "%{module}.cmxa" -linkopts = "" -EOF +ln -sr $RPM_BUILD_ROOT%{_libdir}/ocaml/{%{module},site-lib/%{module}}/META %clean rm -rf $RPM_BUILD_ROOT @@ -76,13 +73,19 @@ rm -rf $RPM_BUILD_ROOT %files devel %defattr(644,root,root,755) -%doc CHANGES.txt README.md TODO.md lib/%{module}.mli test +%doc CHANGES.txt README.md TODO.md src/%{module}.mli test %dir %{_libdir}/ocaml/%{module} +%{_libdir}/ocaml/sqlite3/META +%{_libdir}/ocaml/sqlite3/sqlite3.annot %{_libdir}/ocaml/%{module}/*.cm[xi] %{_libdir}/ocaml/%{module}/*.cma +%{_libdir}/ocaml/%{module}/sqlite3.cmt +%{_libdir}/ocaml/%{module}/sqlite3.cmti +%{_libdir}/ocaml/%{module}/sqlite3.mli %{_libdir}/ocaml/%{module}/libsqlite3_stubs.a %if %{with ocaml_opt} %{_libdir}/ocaml/%{module}/*.cmx[as] %{_libdir}/ocaml/%{module}/sqlite3.a %endif %{_libdir}/ocaml/site-lib/%{module} +%{_libdir}/ocaml/stublibs/dllsqlite3_stubs.so.owner ================================================================ ---- gitweb: http://git.pld-linux.org/gitweb.cgi/packages/ocaml-sqlite.git/commitdiff/a92ae8e24316462475407a6fe2a7d8ae53c2f65d _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit