From 83fb3d530ab5507e053b6aa9a1e06f5f47d1b0a3 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Mon, 9 Oct 2017 08:46:02 +0200 Subject: [PATCH] upgrade-devel: stricter separation from 'postgresql-upgrade' Related: rhbz#1475177 Version: 10.0-2 --- postgresql.spec | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/postgresql.spec b/postgresql.spec index 59884be..5c74ab1 100644 --- a/postgresql.spec +++ b/postgresql.spec @@ -718,12 +718,14 @@ install -m 644 %{SOURCE11} $RPM_BUILD_ROOT%{?_localstatedir}/lib/pgsql/.bash_pro rm bin/pg_dump rm bin/pg_dumpall rm bin/pg_restore + rm bin/pgbench rm bin/psql rm bin/reindexdb rm bin/vacuumdb rm -rf share/doc rm -rf share/man rm -rf share/tsearch_data + rm -rf lib/*.a rm share/*.bki rm share/*description rm share/*.sample @@ -1105,17 +1107,18 @@ make -C postgresql-setup-%{setup_version} check %if %upgrade %files upgrade -%{_libdir}/pgsql/postgresql-%{prevmajorversion} +%{_libdir}/pgsql/postgresql-%{prevmajorversion}/bin +%exclude %{_libdir}/pgsql/postgresql-%{prevmajorversion}/bin/pg_config +%{_libdir}/pgsql/postgresql-%{prevmajorversion}/lib +%exclude %{_libdir}/pgsql/postgresql-%{prevmajorversion}/lib/pgxs +%exclude %{_libdir}/pgsql/postgresql-%{prevmajorversion}/lib/pkgconfig +%{_libdir}/pgsql/postgresql-%{prevmajorversion}/share %files upgrade-devel %{_libdir}/pgsql/postgresql-%{prevmajorversion}/bin/pg_config -%{_libdir}/pgsql/postgresql-%{prevmajorversion}/include/* -%{_libdir}/pgsql/postgresql-%{prevmajorversion}/lib/dict_snowball.so -%{_libdir}/pgsql/postgresql-%{prevmajorversion}/lib/libecpg* -%{_libdir}/pgsql/postgresql-%{prevmajorversion}/lib/libpg* -%{_libdir}/pgsql/postgresql-%{prevmajorversion}/lib/libpq* -%{_libdir}/pgsql/postgresql-%{prevmajorversion}/lib/pgxs/* -%{_libdir}/pgsql/postgresql-%{prevmajorversion}/lib/plpgsql.so +%{_libdir}/pgsql/postgresql-%{prevmajorversion}/include +%{_libdir}/pgsql/postgresql-%{prevmajorversion}/lib/pkgconfig +%{_libdir}/pgsql/postgresql-%{prevmajorversion}/lib/pgxs %endif %if %plperl @@ -1149,6 +1152,9 @@ make -C postgresql-setup-%{setup_version} check %endif %changelog +* Mon Oct 09 2017 Pavel Raiskup - 10.0-2 +- stricter separation of files in upgrade/upgrade-devel + * Mon Oct 09 2017 Jozef Mlich - 10.0-2 - support for upgrade with extenstions i.e the postgresql-upgrade-devel subpackage was added (rhbz#1475177)