[ocaml-postgresql] New upstream version 2.0.2.

Richard W.M. Jones rjones at fedoraproject.org
Tue Oct 30 13:35:41 UTC 2012


commit 70a2fc45ed9dad4c0b35948132c5a28ea193e0fe
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Tue Oct 30 13:33:19 2012 +0000

    New upstream version 2.0.2.
    
    - Fix home page and source URL.
    - Clean up spec file.
    - Fix build.

 .gitignore            |    1 +
 ocaml-postgresql.spec |   34 ++++++++++++++++------------------
 sources               |    2 +-
 3 files changed, 18 insertions(+), 19 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 7621f61..6fe4e39 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
 release-1.12.3.tar.bz2
 /release-1.14.0.tar.bz2
 /release-1.18.0.tar.bz2
+/postgresql-ocaml-2.0.2.tar.gz
diff --git a/ocaml-postgresql.spec b/ocaml-postgresql.spec
index b274d13..e3aeca9 100644
--- a/ocaml-postgresql.spec
+++ b/ocaml-postgresql.spec
@@ -2,14 +2,13 @@
 %global debug_package %{nil}
 
 Name:           ocaml-postgresql
-Version:        1.18.0
-Release:        3%{?dist}
+Version:        2.0.2
+Release:        1%{?dist}
 Summary:        OCaml library for accessing PostgreSQL databases
 
-Group:          Development/Libraries
 License:        LGPLv2+ with exceptions
-URL:            http://www.ocaml.info/home/ocaml_sources.html#postgresql-ocaml
-Source0:        http://hg.ocaml.info/release/postgresql-ocaml/archive/release-%{version}.tar.bz2
+URL:            https://bitbucket.org/mmottl/postgresql-ocaml
+Source0:        https://bitbucket.org/mmottl/postgresql-ocaml/downloads/postgresql-ocaml-2.0.2.tar.gz
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 ExcludeArch:    sparc64 s390 s390x
 
@@ -33,7 +32,6 @@ connections and results of queries.
 
 %package        devel
 Summary:        Development files for %{name}
-Group:          Development/Libraries
 Requires:       %{name} = %{version}-%{release}
 
 
@@ -43,32 +41,27 @@ developing applications that use %{name}.
 
 
 %prep
-%setup -q -n postgresql-ocaml-release-%{version}
+%setup -q -n postgresql-ocaml-%{version}
+ocaml setup.ml -configure --prefix %{_prefix} --destdir $RPM_BUILD_ROOT
 
 
 %build
 make
 
-strip lib/dll*.so
-chrpath --delete lib/dll*.so
+strip _build/lib/dll*.so
+chrpath --delete _build/lib/dll*.so
 
 
 %install
 # These rules work if the library uses 'ocamlfind install' to install itself.
-rm -rf $RPM_BUILD_ROOT
 export DESTDIR=$RPM_BUILD_ROOT
 export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
 mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
 make install
 
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-
 %files
-%defattr(-,root,root,-)
-%doc LICENSE
+%doc COPYING.txt
 %{_libdir}/ocaml/postgresql
 %if %opt
 %exclude %{_libdir}/ocaml/postgresql/*.a
@@ -80,8 +73,7 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %files devel
-%defattr(-,root,root,-)
-%doc LICENSE AUTHORS Changelog README.txt examples
+%doc COPYING.txt AUTHORS.txt CHANGES.txt README.md examples
 %if %opt
 %{_libdir}/ocaml/postgresql/*.a
 %{_libdir}/ocaml/postgresql/*.cmxa
@@ -90,6 +82,12 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Tue Oct 30 2012 Richard W.M. Jones <rjones at redhat.com> - 2.0.2-1
+- New upstream version 2.0.2.
+- Fix home page and source URL.
+- Clean up spec file.
+- Fix build.
+
 * Fri Jul 20 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.18.0-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
 
diff --git a/sources b/sources
index b8e7fe7..bbd0bc5 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-f6a07ff34347a1ad552c1f663f7e90ed  release-1.18.0.tar.bz2
+2998844efa24f1402c54897869ee4ead  postgresql-ocaml-2.0.2.tar.gz


More information about the scm-commits mailing list