static: add static libraries missed by packagers

Put those libraries into separate sub-package to make sure that
people build-require concrete subpackage (not devel subpackage),
and we can easily track them.

Resolves: rhbz#784281
Version: 9.5.1-2
This commit is contained in:
Pavel Raiskup 2016-02-26 08:19:43 +01:00
parent 89f36b76f7
commit f01c700fce

View File

@ -67,7 +67,7 @@ Summary: PostgreSQL client programs
Name: postgresql
%global majorversion 9.5
Version: 9.5.1
Release: 1%{?dist}
Release: 2%{?dist}
# The PostgreSQL license is very similar to other MIT licenses, but the OSI
# recognizes it as an independent license, so we do as well.
@ -269,6 +269,15 @@ Embedded C Postgres preprocessor. You need to install this package if you want
to develop applications which will interact with a PostgreSQL server.
%package static
Summary: Statically linked PostgreSQL libraries
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
%description static
Statically linked PostgreSQL libraries that do not have dynamically linked
counterparts.
%if %upgrade
%package upgrade
Summary: Support for upgrading from the previous major release of PostgreSQL
@ -777,7 +786,7 @@ mv $RPM_BUILD_ROOT%{_docdir}/pgsql/html doc
rm -rf $RPM_BUILD_ROOT%{_docdir}/pgsql
# remove files not to be packaged
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
rm $RPM_BUILD_ROOT%{_libdir}/{libecpg,libpq,libecpg_compat,libpgtypes}.a
%if !%plperl
rm -f $RPM_BUILD_ROOT%{_bindir}/pgsql/hstore_plperl.so
@ -1157,6 +1166,10 @@ fi
%{_mandir}/man3/SPI_*
%{macrosdir}/*
%files static
%{_libdir}/libpgcommon.a
%{_libdir}/libpgport.a
%if %upgrade
%files upgrade
%{_libdir}/pgsql/postgresql-%{prevmajorversion}
@ -1197,6 +1210,9 @@ fi
%endif
%changelog
* Fri Feb 26 2016 Pavel Raiskup <praiskup@redhat.com> - 9.5.1-2
- package static libraries without dynamic counterparts (rhbz#784281)
* Tue Feb 09 2016 Pavel Raiskup <praiskup@redhat.com> - 9.5.1-1
- update to 9.5.1 per release notes
http://www.postgresql.org/docs/9.5/static/release-9-5-1.html