|
|
|
@ -55,11 +55,16 @@
|
|
|
|
|
# https://fedoraproject.org/wiki/Packaging:Guidelines#Packaging_of_Additional_RPM_Macros
|
|
|
|
|
%global macrosdir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d)
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora} > 29
|
|
|
|
|
%global external_libs 1
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Summary: PostgreSQL client programs
|
|
|
|
|
Name: postgresql
|
|
|
|
|
%global majorversion 10
|
|
|
|
|
Version: 10.5
|
|
|
|
|
Release: 4%{?dist}
|
|
|
|
|
%global majorversion 9.6
|
|
|
|
|
Version: 9.6.14
|
|
|
|
|
%{?dirty_hack_epoch}
|
|
|
|
|
Release: 1%{?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.
|
|
|
|
@ -71,12 +76,12 @@ Url: http://www.postgresql.org/
|
|
|
|
|
# in-place upgrade of an old database. In most cases it will not be critical
|
|
|
|
|
# that this be kept up with the latest minor release of the previous series;
|
|
|
|
|
# but update when bugs affecting pg_dump output are fixed.
|
|
|
|
|
%global prevversion 9.6.10
|
|
|
|
|
%global prevmajorversion 9.6
|
|
|
|
|
%global prevversion 9.5.18
|
|
|
|
|
%global prevmajorversion 9.5
|
|
|
|
|
%global prev_prefix %{_libdir}/pgsql/postgresql-%{prevmajorversion}
|
|
|
|
|
%global precise_version %{?epoch:%epoch:}%version-%release
|
|
|
|
|
|
|
|
|
|
%global setup_version 8.2
|
|
|
|
|
%global setup_version 8.4
|
|
|
|
|
|
|
|
|
|
%global service_name postgresql.service
|
|
|
|
|
Source0: https://ftp.postgresql.org/pub/source/v%{version}/postgresql-%{version}.tar.bz2
|
|
|
|
@ -170,6 +175,11 @@ BuildRequires: systemtap-sdt-devel
|
|
|
|
|
BuildRequires: libselinux-devel
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if ! 0%{?external_libs}
|
|
|
|
|
# main package requires -libs subpackage
|
|
|
|
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# https://bugzilla.redhat.com/1464368
|
|
|
|
|
%global __provides_exclude_from %{_libdir}/pgsql
|
|
|
|
|
|
|
|
|
@ -183,17 +193,34 @@ over a network connection. The PostgreSQL server can be found in the
|
|
|
|
|
postgresql-server sub-package.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if ! 0%{?external_libs}
|
|
|
|
|
%package libs
|
|
|
|
|
Summary: The shared libraries required for any PostgreSQL clients
|
|
|
|
|
Group: Applications/Databases
|
|
|
|
|
Provides: libpq.so = %{version}-%{release}
|
|
|
|
|
# for /sbin/ldconfig
|
|
|
|
|
Requires(post): glibc
|
|
|
|
|
Requires(postun): glibc
|
|
|
|
|
|
|
|
|
|
%description libs
|
|
|
|
|
The postgresql-libs package provides the essential shared libraries for any
|
|
|
|
|
PostgreSQL client program or interface. You will need to install this package
|
|
|
|
|
to use any other PostgreSQL package or any clients that need to connect to a
|
|
|
|
|
PostgreSQL server.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%package server
|
|
|
|
|
Summary: The programs needed to create and run a PostgreSQL server
|
|
|
|
|
Group: Applications/Databases
|
|
|
|
|
Requires: %{name}%{?_isa} = %precise_version
|
|
|
|
|
%{!?external_libs:Requires: %{name}-libs%{?_isa} = %precise_version}
|
|
|
|
|
Requires(pre): /usr/sbin/useradd
|
|
|
|
|
# We require this to be present for %%{_prefix}/lib/tmpfiles.d
|
|
|
|
|
Requires: systemd
|
|
|
|
|
# Make sure it's there when scriptlets run, too
|
|
|
|
|
%{?systemd_requires}
|
|
|
|
|
# Packages which provide postgresql plugins should build-require
|
|
|
|
|
# postgresql-server-devel and require
|
|
|
|
|
# postgresql-(server-)devel and require
|
|
|
|
|
# postgresql-server(:MODULE_COMPAT_%%{postgresql_major}).
|
|
|
|
|
# This will automatically guard against incompatible server & plugin
|
|
|
|
|
# installation (#1008939, #1007840)
|
|
|
|
@ -224,19 +251,22 @@ and source files for the PostgreSQL tutorial.
|
|
|
|
|
Summary: Extension modules distributed with PostgreSQL
|
|
|
|
|
Group: Applications/Databases
|
|
|
|
|
Requires: %{name}%{?_isa} = %precise_version
|
|
|
|
|
%{!?external_libs:Requires: %{name}-libs%{?_isa} = %precise_version}
|
|
|
|
|
|
|
|
|
|
%description contrib
|
|
|
|
|
The postgresql-contrib package contains various extension modules that are
|
|
|
|
|
included in the PostgreSQL distribution.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package server-devel
|
|
|
|
|
%package %{?external_libs:server-}devel
|
|
|
|
|
Summary: PostgreSQL development header files and libraries
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
%{!?external_libs:Requires: %{name}-libs%{?_isa} = %precise_version}
|
|
|
|
|
|
|
|
|
|
%description %{?external_libs:server-}devel
|
|
|
|
|
Package contains the header files and configuration needed to compile PostgreSQL
|
|
|
|
|
server extension.
|
|
|
|
|
|
|
|
|
|
%description server-devel
|
|
|
|
|
The postgresql-server-devel package contains the header files and configuration
|
|
|
|
|
needed to compile PostgreSQL server extension.
|
|
|
|
|
|
|
|
|
|
%package test-rpm-macros
|
|
|
|
|
Summary: Convenience RPM macros for build-time testing against PostgreSQL server
|
|
|
|
@ -249,7 +279,7 @@ that want to run build-time testsuite against running PostgreSQL server.
|
|
|
|
|
|
|
|
|
|
%package static
|
|
|
|
|
Summary: Statically linked PostgreSQL libraries
|
|
|
|
|
Requires: %{name}-server-devel%{?_isa} = %precise_version
|
|
|
|
|
Requires: %{name}-%{?external_libs:server-}devel%{?_isa} = %precise_version
|
|
|
|
|
|
|
|
|
|
%description static
|
|
|
|
|
Statically linked PostgreSQL libraries that do not have dynamically linked
|
|
|
|
@ -261,6 +291,7 @@ counterparts.
|
|
|
|
|
Summary: Support for upgrading from the previous major release of PostgreSQL
|
|
|
|
|
Group: Applications/Databases
|
|
|
|
|
Requires: %{name}-server%{?_isa} = %precise_version
|
|
|
|
|
%{!?external_libs:Requires: %{name}-libs%{?_isa} = %precise_version}
|
|
|
|
|
Provides: bundled(postgresql-server) = %prevversion
|
|
|
|
|
|
|
|
|
|
%description upgrade
|
|
|
|
@ -343,7 +374,7 @@ Install this if you want to write database functions in Tcl.
|
|
|
|
|
Summary: The test suite distributed with PostgreSQL
|
|
|
|
|
Group: Applications/Databases
|
|
|
|
|
Requires: %{name}-server%{?_isa} = %precise_version
|
|
|
|
|
Requires: %{name}-server-devel%{?_isa} = %precise_version
|
|
|
|
|
Requires: %{name}-%{?external_libs:server-}devel%{?_isa} = %precise_version
|
|
|
|
|
|
|
|
|
|
%description test
|
|
|
|
|
The postgresql-test package contains files needed for various tests for the
|
|
|
|
@ -365,8 +396,10 @@ benchmarks.
|
|
|
|
|
%patch2 -p1
|
|
|
|
|
%patch5 -p1
|
|
|
|
|
%patch6 -p1
|
|
|
|
|
%if 0%{?external_libs}
|
|
|
|
|
%patch8 -p1
|
|
|
|
|
%patch9 -p1
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# We used to run autoconf here, but there's no longer any real need to,
|
|
|
|
|
# since Postgres ships with a reasonably modern configure script.
|
|
|
|
@ -478,9 +511,20 @@ export PYTHON=/usr/bin/python3
|
|
|
|
|
--with-python
|
|
|
|
|
|
|
|
|
|
# Fortunately we don't need to build much except plpython itself.
|
|
|
|
|
make %{?_smp_mflags} -C src/pl/plpython all
|
|
|
|
|
%global python_subdirs \\\
|
|
|
|
|
src/pl/plpython \\\
|
|
|
|
|
contrib/hstore_plpython \\\
|
|
|
|
|
contrib/ltree_plpython
|
|
|
|
|
|
|
|
|
|
for dir in %python_subdirs; do
|
|
|
|
|
%make_build -C "$dir" all
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
# save built form in a directory that "make distclean" won't touch
|
|
|
|
|
cp -a src/pl/plpython src/pl/plpython3
|
|
|
|
|
for dir in %python_subdirs; do
|
|
|
|
|
rm -rf "${dir}3" # shouldn't exist, unless --short-circuit
|
|
|
|
|
cp -a "$dir" "${dir}3"
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
# must also save this version of Makefile.global for later
|
|
|
|
|
cp src/Makefile.global src/Makefile.global.python3
|
|
|
|
@ -499,7 +543,7 @@ PYTHON=/usr/bin/python2
|
|
|
|
|
|
|
|
|
|
unset PYTHON
|
|
|
|
|
|
|
|
|
|
make %{?_smp_mflags} world
|
|
|
|
|
%make_build world
|
|
|
|
|
|
|
|
|
|
# Have to hack makefile to put correct path into tutorial scripts
|
|
|
|
|
sed "s|C=\`pwd\`;|C=%{_libdir}/pgsql/tutorial;|" < src/tutorial/Makefile > src/tutorial/GNUmakefile
|
|
|
|
@ -539,17 +583,25 @@ test_failure=0
|
|
|
|
|
mv src/Makefile.global src/Makefile.global.save
|
|
|
|
|
cp src/Makefile.global.python3 src/Makefile.global
|
|
|
|
|
touch -r src/Makefile.global.save src/Makefile.global
|
|
|
|
|
# because "make check" does "make install" on the whole tree,
|
|
|
|
|
# we must temporarily install plpython3 as src/pl/plpython,
|
|
|
|
|
# since that is the subdirectory src/pl/Makefile knows about
|
|
|
|
|
mv src/pl/plpython src/pl/plpython2
|
|
|
|
|
mv src/pl/plpython3 src/pl/plpython
|
|
|
|
|
|
|
|
|
|
run_testsuite "src/pl/plpython"
|
|
|
|
|
for dir in %python_subdirs; do
|
|
|
|
|
# because "make check" does "make install" on the whole tree,
|
|
|
|
|
# we must temporarily install *plpython3 dir as *plpython,
|
|
|
|
|
# since that is the subdirectory src/pl/Makefile knows about
|
|
|
|
|
mv "$dir" "${dir}2"
|
|
|
|
|
mv "${dir}3" "$dir"
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
for dir in %python_subdirs; do
|
|
|
|
|
run_testsuite "$dir"
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
for dir in %python_subdirs; do
|
|
|
|
|
# and clean up our mess
|
|
|
|
|
mv "$dir" "${dir}3"
|
|
|
|
|
mv "${dir}2" "${dir}"
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
# and clean up our mess
|
|
|
|
|
mv src/pl/plpython src/pl/plpython3
|
|
|
|
|
mv src/pl/plpython2 src/pl/plpython
|
|
|
|
|
mv -f src/Makefile.global.save src/Makefile.global
|
|
|
|
|
%endif
|
|
|
|
|
run_testsuite "contrib"
|
|
|
|
@ -606,9 +658,17 @@ upgrade_configure ()
|
|
|
|
|
%if %plpython3
|
|
|
|
|
export PYTHON=/usr/bin/python3
|
|
|
|
|
upgrade_configure --with-python
|
|
|
|
|
make %{?_smp_mflags} -C src/pl/plpython all
|
|
|
|
|
# save aside the only one file which we are interested here
|
|
|
|
|
cp src/pl/plpython/plpython3.so ./
|
|
|
|
|
|
|
|
|
|
%make_build -C src/backend submake-errcodes
|
|
|
|
|
|
|
|
|
|
for dir in %python_subdirs; do
|
|
|
|
|
# Previous version doesn't necessarily have this.
|
|
|
|
|
test -d "$dir" || continue
|
|
|
|
|
%make_build -C "$dir" all
|
|
|
|
|
|
|
|
|
|
# save aside the only one file which we are interested here
|
|
|
|
|
cp "$dir"/*plpython3.so ./
|
|
|
|
|
done
|
|
|
|
|
unset PYTHON
|
|
|
|
|
make distclean
|
|
|
|
|
%endif
|
|
|
|
@ -645,20 +705,22 @@ EOF
|
|
|
|
|
|
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install-world
|
|
|
|
|
|
|
|
|
|
%if 0%{?external_libs}
|
|
|
|
|
# We ship pg_config through libpq-devel
|
|
|
|
|
mv $RPM_BUILD_ROOT/%_mandir/man1/pg_{,server_}config.1
|
|
|
|
|
rm $RPM_BUILD_ROOT/%_includedir/pg_config*.h
|
|
|
|
|
rm $RPM_BUILD_ROOT/%_includedir/libpq/libpq-fs.h
|
|
|
|
|
rm $RPM_BUILD_ROOT/%_includedir/postgres_ext.h
|
|
|
|
|
rm -r $RPM_BUILD_ROOT/%_includedir/pgsql/internal/
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if %plpython3
|
|
|
|
|
mv src/Makefile.global src/Makefile.global.save
|
|
|
|
|
cp src/Makefile.global.python3 src/Makefile.global
|
|
|
|
|
touch -r src/Makefile.global.save src/Makefile.global
|
|
|
|
|
pushd src/pl/plpython3
|
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
|
|
popd
|
|
|
|
|
for dir in %python_subdirs; do
|
|
|
|
|
%make_install -C "${dir}3"
|
|
|
|
|
done
|
|
|
|
|
mv -f src/Makefile.global.save src/Makefile.global
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
@ -668,6 +730,11 @@ install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/pgsql/extension
|
|
|
|
|
|
|
|
|
|
# multilib header hack
|
|
|
|
|
for header in \
|
|
|
|
|
%if ! 0%{?external_libs}
|
|
|
|
|
%{_includedir}/pg_config.h \
|
|
|
|
|
%{_includedir}/pg_config_ext.h \
|
|
|
|
|
%{_includedir}/ecpg_config.h \
|
|
|
|
|
%endif
|
|
|
|
|
%{_includedir}/pgsql/server/pg_config.h \
|
|
|
|
|
%{_includedir}/pgsql/server/pg_config_ext.h
|
|
|
|
|
do
|
|
|
|
@ -698,15 +765,17 @@ install -d -m 700 $RPM_BUILD_ROOT%{?_localstatedir}/lib/pgsql/backups
|
|
|
|
|
# postgres' .bash_profile
|
|
|
|
|
install -m 644 %{SOURCE11} $RPM_BUILD_ROOT%{?_localstatedir}/lib/pgsql/.bash_profile
|
|
|
|
|
|
|
|
|
|
rm $RPM_BUILD_ROOT/%{_datadir}/man/man1/ecpg.1
|
|
|
|
|
%{?external_libs:rm $RPM_BUILD_ROOT/%{_datadir}/man/man1/ecpg.1}
|
|
|
|
|
|
|
|
|
|
%if %upgrade
|
|
|
|
|
pushd postgresql-%{prevversion}
|
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
|
|
make -C contrib DESTDIR=$RPM_BUILD_ROOT install
|
|
|
|
|
%if %plpython3
|
|
|
|
|
install -m 755 plpython3.so \
|
|
|
|
|
$RPM_BUILD_ROOT/%_libdir/pgsql/postgresql-%prevmajorversion/lib
|
|
|
|
|
for file in *plpython3.so; do
|
|
|
|
|
install -m 755 "$file" \
|
|
|
|
|
$RPM_BUILD_ROOT/%_libdir/pgsql/postgresql-%prevmajorversion/lib
|
|
|
|
|
done
|
|
|
|
|
%endif
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
@ -725,7 +794,6 @@ rm $RPM_BUILD_ROOT/%{_datadir}/man/man1/ecpg.1
|
|
|
|
|
rm bin/pg_dump
|
|
|
|
|
rm bin/pg_dumpall
|
|
|
|
|
rm bin/pg_restore
|
|
|
|
|
rm bin/pgbench
|
|
|
|
|
rm bin/psql
|
|
|
|
|
rm bin/reindexdb
|
|
|
|
|
rm bin/vacuumdb
|
|
|
|
@ -777,7 +845,11 @@ mv $RPM_BUILD_ROOT%{_docdir}/pgsql/html doc
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{_docdir}/pgsql
|
|
|
|
|
|
|
|
|
|
# remove files not to be packaged
|
|
|
|
|
%if 0%{?external_libs}
|
|
|
|
|
rm $RPM_BUILD_ROOT%{_libdir}/libpgfeutils.a
|
|
|
|
|
%else
|
|
|
|
|
rm $RPM_BUILD_ROOT%{_libdir}/lib{ecpg,pq,ecpg_compat,pgfeutils,pgtypes}.a
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if !%plperl
|
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_bindir}/pgsql/hstore_plperl.so
|
|
|
|
@ -797,13 +869,12 @@ find_lang_bins ()
|
|
|
|
|
cat "$binary"-%{majorversion}.lang >>"$lstfile"
|
|
|
|
|
done
|
|
|
|
|
}
|
|
|
|
|
find_lang_bins devel.lst pg_server_config
|
|
|
|
|
find_lang_bins devel.lst %{?external_libs:pg_server_config}%{?!external_libs:pg_config ecpg}
|
|
|
|
|
%{!?external_libs:find_lang_bins libs.lst ecpglib6 libpq5}
|
|
|
|
|
find_lang_bins server.lst \
|
|
|
|
|
initdb pg_basebackup pg_controldata pg_ctl pg_resetwal pg_rewind plpgsql postgres
|
|
|
|
|
find_lang_bins contrib.lst \
|
|
|
|
|
pg_archivecleanup pg_test_fsync pg_test_timing pg_waldump
|
|
|
|
|
initdb pg_basebackup pg_controldata pg_ctl pg_resetxlog pg_rewind plpgsql postgres
|
|
|
|
|
find_lang_bins main.lst \
|
|
|
|
|
pg_dump pg_upgrade pgscripts psql
|
|
|
|
|
pg_dump pgscripts psql
|
|
|
|
|
%if %plperl
|
|
|
|
|
find_lang_bins plperl.lst plperl
|
|
|
|
|
%endif
|
|
|
|
@ -852,8 +923,10 @@ make -C postgresql-setup-%{setup_version} check
|
|
|
|
|
%doc README.rpm-dist
|
|
|
|
|
%{_bindir}/clusterdb
|
|
|
|
|
%{_bindir}/createdb
|
|
|
|
|
%{_bindir}/createlang
|
|
|
|
|
%{_bindir}/createuser
|
|
|
|
|
%{_bindir}/dropdb
|
|
|
|
|
%{_bindir}/droplang
|
|
|
|
|
%{_bindir}/dropuser
|
|
|
|
|
%{_bindir}/pg_dump
|
|
|
|
|
%{_bindir}/pg_dumpall
|
|
|
|
@ -865,8 +938,10 @@ make -C postgresql-setup-%{setup_version} check
|
|
|
|
|
%{_bindir}/vacuumdb
|
|
|
|
|
%{_mandir}/man1/clusterdb.*
|
|
|
|
|
%{_mandir}/man1/createdb.*
|
|
|
|
|
%{_mandir}/man1/createlang.*
|
|
|
|
|
%{_mandir}/man1/createuser.*
|
|
|
|
|
%{_mandir}/man1/dropdb.*
|
|
|
|
|
%{_mandir}/man1/droplang.*
|
|
|
|
|
%{_mandir}/man1/dropuser.*
|
|
|
|
|
%{_mandir}/man1/pg_dump.*
|
|
|
|
|
%{_mandir}/man1/pg_dumpall.*
|
|
|
|
@ -885,18 +960,17 @@ make -C postgresql-setup-%{setup_version} check
|
|
|
|
|
%{_libdir}/pgsql/tutorial/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files contrib -f contrib.lst
|
|
|
|
|
%files contrib
|
|
|
|
|
%doc contrib/spi/*.example
|
|
|
|
|
%{_bindir}/oid2name
|
|
|
|
|
%{_bindir}/pg_archivecleanup
|
|
|
|
|
%{_bindir}/pg_standby
|
|
|
|
|
%{_bindir}/pg_test_fsync
|
|
|
|
|
%{_bindir}/pg_test_timing
|
|
|
|
|
%{_bindir}/pg_waldump
|
|
|
|
|
%{_bindir}/pg_xlogdump
|
|
|
|
|
%{_bindir}/pgbench
|
|
|
|
|
%{_bindir}/vacuumlo
|
|
|
|
|
%{_datadir}/pgsql/extension/adminpack*
|
|
|
|
|
%{_datadir}/pgsql/extension/amcheck*
|
|
|
|
|
%{_datadir}/pgsql/extension/autoinc*
|
|
|
|
|
%{_datadir}/pgsql/extension/bloom*
|
|
|
|
|
%{_datadir}/pgsql/extension/btree_gin*
|
|
|
|
@ -934,12 +1008,12 @@ make -C postgresql-setup-%{setup_version} check
|
|
|
|
|
%{_datadir}/pgsql/extension/tablefunc*
|
|
|
|
|
%{_datadir}/pgsql/extension/tcn*
|
|
|
|
|
%{_datadir}/pgsql/extension/timetravel*
|
|
|
|
|
%{_datadir}/pgsql/extension/tsearch2*
|
|
|
|
|
%{_datadir}/pgsql/extension/tsm_system_rows*
|
|
|
|
|
%{_datadir}/pgsql/extension/tsm_system_time*
|
|
|
|
|
%{_datadir}/pgsql/extension/unaccent*
|
|
|
|
|
%{_libdir}/pgsql/_int.so
|
|
|
|
|
%{_libdir}/pgsql/adminpack.so
|
|
|
|
|
%{_libdir}/pgsql/amcheck.so
|
|
|
|
|
%{_libdir}/pgsql/auth_delay.so
|
|
|
|
|
%{_libdir}/pgsql/auto_explain.so
|
|
|
|
|
%{_libdir}/pgsql/autoinc.so
|
|
|
|
@ -962,6 +1036,9 @@ make -C postgresql-setup-%{setup_version} check
|
|
|
|
|
%if %plpython
|
|
|
|
|
%{_libdir}/pgsql/hstore_plpython2.so
|
|
|
|
|
%endif
|
|
|
|
|
%if %plpython3
|
|
|
|
|
%{_libdir}/pgsql/hstore_plpython3.so
|
|
|
|
|
%endif
|
|
|
|
|
%{_libdir}/pgsql/insert_username.so
|
|
|
|
|
%{_libdir}/pgsql/isn.so
|
|
|
|
|
%{_libdir}/pgsql/lo.so
|
|
|
|
@ -969,6 +1046,9 @@ make -C postgresql-setup-%{setup_version} check
|
|
|
|
|
%if %plpython
|
|
|
|
|
%{_libdir}/pgsql/ltree_plpython2.so
|
|
|
|
|
%endif
|
|
|
|
|
%if %plpython3
|
|
|
|
|
%{_libdir}/pgsql/ltree_plpython3.so
|
|
|
|
|
%endif
|
|
|
|
|
%{_libdir}/pgsql/moddatetime.so
|
|
|
|
|
%{_libdir}/pgsql/pageinspect.so
|
|
|
|
|
%{_libdir}/pgsql/passwordcheck.so
|
|
|
|
@ -987,6 +1067,7 @@ make -C postgresql-setup-%{setup_version} check
|
|
|
|
|
%{_libdir}/pgsql/tcn.so
|
|
|
|
|
%{_libdir}/pgsql/test_decoding.so
|
|
|
|
|
%{_libdir}/pgsql/timetravel.so
|
|
|
|
|
%{_libdir}/pgsql/tsearch2.so
|
|
|
|
|
%{_libdir}/pgsql/tsm_system_rows.so
|
|
|
|
|
%{_libdir}/pgsql/tsm_system_time.so
|
|
|
|
|
%{_libdir}/pgsql/unaccent.so
|
|
|
|
@ -996,7 +1077,7 @@ make -C postgresql-setup-%{setup_version} check
|
|
|
|
|
%{_mandir}/man1/pg_standby.*
|
|
|
|
|
%{_mandir}/man1/pg_test_fsync.*
|
|
|
|
|
%{_mandir}/man1/pg_test_timing.*
|
|
|
|
|
%{_mandir}/man1/pg_waldump.*
|
|
|
|
|
%{_mandir}/man1/pg_xlogdump.*
|
|
|
|
|
%{_mandir}/man1/pgbench.*
|
|
|
|
|
%{_mandir}/man1/vacuumlo.*
|
|
|
|
|
%{_mandir}/man3/dblink*
|
|
|
|
@ -1017,14 +1098,24 @@ make -C postgresql-setup-%{setup_version} check
|
|
|
|
|
%{_libdir}/pgsql/pgxml.so
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if ! 0%{?external_libs}
|
|
|
|
|
%files libs -f libs.lst
|
|
|
|
|
%doc COPYRIGHT
|
|
|
|
|
%dir %{_libdir}/pgsql
|
|
|
|
|
%{_libdir}/libecpg.so.*
|
|
|
|
|
%{_libdir}/libecpg_compat.so.*
|
|
|
|
|
%{_libdir}/libpgtypes.so.*
|
|
|
|
|
%{_libdir}/libpq.so.*
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files server -f server.lst
|
|
|
|
|
%{_bindir}/initdb
|
|
|
|
|
%{_bindir}/pg_basebackup
|
|
|
|
|
%{_bindir}/pg_controldata
|
|
|
|
|
%{_bindir}/pg_ctl
|
|
|
|
|
%{_bindir}/pg_receivewal
|
|
|
|
|
%{_bindir}/pg_receivexlog
|
|
|
|
|
%{_bindir}/pg_recvlogical
|
|
|
|
|
%{_bindir}/pg_resetwal
|
|
|
|
|
%{_bindir}/pg_resetxlog
|
|
|
|
|
%{_bindir}/pg_rewind
|
|
|
|
|
%{_bindir}/postgres
|
|
|
|
|
%{_bindir}/postgresql-setup
|
|
|
|
@ -1051,7 +1142,6 @@ make -C postgresql-setup-%{setup_version} check
|
|
|
|
|
%{_libdir}/pgsql/euc2004_sjis2004.so
|
|
|
|
|
%{_libdir}/pgsql/libpqwalreceiver.so
|
|
|
|
|
%{_libdir}/pgsql/pg_prewarm.so
|
|
|
|
|
%{_libdir}/pgsql/pgoutput.so
|
|
|
|
|
%{_libdir}/pgsql/plpgsql.so
|
|
|
|
|
%dir %{_libexecdir}/initscripts/legacy-actions/postgresql
|
|
|
|
|
%{_libexecdir}/initscripts/legacy-actions/postgresql/*
|
|
|
|
@ -1063,8 +1153,8 @@ make -C postgresql-setup-%{setup_version} check
|
|
|
|
|
%{_mandir}/man1/pg_basebackup.*
|
|
|
|
|
%{_mandir}/man1/pg_controldata.*
|
|
|
|
|
%{_mandir}/man1/pg_ctl.*
|
|
|
|
|
%{_mandir}/man1/pg_receivewal.*
|
|
|
|
|
%{_mandir}/man1/pg_resetwal.*
|
|
|
|
|
%{_mandir}/man1/pg_receivexlog.*
|
|
|
|
|
%{_mandir}/man1/pg_resetxlog.*
|
|
|
|
|
%{_mandir}/man1/pg_rewind.*
|
|
|
|
|
%{_mandir}/man1/postgres.*
|
|
|
|
|
%{_mandir}/man1/postgresql-new-systemd-unit.*
|
|
|
|
@ -1083,12 +1173,27 @@ make -C postgresql-setup-%{setup_version} check
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?external_libs}
|
|
|
|
|
%files server-devel -f devel.lst
|
|
|
|
|
%{_bindir}/pg_server_config
|
|
|
|
|
%dir %{_includedir}/pgsql
|
|
|
|
|
%{_includedir}/pgsql/server
|
|
|
|
|
%{_libdir}/pgsql/pgxs/
|
|
|
|
|
%{_mandir}/man1/pg_server_config.*
|
|
|
|
|
%else
|
|
|
|
|
%files devel -f devel.lst
|
|
|
|
|
%{_bindir}/ecpg
|
|
|
|
|
%{_bindir}/pg_config
|
|
|
|
|
%{_includedir}/*
|
|
|
|
|
%{_libdir}/libecpg.so
|
|
|
|
|
%{_libdir}/libecpg_compat.so
|
|
|
|
|
%{_libdir}/libpgtypes.so
|
|
|
|
|
%{_libdir}/libpq.so
|
|
|
|
|
%{_libdir}/pgsql/pgxs/
|
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
|
%{_mandir}/man1/ecpg.*
|
|
|
|
|
%{_mandir}/man1/pg_config.*
|
|
|
|
|
%endif
|
|
|
|
|
%{_mandir}/man3/SPI_*
|
|
|
|
|
%{macrosdir}/macros.%name
|
|
|
|
|
|
|
|
|
@ -1131,7 +1236,11 @@ make -C postgresql-setup-%{setup_version} check
|
|
|
|
|
|
|
|
|
|
%if %pltcl
|
|
|
|
|
%files pltcl -f pltcl.lst
|
|
|
|
|
%{_bindir}/pltcl_delmod
|
|
|
|
|
%{_bindir}/pltcl_listmod
|
|
|
|
|
%{_bindir}/pltcl_loadmod
|
|
|
|
|
%{_datadir}/pgsql/extension/pltcl*
|
|
|
|
|
%{_datadir}/pgsql/unknown.pltcl
|
|
|
|
|
%{_libdir}/pgsql/pltcl.so
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
@ -1158,114 +1267,37 @@ make -C postgresql-setup-%{setup_version} check
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed Sep 05 2018 Pavel Raiskup <praiskup@redhat.com> - 10.5-4
|
|
|
|
|
- build without postgresql-libs; libraries moved to libpq and libecpg
|
|
|
|
|
* Thu Jul 11 2019 Petr Kubat <pkubat@redhat.com> - 9.6.14-1
|
|
|
|
|
- Rebase to upstream release 9.6.14
|
|
|
|
|
https://www.postgresql.org/docs/9.6/release-9-6-14.html
|
|
|
|
|
|
|
|
|
|
* Mon Aug 27 2018 Pavel Raiskup <praiskup@redhat.com> - 10.5-3
|
|
|
|
|
- devel subpackage provides postgresql-server-devel and libecpg-devel
|
|
|
|
|
(first step for rhbz#1618698)
|
|
|
|
|
* Thu May 09 2019 Patrik Novotný <panovotn@redhat.com> - 9.6.13-1
|
|
|
|
|
- New postgresql-setup 8.4
|
|
|
|
|
- Rebase to upstream release 9.6.13
|
|
|
|
|
https://www.postgresql.org/docs/9.6/release-9-6-13.html
|
|
|
|
|
|
|
|
|
|
* Mon Aug 27 2018 Pavel Raiskup <praiskup@redhat.com> - 10.5-2
|
|
|
|
|
- packaging cleanup
|
|
|
|
|
- devel subpackage to provide libpq-devel (first step for rhbz#1618698)
|
|
|
|
|
* Thu Feb 14 2019 Patrik Novotný <panovotn@redhat.com> - 9.6.12-1
|
|
|
|
|
- Rebase to upstream release 9.6.12
|
|
|
|
|
https://www.postgresql.org/docs/9.6/release-9-6-12.html
|
|
|
|
|
|
|
|
|
|
* Wed Aug 08 2018 Pavel Raiskup <praiskup@redhat.com> - 10.5-1
|
|
|
|
|
- update to 10.5 per release notes:
|
|
|
|
|
https://www.postgresql.org/docs/10/static/release-10-5.html
|
|
|
|
|
* Wed Jan 09 2019 Pavel Raiskup <praiskup@redhat.com> - 9.6.11-1
|
|
|
|
|
- initial commit for 9.6 stream, intherit from stream-postgresql-10 branch
|
|
|
|
|
|
|
|
|
|
* Thu Aug 02 2018 Pavel Raiskup <praiskup@redhat.com> - 10.4-8
|
|
|
|
|
- new postgresql-setup, the %%postgresql_tests* macros now start
|
|
|
|
|
the build-time server on random port number
|
|
|
|
|
* Thu Mar 01 2018 Pavel Raiskup <praiskup@redhat.com> - 9.6.8-1
|
|
|
|
|
- update to 9.6.8 per release notes:
|
|
|
|
|
https://www.postgresql.org/docs/9.6/static/release-9-6-8.html
|
|
|
|
|
|
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 10.4-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
* Thu Feb 08 2018 Petr Kubat <pkubat@redhat.com> - 9.6.7-1
|
|
|
|
|
- update to 9.6.7 per release notes:
|
|
|
|
|
https://www.postgresql.org/docs/9.6/static/release-9-6-7.html
|
|
|
|
|
|
|
|
|
|
* Thu Jul 12 2018 Pavel Raiskup <praiskup@redhat.com> - 10.4-6
|
|
|
|
|
- drop ppc64 patch, gcc is already fixed (rhbz#1544349)
|
|
|
|
|
- move pg_config*.mo files into devel subpackage
|
|
|
|
|
* Wed Nov 08 2017 Pavel Raiskup <praiskup@redhat.com> - 9.6.6-1
|
|
|
|
|
- update to 9.6.6 per release notes:
|
|
|
|
|
https://www.postgresql.org/docs/9.6/static/release-9-6-6.html
|
|
|
|
|
|
|
|
|
|
* Mon Jul 09 2018 Pavel Raiskup <praiskup@redhat.com> - 10.4-5
|
|
|
|
|
- re-enable -O3 for 64bit PPC boxes
|
|
|
|
|
- explicitly set PYTHON=python2, /bin/python doesn't exist fc29+
|
|
|
|
|
|
|
|
|
|
* Tue Jul 03 2018 Petr Pisar <ppisar@redhat.com> - 10.4-4
|
|
|
|
|
- Perl 5.28 rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jun 27 2018 Jitka Plesnikova <jplesnik@redhat.com> - 10.4-3
|
|
|
|
|
- Perl 5.28 rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 10.4-2
|
|
|
|
|
- Rebuilt for Python 3.7
|
|
|
|
|
|
|
|
|
|
* Wed May 09 2018 Pavel Raiskup <praiskup@redhat.com> - 10.4-1
|
|
|
|
|
- update to 10.4 per release notes:
|
|
|
|
|
https://www.postgresql.org/docs/10/static/release-10-4.html
|
|
|
|
|
|
|
|
|
|
* Thu Apr 26 2018 Pavel Raiskup <praiskup@redhat.com> - 10.3-5
|
|
|
|
|
- pltcl: drop tcl-pltcl dependency (rhbz#1571181)
|
|
|
|
|
|
|
|
|
|
* Thu Apr 19 2018 Pavel Raiskup <praiskup@redhat.com> - 10.3-4
|
|
|
|
|
- upgrade: package plpython*.so modules
|
|
|
|
|
|
|
|
|
|
* Mon Apr 16 2018 Pavel Raiskup <praiskup@redhat.com> - 10.3-3
|
|
|
|
|
- upgrade: package plperl.so and pltcl.so
|
|
|
|
|
- upgrade: package contrib modules
|
|
|
|
|
- upgrade: drop dynamic libraries
|
|
|
|
|
|
|
|
|
|
* Fri Apr 13 2018 Pavel Raiskup <praiskup@redhat.com> - 10.3-2
|
|
|
|
|
- define %%precise_version helper macro
|
|
|
|
|
- drop explicit libpq.so provide from *-libs
|
|
|
|
|
- update postgresql-setup tarball
|
|
|
|
|
- add postgresql-test-rpm-macros package
|
|
|
|
|
|
|
|
|
|
* Thu Mar 01 2018 Pavel Raiskup <praiskup@redhat.com> - 10.3-1
|
|
|
|
|
- update to 10.3 per release notes:
|
|
|
|
|
https://www.postgresql.org/docs/10/static/release-10-3.html
|
|
|
|
|
|
|
|
|
|
* Thu Feb 08 2018 Petr Kubat <pkubat@redhat.com> - 10.2-1
|
|
|
|
|
- update to 10.2 per release notes:
|
|
|
|
|
https://www.postgresql.org/docs/10/static/release-10-2.html
|
|
|
|
|
|
|
|
|
|
* Sat Jan 20 2018 Björn Esser <besser82@fedoraproject.org> - 10.1-5
|
|
|
|
|
- Rebuilt for switch to libxcrypt
|
|
|
|
|
|
|
|
|
|
* Tue Dec 19 2017 Pavel Raiskup <praiskup@redhat.com> - 10.1-4
|
|
|
|
|
- configure with --with-systemd (rhbz#1414314)
|
|
|
|
|
- disable startup timeout of PostgreSQL service (rhbz#1525477)
|
|
|
|
|
|
|
|
|
|
* Wed Dec 13 2017 Pavel Raiskup <praiskup@redhat.com> - 10.1-3
|
|
|
|
|
- unify %%configure options for python2/python3 configure
|
|
|
|
|
- drop --with-krb5 option, not supported since PostgreSQL 9.4
|
|
|
|
|
- python packaging - requires/provides s/python/python2/
|
|
|
|
|
|
|
|
|
|
* Tue Nov 14 2017 Pavel Raiskup <praiskup@redhat.com> - 10.1-2
|
|
|
|
|
- postgresql-setup v7.0
|
|
|
|
|
|
|
|
|
|
* Wed Nov 08 2017 Pavel Raiskup <praiskup@redhat.com> - 10.1-1
|
|
|
|
|
- update to 10.1 per release notes:
|
|
|
|
|
https://www.postgresql.org/docs/10/static/release-10-1.html
|
|
|
|
|
|
|
|
|
|
* Mon Nov 06 2017 Pavel Raiskup <praiskup@redhat.com> - 10.0-4
|
|
|
|
|
* Wed Nov 08 2017 Pavel Raiskup <praiskup@redhat.com> - 9.6.5-2
|
|
|
|
|
- rebase to new postgresql-setup 6.0 version, to fix CVE-2017-15097
|
|
|
|
|
|
|
|
|
|
* Thu Oct 12 2017 Pavel Raiskup <praiskup@redhat.com> - 10.0-3
|
|
|
|
|
- confess that we bundle setup scripts and previous version of ourseleves
|
|
|
|
|
- provide %%postgresql_upgrade_prefix macro
|
|
|
|
|
|
|
|
|
|
* Mon Oct 09 2017 Pavel Raiskup <praiskup@redhat.com> - 10.0-2
|
|
|
|
|
- stricter separation of files in upgrade/upgrade-devel
|
|
|
|
|
|
|
|
|
|
* Mon Oct 09 2017 Jozef Mlich <jmlich@redhat.com> - 10.0-2
|
|
|
|
|
- support for upgrade with extenstions
|
|
|
|
|
i.e the postgresql-upgrade-devel subpackage was added (rhbz#1475177)
|
|
|
|
|
|
|
|
|
|
* Fri Oct 06 2017 Pavel Raiskup <praiskup@redhat.com> - 10.0-1
|
|
|
|
|
- update to 10.0 per release notes:
|
|
|
|
|
https://www.postgresql.org/docs/10/static/release-10.html
|
|
|
|
|
|
|
|
|
|
* Tue Sep 05 2017 Pavel Raiskup <praiskup@redhat.com> - 9.6.5-2
|
|
|
|
|
- move %%_libdir/pgsql into *-libs subpackage
|
|
|
|
|
|
|
|
|
|
* Tue Aug 29 2017 Pavel Raiskup <praiskup@redhat.com> - 9.6.5-1
|
|
|
|
|
- update to 9.6.5 per release notes:
|
|
|
|
|
https://www.postgresql.org/docs/9.6/static/release-9-6-5.html
|
|
|
|
|