79e650
# This is the PostgreSQL Global Development Group Official RPMset spec file,
79e650
# or a derivative thereof.
79e650
# Copyright 2003-2009 Lamar Owen <lowen@pari.edu> <lamar.owen@wgcr.org>
79e650
# and others listed.                 ** vi: ts=4 sw=4 noexpandtab nosmarttab
79e650
79e650
# Major Contributors:
79e650
# ---------------
79e650
# Lamar Owen
79e650
# Trond Eivind Glomsrd <teg@redhat.com>
79e650
# Thomas Lockhart
79e650
# Reinhard Max
79e650
# Karl DeBisschop
79e650
# Peter Eisentraut
79e650
# Joe Conway
79e650
# Andrew Overholt
79e650
# David Jee
79e650
# Kaj J. Niemi
79e650
# Sander Steffann
79e650
# Tom Lane
79e650
# and others in the Changelog....
79e650
79e650
# This spec file and ancillary files are licensed in accordance with
79e650
# The PostgreSQL license.
79e650
79e650
# In this file you can find the default build package list macros.
79e650
# These can be overridden by defining on the rpm command line:
79e650
# rpm --define 'packagename 1' .... to force the package to build.
79e650
# rpm --define 'packagename 0' .... to force the package NOT to build.
79e650
# The base package, the libs package, the devel package, and the server package
79e650
# always get built.
79e650
79e650
%{!?beta:%global beta 0}
79e650
79e650
%{!?test:%global test 1}
79e650
%{!?upgrade:%global upgrade 0}
79e650
%{!?plpython:%global plpython 0}
79e650
%{!?plpython3:%global plpython3 1}
79e650
%{!?pltcl:%global pltcl 1}
79e650
%{!?plperl:%global plperl 1}
79e650
%{!?ssl:%global ssl 1}
79e650
%{!?kerberos:%global kerberos 1}
79e650
%{!?ldap:%global ldap 1}
79e650
%{!?nls:%global nls 1}
79e650
%{!?uuid:%global uuid 1}
79e650
%{!?xml:%global xml 1}
79e650
%{!?pam:%global pam 1}
79e650
%{!?sdt:%global sdt 1}
79e650
%{!?selinux:%global selinux 1}
79e650
%{!?runselftest:%global runselftest 1}
79e650
79e650
# By default, patch(1) creates backup files when chunks apply with offsets.
79e650
# Turn that off to ensure such files don't get included in RPMs.
79e650
%global _default_patch_flags --no-backup-if-mismatch
79e650
79e650
# https://fedoraproject.org/wiki/Packaging:Guidelines#Packaging_of_Additional_RPM_Macros
79e650
%global macrosdir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d)
79e650
79e650
Summary: PostgreSQL client programs
79e650
Name: postgresql
79e650
%global majorversion 9.6
1fbc41
Version: %{majorversion}.20
79e650
Release: 1%{?dist}
79e650
79e650
# The PostgreSQL license is very similar to other MIT licenses, but the OSI
79e650
# recognizes it as an independent license, so we do as well.
79e650
License: PostgreSQL
79e650
Group: Applications/Databases
79e650
Url: http://www.postgresql.org/
79e650
79e650
# This SRPM includes a copy of the previous major release, which is needed for
79e650
# in-place upgrade of an old database.  In most cases it will not be critical
79e650
# that this be kept up with the latest minor release of the previous series;
79e650
# but update when bugs affecting pg_dump output are fixed.
79e650
%global prevmajorversion 9.5
1fbc41
%global prevversion %{prevmajorversion}.24
79e650
%global prev_prefix %{_libdir}/pgsql/postgresql-%{prevmajorversion}
79e650
%global precise_version %{?epoch:%epoch:}%version-%release
79e650
79e650
%global setup_version 8.2
79e650
79e650
%global service_name postgresql.service
79e650
Source0: https://ftp.postgresql.org/pub/source/v%{version}/postgresql-%{version}.tar.bz2
79e650
# The PDF file is generated by generate-pdf.sh, which see for comments
79e650
Source1: postgresql-%{version}-US.pdf
79e650
# generate-pdf.sh is not used during RPM build, but include for documentation
79e650
Source2: generate-pdf.sh
79e650
Source4: Makefile.regress
79e650
Source9: postgresql.tmpfiles.d
79e650
Source10: postgresql.pam
79e650
Source11: postgresql-bashprofile
79e650
79e650
79e650
# git: https://github.com/devexp-db/postgresql-setup
79e650
Source12: https://github.com/devexp-db/postgresql-setup/releases/download/v%{setup_version}/postgresql-setup-%{setup_version}.tar.gz
79e650
79e650
# Those here are just to enforce packagers check that the tarball was downloaded
79e650
# correctly.  Also, this allows us check that packagers-only tarballs do not
79e650
# differ with publicly released ones.
79e650
Source16: https://ftp.postgresql.org/pub/source/v%{version}/postgresql-%{version}.tar.bz2.sha256
79e650
79e650
# Comments for these patches are in the patch files.
79e650
Patch1: rpm-pgsql.patch
79e650
Patch2: postgresql-logging.patch
79e650
Patch5: postgresql-var-run-socket.patch
79e650
Patch6: postgresql-man.patch
79e650
Patch8: postgresql-no-libs.patch
79e650
Patch9: postgresql-server-pg_config.patch
1fbc41
# Patch10: postgresql-9.6.20-contrib-dblink-expected-out.patch
79e650
79e650
BuildRequires: gcc
79e650
BuildRequires: perl(ExtUtils::MakeMaker) glibc-devel bison flex gawk
79e650
BuildRequires: perl(ExtUtils::Embed), perl-devel
79e650
%if 0%{?fedora} || 0%{?rhel} > 7
79e650
BuildRequires: perl-generators
79e650
%endif
79e650
BuildRequires: readline-devel zlib-devel
79e650
BuildRequires: systemd systemd-devel util-linux
79e650
BuildRequires: multilib-rpm-config
79e650
BuildRequires: libpq-devel
79e650
79e650
# postgresql-setup build requires
79e650
BuildRequires: m4 elinks docbook-utils help2man
79e650
79e650
%if %plpython
79e650
BuildRequires: python2-devel
79e650
%endif
79e650
79e650
%if %plpython3
79e650
BuildRequires: python3-devel
79e650
%endif
79e650
79e650
%if %pltcl
79e650
BuildRequires: tcl-devel
79e650
%endif
79e650
79e650
%if %ssl
79e650
BuildRequires: openssl-devel
79e650
%endif
79e650
79e650
%if %kerberos
79e650
BuildRequires: krb5-devel
79e650
%endif
79e650
79e650
%if %ldap
79e650
BuildRequires: openldap-devel
79e650
%endif
79e650
79e650
%if %nls
79e650
BuildRequires: gettext >= 0.10.35
79e650
%endif
79e650
79e650
%if %uuid
79e650
BuildRequires: uuid-devel
79e650
%endif
79e650
79e650
%if %xml
79e650
BuildRequires: libxml2-devel libxslt-devel
79e650
%endif
79e650
79e650
%if %pam
79e650
BuildRequires: pam-devel
79e650
%endif
79e650
79e650
%if %sdt
79e650
BuildRequires: systemtap-sdt-devel
79e650
%endif
79e650
79e650
%if %selinux
79e650
BuildRequires: libselinux-devel
79e650
%endif
79e650
79e650
# https://bugzilla.redhat.com/1464368
79e650
%global __provides_exclude_from %{_libdir}/pgsql
79e650
79e650
%description
79e650
PostgreSQL is an advanced Object-Relational database management system (DBMS).
79e650
The base postgresql package contains the client programs that you'll need to
79e650
access a PostgreSQL DBMS server, as well as HTML documentation for the whole
79e650
system.  These client programs can be located on the same machine as the
79e650
PostgreSQL server, or on a remote machine that accesses a PostgreSQL server
79e650
over a network connection.  The PostgreSQL server can be found in the
79e650
postgresql-server sub-package.
79e650
79e650
79e650
%package server
79e650
Summary: The programs needed to create and run a PostgreSQL server
79e650
Group: Applications/Databases
79e650
Requires: %{name}%{?_isa} = %precise_version
79e650
Requires(pre): /usr/sbin/useradd
79e650
# We require this to be present for %%{_prefix}/lib/tmpfiles.d
79e650
Requires: systemd
79e650
# Make sure it's there when scriptlets run, too
79e650
%{?systemd_requires}
79e650
# Packages which provide postgresql plugins should build-require
79e650
# postgresql-server-devel and require
79e650
# postgresql-server(:MODULE_COMPAT_%%{postgresql_major}).
79e650
# This will automatically guard against incompatible server & plugin
79e650
# installation (#1008939, #1007840)
79e650
Provides: %{name}-server(:MODULE_COMPAT_%{majorversion})
79e650
Provides: bundled(postgresql-setup) = %setup_version
79e650
79e650
%description server
79e650
PostgreSQL is an advanced Object-Relational database management system (DBMS).
79e650
The postgresql-server package contains the programs needed to create
79e650
and run a PostgreSQL server, which will in turn allow you to create
79e650
and maintain PostgreSQL databases.
79e650
79e650
79e650
%package docs
79e650
Summary: Extra documentation for PostgreSQL
79e650
Group: Applications/Databases
79e650
Requires: %{name}%{?_isa} = %precise_version
79e650
# Just for more intuitive documentation installation
79e650
Provides: %{name}-doc = %precise_version
79e650
79e650
%description docs
79e650
The postgresql-docs package contains some additional documentation for
79e650
PostgreSQL.  Currently, this includes the main documentation in PDF format
79e650
and source files for the PostgreSQL tutorial.
79e650
79e650
79e650
%package contrib
79e650
Summary: Extension modules distributed with PostgreSQL
79e650
Group: Applications/Databases
79e650
Requires: %{name}%{?_isa} = %precise_version
79e650
79e650
%description contrib
79e650
The postgresql-contrib package contains various extension modules that are
79e650
included in the PostgreSQL distribution.
79e650
79e650
79e650
%package server-devel
79e650
Summary: PostgreSQL development header files and libraries
79e650
Group: Development/Libraries
79e650
79e650
%description server-devel
79e650
The postgresql-server-devel package contains the header files and libraries
79e650
needed to compile C or C++ applications which will directly interact
79e650
with a PostgreSQL database management server.  It also contains the ecpg
79e650
Embedded C Postgres preprocessor. You need to install this package if you want
79e650
to develop applications which will interact with a PostgreSQL server.
79e650
79e650
79e650
%package test-rpm-macros
79e650
Summary: Convenience RPM macros for build-time testing against PostgreSQL server
79e650
Requires: %{name}-server = %precise_version
79e650
79e650
%description test-rpm-macros
79e650
This package is meant to be added as BuildRequires: dependency of other packages
79e650
that want to run build-time testsuite against running PostgreSQL server.
79e650
79e650
79e650
%package static
79e650
Summary: Statically linked PostgreSQL libraries
79e650
Requires: %{name}-server-devel%{?_isa} = %precise_version
79e650
79e650
%description static
79e650
Statically linked PostgreSQL libraries that do not have dynamically linked
79e650
counterparts.
79e650
79e650
79e650
%if %upgrade
79e650
%package upgrade
79e650
Summary: Support for upgrading from the previous major release of PostgreSQL
79e650
Group: Applications/Databases
79e650
Requires: %{name}-server%{?_isa} = %precise_version
79e650
Provides: bundled(postgresql-libs) = %prevversion
79e650
79e650
%description upgrade
79e650
The postgresql-upgrade package contains the pg_upgrade utility and supporting
79e650
files needed for upgrading a PostgreSQL database from the previous major
79e650
version of PostgreSQL.
79e650
79e650
79e650
%package upgrade-devel
79e650
Summary: Support for build of extensions required for upgrade process
79e650
Group: Development/Libraries
79e650
Requires: %{name}-upgrade%{?_isa} = %precise_version
79e650
79e650
%description upgrade-devel
79e650
The postgresql-devel package contains the header files and libraries
79e650
needed to compile C or C++ applications which are necessary in upgrade
79e650
process.
79e650
%endif
79e650
79e650
79e650
%if %plperl
79e650
%package plperl
79e650
Summary: The Perl procedural language for PostgreSQL
79e650
Group: Applications/Databases
79e650
Requires: %{name}-server%{?_isa} = %precise_version
79e650
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
79e650
%if %runselftest
79e650
BuildRequires: perl(Data::Dumper)
79e650
%endif
79e650
79e650
%description plperl
79e650
The postgresql-plperl package contains the PL/Perl procedural language,
79e650
which is an extension to the PostgreSQL database server.
79e650
Install this if you want to write database functions in Perl.
79e650
%endif
79e650
79e650
79e650
%if %plpython
79e650
%package plpython
79e650
Summary: The Python2 procedural language for PostgreSQL
79e650
Group: Applications/Databases
79e650
Requires: %{name}-server%{?_isa} = %precise_version
79e650
Provides: %{name}-plpython2 = %precise_version
79e650
79e650
%description plpython
79e650
The postgresql-plpython package contains the PL/Python procedural language,
79e650
which is an extension to the PostgreSQL database server.
79e650
Install this if you want to write database functions in Python 2.
79e650
%endif
79e650
79e650
79e650
%if %plpython3
79e650
%package plpython3
79e650
Summary: The Python3 procedural language for PostgreSQL
79e650
Group: Applications/Databases
79e650
Requires: %{name}-server%{?_isa} = %precise_version
79e650
79e650
%description plpython3
79e650
The postgresql-plpython3 package contains the PL/Python3 procedural language,
79e650
which is an extension to the PostgreSQL database server.
79e650
Install this if you want to write database functions in Python 3.
79e650
%endif
79e650
79e650
79e650
%if %pltcl
79e650
%package pltcl
79e650
Summary: The Tcl procedural language for PostgreSQL
79e650
Group: Applications/Databases
79e650
Requires: %{name}-server%{?_isa} = %precise_version
79e650
79e650
%description pltcl
79e650
The postgresql-pltcl package contains the PL/Tcl procedural language,
79e650
which is an extension to the PostgreSQL database server.
79e650
Install this if you want to write database functions in Tcl.
79e650
%endif
79e650
79e650
79e650
%if %test
79e650
%package test
79e650
Summary: The test suite distributed with PostgreSQL
79e650
Group: Applications/Databases
79e650
Requires: %{name}-server%{?_isa} = %precise_version
79e650
Requires: %{name}-server-devel%{?_isa} = %precise_version
79e650
79e650
%description test
79e650
The postgresql-test package contains files needed for various tests for the
79e650
PostgreSQL database management system, including regression tests and
79e650
benchmarks.
79e650
%endif
79e650
79e650
79e650
%prep
79e650
( cd %_sourcedir; sha256sum -c %{SOURCE16} )
79e650
%setup -q -a 12
79e650
%patch1 -p1
79e650
%patch2 -p1
79e650
%patch5 -p1
79e650
%patch6 -p1
79e650
%patch8 -p1
79e650
%patch9 -p1
1fbc41
# %%patch10 -p1
79e650
79e650
# We used to run autoconf here, but there's no longer any real need to,
79e650
# since Postgres ships with a reasonably modern configure script.
79e650
79e650
cp -p %{SOURCE1} .
79e650
79e650
%if %upgrade
79e650
tar xfj %{SOURCE3}
79e650
79e650
# apply once SOURCE3 is extracted
79e650
%endif
79e650
79e650
# remove .gitignore files to ensure none get into the RPMs (bug #642210)
79e650
find . -type f -name .gitignore | xargs rm
79e650
79e650
79e650
%build
79e650
# fail quickly and obviously if user tries to build as root
79e650
%if %runselftest
79e650
	if [ x"`id -u`" = x0 ]; then
79e650
		echo "postgresql's regression tests fail if run as root."
79e650
		echo "If you really need to build the RPM as root, use"
79e650
		echo "--define='runselftest 0' to skip the regression tests."
79e650
		exit 1
79e650
	fi
79e650
%endif
79e650
79e650
# Building postgresql-setup
79e650
79e650
cd postgresql-setup-%{setup_version}
79e650
79e650
%configure \
79e650
    pgdocdir=%{_pkgdocdir} \
79e650
    PGVERSION=%{version} \
79e650
    PGMAJORVERSION=%{majorversion} \
79e650
    NAME_DEFAULT_PREV_SERVICE=postgresql
79e650
79e650
make %{?_smp_mflags}
79e650
cd ..
79e650
79e650
# Fiddling with CFLAGS.
79e650
79e650
CFLAGS="${CFLAGS:-%optflags}"
79e650
%ifarch %{power64}
79e650
# See the bug #1051075, ppc64 should benefit from -O3
79e650
CFLAGS=`echo $CFLAGS | xargs -n 1 | sed 's|-O2|-O3|g' | xargs -n 100`
79e650
%endif
79e650
# Strip out -ffast-math from CFLAGS....
79e650
CFLAGS=`echo $CFLAGS|xargs -n 1|grep -v ffast-math|xargs -n 100`
79e650
export CFLAGS
79e650
79e650
# plpython requires separate configure/build runs to build against python 2
79e650
# versus python 3.  Our strategy is to do the python 3 run first, then make
79e650
# distclean and do it again for the "normal" build.  Note that the installed
79e650
# Makefile.global will reflect the python 2 build, which seems appropriate
79e650
# since that's still considered the default plpython version.
79e650
common_configure_options='
79e650
	--disable-rpath
79e650
%if %beta
79e650
	--enable-debug
79e650
	--enable-cassert
79e650
%endif
79e650
%if %plperl
79e650
	--with-perl
79e650
%endif
79e650
%if %pltcl
79e650
	--with-tcl
79e650
	--with-tclconfig=%_libdir
79e650
%endif
79e650
%if %ldap
79e650
	--with-ldap
79e650
%endif
79e650
%if %ssl
79e650
	--with-openssl
79e650
%endif
79e650
%if %pam
79e650
	--with-pam
79e650
%endif
79e650
%if %kerberos
79e650
	--with-gssapi
79e650
%endif
79e650
%if %uuid
79e650
	--with-ossp-uuid
79e650
%endif
79e650
%if %xml
79e650
	--with-libxml
79e650
	--with-libxslt
79e650
%endif
79e650
%if %nls
79e650
	--enable-nls
79e650
%endif
79e650
%if %sdt
79e650
	--enable-dtrace
79e650
%endif
79e650
%if %selinux
79e650
	--with-selinux
79e650
%endif
79e650
	--with-system-tzdata=%_datadir/zoneinfo
79e650
	--datadir=%_datadir/pgsql
79e650
	--with-systemd
79e650
'
79e650
79e650
%if %plpython3
79e650
79e650
export PYTHON=/usr/bin/python3
79e650
79e650
# These configure options must match main build
79e650
%configure $common_configure_options \
79e650
	--with-python
79e650
79e650
# Fortunately we don't need to build much except plpython itself.
79e650
make %{?_smp_mflags} -C src/pl/plpython all
79e650
# save built form in a directory that "make distclean" won't touch
79e650
cp -a src/pl/plpython src/pl/plpython3
79e650
79e650
# must also save this version of Makefile.global for later
79e650
cp src/Makefile.global src/Makefile.global.python3
79e650
79e650
make distclean
79e650
79e650
%endif # %%plpython3
79e650
79e650
PYTHON=/usr/bin/python2
79e650
79e650
# Normal (python2) build begins here
79e650
%configure $common_configure_options \
79e650
%if %plpython
79e650
	--with-python
79e650
%endif
79e650
79e650
unset PYTHON
79e650
79e650
make %{?_smp_mflags} world
79e650
79e650
# Have to hack makefile to put correct path into tutorial scripts
79e650
sed "s|C=\`pwd\`;|C=%{_libdir}/pgsql/tutorial;|" < src/tutorial/Makefile > src/tutorial/GNUmakefile
79e650
make %{?_smp_mflags} -C src/tutorial NO_PGXS=1 all
79e650
rm -f src/tutorial/GNUmakefile
79e650
79e650
# The object files shouldn't be copied to rpm bz#1187514
79e650
rm -f src/tutorial/*.o
79e650
79e650
# run_testsuite WHERE
79e650
# -------------------
79e650
# Run 'make check' in WHERE path.  When that command fails, return the logs
79e650
# given by PostgreSQL build system and set 'test_failure=1'.  This function
79e650
# never exits directly nor stops rpmbuild where `set -e` is enabled.
79e650
run_testsuite()
79e650
{
79e650
	make -k -C "$1" MAX_CONNECTIONS=5 check && return 0 || test_failure=1
79e650
	(
79e650
		set +x
79e650
		echo "=== trying to find all regression.diffs files in build directory ==="
79e650
		find "$1" -name 'regression.diffs' | \
79e650
		while read line; do
79e650
			echo "=== make failure: $line ==="
79e650
			cat "$line"
79e650
		done
79e650
	)
79e650
}
79e650
79e650
test_failure=0
79e650
79e650
%if %runselftest
79e650
	run_testsuite "src/test/regress"
79e650
	make clean -C "src/test/regress"
79e650
	run_testsuite "src/pl"
79e650
%if %plpython3
79e650
	# must install Makefile.global that selects python3
79e650
	mv src/Makefile.global src/Makefile.global.save
79e650
	cp src/Makefile.global.python3 src/Makefile.global
79e650
	touch -r src/Makefile.global.save src/Makefile.global
79e650
	# because "make check" does "make install" on the whole tree,
79e650
	# we must temporarily install plpython3 as src/pl/plpython,
79e650
	# since that is the subdirectory src/pl/Makefile knows about
79e650
	mv src/pl/plpython src/pl/plpython2
79e650
	mv src/pl/plpython3 src/pl/plpython
79e650
79e650
	run_testsuite "src/pl/plpython"
79e650
79e650
	# and clean up our mess
79e650
	mv src/pl/plpython src/pl/plpython3
79e650
	mv src/pl/plpython2 src/pl/plpython
79e650
	mv -f src/Makefile.global.save src/Makefile.global
79e650
%endif
79e650
	run_testsuite "contrib"
79e650
%endif
79e650
79e650
# "assert(ALL_TESTS_OK)"
79e650
test "$test_failure" -eq 0
79e650
79e650
%if %test
79e650
	# undo the "make clean" above
79e650
	make all -C src/test/regress
79e650
%endif
79e650
79e650
%if %upgrade
79e650
	pushd postgresql-%{prevversion}
79e650
79e650
	# The upgrade build can be pretty stripped-down, but make sure that
79e650
	# any options that affect on-disk file layout match the previous
79e650
	# major release!
79e650
79e650
	# The set of built server modules here should ideally create superset
79e650
	# of modules we used to ship in %%prevversion (in the installation
79e650
	# the user will upgrade from), including *-contrib or *-pl*
79e650
	# subpackages.  This increases chances that the upgrade from
79e650
	# %%prevversion will work smoothly.
79e650
79e650
upgrade_configure ()
79e650
{
79e650
	# Note we intentionally do not use %%configure here, because we *don't* want
79e650
	# its ideas about installation paths.
79e650
79e650
	# The -fno-aggressive-loop-optimizations is hack for #993532
79e650
	PYTHON="${PYTHON-/usr/bin/python2}" \
79e650
	CFLAGS="$CFLAGS -fno-aggressive-loop-optimizations" ./configure \
79e650
		--build=%{_build} \
79e650
		--host=%{_host} \
79e650
		--prefix=%prev_prefix \
79e650
		--disable-rpath \
79e650
%if %beta
79e650
		--enable-debug \
79e650
		--enable-cassert \
79e650
%endif
79e650
%if %plperl
79e650
		--with-perl \
79e650
%endif
79e650
%if %pltcl
79e650
		--with-tcl \
79e650
%endif
79e650
		--with-tclconfig=%_libdir \
79e650
		--with-system-tzdata=/usr/share/zoneinfo \
79e650
		"$@"
79e650
}
79e650
79e650
%if %plpython3
79e650
	export PYTHON=/usr/bin/python3
79e650
	upgrade_configure --with-python
79e650
	# upstream fixed this later 7107d58ec5a3c45967e77525809612a5f89b97f3
79e650
	make %{?_smp_mflags} -C src/backend submake-errcodes
79e650
	make %{?_smp_mflags} -C src/pl/plpython all
79e650
	# save aside the only one file which we are interested here
79e650
	cp src/pl/plpython/plpython3.so ./
79e650
	unset PYTHON
79e650
	make distclean
79e650
%endif
79e650
79e650
	upgrade_configure \
79e650
%if %plpython
79e650
		--with-python
79e650
%endif
79e650
79e650
	make %{?_smp_mflags} all
79e650
	make -C contrib %{?_smp_mflags} all
79e650
	popd
79e650
%endif # %%upgrade
79e650
79e650
79e650
%install
79e650
cd postgresql-setup-%{setup_version}
79e650
make install DESTDIR=$RPM_BUILD_ROOT
79e650
cd ..
79e650
79e650
# For some reason, having '%%doc %%{_pkgdocdir}/README.rpm-dist' in %%files
79e650
# causes FTBFS (at least on RHEL6), see rhbz#1250006.
79e650
mv $RPM_BUILD_ROOT/%{_pkgdocdir}/README.rpm-dist ./
79e650
79e650
cat > $RPM_BUILD_ROOT%{_sysconfdir}/postgresql-setup/upgrade/postgresql.conf <
79e650
id              postgresql
79e650
major           %{prevmajorversion}
79e650
data_default    %{_localstatedir}/pgsql/data
79e650
package         postgresql-upgrade
79e650
engine          %{_libdir}/pgsql/postgresql-%{prevmajorversion}/bin
79e650
description     "Upgrade data from system PostgreSQL version (PostgreSQL %{prevmajorversion})"
79e650
redhat_sockets_hack no
79e650
EOF
79e650
79e650
make DESTDIR=$RPM_BUILD_ROOT install-world
79e650
79e650
# We ship pg_config through libpq-devel
79e650
mv $RPM_BUILD_ROOT/%_mandir/man1/pg_{,server_}config.1
79e650
rm $RPM_BUILD_ROOT/%_includedir/pg_config*.h
79e650
rm $RPM_BUILD_ROOT/%_includedir/libpq/libpq-fs.h
79e650
rm $RPM_BUILD_ROOT/%_includedir/postgres_ext.h
79e650
rm -r $RPM_BUILD_ROOT/%_includedir/pgsql/internal/
79e650
79e650
%if %plpython3
79e650
	mv src/Makefile.global src/Makefile.global.save
79e650
	cp src/Makefile.global.python3 src/Makefile.global
79e650
	touch -r src/Makefile.global.save src/Makefile.global
79e650
	pushd src/pl/plpython3
79e650
	make DESTDIR=$RPM_BUILD_ROOT install
79e650
	popd
79e650
	mv -f src/Makefile.global.save src/Makefile.global
79e650
%endif
79e650
79e650
# make sure these directories exist even if we suppressed all contrib modules
79e650
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/pgsql/contrib
79e650
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/pgsql/extension
79e650
79e650
# multilib header hack
79e650
for header in \
79e650
	%{_includedir}/pgsql/server/pg_config.h \
79e650
	%{_includedir}/pgsql/server/pg_config_ext.h
79e650
do
79e650
%multilib_fix_c_header --file "$header"
79e650
done
79e650
79e650
install -d -m 755 $RPM_BUILD_ROOT%{_libdir}/pgsql/tutorial
79e650
cp -p src/tutorial/* $RPM_BUILD_ROOT%{_libdir}/pgsql/tutorial
79e650
79e650
%if %pam
79e650
install -d $RPM_BUILD_ROOT/etc/pam.d
79e650
install -m 644 %{SOURCE10} $RPM_BUILD_ROOT/etc/pam.d/postgresql
79e650
%endif
79e650
79e650
# Create the directory for sockets.
79e650
install -d -m 755 $RPM_BUILD_ROOT%{?_localstatedir}/run/postgresql
79e650
79e650
# ... and make a tmpfiles script to recreate it at reboot.
79e650
mkdir -p $RPM_BUILD_ROOT%{_tmpfilesdir}
79e650
install -m 0644 %{SOURCE9} $RPM_BUILD_ROOT%{_tmpfilesdir}/postgresql.conf
79e650
79e650
# PGDATA needs removal of group and world permissions due to pg_pwd hole.
79e650
install -d -m 700 $RPM_BUILD_ROOT%{?_localstatedir}/lib/pgsql/data
79e650
79e650
# backups of data go here...
79e650
install -d -m 700 $RPM_BUILD_ROOT%{?_localstatedir}/lib/pgsql/backups
79e650
79e650
# postgres' .bash_profile
79e650
install -m 644 %{SOURCE11} $RPM_BUILD_ROOT%{?_localstatedir}/lib/pgsql/.bash_profile
79e650
79e650
rm $RPM_BUILD_ROOT/%{_datadir}/man/man1/ecpg.1
79e650
79e650
%if %upgrade
79e650
	pushd postgresql-%{prevversion}
79e650
	make DESTDIR=$RPM_BUILD_ROOT install
79e650
	make -C contrib DESTDIR=$RPM_BUILD_ROOT install
79e650
%if %plpython3
79e650
	install -m 755 plpython3.so \
79e650
		$RPM_BUILD_ROOT/%_libdir/pgsql/postgresql-%prevmajorversion/lib
79e650
%endif
79e650
	popd
79e650
79e650
	# remove stuff we don't actually need for upgrade purposes
79e650
	pushd $RPM_BUILD_ROOT%{_libdir}/pgsql/postgresql-%{prevmajorversion}
79e650
	rm bin/clusterdb
79e650
	rm bin/createdb
79e650
	rm bin/createlang
79e650
	rm bin/createuser
79e650
	rm bin/dropdb
79e650
	rm bin/droplang
79e650
	rm bin/dropuser
79e650
	rm bin/ecpg
79e650
	rm bin/initdb
79e650
	rm bin/pg_basebackup
79e650
	rm bin/pg_dump
79e650
	rm bin/pg_dumpall
79e650
	rm bin/pg_restore
79e650
	rm bin/psql
79e650
	rm bin/reindexdb
79e650
	rm bin/vacuumdb
79e650
	rm -rf share/doc
79e650
	rm -rf share/man
79e650
	rm -rf share/tsearch_data
79e650
	rm lib/*.a
79e650
	# Drop libpq.  This might need some tweaks once there's
79e650
	# soname bump between %%prevversion and %%version.
79e650
	rm lib/libpq.so*
79e650
	# Drop libraries.
79e650
	rm lib/lib{ecpg,ecpg_compat,pgtypes}.so*
79e650
	rm share/*.bki
79e650
	rm share/*description
79e650
	rm share/*.sample
79e650
	rm share/*.sql
79e650
	rm share/*.txt
79e650
	rm share/extension/*.sql
79e650
	rm share/extension/*.control
79e650
	popd
79e650
	cat <<EOF > $RPM_BUILD_ROOT%macrosdir/macros.%name-upgrade
79e650
%%postgresql_upgrade_prefix %prev_prefix
79e650
EOF
79e650
%endif
79e650
79e650
79e650
%if %test
79e650
	# tests. There are many files included here that are unnecessary,
79e650
	# but include them anyway for completeness.  We replace the original
79e650
	# Makefiles, however.
79e650
	mkdir -p $RPM_BUILD_ROOT%{_libdir}/pgsql/test
79e650
	cp -a src/test/regress $RPM_BUILD_ROOT%{_libdir}/pgsql/test
79e650
	# pg_regress binary should be only in one subpackage,
79e650
	# there will be a symlink from -test to -devel
79e650
	rm -f $RPM_BUILD_ROOT%{_libdir}/pgsql/test/regress/pg_regress
79e650
	ln -sf ../../pgxs/src/test/regress/pg_regress $RPM_BUILD_ROOT%{_libdir}/pgsql/test/regress/pg_regress
79e650
	pushd  $RPM_BUILD_ROOT%{_libdir}/pgsql/test/regress
79e650
	rm -f GNUmakefile Makefile *.o
79e650
	chmod 0755 pg_regress regress.so
79e650
	popd
79e650
	sed 's|@bindir@|%{_bindir}|g' \
79e650
		< %{SOURCE4} \
79e650
		> $RPM_BUILD_ROOT%{_libdir}/pgsql/test/regress/Makefile
79e650
	chmod 0644 $RPM_BUILD_ROOT%{_libdir}/pgsql/test/regress/Makefile
79e650
%endif
79e650
79e650
rm -rf doc/html # HACK! allow 'rpmbuild -bi --short-circuit'
79e650
mv $RPM_BUILD_ROOT%{_docdir}/pgsql/html doc
79e650
rm -rf $RPM_BUILD_ROOT%{_docdir}/pgsql
79e650
79e650
# remove files not to be packaged
79e650
rm $RPM_BUILD_ROOT%{_libdir}/libpgfeutils.a
79e650
79e650
%if !%plperl
79e650
rm -f $RPM_BUILD_ROOT%{_bindir}/pgsql/hstore_plperl.so
79e650
%endif
79e650
79e650
%if !%plpython
79e650
rm -f $RPM_BUILD_ROOT%{_bindir}/pgsql/hstore_plpython2.so
79e650
%endif
79e650
79e650
# initialize file lists
79e650
cp /dev/null main.lst
79e650
cp /dev/null server.lst
79e650
cp /dev/null plperl.lst
79e650
cp /dev/null pltcl.lst
79e650
cp /dev/null plpython.lst
79e650
cp /dev/null plpython3.lst
79e650
79e650
%if %nls
79e650
find_lang_bins ()
79e650
{
79e650
	lstfile=$1 ; shift
79e650
	for binary; do
79e650
		%find_lang "$binary"-%{majorversion}
79e650
		cat "$binary"-%{majorversion}.lang >>$lstfile
79e650
	done
79e650
}
79e650
find_lang_bins devel.lst pg_server_config
79e650
find_lang_bins server.lst \
79e650
	initdb pg_basebackup pg_controldata pg_ctl pg_resetxlog pg_rewind plpgsql postgres
79e650
find_lang_bins  main.lst \
79e650
	pg_dump pgscripts psql
79e650
%if %plperl
79e650
find_lang_bins plperl.lst plperl
79e650
%endif
79e650
%if %plpython
79e650
find_lang_bins plpython.lst plpython
79e650
%endif
79e650
%if %plpython3
79e650
# plpython3 shares message files with plpython
79e650
find_lang_bins plpython3.lst plpython
79e650
%endif
79e650
%if %pltcl
79e650
find_lang_bins pltcl.lst pltcl
79e650
%endif
79e650
%endif
79e650
79e650
%pre server
79e650
/usr/sbin/groupadd -g 26 -o -r postgres >/dev/null 2>&1 || :
79e650
/usr/sbin/useradd -M -N -g postgres -o -r -d /var/lib/pgsql -s /bin/bash \
79e650
	-c "PostgreSQL Server" -u 26 postgres >/dev/null 2>&1 || :
79e650
79e650
%post server
79e650
%systemd_post %service_name
79e650
79e650
79e650
%preun server
79e650
%systemd_preun %service_name
79e650
79e650
79e650
%postun server
79e650
%systemd_postun_with_restart %service_name
79e650
79e650
79e650
%check
79e650
%if %runselftest
79e650
make -C postgresql-setup-%{setup_version} check
79e650
%endif
79e650
79e650
79e650
%clean
79e650
79e650
79e650
# FILES sections.
79e650
%files -f main.lst
79e650
%doc doc/KNOWN_BUGS doc/MISSING_FEATURES doc/TODO
79e650
%doc COPYRIGHT README HISTORY doc/bug.template
79e650
%doc README.rpm-dist
79e650
%{_bindir}/clusterdb
79e650
%{_bindir}/createdb
79e650
%{_bindir}/createlang
79e650
%{_bindir}/createuser
79e650
%{_bindir}/dropdb
79e650
%{_bindir}/droplang
79e650
%{_bindir}/dropuser
79e650
%{_bindir}/pg_dump
79e650
%{_bindir}/pg_dumpall
79e650
%{_bindir}/pg_isready
79e650
%{_bindir}/pg_restore
79e650
%{_bindir}/pg_upgrade
79e650
%{_bindir}/psql
79e650
%{_bindir}/reindexdb
79e650
%{_bindir}/vacuumdb
79e650
%dir %{_libdir}/pgsql
79e650
%{_mandir}/man1/clusterdb.*
79e650
%{_mandir}/man1/createdb.*
79e650
%{_mandir}/man1/createlang.*
79e650
%{_mandir}/man1/createuser.*
79e650
%{_mandir}/man1/dropdb.*
79e650
%{_mandir}/man1/droplang.*
79e650
%{_mandir}/man1/dropuser.*
79e650
%{_mandir}/man1/pg_dump.*
79e650
%{_mandir}/man1/pg_dumpall.*
79e650
%{_mandir}/man1/pg_isready.*
79e650
%{_mandir}/man1/pg_restore.*
79e650
%{_mandir}/man1/pg_upgrade.*
79e650
%{_mandir}/man1/psql.*
79e650
%{_mandir}/man1/reindexdb.*
79e650
%{_mandir}/man1/vacuumdb.*
79e650
%{_mandir}/man7/*
79e650
79e650
79e650
%files docs
79e650
%doc *-US.pdf
79e650
%doc doc/html
79e650
%{_libdir}/pgsql/tutorial/
79e650
79e650
79e650
%files contrib
79e650
%doc contrib/spi/*.example
79e650
%{_bindir}/oid2name
79e650
%{_bindir}/pg_archivecleanup
79e650
%{_bindir}/pg_standby
79e650
%{_bindir}/pg_test_fsync
79e650
%{_bindir}/pg_test_timing
79e650
%{_bindir}/pg_xlogdump
79e650
%{_bindir}/pgbench
79e650
%{_bindir}/vacuumlo
79e650
%{_datadir}/pgsql/extension/adminpack*
79e650
%{_datadir}/pgsql/extension/autoinc*
79e650
%{_datadir}/pgsql/extension/bloom*
79e650
%{_datadir}/pgsql/extension/btree_gin*
79e650
%{_datadir}/pgsql/extension/btree_gist*
79e650
%{_datadir}/pgsql/extension/chkpass*
79e650
%{_datadir}/pgsql/extension/citext*
79e650
%{_datadir}/pgsql/extension/cube*
79e650
%{_datadir}/pgsql/extension/dblink*
79e650
%{_datadir}/pgsql/extension/dict_int*
79e650
%{_datadir}/pgsql/extension/dict_xsyn*
79e650
%{_datadir}/pgsql/extension/earthdistance*
79e650
%{_datadir}/pgsql/extension/file_fdw*
79e650
%{_datadir}/pgsql/extension/fuzzystrmatch*
79e650
%{_datadir}/pgsql/extension/hstore*
79e650
%{_datadir}/pgsql/extension/insert_username*
79e650
%{_datadir}/pgsql/extension/intagg*
79e650
%{_datadir}/pgsql/extension/intarray*
79e650
%{_datadir}/pgsql/extension/isn*
79e650
%{_datadir}/pgsql/extension/lo*
79e650
%{_datadir}/pgsql/extension/ltree*
79e650
%{_datadir}/pgsql/extension/moddatetime*
79e650
%{_datadir}/pgsql/extension/pageinspect*
79e650
%{_datadir}/pgsql/extension/pg_buffercache*
79e650
%{_datadir}/pgsql/extension/pg_freespacemap*
79e650
%{_datadir}/pgsql/extension/pg_prewarm*
79e650
%{_datadir}/pgsql/extension/pg_stat_statements*
79e650
%{_datadir}/pgsql/extension/pg_trgm*
79e650
%{_datadir}/pgsql/extension/pg_visibility*
79e650
%{_datadir}/pgsql/extension/pgcrypto*
79e650
%{_datadir}/pgsql/extension/pgrowlocks*
79e650
%{_datadir}/pgsql/extension/pgstattuple*
79e650
%{_datadir}/pgsql/extension/postgres_fdw*
79e650
%{_datadir}/pgsql/extension/refint*
79e650
%{_datadir}/pgsql/extension/seg*
79e650
%{_datadir}/pgsql/extension/tablefunc*
79e650
%{_datadir}/pgsql/extension/tcn*
79e650
%{_datadir}/pgsql/extension/timetravel*
79e650
%{_datadir}/pgsql/extension/tsearch2*
79e650
%{_datadir}/pgsql/extension/tsm_system_rows*
79e650
%{_datadir}/pgsql/extension/tsm_system_time*
79e650
%{_datadir}/pgsql/extension/unaccent*
79e650
%{_libdir}/pgsql/_int.so
79e650
%{_libdir}/pgsql/adminpack.so
79e650
%{_libdir}/pgsql/auth_delay.so
79e650
%{_libdir}/pgsql/auto_explain.so
79e650
%{_libdir}/pgsql/autoinc.so
79e650
%{_libdir}/pgsql/bloom.so
79e650
%{_libdir}/pgsql/btree_gin.so
79e650
%{_libdir}/pgsql/btree_gist.so
79e650
%{_libdir}/pgsql/chkpass.so
79e650
%{_libdir}/pgsql/citext.so
79e650
%{_libdir}/pgsql/cube.so
79e650
%{_libdir}/pgsql/dblink.so
79e650
%{_libdir}/pgsql/dict_int.so
79e650
%{_libdir}/pgsql/dict_xsyn.so
79e650
%{_libdir}/pgsql/earthdistance.so
79e650
%{_libdir}/pgsql/file_fdw.so
79e650
%{_libdir}/pgsql/fuzzystrmatch.so
79e650
%{_libdir}/pgsql/hstore.so
79e650
%if %plperl
79e650
%{_libdir}/pgsql/hstore_plperl.so
79e650
%endif
79e650
%if %plpython
79e650
%{_libdir}/pgsql/hstore_plpython2.so
79e650
%endif
79e650
%{_libdir}/pgsql/insert_username.so
79e650
%{_libdir}/pgsql/isn.so
79e650
%{_libdir}/pgsql/lo.so
79e650
%{_libdir}/pgsql/ltree.so
79e650
%if %plpython
79e650
%{_libdir}/pgsql/ltree_plpython2.so
79e650
%endif
79e650
%{_libdir}/pgsql/moddatetime.so
79e650
%{_libdir}/pgsql/pageinspect.so
79e650
%{_libdir}/pgsql/passwordcheck.so
79e650
%{_libdir}/pgsql/pg_buffercache.so
79e650
%{_libdir}/pgsql/pg_freespacemap.so
79e650
%{_libdir}/pgsql/pg_stat_statements.so
79e650
%{_libdir}/pgsql/pg_trgm.so
79e650
%{_libdir}/pgsql/pg_visibility.so
79e650
%{_libdir}/pgsql/pgcrypto.so
79e650
%{_libdir}/pgsql/pgrowlocks.so
79e650
%{_libdir}/pgsql/pgstattuple.so
79e650
%{_libdir}/pgsql/postgres_fdw.so
79e650
%{_libdir}/pgsql/refint.so
79e650
%{_libdir}/pgsql/seg.so
79e650
%{_libdir}/pgsql/tablefunc.so
79e650
%{_libdir}/pgsql/tcn.so
79e650
%{_libdir}/pgsql/test_decoding.so
79e650
%{_libdir}/pgsql/timetravel.so
79e650
%{_libdir}/pgsql/tsearch2.so
79e650
%{_libdir}/pgsql/tsm_system_rows.so
79e650
%{_libdir}/pgsql/tsm_system_time.so
79e650
%{_libdir}/pgsql/unaccent.so
79e650
%{_mandir}/man1/oid2name.*
79e650
%{_mandir}/man1/pg_archivecleanup.*
79e650
%{_mandir}/man1/pg_recvlogical.*
79e650
%{_mandir}/man1/pg_standby.*
79e650
%{_mandir}/man1/pg_test_fsync.*
79e650
%{_mandir}/man1/pg_test_timing.*
79e650
%{_mandir}/man1/pg_xlogdump.*
79e650
%{_mandir}/man1/pgbench.*
79e650
%{_mandir}/man1/vacuumlo.*
79e650
%{_mandir}/man3/dblink*
79e650
%if %selinux
79e650
%{_datadir}/pgsql/contrib/sepgsql.sql
79e650
%{_libdir}/pgsql/sepgsql.so
79e650
%endif
79e650
%if %ssl
79e650
%{_datadir}/pgsql/extension/sslinfo*
79e650
%{_libdir}/pgsql/sslinfo.so
79e650
%endif
79e650
%if %uuid
79e650
%{_datadir}/pgsql/extension/uuid-ossp*
79e650
%{_libdir}/pgsql/uuid-ossp.so
79e650
%endif
79e650
%if %xml
79e650
%{_datadir}/pgsql/extension/xml2*
79e650
%{_libdir}/pgsql/pgxml.so
79e650
%endif
79e650
79e650
%files server -f server.lst
79e650
%{_bindir}/initdb
79e650
%{_bindir}/pg_basebackup
79e650
%{_bindir}/pg_controldata
79e650
%{_bindir}/pg_ctl
79e650
%{_bindir}/pg_receivexlog
79e650
%{_bindir}/pg_recvlogical
79e650
%{_bindir}/pg_resetxlog
79e650
%{_bindir}/pg_rewind
79e650
%{_bindir}/postgres
79e650
%{_bindir}/postgresql-setup
79e650
%{_bindir}/postmaster
79e650
%dir %{_datadir}/pgsql
79e650
%{_datadir}/pgsql/*.sample
79e650
%dir %{_datadir}/pgsql/contrib
79e650
%{_datadir}/pgsql/conversion_create.sql
79e650
%dir %{_datadir}/pgsql/extension
79e650
%{_datadir}/pgsql/extension/plpgsql*
79e650
%{_datadir}/pgsql/information_schema.sql
79e650
%{_datadir}/pgsql/postgres.bki
79e650
%{_datadir}/pgsql/postgres.description
79e650
%{_datadir}/pgsql/postgres.shdescription
79e650
%{_datadir}/pgsql/snowball_create.sql
79e650
%{_datadir}/pgsql/sql_features.txt
79e650
%{_datadir}/pgsql/system_views.sql
79e650
%{_datadir}/pgsql/timezonesets/
79e650
%{_datadir}/pgsql/tsearch_data/
79e650
%dir %{_datadir}/postgresql-setup
79e650
%{_datadir}/postgresql-setup/library.sh
79e650
%{_libdir}/pgsql/*_and_*.so
79e650
%{_libdir}/pgsql/dict_snowball.so
79e650
%{_libdir}/pgsql/euc2004_sjis2004.so
79e650
%{_libdir}/pgsql/libpqwalreceiver.so
79e650
%{_libdir}/pgsql/pg_prewarm.so
79e650
%{_libdir}/pgsql/plpgsql.so
79e650
%dir %{_libexecdir}/initscripts/legacy-actions/postgresql
79e650
%{_libexecdir}/initscripts/legacy-actions/postgresql/*
79e650
%{_libexecdir}/postgresql-check-db-dir
79e650
%dir %{_sysconfdir}/postgresql-setup
79e650
%dir %{_sysconfdir}/postgresql-setup/upgrade
79e650
%config %{_sysconfdir}/postgresql-setup/upgrade/*.conf
79e650
%{_mandir}/man1/initdb.*
79e650
%{_mandir}/man1/pg_basebackup.*
79e650
%{_mandir}/man1/pg_controldata.*
79e650
%{_mandir}/man1/pg_ctl.*
79e650
%{_mandir}/man1/pg_receivexlog.*
79e650
%{_mandir}/man1/pg_resetxlog.*
79e650
%{_mandir}/man1/pg_rewind.*
79e650
%{_mandir}/man1/postgres.*
79e650
%{_mandir}/man1/postgresql-new-systemd-unit.*
79e650
%{_mandir}/man1/postgresql-setup.*
79e650
%{_mandir}/man1/postmaster.*
79e650
%{_sbindir}/postgresql-new-systemd-unit
79e650
%{_tmpfilesdir}/postgresql.conf
79e650
%{_unitdir}/*postgresql*.service
79e650
%attr(700,postgres,postgres) %dir %{?_localstatedir}/lib/pgsql
79e650
%attr(644,postgres,postgres) %config(noreplace) %{?_localstatedir}/lib/pgsql/.bash_profile
79e650
%attr(700,postgres,postgres) %dir %{?_localstatedir}/lib/pgsql/backups
79e650
%attr(700,postgres,postgres) %dir %{?_localstatedir}/lib/pgsql/data
79e650
%attr(755,postgres,postgres) %dir %{?_localstatedir}/run/postgresql
79e650
%if %pam
79e650
%config(noreplace) /etc/pam.d/postgresql
79e650
%endif
79e650
79e650
79e650
%files server-devel -f devel.lst
79e650
%{_bindir}/pg_server_config
79e650
%dir %{_includedir}/pgsql
79e650
%dir %{_includedir}/pgsql/server
79e650
%{_includedir}/pgsql/server/*
79e650
%{_libdir}/pgsql/pgxs/
79e650
%{_mandir}/man1/pg_server_config.*
79e650
%{_mandir}/man3/SPI_*
79e650
%{macrosdir}/macros.%name
79e650
79e650
79e650
%files test-rpm-macros
79e650
%{_datadir}/postgresql-setup/postgresql_pkg_tests.sh
79e650
%{macrosdir}/macros.%name-test
79e650
79e650
79e650
%files static
79e650
%{_libdir}/libpgcommon.a
79e650
%{_libdir}/libpgport.a
79e650
79e650
79e650
%if %upgrade
79e650
%files upgrade
79e650
%{_libdir}/pgsql/postgresql-%{prevmajorversion}/bin
79e650
%exclude %{_libdir}/pgsql/postgresql-%{prevmajorversion}/bin/pg_config
79e650
%{_libdir}/pgsql/postgresql-%{prevmajorversion}/lib
79e650
%exclude %{_libdir}/pgsql/postgresql-%{prevmajorversion}/lib/pgxs
79e650
%{_libdir}/pgsql/postgresql-%{prevmajorversion}/share
79e650
79e650
79e650
%files upgrade-devel
79e650
%{_libdir}/pgsql/postgresql-%{prevmajorversion}/bin/pg_config
79e650
%{_libdir}/pgsql/postgresql-%{prevmajorversion}/include
79e650
%{_libdir}/pgsql/postgresql-%{prevmajorversion}/lib/pgxs
79e650
%{macrosdir}/macros.%name-upgrade
79e650
%endif
79e650
79e650
79e650
%if %plperl
79e650
%files plperl -f plperl.lst
79e650
%{_datadir}/pgsql/extension/plperl*
79e650
%{_libdir}/pgsql/plperl.so
79e650
%endif
79e650
79e650
79e650
%if %pltcl
79e650
%files pltcl -f pltcl.lst
79e650
%{_bindir}/pltcl_delmod
79e650
%{_bindir}/pltcl_listmod
79e650
%{_bindir}/pltcl_loadmod
79e650
%{_datadir}/pgsql/extension/pltcl*
79e650
%{_datadir}/pgsql/unknown.pltcl
79e650
%{_libdir}/pgsql/pltcl.so
79e650
%endif
79e650
79e650
79e650
%if %plpython
79e650
%files plpython -f plpython.lst
79e650
%{_datadir}/pgsql/extension/plpython2*
79e650
%{_datadir}/pgsql/extension/plpythonu*
79e650
%{_libdir}/pgsql/plpython2.so
79e650
%endif
79e650
79e650
79e650
%if %plpython3
79e650
%files plpython3 -f plpython3.lst
79e650
%{_datadir}/pgsql/extension/plpython3*
79e650
%{_libdir}/pgsql/plpython3.so
79e650
%endif
79e650
79e650
79e650
%if %test
79e650
%files test
79e650
%attr(-,postgres,postgres) %{_libdir}/pgsql/test
79e650
%endif
79e650
79e650
79e650
%changelog
1fbc41
* Thu Nov 19 2020 Patrik Novotný <panovotn@redhat.com> - 9.6.20-1
1fbc41
- Rebase to upstream release 9.6.20
1fbc41
  Resolves: rhbz#1901563
1fbc41
  Resolves: rhbz#1898218
1fbc41
  Resolves: rhbz#1898334
1fbc41
1fbc41
* Mon Aug 24 2020 Honza Horak <hhorak@redhat.com> - 9.6.19-1
1fbc41
- Rebase to 9.6.19
1fbc41
  Also fixes: CVE-2019-10208, CVE-2020-14350, CVE-2019-10130
1fbc41
  Resolves: #1741490
1fbc41
  Resolves: #1867111
1fbc41
  Resolves: #1845074
1fbc41
79e650
* Fri Aug 10 2018 Pavel Raiskup <praiskup@redhat.com> - 9.6.10-1
79e650
- update to the latest 9.6 release
79e650
79e650
* Fri Jul 13 2018 Pavel Raiskup <praiskup@redhat.com> - 9.6.9-1
79e650
- update to the latest 9.6 release
79e650
79e650
* Thu Apr 26 2018 Pavel Raiskup <praiskup@redhat.com> - 9.6.8-5
79e650
- pltcl: drop tcl-pltcl dependency (rhbz#1571181)
79e650
79e650
* Mon Apr 23 2018 Pavel Raiskup <praiskup@redhat.com> - 9.6.8-4
79e650
- sync with branch arb-10
79e650
79e650
* Tue Apr 17 2018 Pavel Raiskup <praiskup@redhat.com> - 9.6.8-3
79e650
- build with sd_notify, too (required by modern service files)
79e650
79e650
* Fri Apr 13 2018 Pavel Raiskup <praiskup@redhat.com> - 9.6.8-2
79e650
- sync with stream 10
79e650
79e650
* Fri Apr 06 2018 Pavel Raiskup <praiskup@redhat.com> - 9.6.8-1.3
79e650
- don't build *-libs subpackage
79e650
- don't collide with libpq{,-devel}
79e650
79e650
* Fri Apr 06 2018 Pavel Raiskup <praiskup@redhat.com> - 9.6.8-1
79e650
- update to 9.6.8 per release notes:
79e650
  https://www.postgresql.org/docs/9.6/static/release-9-6-8.html
79e650
  https://www.postgresql.org/docs/9.6/static/release-9-6-7.html
79e650
  https://www.postgresql.org/docs/9.6/static/release-9-6-6.html
79e650
- rebase to new postgresql-setup 6.0 version, to fix CVE-2017-15097
79e650
79e650
* Tue Aug 29 2017 Pavel Raiskup <praiskup@redhat.com> - 9.6.5-1
79e650
- update to 9.6.5 per release notes:
79e650
  https://www.postgresql.org/docs/9.6/static/release-9-6-5.html
79e650
79e650
* Tue Aug 08 2017 Petr Kubat <pkubat@redhat.com> - 9.6.4-1
79e650
- update to 9.6.4 per release notes:
79e650
  https://www.postgresql.org/docs/9.6/static/release-9-6-4.html
79e650
79e650
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 9.6.3-9
79e650
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
79e650
79e650
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 9.6.3-8
79e650
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
79e650
79e650
* Mon Jul 24 2017 Pavel Raiskup <praiskup@redhat.com> - 9.6.3-7
79e650
- drop perl rpath patch; libperl.so* is now in %%_libdir (rhbz#1474417)
79e650
79e650
* Mon Jun 26 2017 Pavel Raiskup <praiskup@redhat.com> - 9.6.3-6
79e650
- don't provide libpqwalreceiver.so() soname
79e650
79e650
* Wed Jun 21 2017 Pavel Raiskup <praiskup@redhat.com> - 9.6.3-5
79e650
- drop the __os_install_post redefinition hack
79e650
79e650
* Mon Jun 12 2017 Pavel Raiskup <praiskup@redhat.com> - 9.6.3-4
79e650
- drop -DLINUX_OOM_SCORE_ADJ=0 define from CFLAGS (rhbz#1110969, rhbz#1436554)
79e650
79e650
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 9.6.3-3
79e650
- Perl 5.26 rebuild
79e650
79e650
* Mon May 22 2017 Petr Kubat <pkubat@redhat.com> - 9.6.3-2
79e650
- fix indentation issues in hstore_plperlu test-case (rhbz#1453111)
79e650
79e650
* Thu May 11 2017 Pavel Raiskup <praiskup@redhat.com> - 9.6.3-1
79e650
- update to 9.6.3 per release notes:
79e650
  https://www.postgresql.org/docs/9.6/static/release-9-6-3.html
79e650
79e650
* Mon Apr 24 2017 Pavel Raiskup <praiskup@redhat.com> - 9.6.2-4
79e650
- rebase to postgresql-setup 5.1
79e650
79e650
* Mon Apr 10 2017 Pavel Raiskup <praiskup@redhat.com> - 9.6.2-3
79e650
- spring cleanup
79e650
79e650
* Mon Mar 27 2017 Pavel Raiskup <praiskup@redhat.com> - 9.6.2-2
79e650
- rebuild for rhbz#1436006
79e650
79e650
* Wed Feb 22 2017 Pavel Raiskup <praiskup@redhat.com> - 9.6.2-1
79e650
- update to 9.6.2 per release notes:
79e650
  https://www.postgresql.org/docs/9.6/static/release-9-6-2.html
79e650
- remove mistakenly isntalled libpgfeutils.a
79e650
79e650
* Thu Jan 12 2017 Igor Gnatenko <ignatenko@redhat.com> - 9.6.1-3
79e650
- Rebuild for readline 7.x
79e650
79e650
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 9.6.1-2
79e650
- Rebuild for Python 3.6
79e650
79e650
* Wed Oct 26 2016 Pavel Raiskup <praiskup@redhat.com> - 9.6.1-1
79e650
- update to 9.6.1 per release notes:
79e650
  https://www.postgresql.org/docs/9.6/static/release-9-6-1.html
79e650
- add gen_sources.sh script
79e650
- remove plpython build hack, fixed upstream
79e650
- remove aarch64 and ppc64p7 hacks, fixed by the %%configure call
79e650
79e650
* Tue Oct 04 2016 Pavel Raiskup <praiskup@redhat.com> - 9.6.0-1
79e650
- rebase the postgresql-setup tarball
79e650
79e650
* Fri Sep 30 2016 Pavel Raiskup <praiskup@redhat.com> - 9.6.0-1
79e650
- update to 9.6.0 per release notes:
79e650
  https://www.postgresql.org/docs/9.6/static/release-9-6.html
79e650
79e650
* Fri Aug 12 2016 Petr Kubat <pkubat@redhat.com> - 9.5.4-1
79e650
- update to 9.5.4 per release notes:
79e650
  http://www.postgresql.org/docs/9.5/static/release-9-5-4.html
79e650
79e650
* Mon Jun 20 2016 Pavel Raiskup <praiskup@redhat.com> - 9.5.3-3
79e650
- use multilib-rpm-config package for multilib hacks
79e650
79e650
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 9.5.3-2
79e650
- Perl 5.24 rebuild
79e650
79e650
* Thu May 12 2016 Pavel Raiskup <praiskup@redhat.com> - 9.5.3-1
79e650
- update to 9.5.3 per release notes:
79e650
  http://www.postgresql.org/docs/9.5/static/release-9-5-3.html
79e650
79e650
* Mon May 09 2016 Pavel Raiskup <praiskup@redhat.com> - 9.5.2-2
79e650
- fix the test subpackage, pg_regress now uses --bindir
79e650
79e650
* Sun Apr 03 2016 Pavel Raiskup <praiskup@redhat.com> - 9.5.2-1
79e650
- update to 9.5.2 per release notes
79e650
  http://www.postgresql.org/docs/9.5/static/release-9-5-2.html
79e650
79e650
* Fri Feb 26 2016 Pavel Raiskup <praiskup@redhat.com> - 9.5.1-2
79e650
- package static libraries without dynamic counterparts (rhbz#784281)
79e650
79e650
* Tue Feb 09 2016 Pavel Raiskup <praiskup@redhat.com> - 9.5.1-1
79e650
- update to 9.5.1 per release notes
79e650
  http://www.postgresql.org/docs/9.5/static/release-9-5-1.html
79e650
79e650
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 9.5.0-2
79e650
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
79e650
79e650
* Wed Jan 06 2016 Pavel Raiskup <praiskup@redhat.com> - 9.5.0-1
79e650
- update to 9.5.0 per release notes
79e650
  http://www.postgresql.org/docs/9.5/static/release-9-5.html
79e650
- update postgresql-setup to v4.0 to reflect new packaging style
79e650
79e650
* Wed Dec 16 2015 Pavel Kajaba <pkajaba@redhat.com> - 9.4.5-5
79e650
- fixed problem with xml2 test (rhbz#1286692)
79e650
79e650
* Thu Dec 3 2015 Pavel Kajaba <pkajaba@redhat.com> - 9.4.5-4
79e650
- fixed short-circuit build
79e650
79e650
* Thu Nov 12 2015 Pavel Raiskup <praiskup@redhat.com> - 9.4.5-3
79e650
- fix testsuite failure with new Python 3.5 (rhbz#1280404)
79e650
79e650
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9.4.5-3
79e650
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
79e650
79e650
* Fri Oct 16 2015 Pavel Raiskup <praiskup@redhat.com> - 9.4.5-2
79e650
- devel package should not require the main package (rhbz#1272219)
79e650
- multilib fix, more general solution (rhbz#1190346)
79e650
79e650
* Tue Oct 06 2015 Pavel Raiskup <praiskup@redhat.com> - 9.4.5-1
79e650
- update to 9.4.5 per release notes
79e650
  http://www.postgresql.org/docs/9.4/static/release-9-4-5.html
79e650
79e650
* Fri Sep 25 2015 Pavel Raiskup <praiskup@redhat.com> - 9.4.4-6
79e650
- postgresql-setup rebase to 3.4 (rhbz#1265319, rhbz#1247477)
79e650
79e650
* Thu Sep 17 2015 Pavel Raiskup <praiskup@redhat.com> - 9.4.4-5
79e650
- enable hardening (safe for kernel 4.1+) (see rhbz#952946 comment #24)
79e650
79e650
* Tue Aug 04 2015 Pavel Raiskup <praiskup@redhat.com> - 9.4.4-4
79e650
- install README.rpm-dist properly (rhbz#1249708)
79e650
79e650
* Tue Jul 14 2015 Pavel Raiskup <praiskup@redhat.com> - 9.4.4-3
79e650
- revert/fix part of e6acde1a9 commit related to multilib hack (rhbz#1242873)
79e650
79e650
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9.4.4-2
79e650
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
79e650
79e650
* Mon Jun 15 2015 Pavel Raiskup <praiskup@redhat.com> - 9.4.4-1
79e650
- fix for Perl 5.22 rebase (rhbz#1231279)
79e650
79e650
* Thu Jun 11 2015 Pavel Raiskup <praiskup@redhat.com> - 9.4.4-1
79e650
- update to 9.4.4 per release notes
79e650
  http://www.postgresql.org/docs/9.4/static/release-9-4-4.html
79e650
79e650
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 9.4.3-2
79e650
- Perl 5.22 rebuild
79e650
79e650
* Wed Jun 03 2015 Jozef Mlich <jmlich@redhat.com> - 9.4.3-1
79e650
- update to 9.4.3 per release notes
79e650
  http://www.postgresql.org/docs/9.4/static/release-9-4-3.html
79e650
79e650
* Thu May 21 2015 Jozef Mlich <jmlich@redhat.com> - 9.4.2-1
79e650
- update to 9.4.2 per release notes
79e650
  http://www.postgresql.org/docs/9.4/static/release-9-4-2.html
79e650
79e650
* Thu May 21 2015 Pavel Raiskup <praiskup@redhat.com> - 9.4.1-4
79e650
- make the %%check phase more verbose for FAIL cases
79e650
- don't FTBFS on f23+ where hardening is on by default
79e650
79e650
* Wed Mar 25 2015 Jozef Mlich <jmlich@redhat.com> - 9.4.1-3
79e650
- update to postgresql-setup 3.3
79e650
79e650
* Thu Mar 19 2015 Jozef Mlich <jmlich@redhat.com> - 9.4.1-2
79e650
- Adding tcl-pgtcl into Requires of -tcl subpackage
79e650
79e650
* Wed Feb 04 2015 Pavel Raiskup <praiskup@redhat.com> - 9.4.1-1
79e650
- update to 9.4.1 per release notes
79e650
  http://www.postgresql.org/docs/9.4/static/release-9-4-1.html
79e650
79e650
* Tue Feb 03 2015 Pavel Raiskup <praiskup@redhat.com> - 9.4.0-2
79e650
- sort file lists alphabetically
79e650
79e650
* Tue Dec 23 2014 Jozef Mlich <jmlich@redhat.com> - 9.4.0-1
79e650
- update to 9.4.0 per release notes
79e650
  http://www.postgresql.org/docs/9.4/static/index.html
79e650
79e650
* Mon Nov 24 2014 Pavel Raiskup <praiskup@redhat.com> - 9.3.5-8
79e650
- print regression.diffs contents to stdout (#1118392)
79e650
79e650
* Mon Oct 20 2014 Pavel Raiskup <praiskup@redhat.com> - 9.3.5-7
79e650
- be forgiving of variant spellings of locale names in pg_upgrade (#1007802)
79e650
79e650
* Sun Sep 21 2014 Pavel Raiskup <praiskup@redhat.com> - 9.3.5-6
79e650
- postgresql-setup & relatives are now in separate tarball
79e650
79e650
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 9.3.5-5
79e650
- Perl 5.20 rebuild
79e650
79e650
* Thu Aug 21 2014 Pavel Raiskup <praiskup@redhat.com> - 9.3.5-4
79e650
- install macros.postgresql, not postgresql.macros
79e650
79e650
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9.3.5-3
79e650
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
79e650
79e650
* Thu Jul 24 2014 Pavel Raiskup <praiskup@redhat.com> - 9.3.5-2
79e650
- fix the prevversion sum link and comment a little
79e650
79e650
* Tue Jul 22 2014 Pavel Raiskup <praiskup@redhat.com> - 9.3.5-1
79e650
- update to 9.3.5 per release notes
79e650
  http://www.postgresql.org/docs/9.3/static/release-9-3-5.html
79e650
79e650
* Fri Jul 18 2014 Pavel Raiskup <praiskup@redhat.com> - 9.3.4-8
79e650
- provide postgresql-doc for postgresql-docs package (#1086420)
79e650
- move html documentation to *-docs subpackage (#1086420)
79e650
- provide postgresql-server(:MODULE_COMPAT_%%{postgresql_major}) to guard
79e650
  against incompatible plugin installation (#1008939)
79e650
79e650
* Thu Jun 19 2014 Pavel Raiskup <praiskup@redhat.com> - 9.3.4-7
79e650
- OOM handling compatible with 9.5+, by Tom Lane (#1110969)
79e650
79e650
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9.3.4-6
79e650
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
79e650
79e650
* Mon May 26 2014 Honza Horak <hhorak@redhat.com> - 9.3.4-5
79e650
- Rebuild for Python 3.4
79e650
79e650
* Fri May 23 2014 Honza Horak <hhorak@redhat.com> - 9.3.4-4
79e650
- Change plpython_do test a bit so it is universal for all python versions
79e650
79e650
* Wed May 21 2014 Jaroslav Škarvada <jskarvad@redhat.com> - 9.3.4-3
79e650
- Rebuilt for https://fedoraproject.org/wiki/Changes/f21tcl86
79e650
79e650
* Wed May 14 2014 Pavel Raiskup <praiskup@redhat.com> - 9.3.4-2
79e650
- set basic $PATH when it is empty or unset, (#1097317)
79e650
79e650
* Thu Mar 20 2014 Jozef Mlich <jmlich@redhat.com> - 9.3.4-1
79e650
- update to 9.3.4 minor version per release notes:
79e650
  http://www.postgresql.org/docs/9.3/static/release-9-3-4.html
79e650
79e650
* Thu Mar 13 2014 Jozef Mlich <jmlich@redhat.com> - 9.3.3-2
79e650
- Fix WAL replay of locking an updated tuple 
79e650
  kudos to Alvaro Herrera 
79e650
79e650
* Thu Feb 20 2014 Jozef Mlich <jmlich@redhat.com> - 9.3.3-1
79e650
- update to 9.3.3 minor version per release notes:
79e650
  http://www.postgresql.org/docs/9.3/static/release-9-3-3.html
79e650
79e650
* Thu Jan 23 2014 Pavel Raiskup <praiskup@redhat.com> - 9.3.2-7
79e650
- postgresql-setup: typos
79e650
79e650
* Tue Jan 21 2014 Pavel Raiskup <praiskup@redhat.com> - 9.3.2-6
79e650
- add PGSETUP_PGUPGRADE_OPTIONS env var for postgresql-setup
79e650
79e650
* Mon Jan 20 2014 Pavel Raiskup <praiskup@redhat.com> - 9.3.2-5
79e650
- fix the postgresql-setup --version option
79e650
79e650
* Mon Jan 20 2014 Pavel Raiskup <praiskup@redhat.com> - 9.3.2-4
79e650
- postgresql-setup(upgrade): don't stop old server when it can not be started
79e650
- postgresql-setup(initdb, upgrade): add $PGSETUP_INITDB_OPTIONS
79e650
- postgresql-setup: do not pretend 'sh' compatibility
79e650
- move script generation to proper place
79e650
- postgresql-setup: document a little and genrate manual page
79e650
79e650
* Fri Jan 10 2014 Pavel Raiskup <praiskup@redhat.com> - 9.3.2-3
79e650
- build with -O3 on ppc64 (private #1051075)
79e650
79e650
* Fri Dec 13 2013 Pavel Raiskup <praiskup@redhat.com> - 9.3.2-2
79e650
- lint the postgresql-setup script
79e650
79e650
* Thu Dec 12 2013 Jozef Mlich <jmlich@redhat.com> - 9.3.2-2
79e650
- don't fail if user has badly configure 'postgres' user access (#1040364)
79e650
79e650
* Thu Dec 05 2013 Jozef Mlich <jmlich@redhat.com> - 9.3.2-1
79e650
- update to 9.3.2 minor version per release notes:
79e650
  http://www.postgresql.org/docs/9.3/static/release-9-3-2.html
79e650
79e650
* Thu Oct 17 2013 Jozef Mlich <jmlich@redhat.com> - 9.3.1-2
79e650
- the prevversion (see package upgrade process) is updated
79e650
  from 9.2.4 to 9.2.5
79e650
79e650
* Thu Oct 10 2013 Jozef Mlich <jmlich@redhat.com> - 9.3.1-1
79e650
- update to 9.3.1 minor version per release notes:
79e650
  http://www.postgresql.org/docs/9.3/static/release-9-3-1.html
79e650
79e650
* Tue Sep 10 2013 Pavel Raiskup <praiskup@redhat.com> - 9.3.0-1
79e650
- update to 9.3 major version per release notes:
79e650
  http://www.postgresql.org/docs/9.3/static/release-9-3.html
79e650
79e650
* Thu Aug 15 2013 Pavel Raiskup <praiskup@redhat.com> - 9.2.4-11
79e650
- upgrade: stop old server in case of permissions problem (#896161)
79e650
79e650
* Mon Aug 12 2013 Pavel Raiskup <praiskup@redhat.com> - 9.2.4-10
79e650
- disable aggressive loop optimizations for old codebase (#993532)
79e650
79e650
* Wed Aug 07 2013 Pavel Raiskup <praiskup@redhat.com> - 9.2.4-9
79e650
- generate links docdir links in postgresql-check-db-dir correctly (#994048)
79e650
79e650
* Tue Aug 06 2013 Pavel Raiskup <praiskup@redhat.com> - 9.2.4-8
79e650
- allow `rpmbuild -bi --short-circuit`
79e650
79e650
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9.2.4-7
79e650
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
79e650
79e650
* Wed Jul 24 2013 Pavel Raiskup <praiskup@redhat.com> - 9.2.4-6
79e650
- split aarch64 patch to allow build without postgresql-upgrade
79e650
79e650
* Tue Jul 23 2013 Pavel Raiskup <praiskup@redhat.com> - 9.2.4-5
79e650
- fix testsuite to allow build against Perl 5.18
79e650
79e650
* Thu Jul 18 2013 Petr Pisar <ppisar@redhat.com> - 9.2.4-5
79e650
- Perl 5.18 rebuild
79e650
79e650
* Tue Jul 09 2013 Pavel Raiskup <praiskup@redhat.com> - 9.2.4-4
79e650
- do not use -b for manual page fixes
79e650
79e650
* Thu Jun 20 2013 Pavel Raiskup <praiskup@redhat.com> - 9.2.4-3
79e650
- fix README.rpm-dist for the bug (#969050)
79e650
- replace hard-wired path with %%{_datadir}
79e650
79e650
* Thu Jun 13 2013 Pavel Raiskup <praiskup@redhat.com> - 9.2.4-3
79e650
- add atomic operations support for aarch64 to preupgrade version also (#970661)
79e650
- apply the forgotten man-page-day patch (#948933)
79e650
79e650
* Thu Jun 13 2013 Jan Stanek <jstanek@redhat.com> - 9.2.4-3
79e650
- added patch for manual pages (#948933)
79e650
79e650
* Tue Jun 11 2013 Pavel Raiskup <praiskup@redhat.com> - 9.2.4-2
79e650
- postgresql-setup: don't create whole path to server's data to make sure that
79e650
  the parent directory has correct permissions (#972425)
79e650
79e650
* Wed Jun 05 2013 Pavel Raiskup <praiskup@redhat.com> - 9.2.4-2
79e650
- fix rpmlint warnings
79e650
- fix aarch64 build by defining missing atomic operations (#970661)
79e650
79e650
* Thu Apr  4 2013 Tom Lane <tgl@redhat.com> 9.2.4-1
79e650
- Update to PostgreSQL 9.2.4, for various fixes described at
79e650
  http://www.postgresql.org/docs/9.2/static/release-9-2-4.html
79e650
  including the fixes for CVE-2013-1899, CVE-2013-1900, CVE-2013-1901
79e650
Resolves: #929223, #929255, #929328
79e650
- fix build for aarch64 and ppc64p7
79e650
79e650
* Thu Feb  7 2013 Tom Lane <tgl@redhat.com> 9.2.3-1
79e650
- Update to PostgreSQL 9.2.3, for various fixes described at
79e650
  http://www.postgresql.org/docs/9.2/static/release-9-2-3.html
79e650
  including the fix for CVE-2013-0255
79e650
Resolves: #908722
79e650
- Make the package build with selinux option disabled
79e650
Resolves: #894367
79e650
- Include old version of pg_controldata in postgresql-upgrade subpackage
79e650
Related: #896161
79e650
79e650
* Thu Jan  3 2013 Tom Lane <tgl@redhat.com> 9.2.2-3
79e650
- Prevent creation of TCP socket during pg_upgrade regression test, so that
79e650
  concurrent RPM builds on the same machine won't fail
79e650
Resolves: #891531
79e650
- Make sure $PGDATA/pg_log/ gets the right SELinux label in postgresql-setup
79e650
Resolves: #891547
79e650
79e650
* Wed Dec 19 2012 Tom Lane <tgl@redhat.com> 9.2.2-2
79e650
- Make building of plpython3 dependent on Fedora version, per guidelines
79e650
Resolves: #888419
79e650
79e650
* Thu Dec  6 2012 Tom Lane <tgl@redhat.com> 9.2.2-1
79e650
- Update to PostgreSQL 9.2.2, for various fixes described at
79e650
  http://www.postgresql.org/docs/9.2/static/release-9-2-2.html
79e650
- Use new systemd install/uninstall trigger macros conditionally,
79e650
  so that package can still be installed on pre-F18 branches
79e650
79e650
* Mon Sep 24 2012 Tom Lane <tgl@redhat.com> 9.2.1-1
79e650
- Update to PostgreSQL 9.2.1, for various fixes described at
79e650
  http://www.postgresql.org/docs/9.2/static/release-9-2-1.html
79e650
  including a nasty data-loss bug
79e650
- Adopt new systemd macros for server package install/uninstall triggers
79e650
Resolves: #850277
79e650
79e650
* Mon Sep 10 2012 Tom Lane <tgl@redhat.com> 9.2.0-1
79e650
- Update to PostgreSQL 9.2.0 (major version bump);
79e650
  in-place upgrade support now works from 9.1.x as the previous version
79e650
- Add postgresql-plpython3 subpackage with PL/Python built against Python 3
79e650
79e650
* Tue Aug 28 2012 Tom Lane <tgl@redhat.com> 9.1.5-2
79e650
- Remove unnecessary ldconfig calls in pre/post triggers
79e650
Resolves: #849344
79e650
79e650
* Fri Aug 17 2012 Tom Lane <tgl@redhat.com> 9.1.5-1
79e650
- Update to PostgreSQL 9.1.5, for various fixes described at
79e650
  http://www.postgresql.org/docs/9.1/static/release-9-1-5.html
79e650
  including the fixes for CVE-2012-3488, CVE-2012-3489
79e650
79e650
* Mon Aug 13 2012 Tom Lane <tgl@redhat.com> 9.1.4-5
79e650
- Back-port upstream support for postmaster listening on multiple Unix sockets
79e650
- Configure postmaster to create sockets in both /var/run/postgresql and /tmp;
79e650
  the former is now the default place for libpq to contact the postmaster.
79e650
Resolves: #825448
79e650
- Annotate postgresql.conf about not setting port number there
79e650
- Minor specfile cleanup per suggestions from Tom Callaway
79e650
Related: #845110
79e650
79e650
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9.1.4-4
79e650
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
79e650
79e650
* Sat Jul 14 2012 Tom Lane <tgl@redhat.com> 9.1.4-3
79e650
- Update code to use oom_score_adj not oom_adj, thereby suppressing
79e650
  whining in the kernel log
79e650
- Add "legacy action" scripts to support "service postgresql initdb" and
79e650
  "service postgresql upgrade" in a now-approved fashion (requires a
79e650
  recent version of initscripts to work)
79e650
Resolves: #800416
79e650
79e650
* Mon Jun 11 2012 Petr Pisar <ppisar@redhat.com> - 9.1.4-2
79e650
- Perl 5.16 rebuild
79e650
79e650
* Mon Jun  4 2012 Tom Lane <tgl@redhat.com> 9.1.4-1
79e650
- Update to PostgreSQL 9.1.4, for various fixes described at
79e650
  http://www.postgresql.org/docs/9.1/static/release-9-1-4.html
79e650
  including the fixes for CVE-2012-2143, CVE-2012-2655
79e650
Resolves: #826606
79e650
- Update previous version (embedded in postgresql-upgrade) to 9.0.8
79e650
  because fix in whole-row variable dumping could be needed for upgrades
79e650
- Revert fix for bug #800416, per fedora-packaging discussion at
79e650
  http://lists.fedoraproject.org/pipermail/packaging/2012-April/008314.html
79e650
  "service postgresql initdb" is dead and will stay that way
79e650
79e650
* Sat Mar 17 2012 Tom Lane <tgl@redhat.com> 9.1.3-3
79e650
- Fix postgresql-setup to rely on systemd to parse the unit file, instead
79e650
  of using ad-hoc code
79e650
Resolves: #804290
79e650
79e650
* Tue Mar 13 2012 Tom Lane <tgl@redhat.com> 9.1.3-2
79e650
- Fix postgresql-setup to look for unit file in /usr/lib and to ignore
79e650
  comments therein
79e650
Resolves: #802835
79e650
- Resurrect a now-mostly-dummy postgresql init script, so that people can
79e650
  keep on using "service postgresql initdb" if they wish
79e650
Resolves: #800416
79e650
79e650
* Mon Feb 27 2012 Tom Lane <tgl@redhat.com> 9.1.3-1
79e650
- Update to PostgreSQL 9.1.3, for various fixes described at
79e650
  http://www.postgresql.org/docs/9.1/static/release-9-1-3.html
79e650
  including the fixes for CVE-2012-0866, CVE-2012-0867, CVE-2012-0868
79e650
Resolves: #797918
79e650
79e650
* Mon Jan  9 2012 Tom Lane <tgl@redhat.com> 9.1.2-2
79e650
- Make systemd unit file more user-friendly by resurrecting the old init
79e650
  script's checks for data directory presence and version match
79e650
Resolves: #771496
79e650
79e650
* Mon Dec  5 2011 Tom Lane <tgl@redhat.com> 9.1.2-1
79e650
- Update to PostgreSQL 9.1.2, for various fixes described at
79e650
  http://www.postgresql.org/docs/9.1/static/release-9-1-2.html
79e650
79e650
* Wed Nov 02 2011 Honza Horak <hhorak@redhat.com> 9.1.1-2
79e650
- Create a symlink of pg_regress instead of full copy;
79e650
  Don't strip symbols from regress libs
79e650
Related: #729012
79e650
79e650
* Mon Sep 26 2011 Tom Lane <tgl@redhat.com> 9.1.1-1
79e650
- Update to PostgreSQL 9.1.1, for various fixes described at
79e650
  http://www.postgresql.org/docs/9.1/static/release-9-1-1.html
79e650
- Enable build (but not test) of contrib/sepgsql
79e650
- Clean up specfile build options so that turning options off works again
79e650
79e650
* Mon Sep 12 2011 Tom Lane <tgl@redhat.com> 9.1.0-1
79e650
- Update to PostgreSQL 9.1.0 (major version bump);
79e650
  in-place upgrade support now works from 9.0.x as the previous version
79e650
79e650
* Wed Jul 27 2011 Tom Lane <tgl@redhat.com> 9.0.4-8
79e650
- Convert to systemd startup support
79e650
Resolves: #696427
79e650
79e650
* Thu Jul 21 2011 Petr Sabata <contyk@redhat.com> - 9.0.4-7
79e650
- Perl mass rebuild
79e650
79e650
* Wed Jul 20 2011 Petr Sabata <contyk@redhat.com> - 9.0.4-6
79e650
- Perl mass rebuild
79e650
79e650
* Wed Jul  6 2011 Tom Lane <tgl@redhat.com> 9.0.4-5
79e650
- Remove erroneously-included Default-Start line from LSB init block
79e650
Related: #717024
79e650
79e650
* Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> 9.0.4-4
79e650
- Perl mass rebuild
79e650
- incorporate upstream patch to make it build with Perl 5.14
79e650
79e650
* Fri Jun 10 2011 Tom Lane <tgl@redhat.com> 9.0.4-3
79e650
- Work around gcc 4.6.0 bug (temporary backport from next upstream release)
79e650
79e650
* Tue May 10 2011 Tom Lane <tgl@redhat.com> 9.0.4-2
79e650
- Add LSB init block to initscript, to ensure sane ordering at system boot
79e650
Resolves: #703215
79e650
79e650
* Mon Apr 18 2011 Tom Lane <tgl@redhat.com> 9.0.4-1
79e650
- Update to PostgreSQL 9.0.4, for various fixes described at
79e650
  http://www.postgresql.org/docs/9.0/static/release-9-0-4.html
79e650
- Add %%{?_isa} to cross-subpackage Requires, per latest packaging guidelines
79e650
79e650
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9.0.3-3
79e650
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
79e650
79e650
* Thu Feb  3 2011 Tom Lane <tgl@redhat.com> 9.0.3-2
79e650
- Remove filter-requires-perl-Pg.sh, which doesn't seem to be needed now that
79e650
  PyGreSQL has been split out; and our use of it isn't compatible with rpm 4.9
79e650
  anyway
79e650
79e650
* Tue Feb  1 2011 Tom Lane <tgl@redhat.com> 9.0.3-1
79e650
- Update to PostgreSQL 9.0.3, for various fixes described at
79e650
  http://www.postgresql.org/docs/9.0/static/release-9-0-3.html
79e650
  including the fix for CVE-2010-4015
79e650
Resolves: #674296
79e650
79e650
* Tue Dec 28 2010 Tom Lane <tgl@redhat.com> 9.0.2-1
79e650
- Update to PostgreSQL 9.0.2 (major version bump)
79e650
- Create infrastructure for in-place database upgrade using pg_upgrade
79e650
Resolves: #398221
79e650
79e650
* Thu Dec 16 2010 Tom Lane <tgl@redhat.com> 8.4.6-1
79e650
- Update to PostgreSQL 8.4.6, for various fixes described at
79e650
  http://www.postgresql.org/docs/8.4/static/release-8-4-6.html
79e650
- Ensure we don't package any .gitignore files from the source tarball
79e650
Related: #642210
79e650
79e650
* Tue Oct  5 2010 Tom Lane <tgl@redhat.com> 8.4.5-1
79e650
- Update to PostgreSQL 8.4.5, for various fixes described at
79e650
  http://www.postgresql.org/docs/8.4/static/release-8-4-5.html
79e650
  including the fix for CVE-2010-3433
79e650
Related: #639371
79e650
- Add -p "$pidfile" to initscript's status call to improve corner cases.
79e650
Related: #561010
79e650
79e650
* Sat Jul 31 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 8.4.4-3
79e650
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
79e650
- Duplicate COPYRIGHT in -libs subpackage, per revised packaging guidelines
79e650
79e650
* Wed Jun 02 2010 Marcela Maslanova <mmaslano@redhat.com> - 8.4.4-2
79e650
- Mass rebuild with perl-5.12.0
79e650
79e650
* Mon May 17 2010 Tom Lane <tgl@redhat.com> 8.4.4-1
79e650
- Update to PostgreSQL 8.4.4, for various fixes described at
79e650
  http://www.postgresql.org/docs/8.4/static/release-8-4-4.html
79e650
  including fixes for CVE-2010-1169 and CVE-2010-1170
79e650
Resolves: #593032
79e650
79e650
* Sun Mar 14 2010 Tom Lane <tgl@redhat.com> 8.4.3-1
79e650
- Update to PostgreSQL 8.4.3, for various fixes described at
79e650
  http://www.postgresql.org/docs/8.4/static/release-8-4-3.html
79e650
79e650
* Mon Feb 22 2010 Tom Lane <tgl@redhat.com> 8.4.2-8
79e650
- Bring init script into some modicum of compliance with Fedora/LSB standards
79e650
Resolves: #201043
79e650
79e650
* Thu Feb 18 2010 Tom "spot" Callaway <tcallawa@redhat.com> 8.4.2-7
79e650
- adjust license tag to reflect OSI decision
79e650
79e650
* Tue Jan 26 2010 Tom Lane <tgl@redhat.com> 8.4.2-6
79e650
- Emit explicit error message if user tries to build RPM as root
79e650
Related: #558921
79e650
79e650
* Wed Jan 20 2010 Tom Lane <tgl@redhat.com> 8.4.2-5
79e650
- Latest version of systemtap needs the probes.o file to be built again
79e650
Resolves: #557266
79e650
- Provide script and instructions for building the documentation PDF
79e650
79e650
* Mon Jan 11 2010 Tom Lane <tgl@redhat.com> 8.4.2-4
79e650
- Arrange for the postmaster, but not any of its child processes, to be run
79e650
  with oom_adj -17.  This compensates for the OOM killer not being smart about
79e650
  accounting for shared memory usage.
79e650
79e650
* Sat Jan  9 2010 Tom Lane <tgl@redhat.com> 8.4.2-3
79e650
- Remove the postgresql-python and postgresql-tcl subpackages.  These files
79e650
  are now broken out as their own packages (PyGreSQL and tcl-pgtcl,
79e650
  respectively), to reflect the now longstanding split of upstream projects.
79e650
Related: #452306, #452321
79e650
79e650
* Tue Jan  5 2010 Tom Lane <tgl@redhat.com> 8.4.2-2
79e650
- Remove static libraries (.a files) from package, per packaging guidelines
79e650
- Change %%define to %%global, per packaging guidelines
79e650
79e650
* Wed Dec 16 2009 Tom Lane <tgl@redhat.com> 8.4.2-1
79e650
- Update to PostgreSQL 8.4.2, for various fixes described at
79e650
  http://www.postgresql.org/docs/8.4/static/release-8-4-2.html
79e650
  including two security issues
79e650
Related: #546321
79e650
Related: #547662
79e650
- Use -N not the obsolete -n in useradd call
79e650
Resolves: #495727
79e650
- Clean up specfile to eliminate rpmlint gripes, mainly by removing
79e650
  no-longer-needed provisions for superseding rh-postgresql
79e650
79e650
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 8.4.1-5
79e650
- rebuild against perl 5.10.1
79e650
79e650
* Thu Oct 15 2009 Tom Lane <tgl@redhat.com> 8.4.1-4
79e650
- add sparc/sparc64 to multilib header support
79e650
79e650
* Mon Sep 21 2009 Tom Lane <tgl@redhat.com> 8.4.1-3
79e650
- Ensure pgstartup.log gets the right ownership/permissions during initdb
79e650
Resolves: #498959
79e650
79e650
* Wed Sep 16 2009 Tomas Mraz <tmraz@redhat.com> - 8.4.1-2
79e650
- Use password-auth common PAM configuration instead of system-auth
79e650
79e650
* Wed Sep  9 2009 Tom Lane <tgl@redhat.com> 8.4.1-1
79e650
- Update to PostgreSQL 8.4.1, for various fixes described at
79e650
  http://www.postgresql.org/docs/8.4/static/release-8-4-1.html
79e650
  including two security issues
79e650
Related: #522085
79e650
Related: #522092
79e650
79e650
* Tue Sep 01 2009 Karsten Hopp <karsten@redhat.com> 8.4.0-3.2
79e650
- bump release and build again with the correct libssl
79e650
79e650
* Tue Sep 01 2009 Karsten Hopp <karsten@redhat.com> 8.4.0-3.1
79e650
- disable dtrace on s390x as a workaround until #520469 has been fixed
79e650
79e650
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 8.4.0-3
79e650
- rebuilt with new openssl
79e650
79e650
* Thu Aug 20 2009 Tom "spot" Callaway <tcallawa@redhat.com> 8.4.0-2
79e650
- update License tag to MIT (PostgreSQL calls it "BSD", but it is MIT)
79e650
- Note: This changes nothing from a license compatibility perspective.
79e650
79e650
* Mon Aug 17 2009 Tom Lane <tgl@redhat.com> 8.4.0-1
79e650
- Update to PostgreSQL 8.4.0.  See release notes at
79e650
  http://www.postgresql.org/docs/8.4/static/release-8-4.html
79e650
79e650
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.3.7-2
79e650
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
79e650
79e650
* Sat Mar 21 2009 Tom Lane <tgl@redhat.com> 8.3.7-1
79e650
- Update to PostgreSQL 8.3.7, for various fixes described at
79e650
  http://www.postgresql.org/docs/8.3/static/release-8-3-7.html
79e650
  notably the fix for CVE-2009-0922
79e650
79e650
* Tue Mar 10 2009 Tom Lane <tgl@redhat.com> 8.3.6-4
79e650
- Prevent dependent packages from needing to include sys/sdt.h
79e650
  (unintended side effect of previous patch)
79e650
- Use -O1 on alpha, per report from Oliver Falk; -O2 tickles gcc bugs
79e650
79e650
* Sun Mar  8 2009 Tom Lane <tgl@redhat.com> 8.3.6-3
79e650
- Enable tracing via systemtap
79e650
Resolves: #488941
79e650
79e650
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.3.6-2
79e650
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
79e650
79e650
* Sat Feb  7 2009 Tom Lane <tgl@redhat.com> 8.3.6-1
79e650
- Update to PostgreSQL 8.3.6, for various fixes described at
79e650
  http://www.postgresql.org/docs/8.3/static/release-8-3-6.html
79e650
79e650
* Wed Jan 21 2009 Dennis Gilmore <dennis@ausil.us> 8.3.5-4
79e650
- use -O1 on sparc64
79e650
79e650
* Sat Jan 17 2009 Tomas Mraz <tmraz@redhat.com> - 8.3.5-3
79e650
- rebuild with new openssl
79e650
79e650
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 8.3.5-2
79e650
- Rebuild for Python 2.6
79e650
79e650
* Sun Nov  2 2008 Tom Lane <tgl@redhat.com> 8.3.5-1
79e650
- Update to PostgreSQL 8.3.5.
79e650
- Improve display from init script's initdb action, per Michael Schwendt
79e650
79e650
* Thu Sep 25 2008 Tom Lane <tgl@redhat.com> 8.3.4-1
79e650
- Update to PostgreSQL 8.3.4.
79e650
79e650
* Mon Jul 28 2008 Tom Lane <tgl@redhat.com> 8.3.3-3
79e650
- Fix build failure caused by new default patch fuzz = 0 policy in rawhide.
79e650
79e650
* Fri Jun 20 2008 Tom Lane <tgl@redhat.com> 8.3.3-2
79e650
- Install Pgtcl in /usr/lib/tcl$TCL_VERSION, not directly in /usr/lib.
79e650
  Needed because tcl 8.5 no longer puts /usr/lib into its package search path.
79e650
  NOTE: do not back-port this change into branches using pre-8.5 tcl, because
79e650
  /usr/lib/tcl8.4 had been a symlink to /usr/share/tcl8.4, and /usr/share
79e650
  is exactly where we must not put Pgtcl.
79e650
Resolves: #228263
79e650
79e650
* Wed Jun 11 2008 Tom Lane <tgl@redhat.com> 8.3.3-1
79e650
- Update to PostgreSQL 8.3.3.
79e650
- Remove postgresql-prefer-ncurses.patch, no longer needed in recent
79e650
  Fedora releases because libtermcap is gone.
79e650
79e650
* Sat May 17 2008 Tom Lane <tgl@redhat.com> 8.3.1-5
79e650
- rebuild because of buildsystem hiccup
79e650
79e650
* Sat May 17 2008 Tom Lane <tgl@redhat.com> 8.3.1-4
79e650
- Enable LDAP support
79e650
Resolves: #445315
79e650
- Use -Wl,--as-needed to suppress bogus dependencies for libraries that
79e650
  are really only needed by some of the subpackages
79e650
79e650
* Mon Apr 28 2008 Tom Lane <tgl@redhat.com> 8.3.1-3
79e650
- Fix build breakage on PPC due to incorrect configure test
79e650
Related: #444317
79e650
79e650
* Sat Apr 26 2008 Tom Lane <tgl@redhat.com> 8.3.1-2
79e650
- Clean up cross-subpackage Requires: to ensure that updating any one
79e650
  subpackage brings in the matching versions of others.
79e650
Resolves: #444271
79e650
79e650
* Tue Mar 25 2008 Tom Lane <tgl@redhat.com> 8.3.1-1
79e650
- Update to PostgreSQL 8.3.1.
79e650
79e650
* Tue Mar 18 2008 Tom "spot" Callaway <tcallawa@redhat.com> 8.3.0-3
79e650
- add Requires for versioned perl (libperl.so)
79e650
79e650
* Wed Feb  6 2008 Tom Lane <tgl@redhat.com> 8.3.0-2
79e650
- Enable the new GSSAPI support in 8.3.0.
79e650
79e650
* Mon Feb  4 2008 Tom Lane <tgl@redhat.com> 8.3.0-1
79e650
- Update to PostgreSQL 8.3.0.
79e650
79e650
* Fri Jan 18 2008 Tom Lane <tgl@redhat.com> 8.3RC2-1
79e650
- Update to PostgreSQL 8.3RC2 (not waiting for 8.3.0 because Fedora 9 alpha
79e650
  should be 8.3-based not 8.2-based).
79e650
- Update to pgtcl 1.6.2
79e650
79e650
* Mon Jan  7 2008 Tom Lane <tgl@redhat.com> 8.2.6-1
79e650
- Update to PostgreSQL 8.2.6 to fix CVE-2007-4769, CVE-2007-4772,
79e650
  CVE-2007-6067, CVE-2007-6600, CVE-2007-6601
79e650
- Make initscript and pam config files be installed unconditionally;
79e650
  seems new buildroots don't necessarily have those directories in place
79e650
79e650
* Wed Dec  5 2007 Tom Lane <tgl@redhat.com> 8.2.5-2
79e650
- Rebuild for new openssl
79e650
79e650
* Thu Sep 20 2007 Tom Lane <tgl@redhat.com> 8.2.5-1
79e650
- Update to PostgreSQL 8.2.5 and pgtcl 1.6.0
79e650
79e650
* Tue Sep  4 2007 Tom Lane <tgl@redhat.com> 8.2.4-6
79e650
- Fix multilib problem for /usr/include/ecpg_config.h (which is new in 8.2.x)
79e650
79e650
* Sat Aug 25 2007 Tom Lane <tgl@redhat.com> 8.2.4-5
79e650
- Use nicer solution for tzdata file substitution: upstream discussion
79e650
  concluded that hardwiring the path was better than a symlink after all.
79e650
79e650
* Wed Aug 22 2007 Tom Lane <tgl@redhat.com> 8.2.4-4
79e650
- Use tzdata package's data files instead of private copy, so that
79e650
  postgresql-server need not be turned for routine timezone updates
79e650
- Don't remove postgres user/group during RPM uninstall, per Fedora
79e650
  packaging guidelines
79e650
- Seems we need an explicit BuildRequires on gawk now
79e650
- Rebuild to fix Fedora toolchain issues
79e650
79e650
* Sun Aug 12 2007 Tom Lane <tgl@redhat.com> 8.2.4-3
79e650
- Recent perl changes in rawhide mean we need a more specific BuildRequires
79e650
79e650
* Wed Jun 20 2007 Tom Lane <tgl@redhat.com> 8.2.4-2
79e650
- Fix oversight in postgresql-test makefile: pg_regress isn't a shell script
79e650
  anymore.  Per upstream bug 3398.
79e650
79e650
* Tue Apr 24 2007 Tom Lane <tgl@redhat.com> 8.2.4-1
79e650
- Update to PostgreSQL 8.2.4 for CVE-2007-2138, data loss bugs
79e650
Resolves: #237682
79e650
79e650
* Wed Feb 14 2007 Karsten Hopp <karsten@redhat.com> 8.2.3-2
79e650
- rebuild with tcl-8.4
79e650
79e650
* Wed Feb  7 2007 Tom Lane <tgl@redhat.com> 8.2.3-1
79e650
- Update to PostgreSQL 8.2.3 due to regression induced by security fix
79e650
Resolves: #227522
79e650
79e650
* Sun Feb  4 2007 Tom Lane <tgl@redhat.com> 8.2.2-1
79e650
- Update to PostgreSQL 8.2.2 to fix CVE-2007-0555, CVE-2007-0556
79e650
Related: #225496
79e650
79e650
* Fri Jan 12 2007 Tom Lane <tgl@redhat.com> 8.2.1-2
79e650
- Split -pl subpackage into three new packages to reduce dependencies
79e650
  and track upstream project's packaging.
79e650
79e650
* Wed Jan 10 2007 Tom Lane <tgl@redhat.com> 8.2.1-1
79e650
- Update to PostgreSQL 8.2.1
79e650
- Update to pgtcl 1.5.3
79e650
- Be sure we link to libncurses, not libtermcap which is disappearing in Fedora
79e650
79e650
* Thu Dec  7 2006 Jeremy Katz <katzj@redhat.com> - 8.2.0-2
79e650
- rebuild for python 2.5
79e650
79e650
* Mon Dec  4 2006 Tom Lane <tgl@redhat.com> 8.2.0-1
79e650
- Update to PostgreSQL 8.2.0
79e650
- Update to PyGreSQL 3.8.1
79e650
- Fix chcon arguments in test/regress/Makefile
79e650
Related: #201035
79e650
- Adjust init script to not fool /etc/rc.d/rc
79e650
Resolves: #161470
79e650
- Change init script to not do initdb automatically, but require
79e650
  manual "service postgresql initdb" for safety.  Per upstream discussions.
79e650
79e650
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 8.1.4-1.1
79e650
- rebuild
79e650
79e650
* Mon May 22 2006 Tom Lane <tgl@redhat.com> 8.1.4-1
79e650
- Update to PostgreSQL 8.1.4 (includes fixes for CVE-2006-2313, CVE-2006-2314;
79e650
  see bug #192173)
79e650
- Update to PyGreSQL 3.8
79e650
- Suppress noise from chcon, per bug #187744
79e650
79e650
* Mon Mar 27 2006 Tom Lane <tgl@redhat.com> 8.1.3-2
79e650
- Remove JDBC from this build; we will package it as separate SRPM
79e650
79e650
* Mon Feb 13 2006 Jesse Keating <jkeating@redhat.com> - 8.1.3-1.1
79e650
- rebump for build order issues during double-long bump
79e650
79e650
* Mon Feb 13 2006 Tom Lane <tgl@redhat.com> 8.1.3-1
79e650
- Update to PostgreSQL 8.1.3 (fixes bug #180617, CVE-2006-0553)
79e650
- Update to jdbc driver build 405
79e650
- Modify multilib header hack to not break non-RH arches, per bug #177564
79e650
79e650
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 8.1.2-1.1
79e650
- rebuilt for new gcc4.1 snapshot and glibc changes
79e650
79e650
* Mon Jan  9 2006 Tom Lane <tgl@redhat.com> 8.1.2-1
79e650
- Update to PostgreSQL 8.1.2
79e650
- Repair extraneous quote in pgtcl configure script ... odd that bash
79e650
  didn't use to spit up on this.
79e650
79e650
* Thu Dec 15 2005 Tom Lane <tgl@redhat.com> 8.1.1-3
79e650
- fix pg_config.h for 64-bit and ppc platforms
79e650
- update Makefile.regress (needs to --load-language=plpgsql)
79e650
79e650
* Wed Dec 14 2005 Tom Lane <tgl@redhat.com> 8.1.1-2
79e650
- oops, looks like we want uname -i not uname -m
79e650
79e650
* Wed Dec 14 2005 Tom Lane <tgl@redhat.com> 8.1.1-1
79e650
- Update to PostgreSQL 8.1.1
79e650
- Make pg_config.h architecture-independent for multilib installs;
79e650
  put the original pg_config.h into pg_config_$ARCH.h
79e650
79e650
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
79e650
- rebuilt
79e650
79e650
* Sat Nov 12 2005 Tom Lane <tgl@redhat.com> 8.1.0-4
79e650
- Update included PDF-format manual to 8.1.
79e650
79e650
* Wed Nov  9 2005 Tom Lane <tgl@redhat.com> 8.1.0-3
79e650
- Rebuild due to openssl library update.
79e650
79e650
* Wed Nov  9 2005 Tom Lane <tgl@redhat.com> 8.1.0-2
79e650
- Rebuild due to openssl library update.
79e650
79e650
* Mon Nov  7 2005 Tom Lane <tgl@redhat.com> 8.1.0-1
79e650
- Update to PostgreSQL 8.1.0, PyGreSQL 3.7, and jdbc driver build 404
79e650
- Fix PAM config file (must have account not only auth) (bug #167040)
79e650
- Add BuildPrereq: libxslt-devel (bug #170141)
79e650
- Sync with PGDG SRPM as much as feasible
79e650
79e650
* Fri Oct 14 2005 Tomas Mraz <tmraz@redhat.com>
79e650
- use include instead of pam_stack in pam config
79e650
79e650
* Tue Oct  4 2005 Tom Lane <tgl@redhat.com> 8.0.4-2
79e650
- Add rpath to plperl.so (bug #162198)
79e650
79e650
* Tue Oct  4 2005 Tom Lane <tgl@redhat.com> 8.0.4-1
79e650
- Update to PostgreSQL 8.0.4, PyGreSQL 3.6.2, and jdbc driver build 312
79e650
- Adjust pgtcl link command to ensure it binds to correct libpq (bug #166665)
79e650
- Remove obsolete Conflicts: against other python versions (bug #166754)
79e650
- Add /etc/pam.d/postgresql (bug #167040)
79e650
- Include contrib/xml2 in build (bug #167492)
79e650
79e650
* Tue May 10 2005 Tom Lane <tgl@redhat.com> 8.0.3-1
79e650
- Update to PostgreSQL 8.0.3 (includes security and data-loss fixes; see
79e650
  bz#156727, CAN-2005-1409, CAN-2005-1410)
79e650
- Update to jdbc driver build 311
79e650
- Recreate postgres user after superseding an rh-postgresql install (bug #151911)
79e650
- Ensure postgresql server is restarted if running during an upgrade
79e650
79e650
* Thu Apr 14 2005 Florian La Roche <laroche@redhat.com> 8.0.2-2
79e650
- rebuild for postgresql-tcl
79e650
79e650
* Tue Apr 12 2005 Tom Lane <tgl@redhat.com> 8.0.2-1
79e650
- Update to PostgreSQL 8.0.2.
79e650
79e650
* Fri Mar 11 2005 Tom Lane <tgl@redhat.com> 8.0.1-5
79e650
- Remove unwanted rpath specification from pgtcl (bz#150649)
79e650
79e650
* Wed Mar  2 2005 Tom Lane <tgl@redhat.com> 8.0.1-4
79e650
- Attach Obsoletes: declarations for rh-postgresql to subpackages (bz#144435)
79e650
- Make Requires: and Prereq: package linkages specify release not only
79e650
  version, as per recent mailing list discussion.
79e650
79e650
* Tue Mar  1 2005 Tomas Mraz <tmraz@redhat.com> 8.0.1-3
79e650
- rebuild with openssl-0.9.7e
79e650
79e650
* Mon Feb 21 2005 Tom Lane <tgl@redhat.com> 8.0.1-2
79e650
- Repair improper error message in init script when PGVERSION doesn't match.
79e650
- Arrange for auto update of version embedded in init script.
79e650
79e650
* Sun Jan 30 2005 Tom Lane <tgl@redhat.com> 8.0.1-1
79e650
- Update to PostgreSQL 8.0.1.
79e650
- Add versionless symlinks to jar files (bz#145744)
79e650
79e650
* Wed Jan 19 2005 Tom Lane <tgl@redhat.com> 8.0.0-1
79e650
- Update to PostgreSQL 8.0.0, PyGreSQL 3.6.1, pgtcl 1.5.2,
79e650
  and jdbc driver build 309.
79e650
- Extensive cleanout of obsolete cruft in patch set.
79e650
- Regression tests are run during RPM build (NOTE: cannot build as root when
79e650
  this is enabled).
79e650
- Postmaster stderr goes someplace useful, not /dev/null (bz#76503, #103767)
79e650
- Make init script return a useful exit status (bz#80782)
79e650
- Move docs' tutorial directory to %%{_libdir}/pgsql/tutorial, since it
79e650
  includes .so files that surely do not belong under /usr/share.
79e650
- Remove useless .sgml files from docs RPM (bz#134450)
79e650
- Put regression tests under /usr/lib64 on 64-bit archs, since .so files
79e650
  are not architecture-independent.
79e650
79e650
* Wed Jan 12 2005 Tim Waugh <twaugh@redhat.com> 7.4.6-5
79e650
- Rebuilt for new readline.
79e650
79e650
* Tue Jan 11 2005 Dan Walsh <dwalsh@redhat.com> 7.4.6-4
79e650
- Add restorecon to postgresql.init in order to restore database to correct
79e650
- SELinux context.
79e650
79e650
* Thu Dec 16 2004 Tom Lane <tgl@redhat.com> 7.4.6-3
79e650
- Update to PyGreSQL 3.6 (to fix bug #142711)
79e650
- Adjust a few file permissions (bug #142431)
79e650
- Assign %%{_libdir}/pgsql to base package instead of -server (bug #74003)
79e650
79e650
* Mon Nov 15 2004 Tom Lane <tgl@redhat.com> 7.4.6-2
79e650
- Rebuild so python components play with python 2.4 (bug 139160)
79e650
79e650
* Sat Oct 23 2004 Tom Lane <tgl@redhat.com> 7.4.6-1
79e650
- Update to PostgreSQL 7.4.6 (bugs 136947, 136949)
79e650
- Make init script more paranoid about mkdir step of initializing a new
79e650
  database (bugs 136947, 136949)
79e650
79e650
* Wed Oct 20 2004 Tom Lane <tgl@redhat.com> 7.4.5-4
79e650
- Remove contrib/oidjoins stuff from installed fileset; it's of no use
79e650
  to ordinary users and has a security issue (bugs 136300, 136301)
79e650
- adjust chkconfig priority (bug 128852)
79e650
79e650
* Tue Oct 05 2004 Tom Lane <tgl@redhat.com> 7.4.5-3
79e650
- Solve the stale lockfile problem (bugs 71295, 96981, 134090)
79e650
- Use runuser instead of su for SELinux (bug 134588)
79e650
79e650
* Mon Aug 30 2004 Tom Lane <tgl@redhat.com> 7.4.5-2
79e650
- Update to PyGreSQL 3.5.
79e650
79e650
* Tue Aug 24 2004 Tom Lane <tgl@redhat.com> 7.4.5-1
79e650
- Update to PostgreSQL 7.4.5.
79e650
- Update JDBC jars to driver build 215.
79e650
- Add Obsoletes: entries for rh-postgresql packages, per bug 129278.
79e650
79e650
* Sat Jul 10 2004 Tom Lane <tgl@redhat.com> 7.4.3-3
79e650
- Undo ill-considered chkconfig change that causes server to start
79e650
  immediately upon install.  Mea culpa (bug 127552).
79e650
79e650
* Sat Jul 03 2004 Tom Lane <tgl@redhat.com> 7.4.3-2
79e650
- Update JDBC jars to driver build 214.
79e650
79e650
* Wed Jun 23 2004 Tom Lane <tgl@redhat.com> 7.4.3-1
79e650
- Update to PostgreSQL 7.4.3.
79e650
- Uninstalling server RPM stops postmaster first, per bug 114846.
79e650
- Fix su commands to not assume PG user's shell is sh-like, per bug 124024.
79e650
- Fix permissions on postgresql-python doc files, per bug 124822.
79e650
- Minor postgresql.init improvements.
79e650
79e650
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
79e650
- rebuilt
79e650
79e650
* Wed Mar 10 2004 Tom Lane <tgl@redhat.com> 7.4.2-1
79e650
- Update to PostgreSQL 7.4.2; sync with community SRPM as much as possible.
79e650
- Support PGOPTS from /etc/sysconfig/pgsql, per bug 111504.
79e650
- Fix permissions on /etc/sysconfig/pgsql, per bug 115278.
79e650
- SELinux patch in init file: always su 
79e650
- Rebuilt
79e650
79e650
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
79e650
- rebuilt
79e650
79e650
* Wed Feb 25 2004 Tom Lane <tgl@redhat.com>
79e650
- Update to PostgreSQL 7.4.1.
79e650
- Rebuilt
79e650
79e650
* Tue Feb 24 2004 Tom Lane <tgl@redhat.com>
79e650
- Fix chown syntax in postgresql.init also.
79e650
- Rebuilt
79e650
79e650
* Mon Feb 23 2004 Tim Waugh <twaugh@redhat.com>
79e650
- Use ':' instead of '.' as separator for chown.
79e650
79e650
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
79e650
- rebuilt
79e650
79e650
* Fri Jan 9 2004 Lamar Owen <lowen@pari.edu>
79e650
- 7.4.1-1PGDG
79e650
- Merge Sander Steffann's changes up to 7.4-0.5PGDG
79e650
- Proper 7.4.1 JDBC jars this time.
79e650
- Patch for no pl/python from Alvaro
79e650
79e650
* Fri Dec 05 2003 David Jee <djee@redhat.com> 7.4-5
79e650
- Rebuild for Perl 5.8.2.
79e650
79e650
* Mon Dec 01 2003 David Jee <djee@redhat.com> 7.4-4
79e650
- Add PyGreSQL patch for deprecated column pg_type.typprtlen [Bug #111263]
79e650
- Add headers patch which moves ecpg headers to /usr/include/ecpg
79e650
  [Bug #111195]
79e650
79e650
* Fri Nov 28 2003 David Jee <djee@redhat.com> 7.4-3
79e650
- uncomment buildrequires tcl-devel
79e650
79e650
* Fri Nov 28 2003 David Jee <djee@redhat.com> 7.4-2
79e650
- rebuild
79e650
79e650
* Mon Nov 24 2003 David Jee <djee@redhat.com> 7.4-1
79e650
- initial Red Hat build
79e650
- move jars to /usr/share/java
79e650
- fix rpm-multilib patch to use sysconfig
79e650
79e650
* Fri Nov 21 2003 Lamar Owen <lowen@pari.edu> <lamar.owen@wgcr.org>
79e650
- 7.4-0.1PGDG
79e650
- Development JDBC jars in addition to the 7.3 jars; will replace the
79e650
- 7.3 jars once 7.4 official jars are released.
79e650
- Changed to use the bzip2 source to save a little size.
79e650
- Removed some commented out portions of the specfile.
79e650
- Removed the 7.3.4 PDF docs.  Will replace with 7.4 PDF's once they
79e650
- are ready.
79e650
79e650
* Tue Nov 18 2003 Kaj J. Niemi <kajtzu@fi.basen.net> 7.4-0.1
79e650
- 7.4
79e650
- Fixed Patch #1 (now rpm-pgsql-7.4.patch)
79e650
- Fixed Patch #2 (now rpm-multilib-7.4.patch):
79e650
- Patch #4 is unnecessary (upstream)
79e650
- Fixed Patch #6 (now postgresql-7.4-src-tutorial.patch)
79e650
- Added Patch #8 (postgresql-7.4-com_err.patch) as com_err()
79e650
  is provided by e2fsprogs and CPPFLAGS gets lost somewhere
79e650
  inside configure (bad macro?)
79e650
- No 7.4 PDF docs available yet (Source #17)
79e650
- PyGreSQL is separated from the upstream distribution but
79e650
  we include it as usual (Source #18)
79e650
- Default to compiling libpq and ECPG as fully thread-safe
79e650
79e650
- 7.4 Origin.  See previous spec files for previous history. Adapted
79e650
- from Red Hat and PGDG's 7.3.4 RPM, directly descended from 
79e650
- postgresql-7.3.4-2 as shipped in Fedora Core 1.