diff --git a/SPECS/postgresql.spec b/SPECS/postgresql.spec index cfaa94e..a1d6fdd 100644 --- a/SPECS/postgresql.spec +++ b/SPECS/postgresql.spec @@ -65,7 +65,7 @@ Summary: PostgreSQL client programs Name: %{?scl_prefix}postgresql %global majorversion 9.4 Version: 9.4.6 -Release: 1%{?dist} +Release: 3%{?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. @@ -250,6 +250,13 @@ with a PostgreSQL database management server. It also contains the ecpg 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 @@ -731,7 +738,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 !%upgrade rm -f $RPM_BUILD_ROOT%{_bindir}/pg_upgrade rm -f $RPM_BUILD_ROOT%{_libdir}/pgsql/pg_upgrade_support.so @@ -1046,6 +1053,7 @@ cd - %{_datadir}/pgsql/*.sample %{_datadir}/pgsql/timezonesets/ %{_datadir}/pgsql/tsearch_data/ +%dir %{_datadir}/postgresql-setup %{_datadir}/postgresql-setup/library.sh %{_libdir}/pgsql/dict_snowball.so %{_libdir}/pgsql/pg_prewarm.so @@ -1087,10 +1095,15 @@ cd - %{_libdir}/libecpg_compat.so %{_libdir}/libpgtypes.so %{_libdir}/pgsql/pgxs/ +%dir %{_libdir}/pkgconfig/ %{_libdir}/pkgconfig/*.pc %{_mandir}/man1/ecpg.* %{_mandir}/man3/SPI_* +%files static +%{_libdir}/libpgcommon.a +%{_libdir}/libpgport.a + %if %upgrade %files upgrade %{_bindir}/pg_upgrade @@ -1135,6 +1148,12 @@ cd - %endif %changelog +* Thu Apr 28 2016 Pavel Kajaba - 9.4.6-3 +- Inlude missing files into files section (rhbz#1330640) + +* Thu Mar 10 2016 Pavel Kajaba - 9.4.6-2 +- package static libraries without dynamic counterparts (rhbz#1304782) + * Tue Feb 16 2016 Pavel Raiskup - 9.4.6-1 - update to 9.4.6 (CVE-2016-0773) per release notes http://www.postgresql.org/docs/9.4/static/release-9-4-6.html