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