|
|
dd11791 |
%global opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
|
|
|
cdf75f4 |
|
|
|
cdf75f4 |
# Note new upstream versions of this require 'batteries' (it is, or
|
|
|
cdf75f4 |
# was, actually just an optional dependency). Since this is not yet
|
|
|
cdf75f4 |
# packaged for Fedora, we're sticking with 1.6.
|
|
|
0df9ecc |
|
|
|
0df9ecc |
Name: ocaml-pgocaml
|
|
|
dd11791 |
Version: 1.6
|
|
|
bb899e0 |
Release: 17%{?dist}
|
|
|
0df9ecc |
Summary: OCaml library for type-safe access to PostgreSQL databases
|
|
|
0df9ecc |
License: LGPLv2+ with exceptions
|
|
|
cdf75f4 |
|
|
|
1fcc588 |
URL: http://pgocaml.forge.ocamlcore.org/
|
|
|
38acbd7 |
# Old tarball is not on the website any longer. When we package batteries
|
|
|
38acbd7 |
# (see comment above) we can go back to a website link here.
|
|
|
38acbd7 |
Source0: pgocaml-%{version}.tgz
|
|
|
cdf75f4 |
|
|
|
0df9ecc |
BuildRequires: ocaml >= 3.10.0
|
|
|
0df9ecc |
BuildRequires: ocaml-findlib-devel, ocaml-ocamldoc
|
|
|
0df9ecc |
BuildRequires: ocaml-extlib-devel
|
|
|
0df9ecc |
BuildRequires: ocaml-pcre-devel, pcre-devel
|
|
|
e3edce8 |
BuildRequires: ocaml-calendar-devel >= 2.01.1-2
|
|
|
0df9ecc |
BuildRequires: ocaml-csv-devel
|
|
|
0df9ecc |
BuildRequires: ocaml-camlp4-devel
|
|
|
0df9ecc |
|
|
|
0df9ecc |
# The find-requires/provides scripts don't understand the packed
|
|
|
0df9ecc |
# CalendarLib module well. Ignore the packed submodules.
|
|
|
dd11791 |
%global __ocaml_requires_opts /usr/lib/rpm/ocaml-find-requires.sh -i Asttypes -i Calendar_builder -i Calendar_sig -i Date -i Date_sig -i Fcalendar -i Ftime -i Parsetree -i Period -i Printer -i Time -i Time_sig -i Time_Zone -i Utils -i Version
|
|
|
dd11791 |
%global __ocaml_provides_opts /usr/lib/rpm/ocaml-find-provides.sh
|
|
|
1fcc588 |
|
|
|
1fcc588 |
|
|
|
0df9ecc |
%description
|
|
|
0df9ecc |
PG'OCaml is a type-safe, simple interface to PostgreSQL from OCaml. It
|
|
|
0df9ecc |
lets you embed SQL statements directly into OCaml code.
|
|
|
0df9ecc |
|
|
|
0df9ecc |
|
|
|
0df9ecc |
%package devel
|
|
|
0df9ecc |
Summary: Development files for %{name}
|
|
|
0df9ecc |
Requires: %{name} = %{version}-%{release}
|
|
|
0df9ecc |
|
|
|
0df9ecc |
|
|
|
0df9ecc |
%description devel
|
|
|
0df9ecc |
The %{name}-devel package contains libraries and signature files for
|
|
|
0df9ecc |
developing applications that use %{name}.
|
|
|
0df9ecc |
|
|
|
0df9ecc |
|
|
|
0df9ecc |
%prep
|
|
|
0df9ecc |
%setup -q -n pgocaml-%{version}
|
|
|
0df9ecc |
|
|
|
0df9ecc |
|
|
|
0df9ecc |
%build
|
|
|
e3edce8 |
make depend
|
|
|
b9b6901 |
%if %opt
|
|
|
cdf75f4 |
make all OCAMLOPTFLAGS=-g
|
|
|
b9b6901 |
%else
|
|
|
dd79106 |
make META pGOCaml_config.ml pgocaml.cma pa_pgsql.cmo
|
|
|
b9b6901 |
%endif
|
|
|
0df9ecc |
make doc
|
|
|
0df9ecc |
|
|
|
0df9ecc |
|
|
|
0df9ecc |
%install
|
|
|
0df9ecc |
export DESTDIR=$RPM_BUILD_ROOT
|
|
|
0df9ecc |
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
|
|
|
0df9ecc |
mkdir -p $OCAMLFIND_DESTDIR
|
|
|
b9b6901 |
%if %opt
|
|
|
0df9ecc |
ocamlfind install pgocaml META *.mli *.cmi *.cmx *.cma *.cmxa *.a pa_*.cmo
|
|
|
b9b6901 |
%else
|
|
|
80149bb |
ocamlfind install pgocaml META *.mli *.cmi *.cma pa_*.cmo
|
|
|
b9b6901 |
%endif
|
|
|
0df9ecc |
|
|
|
dd79106 |
%if %opt
|
|
|
0df9ecc |
mkdir -p $RPM_BUILD_ROOT%{_bindir}
|
|
|
0df9ecc |
install -m 0755 pgocaml_prof $RPM_BUILD_ROOT%{_bindir}
|
|
|
dd79106 |
%endif
|
|
|
0df9ecc |
|
|
|
0df9ecc |
|
|
|
0df9ecc |
%files
|
|
|
0df9ecc |
%doc COPYING.LIB
|
|
|
0df9ecc |
%{_libdir}/ocaml/pgocaml
|
|
|
0df9ecc |
%if %opt
|
|
|
0df9ecc |
%exclude %{_libdir}/ocaml/pgocaml/*.a
|
|
|
0df9ecc |
%exclude %{_libdir}/ocaml/pgocaml/*.cmxa
|
|
|
0df9ecc |
%exclude %{_libdir}/ocaml/pgocaml/*.cmx
|
|
|
0df9ecc |
%endif
|
|
|
0df9ecc |
%exclude %{_libdir}/ocaml/pgocaml/*.mli
|
|
|
dd79106 |
%if %opt
|
|
|
0df9ecc |
%{_bindir}/pgocaml_prof
|
|
|
dd79106 |
%endif
|
|
|
0df9ecc |
|
|
|
0df9ecc |
|
|
|
0df9ecc |
%files devel
|
|
|
0df9ecc |
%doc README.txt README.profiling BUGS.txt CONTRIBUTORS.txt COPYING.LIB HOW_IT_WORKS.txt html/*
|
|
|
0df9ecc |
%if %opt
|
|
|
0df9ecc |
%{_libdir}/ocaml/pgocaml/*.a
|
|
|
0df9ecc |
%{_libdir}/ocaml/pgocaml/*.cmxa
|
|
|
0df9ecc |
%{_libdir}/ocaml/pgocaml/*.cmx
|
|
|
0df9ecc |
%endif
|
|
|
0df9ecc |
%{_libdir}/ocaml/pgocaml/*.mli
|
|
|
0df9ecc |
|
|
|
0df9ecc |
|
|
|
0df9ecc |
%changelog
|
|
|
bb899e0 |
* Tue Jul 28 2015 Richard W.M. Jones <rjones@redhat.com> - 1.6-17
|
|
|
bb899e0 |
- OCaml 4.02.3 rebuild.
|
|
|
bb899e0 |
|
|
|
b9b6901 |
* Tue Jul 21 2015 Richard W.M. Jones <rjones@redhat.com> - 1.6-16
|
|
|
b9b6901 |
- Enable bytecode builds.
|
|
|
b9b6901 |
|
|
|
5612f14 |
* Wed Jun 24 2015 Richard W.M. Jones <rjones@redhat.com> - 1.6-15
|
|
|
5612f14 |
- ocaml-4.02.2 final rebuild.
|
|
|
5612f14 |
|
|
|
9ad6976 |
* Thu Jun 18 2015 Richard W.M. Jones <rjones@redhat.com> - 1.6-14
|
|
|
9ad6976 |
- ocaml-4.02.2 rebuild.
|
|
|
9ad6976 |
|
|
|
ca25fa9 |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6-13
|
|
|
ca25fa9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
ca25fa9 |
|
|
|
81c5b52 |
* Tue Feb 17 2015 Richard W.M. Jones <rjones@redhat.com> - 1.6-12
|
|
|
81c5b52 |
- ocaml-4.02.1 rebuild.
|
|
|
81c5b52 |
|
|
|
1d66d1d |
* Sun Aug 31 2014 Richard W.M. Jones <rjones@redhat.com> - 1.6-11
|
|
|
1d66d1d |
- ocaml-4.02.0 final rebuild.
|
|
|
1d66d1d |
|
|
|
dbd2781 |
* Sat Aug 23 2014 Richard W.M. Jones <rjones@redhat.com> - 1.6-10
|
|
|
dbd2781 |
- ocaml-4.02.0+rc1 rebuild.
|
|
|
dbd2781 |
|
|
|
9d79189 |
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6-9
|
|
|
9d79189 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
9d79189 |
|
|
|
ac43e7f |
* Sat Aug 02 2014 Richard W.M. Jones <rjones@redhat.com> - 1.6-8
|
|
|
ac43e7f |
- ocaml-4.02.0-0.8.git10e45753.fc22 rebuild.
|
|
|
ac43e7f |
|
|
|
a994503 |
* Mon Jul 21 2014 Richard W.M. Jones <rjones@redhat.com> - 1.6-7
|
|
|
a994503 |
- OCaml 4.02.0 beta rebuild.
|
|
|
a994503 |
|
|
|
38fc76c |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6-6
|
|
|
38fc76c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
38fc76c |
|
|
|
cdf75f4 |
* Thu Sep 19 2013 Richard W.M. Jones <rjones@redhat.com> - 1.6-5
|
|
|
cdf75f4 |
- OCaml 4.01.0 rebuild.
|
|
|
cdf75f4 |
- Enable debuginfo.
|
|
|
cdf75f4 |
|
|
|
0e64568 |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6-4
|
|
|
0e64568 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
0e64568 |
|
|
|
ba31b40 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6-3
|
|
|
ba31b40 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
ba31b40 |
|
|
|
84881b9 |
* Sun Dec 02 2012 Bruno Wolff III <bruno@wolff.to> - 1.6-2
|
|
|
84881b9 |
- Rebuild for ocaml 4.0.1.
|
|
|
84881b9 |
|
|
|
dd11791 |
* Tue Oct 30 2012 Richard W.M. Jones <rjones@redhat.com> - 1.6-1
|
|
|
dd11791 |
- New upstream version 1.6.
|
|
|
dd11791 |
- Remove patch for OCaml 4, now upstream.
|
|
|
dd11791 |
- Clean up spec file.
|
|
|
dd11791 |
|
|
|
a4196c9 |
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-2
|
|
|
a4196c9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
a4196c9 |
|
|
|
1fcc588 |
* Mon Jun 11 2012 Richard W.M. Jones <rjones@redhat.com> - 1.5-1
|
|
|
1fcc588 |
- New upstream version 1.5.
|
|
|
1fcc588 |
- Upstream site moved to ocamlforge.
|
|
|
1fcc588 |
- Patch camlp4 code to use _loc instead of loc.
|
|
|
1fcc588 |
|
|
|
026e9e3 |
* Mon Jun 11 2012 Richard W.M. Jones <rjones@redhat.com> - 1.4-4
|
|
|
026e9e3 |
- Rebuild for OCaml 4.00.0.
|
|
|
026e9e3 |
|
|
|
566ab93 |
* Fri Jan 06 2012 Richard W.M. Jones <rjones@redhat.com> - 1.4-3
|
|
|
566ab93 |
- Rebuild for OCaml 3.12.1.
|
|
|
566ab93 |
|
|
|
c79774c |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-2
|
|
|
c79774c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
c79774c |
|
|
|
5dd7c8e |
* Thu Jan 6 2011 Richard W.M. Jones <rjones@redhat.com> - 1.4-1
|
|
|
5dd7c8e |
- New upstream version 1.4.
|
|
|
5dd7c8e |
- Rebuild for OCaml 3.12.0.
|
|
|
5dd7c8e |
|
|
|
774290a |
* Wed Dec 30 2009 Richard W.M. Jones <rjones@redhat.com> - 1.3-2
|
|
|
774290a |
- Rebuild for OCaml 3.11.2.
|
|
|
774290a |
|
|
|
e3edce8 |
* Thu Oct 8 2009 Richard W.M. Jones <rjones@redhat.com> - 1.3-1
|
|
|
e3edce8 |
- New upstream version 1.3.
|
|
|
e3edce8 |
- Simplify build system.
|
|
|
e3edce8 |
|
|
|
6b71b41 |
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-10
|
|
|
6b71b41 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
6b71b41 |
|
|
|
e5bf732 |
* Sat May 23 2009 Richard W.M. Jones <rjones@redhat.com> - 1.1-9
|
|
|
e5bf732 |
- Rebuild for OCaml 3.11.1
|
|
|
e5bf732 |
|
|
|
95e670a |
* Thu Apr 16 2009 S390x secondary arch maintainer <fedora-s390x@lists.fedoraproject.org>
|
|
|
95e670a |
- ExcludeArch sparc64, s390, s390x as we don't have OCaml on those archs
|
|
|
95e670a |
(added sparc64 per request from the sparc maintainer)
|
|
|
95e670a |
|
|
|
b08c75a |
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-8
|
|
|
b08c75a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
b08c75a |
|
|
|
4f573f8 |
* Fri Dec 5 2008 Richard W.M. Jones <rjones@redhat.com> - 1.1-7
|
|
|
4f573f8 |
- Rebuild for OCaml 3.11.0.
|
|
|
4f573f8 |
|
|
|
8d04f29 |
* Wed Nov 26 2008 Richard W.M. Jones <rjones@redhat.com> - 1.1-6
|
|
|
8d04f29 |
- Rebuild for OCaml 3.11.0+rc1.
|
|
|
8d04f29 |
|
|
|
cd956c1 |
* Wed Nov 19 2008 Richard W.M. Jones <rjones@redhat.com> - 1.1-5
|
|
|
cd956c1 |
- Rebuild for OCaml 3.11.0
|
|
|
cd956c1 |
|
|
|
efd09e8 |
* Thu Jul 10 2008 Richard W.M. Jones <rjones@redhat.com> - 1.1-4
|
|
|
efd09e8 |
- Rebuild against ocaml-calendar 2.0.4
|
|
|
efd09e8 |
|
|
|
74755e3 |
* Tue Jul 1 2008 Richard W.M. Jones <rjones@redhat.com> - 1.1-3
|
|
|
74755e3 |
- Ignore Parsetree dep.
|
|
|
74755e3 |
- Bump release to -3 to solve EVR problems with F-9.
|
|
|
74755e3 |
|
|
|
0df9ecc |
* Tue Mar 4 2008 Richard W.M. Jones <rjones@redhat.com> - 1.1-1
|
|
|
0df9ecc |
- New upstream release 1.1.
|
|
|
0df9ecc |
- Clarify license is LGPLv2+ with exceptions.
|
|
|
0df9ecc |
- New home page and download URL.
|
|
|
0df9ecc |
|
|
|
0df9ecc |
* Mon Mar 3 2008 Richard W.M. Jones <rjones@redhat.com> - 0.9-5
|
|
|
0df9ecc |
- Ignore modules which are really submodules of CalendarLib.
|
|
|
0df9ecc |
|
|
|
0df9ecc |
* Sat Mar 1 2008 Richard W.M. Jones <rjones@redhat.com> - 0.9-4
|
|
|
0df9ecc |
- Add missing BR for ocaml-camlp4-devel.
|
|
|
0df9ecc |
- Add missing BR for pcre-devel.
|
|
|
0df9ecc |
- Check it builds in mock.
|
|
|
0df9ecc |
|
|
|
0df9ecc |
* Sat Feb 23 2008 Richard W.M. Jones <rjones@redhat.com> - 0.9-3
|
|
|
0df9ecc |
- Check it builds with OCaml 3.10.1
|
|
|
0df9ecc |
- Only keep license file in main package.
|
|
|
0df9ecc |
- Clarify license is LGPLv2 with exceptions.
|
|
|
0df9ecc |
|
|
|
0df9ecc |
* Mon Sep 3 2007 Richard W.M. Jones <rjones@redhat.com> - 0.9-2
|
|
|
0df9ecc |
- Added the syntax extension.
|
|
|
0df9ecc |
|
|
|
0df9ecc |
* Mon Sep 3 2007 Richard W.M. Jones <rjones@redhat.com> - 0.9-1
|
|
|
0df9ecc |
- Initial RPM release.
|