New upstream version 2.0.2.

- Fix home page and source URL.
- Clean up spec file.
- Fix build.
This commit is contained in:
Richard W.M. Jones 2012-10-30 13:33:19 +00:00
parent 6449408754
commit 70a2fc45ed
3 changed files with 18 additions and 19 deletions

1
.gitignore vendored
View File

@ -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

View File

@ -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@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@lists.fedoraproject.org> - 1.18.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

View File

@ -1 +1 @@
f6a07ff34347a1ad552c1f663f7e90ed release-1.18.0.tar.bz2
2998844efa24f1402c54897869ee4ead postgresql-ocaml-2.0.2.tar.gz