Sophie

Sophie

distrib > Mageia > 2 > x86_64 > by-pkgid > 50af8e810fef282e2282cca7a787826d > files > 1

ocaml-pgocaml-1.4-2.mga2.src.rpm

Name:           ocaml-pgocaml
Version:        1.4
Release:        %mkrel 2
Summary:        OCaml library for type-safe access to PostgreSQL databases
Group:          Development/Other
License:        LGPLv2+ with exceptions
URL:            http://developer.berlios.de/projects/pgocaml/
Source0:        http://download.berlios.de/pgocaml/pgocaml-%{version}.tgz

BuildRequires:  ocaml >= 3.10.0
BuildRequires:  postgresql-devel
BuildRequires:  ocaml-findlib
BuildRequires:  ocaml-extlib-devel
BuildRequires:  pcre-devel
BuildRequires:  ocaml-pcre-devel
BuildRequires:  ocaml-calendar-devel >= 2.0.4
BuildRequires:  ocaml-csv-devel
BuildRequires:  camlp4
Requires:  ocaml-pcre
Requires:  ocaml-extlib
Requires:  ocaml-calendar
Requires:  ocaml-csv

%description
PG'OCaml is a type-safe, simple interface to PostgreSQL from OCaml.
It lets you embed SQL statements directly into OCaml code.

%package        devel
Summary:        Development files for %{name}
Group:          Development/Other
Requires:       %{name} = %{version}-%{release}
# Compilation with findlib fails if these are not installed
Requires:       ocaml-pcre-devel
Requires:       ocaml-extlib-devel
Requires:       ocaml-calendar-devel
Requires:       ocaml-csv-devel

%description    devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%prep
%setup -q -n pgocaml-%{version}

%build
make depend
# Don't build or run the test programs because that would need
# a live PostgreSQL database around.
make pGOCaml_config.ml pgocaml.cma pgocaml.cmxa pa_pgsql.cmo \
  pgocaml_prof META
make doc

%install
rm -rf %{buildroot}
export DESTDIR=%{buildroot}
export OCAMLFIND_DESTDIR=%{buildroot}/%{_libdir}/ocaml
mkdir -p $OCAMLFIND_DESTDIR
ocamlfind install pgocaml META *.mli *.cmi *.cmx *.cma *.cmxa *.a pa_*.cmo

mkdir -p %{buildroot}/%{_bindir}
install -m 0755 pgocaml_prof %{buildroot}%{_bindir}

%files
%doc COPYING.LIB CONTRIBUTORS.txt
%dir %{_libdir}/ocaml/pgocaml
%{_libdir}/ocaml/pgocaml/META
%{_libdir}/ocaml/pgocaml/*.cmi
%{_libdir}/ocaml/pgocaml/*.cma
%{_libdir}/ocaml/pgocaml/pa_*.cmo
%{_bindir}/pgocaml_prof

%files devel
%doc README.txt README.profiling BUGS.txt HOW_IT_WORKS.txt html/*
%{_libdir}/ocaml/pgocaml/*.a
%{_libdir}/ocaml/pgocaml/*.cmxa
%{_libdir}/ocaml/pgocaml/*.cmx
%{_libdir}/ocaml/pgocaml/*.mli


%changelog

* Sun Apr 22 2012 malo <malo> 1.4-2.mga2
+ Revision: 232731
- add missing requires

* Fri Mar 23 2012 blue_prawn <blue_prawn> 1.4-1.mga2
+ Revision: 225865
- imported from Mandriva


* Sat Feb 11 2012 Oden Eriksson <oeriksson@mandriva.com>
+ Revision: 773016
- relink against libpcre.so.1

* Wed Mar 17 2010 Florent Monnier <blue_prawn@mandriva.org>
+ Revision: 522808
- update to new version 1.4

* Mon Sep 14 2009 Florent Monnier <blue_prawn@mandriva.org>
+ Revision: 440739
- rebuild

* Thu Sep 10 2009 Florent Monnier <blue_prawn@mandriva.org>
+ Revision: 437545
- update to new version classic-1.3

* Fri Jul 31 2009 Florent Monnier <blue_prawn@mandriva.org>
+ Revision: 405257
- corrected build

* Fri Jul 31 2009 Florent Monnier <blue_prawn@mandriva.org>
+ Revision: 405211
- updated version

* Fri Jul 31 2009 Funda Wang <fwang@mandriva.org>
+ Revision: 405044
- rebuild for new ocaml

* Wed Feb 04 2009 Florent Monnier <blue_prawn@mandriva.org>
+ Revision: 337548
- requisites

* Tue Feb 03 2009 Florent Monnier <blue_prawn@mandriva.org>
+ Revision: 337083
- The initial RPM release was made from the fedora rpm .spec file (revision 1.6) by Richard W.M. Jones

* Tue Jan 06 2009 Florent Monnier <blue_prawn@mandriva.org>
+ Revision: 326205
- findlib package name

* Tue Jan 06 2009 Florent Monnier <blue_prawn@mandriva.org>
+ Revision: 325527
- import ocaml-pgocaml