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