X-Git-Url: https://git.tld-linux.org/?p=packages%2Fpostgresql.git;a=blobdiff_plain;f=postgresql.spec;h=b5d0463a16d721024986b2057674aefcb35af837;hp=3306e812f93e585620d27a5703beb2c64e035a97;hb=1e3d14aed7fb15868122c642354316d38365ae66;hpb=033304e995480cf81544eda98884bd84a4107f5e diff --git a/postgresql.spec b/postgresql.spec index 3306e81..b5d0463 100644 --- a/postgresql.spec +++ b/postgresql.spec @@ -45,6 +45,7 @@ Patch3: per-version-dirs.patch Patch4: postgresql-disable_horology_test.patch Patch5: postgresql-heimdal.patch Patch6: postgresql-link.patch +Patch7: libpgport-pkglibdir.patch URL: http://www.postgresql.org/ BuildRequires: autoconf >= 2.69 BuildRequires: automake @@ -552,6 +553,7 @@ Różne moduły dołączone do PostgreSQL-a. %patch4 -p1 %patch5 -p1 %patch6 -p1 +%patch7 -p1 # force rebuild of bison/flex files find src -name \*.l -o -name \*.y | xargs touch @@ -784,6 +786,15 @@ if [ $1 -eq 0 ]; then update-alternatives --remove vacuumdb %{pgsqllibdir}/bin/vacuumdb || : fi +%post -n postgresql-devel +update-alternatives \ + --install %{_bindir}/pg_config pg_config %{pgsqllibdir}/bin/pg_config %{pgver}%{pgminver} \ + --slave %{_mandir}/man1/pg_config.1 pg_config.1 %{pgsqldatadir}/man/man1/pg_config.1* || : + +%postun -n postgresql-devel + update-alternatives --remove pg_config %{pgsqllibdir}/bin/pg_config || : + + %post -n postgresql-libs -p /sbin/ldconfig %postun -n postgresql-libs -p /sbin/ldconfig @@ -935,9 +946,9 @@ fi %files -n postgresql-static %defattr(644,root,root,755) %{_libdir}/libpq.a -%{_libdir}/libpgcommon.a -%{_libdir}/libpgfeutils.a -%{_libdir}/libpgport.a +%{pgsqllibdir}/lib/libpgcommon.a +%{pgsqllibdir}/lib/libpgfeutils.a +%{pgsqllibdir}/lib/libpgport.a %files clients -f clients.lang %defattr(644,root,root,755)