2010-01-11 17:48:00 +00:00
|
|
|
%global opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
|
2008-03-04 18:21:36 +00:00
|
|
|
|
|
|
|
Name: ocaml-postgresql
|
2016-11-07 21:35:16 +00:00
|
|
|
Version: 4.0.1
|
2020-04-02 13:05:51 +00:00
|
|
|
Release: 25%{?dist}
|
2009-03-09 15:29:23 +00:00
|
|
|
Summary: OCaml library for accessing PostgreSQL databases
|
2008-03-04 18:21:36 +00:00
|
|
|
|
|
|
|
License: LGPLv2+ with exceptions
|
2014-07-21 20:14:30 +00:00
|
|
|
URL: https://github.com/mmottl/postgresql-ocaml
|
2016-11-07 21:35:16 +00:00
|
|
|
Source0: https://github.com/mmottl/postgresql-ocaml/releases/download/v%{version}/postgresql-ocaml-%{version}.tar.gz
|
2008-03-04 18:21:36 +00:00
|
|
|
|
|
|
|
BuildRequires: ocaml >= 3.10.0
|
|
|
|
BuildRequires: ocaml-findlib-devel
|
2016-11-07 21:35:16 +00:00
|
|
|
BuildRequires: ocaml-ocamlbuild
|
2008-03-04 18:21:36 +00:00
|
|
|
BuildRequires: ocaml-ocamldoc
|
2018-09-06 07:16:31 +00:00
|
|
|
BuildRequires: libpq-devel
|
2008-03-04 18:21:36 +00:00
|
|
|
BuildRequires: chrpath
|
2008-04-18 20:56:12 +00:00
|
|
|
BuildRequires: rpm >= 4.4.2.3-2
|
2008-03-04 18:21:36 +00:00
|
|
|
|
2010-01-11 17:48:00 +00:00
|
|
|
%global __ocaml_provides_opts -i Condition -i Event -i Mutex -i Thread -i ThreadUnix
|
2008-03-04 18:21:36 +00:00
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
This OCaml-library provides an interface to PostgreSQL, an efficient
|
|
|
|
and reliable, open source, relational database. Almost all
|
|
|
|
functionality available through the C-API (libpq) is replicated in a
|
|
|
|
type-safe way. This library uses objects for representing database
|
|
|
|
connections and results of queries.
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and signature files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2012-10-30 13:33:19 +00:00
|
|
|
%setup -q -n postgresql-ocaml-%{version}
|
|
|
|
ocaml setup.ml -configure --prefix %{_prefix} --destdir $RPM_BUILD_ROOT
|
2008-03-04 18:21:36 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
make
|
|
|
|
|
2012-10-30 13:33:19 +00:00
|
|
|
chrpath --delete _build/lib/dll*.so
|
2008-03-04 18:21:36 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
# These rules work if the library uses 'ocamlfind install' to install itself.
|
|
|
|
export DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
|
|
|
|
mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
|
|
|
|
make install
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
2012-10-30 13:33:19 +00:00
|
|
|
%doc COPYING.txt
|
2008-03-04 18:21:36 +00:00
|
|
|
%{_libdir}/ocaml/postgresql
|
|
|
|
%if %opt
|
|
|
|
%exclude %{_libdir}/ocaml/postgresql/*.a
|
|
|
|
%exclude %{_libdir}/ocaml/postgresql/*.cmxa
|
|
|
|
%endif
|
|
|
|
%exclude %{_libdir}/ocaml/postgresql/*.mli
|
|
|
|
%{_libdir}/ocaml/stublibs/*.so
|
|
|
|
%{_libdir}/ocaml/stublibs/*.so.owner
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
2012-10-30 13:33:19 +00:00
|
|
|
%doc COPYING.txt AUTHORS.txt CHANGES.txt README.md examples
|
2008-03-04 18:21:36 +00:00
|
|
|
%if %opt
|
|
|
|
%{_libdir}/ocaml/postgresql/*.a
|
|
|
|
%{_libdir}/ocaml/postgresql/*.cmxa
|
|
|
|
%endif
|
|
|
|
%{_libdir}/ocaml/postgresql/*.mli
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2020-04-02 13:05:51 +00:00
|
|
|
* Thu Apr 02 2020 Richard W.M. Jones <rjones@redhat.com> - 4.0.1-25
|
|
|
|
- Update all OCaml dependencies for RPM 4.16.
|
|
|
|
|
2020-02-26 10:56:29 +00:00
|
|
|
* Wed Feb 26 2020 Richard W.M. Jones <rjones@redhat.com> - 4.0.1-24
|
|
|
|
- OCaml 4.10.0 final.
|
|
|
|
|
2020-01-29 19:43:16 +00:00
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.1-23
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2020-01-19 11:51:05 +00:00
|
|
|
* Sun Jan 19 2020 Richard W.M. Jones <rjones@redhat.com> - 4.0.1-22
|
|
|
|
- OCaml 4.10.0+beta1 rebuild.
|
|
|
|
|
2020-01-09 18:09:05 +00:00
|
|
|
* Thu Jan 09 2020 Richard W.M. Jones <rjones@redhat.com> - 4.0.1-21
|
|
|
|
- OCaml 4.09.0 for riscv64
|
|
|
|
|
2019-12-06 15:55:56 +00:00
|
|
|
* Fri Dec 06 2019 Richard W.M. Jones <rjones@redhat.com> - 4.0.1-20
|
|
|
|
- OCaml 4.09.0 (final) rebuild.
|
|
|
|
|
2019-08-16 17:10:14 +00:00
|
|
|
* Fri Aug 16 2019 Richard W.M. Jones <rjones@redhat.com> - 4.0.1-19
|
|
|
|
- OCaml 4.08.1 (final) rebuild.
|
|
|
|
|
2019-07-31 20:18:17 +00:00
|
|
|
* Wed Jul 31 2019 Richard W.M. Jones <rjones@redhat.com> - 4.0.1-18
|
|
|
|
- OCaml 4.08.1 (rc2) rebuild.
|
|
|
|
|
2019-07-25 22:59:03 +00:00
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.1-17
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-06-27 20:54:40 +00:00
|
|
|
* Thu Jun 27 2019 Richard W.M. Jones <rjones@redhat.com> - 4.0.1-16
|
|
|
|
- OCaml 4.08.0 (final) rebuild.
|
|
|
|
|
2019-04-30 10:00:16 +00:00
|
|
|
* Tue Apr 30 2019 Richard W.M. Jones <rjones@redhat.com> - 4.0.1-15
|
|
|
|
- OCaml 4.08.0 (beta 3) rebuild.
|
|
|
|
|
2019-02-01 16:55:56 +00:00
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.1-14
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-07-13 14:47:19 +00:00
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.1-13
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-07-11 18:50:55 +00:00
|
|
|
* Wed Jul 11 2018 Richard W.M. Jones <rjones@redhat.com> - 4.0.1-12
|
|
|
|
- OCaml 4.07.0 (final) rebuild.
|
|
|
|
|
2018-06-20 20:33:53 +00:00
|
|
|
* Wed Jun 20 2018 Richard W.M. Jones <rjones@redhat.com> - 4.0.1-11
|
|
|
|
- OCaml 4.07.0-rc1 rebuild.
|
|
|
|
|
2018-02-08 08:56:35 +00:00
|
|
|
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.1-10
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2017-11-18 00:38:24 +00:00
|
|
|
* Sat Nov 18 2017 Richard W.M. Jones <rjones@redhat.com> - 4.0.1-9
|
|
|
|
- OCaml 4.06.0 rebuild.
|
|
|
|
|
2017-08-09 09:56:44 +00:00
|
|
|
* Wed Aug 09 2017 Richard W.M. Jones <rjones@redhat.com> - 4.0.1-8
|
|
|
|
- OCaml 4.05.0 rebuild.
|
|
|
|
|
2017-08-03 04:19:04 +00:00
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.1-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
2017-07-27 01:30:56 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.1-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-06-27 12:43:09 +00:00
|
|
|
* Tue Jun 27 2017 Richard W.M. Jones <rjones@redhat.com> - 4.0.1-5
|
|
|
|
- OCaml 4.04.2 rebuild.
|
|
|
|
|
2017-05-13 12:11:44 +00:00
|
|
|
* Sat May 13 2017 Richard W.M. Jones <rjones@redhat.com> - 4.0.1-4
|
|
|
|
- OCaml 4.04.1 rebuild.
|
|
|
|
|
2017-02-11 00:35:06 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-11-09 18:00:32 +00:00
|
|
|
* Wed Nov 09 2016 Dan Horák <dan@danny.cz> - 4.0.1-2
|
|
|
|
- rebuild for s390x codegen bug
|
|
|
|
|
2016-11-07 21:35:16 +00:00
|
|
|
* Mon Nov 07 2016 Richard W.M. Jones <rjones@redhat.com> - 4.0.1-1
|
|
|
|
- New upstream version 4.0.1.
|
|
|
|
|
2016-02-04 11:09:59 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.7-12
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-07-28 23:03:04 +00:00
|
|
|
* Tue Jul 28 2015 Richard W.M. Jones <rjones@redhat.com> - 2.0.7-11
|
|
|
|
- OCaml 4.02.3 rebuild.
|
|
|
|
|
2015-07-27 09:25:52 +00:00
|
|
|
* Mon Jul 27 2015 Richard W.M. Jones <rjones@redhat.com> - 2.0.7-10
|
|
|
|
- Remove ExcludeArch since bytecode build should now work.
|
|
|
|
|
2015-06-24 23:18:19 +00:00
|
|
|
* Wed Jun 24 2015 Richard W.M. Jones <rjones@redhat.com> - 2.0.7-9
|
|
|
|
- ocaml-4.02.2 final rebuild.
|
|
|
|
|
2015-06-18 13:39:46 +00:00
|
|
|
* Thu Jun 18 2015 Richard W.M. Jones <rjones@redhat.com> - 2.0.7-8
|
|
|
|
- ocaml-4.02.2 rebuild.
|
|
|
|
|
2015-06-17 23:36:05 +00:00
|
|
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.7-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-02-17 16:20:30 +00:00
|
|
|
* Tue Feb 17 2015 Richard W.M. Jones <rjones@redhat.com> - 2.0.7-6
|
|
|
|
- ocaml-4.02.1 rebuild.
|
|
|
|
|
2014-08-31 13:13:45 +00:00
|
|
|
* Sun Aug 31 2014 Richard W.M. Jones <rjones@redhat.com> - 2.0.7-5
|
|
|
|
- ocaml-4.02.0 final rebuild.
|
|
|
|
|
2014-08-23 23:06:50 +00:00
|
|
|
* Sat Aug 23 2014 Richard W.M. Jones <rjones@redhat.com> - 2.0.7-4
|
|
|
|
- ocaml-4.02.0+rc1 rebuild.
|
|
|
|
|
2014-08-17 13:05:47 +00:00
|
|
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.7-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-08-02 17:45:17 +00:00
|
|
|
* Sat Aug 02 2014 Richard W.M. Jones <rjones@redhat.com> - 2.0.7-2
|
|
|
|
- ocaml-4.02.0-0.8.git10e45753.fc22 rebuild.
|
|
|
|
|
2014-07-21 20:14:30 +00:00
|
|
|
* Mon Jul 21 2014 Richard W.M. Jones <rjones@redhat.com> - 2.0.7-1
|
|
|
|
- New upstream version 2.0.7.
|
|
|
|
- OCaml 4.02.0 beta rebuild.
|
|
|
|
|
2014-06-07 15:47:38 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.4-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2013-09-19 11:51:20 +00:00
|
|
|
* Thu Sep 19 2013 Richard W.M. Jones <rjones@redhat.com> - 2.0.4-1
|
|
|
|
- New upstream version 2.0.4.
|
|
|
|
- OCaml 4.01.0 rebuild.
|
|
|
|
- Enable debuginfo.
|
|
|
|
|
2013-08-03 15:01:25 +00:00
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.2-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-02-14 09:03:05 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-10-30 13:33:19 +00:00
|
|
|
* Tue Oct 30 2012 Richard W.M. Jones <rjones@redhat.com> - 2.0.2-1
|
|
|
|
- New upstream version 2.0.2.
|
|
|
|
- Fix home page and source URL.
|
|
|
|
- Clean up spec file.
|
|
|
|
- Fix build.
|
|
|
|
|
2012-07-20 06:09:34 +00:00
|
|
|
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.18.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-06-11 07:39:48 +00:00
|
|
|
* Mon Jun 11 2012 Richard W.M. Jones <rjones@redhat.com> - 1.18.0-2
|
|
|
|
- Rebuild for OCaml 4.00.0.
|
|
|
|
|
2012-01-12 13:38:22 +00:00
|
|
|
* Thu Jan 12 2012 Richard W.M. Jones <rjones@redhat.com> - 1.18.0-1
|
|
|
|
- New upstream version 1.18.0.
|
|
|
|
- Rebuild for OCaml 3.12.1.
|
|
|
|
|
2011-02-09 02:05:57 +00:00
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.14.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2011-01-06 16:51:32 +00:00
|
|
|
* Thu Jan 6 2011 Richard W.M. Jones <rjones@redhat.com> - 1.14.0-1
|
|
|
|
- New upstream version 1.14.0.
|
|
|
|
|
2010-01-11 17:48:00 +00:00
|
|
|
* Mon Jan 11 2010 Richard W.M. Jones <rjones@redhat.com> - 1.12.3-3
|
|
|
|
- Ignore bogus thread module Provides which the automatic dependency
|
|
|
|
generator was giving us.
|
|
|
|
- Replace %%define with %%global.
|
|
|
|
- Use upstream RPM 4.8 OCaml internal dependency generator.
|
|
|
|
|
2009-12-30 13:52:33 +00:00
|
|
|
* Wed Dec 30 2009 Richard W.M. Jones <rjones@redhat.com> - 1.12.3-2
|
|
|
|
- Rebuild for OCaml 3.11.2.
|
|
|
|
|
2009-10-16 10:14:19 +00:00
|
|
|
* Fri Oct 16 2009 Richard W.M. Jones <rjones@redhat.com> - 1.12.3-1
|
|
|
|
- New upstream version 1.12.3.
|
|
|
|
- This contains a SECURITY fix for:
|
|
|
|
https://bugzilla.redhat.com/show_bug.cgi?id=529325
|
|
|
|
CVE-2009-2943 ocaml-postgresql: Missing escape function (DSA-1909-1)
|
|
|
|
HOWEVER you are not protected until you change your code to
|
|
|
|
use the new connection#escape_string method.
|
|
|
|
|
2009-10-04 21:03:49 +00:00
|
|
|
* Sun Oct 4 2009 Richard W.M. Jones <rjones@redhat.com> - 1.12.1-1
|
|
|
|
- New upstream version 1.12.1.
|
|
|
|
|
2009-07-25 20:03:37 +00:00
|
|
|
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-05-23 08:12:43 +00:00
|
|
|
* Sat May 23 2009 Richard W.M. Jones <rjones@redhat.com> - 1.11.1-2
|
|
|
|
- Rebuild for OCaml 3.11.1
|
|
|
|
- New upstream version 1.11.1.
|
|
|
|
|
2009-04-16 09:06:14 +00:00
|
|
|
* Thu Apr 16 2009 S390x secondary arch maintainer <fedora-s390x@lists.fedoraproject.org>
|
|
|
|
- ExcludeArch sparc64, s390, s390x as we don't have OCaml on those archs
|
|
|
|
(added sparc64 per request from the sparc maintainer)
|
|
|
|
|
2009-03-10 14:06:41 +00:00
|
|
|
* Tue Mar 10 2009 Richard W.M. Jones <rjones@redhat.com> - 1.10.3-1
|
|
|
|
- New upstream version 1.10.3.
|
|
|
|
- Fix URL.
|
|
|
|
- Upstream Source URLs have all changed.
|
|
|
|
|
2009-03-09 15:30:44 +00:00
|
|
|
* Mon Mar 9 2009 Richard W.M. Jones <rjones@redhat.com> - 1.9.2-6
|
2009-03-09 15:29:23 +00:00
|
|
|
- Fix typo in summary (rhbz#487632).
|
|
|
|
|
2009-02-26 07:28:25 +00:00
|
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.2-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2008-12-04 18:38:44 +00:00
|
|
|
* Wed Nov 26 2008 Richard W.M. Jones <rjones@redhat.com> - 1.9.2-3
|
|
|
|
- Rebuild for OCaml 3.11.0+rc1.
|
|
|
|
|
2008-11-24 13:05:23 +00:00
|
|
|
* Mon Nov 24 2008 Richard W.M. Jones <rjones@redhat.com> - 1.9.2-2
|
|
|
|
- Rebuild.
|
|
|
|
|
2008-11-20 16:55:30 +00:00
|
|
|
* Thu Nov 20 2008 Richard W.M. Jones <rjones@redhat.com> - 1.9.2-1
|
|
|
|
- New upstream release 1.9.2.
|
|
|
|
|
|
|
|
* Wed Nov 19 2008 Richard W.M. Jones <rjones@redhat.com> - 1.8.2-5
|
|
|
|
- Rebuild for OCaml 3.11.0
|
|
|
|
|
2008-04-23 11:10:18 +00:00
|
|
|
* Wed Apr 23 2008 Richard W.M. Jones <rjones@redhat.com> - 1.8.2-4
|
|
|
|
- Rebuild for OCaml 3.10.2
|
|
|
|
|
2008-04-18 20:56:12 +00:00
|
|
|
* Fri Apr 18 2008 Richard W.M. Jones <rjones@redhat.com> - 1.8.2-3
|
|
|
|
- Can't spell. prm -> rpm.
|
|
|
|
|
2008-04-18 20:47:40 +00:00
|
|
|
* Fri Apr 18 2008 Richard W.M. Jones <rjones@redhat.com> - 1.8.2-2
|
|
|
|
- Rebuild against updated RPM (see bug 443114).
|
|
|
|
|
2008-04-04 11:53:16 +00:00
|
|
|
* Fri Apr 4 2008 Richard W.M. Jones <rjones@redhat.com> - 1.8.2-1
|
|
|
|
- New upstream version 1.8.2.
|
|
|
|
|
2008-03-04 18:25:21 +00:00
|
|
|
* Tue Mar 4 2008 Richard W.M. Jones <rjones@redhat.com> - 1.7.0-3
|
|
|
|
- Rebuild for ppc64.
|
|
|
|
|
2008-03-04 18:21:36 +00:00
|
|
|
* Mon Mar 3 2008 Richard W.M. Jones <rjones@redhat.com> - 1.7.0-2
|
|
|
|
- Only include LICENSE doc in main package.
|
|
|
|
- Include extra documentation and examples in devel package.
|
|
|
|
- Check it builds in mock.
|
|
|
|
|
|
|
|
* Sun Feb 24 2008 Richard W.M. Jones <rjones@redhat.com> - 1.7.0-1
|
|
|
|
- Initial RPM release.
|