699f87
# This is the PostgreSQL Global Development Group Official RPMset spec file,
699f87
# or a derivative thereof.
699f87
# Copyright 2003-2009 Lamar Owen <lowen@pari.edu> <lamar.owen@wgcr.org>
699f87
# and others listed.
699f87
699f87
# Major Contributors:
699f87
# ---------------
699f87
# Lamar Owen
699f87
# Trond Eivind Glomsrd <teg@redhat.com>
699f87
# Thomas Lockhart
699f87
# Reinhard Max
699f87
# Karl DeBisschop
699f87
# Peter Eisentraut
699f87
# Joe Conway
699f87
# Andrew Overholt
699f87
# David Jee
699f87
# Kaj J. Niemi
699f87
# Sander Steffann
699f87
# Tom Lane
699f87
# and others in the Changelog....
699f87
699f87
# This spec file and ancillary files are licensed in accordance with
699f87
# The PostgreSQL license.
699f87
699f87
# In this file you can find the default build package list macros.
699f87
# These can be overridden by defining on the rpm command line:
699f87
# rpm --define 'packagename 1' .... to force the package to build.
699f87
# rpm --define 'packagename 0' .... to force the package NOT to build.
699f87
# The base package, the libs package, the devel package, and the server package
699f87
# always get built.
699f87
699f87
%{!?beta:%global beta 0}
699f87
%{?beta:%global __os_install_post /usr/lib/rpm/brp-compress}
699f87
699f87
%{!?test:%global test 1}
699f87
%{!?upgrade:%global upgrade 1}
699f87
%{!?plpython:%global plpython 1}
699f87
%if 0%{?fedora} > 12
699f87
%{!?plpython3:%global plpython3 1}
699f87
%else
699f87
%{!?plpython3:%global plpython3 0}
699f87
%endif
699f87
%{!?pltcl:%global pltcl 1}
699f87
%{!?plperl:%global plperl 1}
699f87
%{!?ssl:%global ssl 1}
699f87
%{!?kerberos:%global kerberos 1}
699f87
%{!?ldap:%global ldap 1}
699f87
%{!?nls:%global nls 1}
699f87
%{!?uuid:%global uuid 1}
699f87
%{!?xml:%global xml 1}
699f87
%{!?pam:%global pam 1}
699f87
%{!?sdt:%global sdt 1}
699f87
%{!?selinux:%global selinux 1}
699f87
%{!?runselftest:%global runselftest 1}
699f87
699f87
# By default, patch(1) creates backup files when chunks apply with offsets.
699f87
# Turn that off to ensure such files don't get included in RPMs.
699f87
%global _default_patch_flags --no-backup-if-mismatch
699f87
699f87
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
699f87
699f87
Summary: PostgreSQL client programs
699f87
Name: postgresql
699f87
%global majorversion 9.2
699f87
Version: 9.2.24
7eafc1
Release: 2%{?dist}
699f87
699f87
# The PostgreSQL license is very similar to other MIT licenses, but the OSI
699f87
# recognizes it as an independent license, so we do as well.
699f87
License: PostgreSQL
699f87
Group: Applications/Databases
699f87
Url: http://www.postgresql.org/
699f87
699f87
# This number must be NVR-greater than any PG version shipped in F15:
699f87
%global first_systemd_version 0:9.0.99
699f87
699f87
# This SRPM includes a copy of the previous major release, which is needed for
699f87
# in-place upgrade of an old database.  In most cases it will not be critical
699f87
# that this be kept up with the latest minor release of the previous series;
699f87
# but update when bugs affecting pg_dump output are fixed.
699f87
%global prevversion 8.4.22
699f87
%global prevmajorversion 8.4
699f87
699f87
Source0: https://ftp.postgresql.org/pub/source/v%{version}/postgresql-%{version}.tar.bz2
699f87
# The PDF file is generated by generate-pdf.sh, which see for comments
699f87
Source1: postgresql-%{version}-US.pdf
699f87
# generate-pdf.sh is not used during RPM build, but include for documentation
699f87
Source2: generate-pdf.sh
699f87
Source3: ftp://ftp.postgresql.org/pub/source/v%{prevversion}/postgresql-%{prevversion}.tar.bz2
699f87
Source4: postgresql-check-db-dir
699f87
Source5: Makefile.regress
699f87
Source6: pg_config.h
699f87
Source7: ecpg_config.h
699f87
Source8: README.rpm-dist
699f87
Source9: postgresql-setup
699f87
Source10: postgresql.service
699f87
Source11: initdb.sh
699f87
Source12: upgrade.sh
699f87
Source13: postgresql.tmpfiles.d
699f87
Source14: postgresql.pam
699f87
Source15: postgresql-bashprofile
699f87
699f87
# Comments for these patches are in the patch files.
699f87
Patch1: rpm-pgsql.patch
699f87
Patch2: postgresql-logging.patch
699f87
Patch3: postgresql-perl-rpath.patch
699f87
Patch4: postgresql-config-comment.patch
699f87
Patch5: postgresql-multi-sockets.patch
699f87
Patch6: postgresql-var-run-socket.patch
699f87
699f87
# Comments for these patches are in the patch files.
699f87
Patch8: postgresql-man.patch
699f87
699f87
# Add support for atomic operations TAS/S_UNLOCK in |aarch64.
699f87
# ~> upstream (612ecf311b)
699f87
# ~> #970661
699f87
Patch11: postgresql-9.2.4-aarch64-atomic-upgrade.patch
699f87
699f87
# Force older postgres to create socket file in /var/run/postgresql
699f87
# ~> downstream
699f87
Patch12: postgresql-9.2.4-upgrade-from-8.4.13.patch
699f87
699f87
# When user complicates access of 'postgres' user to the database, the
699f87
# pg_upgrade can left the old server running - and re-run of pg_upgrade thus
699f87
# does not help.  This patch stops the server in described scenario properly.
699f87
# ~> not yet upstream, patch by Bruce Momjian:
699f87
# ~> http://www.postgresql.org/message-id/20130812193347.GD12510@momjian.us
699f87
# ~> #896161
699f87
Patch13: postgresql-9.2.4-upgrade-and-perm-problems.patch
699f87
699f87
# Backport fix for CVE-2018-10915
699f87
# Upstream commit: 210eb9b743c0645df05e5c8be4490ba4f09fc871
699f87
# Upstream commit: db6e8e1624a8f0357373450136c850f2b6e7fc8a
699f87
# Upstream commit: f2fa0c6514b6c5b7bccfe5050f6791dea1113c2e
699f87
# Upstream commit: 243de06be96d6001d01f2ec7c4573aad8b657195
699f87
Patch14: postgresql-CVE-2018-10915.patch
699f87
7eafc1
# Check if callback is already set
7eafc1
Patch15: postgresql-libpq-crypto-no-callback-stomping-v2.patch
7eafc1
699f87
BuildRequires: perl(ExtUtils::MakeMaker) glibc-devel bison flex gawk help2man
699f87
BuildRequires: perl(ExtUtils::Embed), perl-devel
699f87
BuildRequires: readline-devel zlib-devel
699f87
BuildRequires: systemd-units
699f87
699f87
%if %plpython
699f87
BuildRequires: python-devel
699f87
%endif
699f87
699f87
%if %plpython3
699f87
BuildRequires: python3-devel
699f87
%endif
699f87
699f87
%if %pltcl
699f87
BuildRequires: tcl-devel
699f87
%endif
699f87
699f87
%if %ssl
699f87
BuildRequires: openssl-devel
699f87
%endif
699f87
699f87
%if %kerberos
699f87
BuildRequires: krb5-devel
699f87
%endif
699f87
699f87
%if %ldap
699f87
BuildRequires: openldap-devel
699f87
%endif
699f87
699f87
%if %nls
699f87
BuildRequires: gettext >= 0.10.35
699f87
%endif
699f87
699f87
%if %uuid
699f87
BuildRequires: uuid-devel
699f87
%endif
699f87
699f87
%if %xml
699f87
BuildRequires: libxml2-devel libxslt-devel
699f87
%endif
699f87
699f87
%if %pam
699f87
BuildRequires: pam-devel
699f87
%endif
699f87
699f87
%if %sdt
699f87
BuildRequires: systemtap-sdt-devel
699f87
%endif
699f87
699f87
%if %selinux
699f87
BuildRequires: libselinux-devel
699f87
%endif
699f87
699f87
# main package requires -libs subpackage
699f87
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
699f87
699f87
%description
699f87
PostgreSQL is an advanced Object-Relational database management system (DBMS).
699f87
The base postgresql package contains the client programs that you'll need to
699f87
access a PostgreSQL DBMS server, as well as HTML documentation for the whole
699f87
system.  These client programs can be located on the same machine as the
699f87
PostgreSQL server, or on a remote machine that accesses a PostgreSQL server
699f87
over a network connection.  The PostgreSQL server can be found in the
699f87
postgresql-server sub-package.
699f87
699f87
699f87
%package libs
699f87
Summary: The shared libraries required for any PostgreSQL clients
699f87
Group: Applications/Databases
699f87
Provides: libpq.so = %{version}-%{release}
699f87
# for /sbin/ldconfig
699f87
Requires(post): glibc
699f87
Requires(postun): glibc
699f87
699f87
%description libs
699f87
The postgresql-libs package provides the essential shared libraries for any 
699f87
PostgreSQL client program or interface. You will need to install this package
699f87
to use any other PostgreSQL package or any clients that need to connect to a
699f87
PostgreSQL server.
699f87
699f87
699f87
%package server
699f87
Summary: The programs needed to create and run a PostgreSQL server
699f87
Group: Applications/Databases
699f87
Requires: %{name}%{?_isa} = %{version}-%{release}
699f87
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
699f87
Requires(pre): /usr/sbin/useradd
699f87
# We require this to be present for %%{_prefix}/lib/tmpfiles.d
699f87
Requires: systemd-units
699f87
# Make sure it's there when scriptlets run, too
699f87
Requires(post): systemd-units
699f87
Requires(preun): systemd-units
699f87
Requires(postun): systemd-units
699f87
# This is actually needed for the %%triggerun script but Requires(triggerun)
699f87
# is not valid.  We can use post because this particular %%triggerun script
699f87
# should fire just after this package is installed.
699f87
Requires(post): systemd-sysv
699f87
Requires(post): chkconfig
699f87
699f87
%description server
699f87
PostgreSQL is an advanced Object-Relational database management system (DBMS).
699f87
The postgresql-server package contains the programs needed to create
699f87
and run a PostgreSQL server, which will in turn allow you to create
699f87
and maintain PostgreSQL databases.
699f87
699f87
699f87
%package docs
699f87
Summary: Extra documentation for PostgreSQL
699f87
Group: Applications/Databases
699f87
Requires: %{name}%{?_isa} = %{version}-%{release}
699f87
699f87
%description docs
699f87
The postgresql-docs package contains some additional documentation for
699f87
PostgreSQL.  Currently, this includes the main documentation in PDF format
699f87
and source files for the PostgreSQL tutorial.
699f87
699f87
699f87
%package contrib
699f87
Summary: Extension modules distributed with PostgreSQL
699f87
Group: Applications/Databases
699f87
Requires: %{name}%{?_isa} = %{version}-%{release}
699f87
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
699f87
699f87
%description contrib
699f87
The postgresql-contrib package contains various extension modules that are
699f87
included in the PostgreSQL distribution.
699f87
699f87
699f87
%package devel
699f87
Summary: PostgreSQL development header files and libraries
699f87
Group: Development/Libraries
699f87
Requires: %{name}%{?_isa} = %{version}-%{release}
699f87
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
699f87
699f87
%description devel
699f87
The postgresql-devel package contains the header files and libraries
699f87
needed to compile C or C++ applications which will directly interact
699f87
with a PostgreSQL database management server.  It also contains the ecpg
699f87
Embedded C Postgres preprocessor. You need to install this package if you want
699f87
to develop applications which will interact with a PostgreSQL server.
699f87
699f87
699f87
%package static
699f87
Summary: Statically linked PostgreSQL libraries
699f87
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
699f87
699f87
%description static
699f87
Statically linked PostgreSQL libraries that do not have dynamically linked
699f87
counterparts.
699f87
699f87
699f87
%if %upgrade
699f87
%package upgrade
699f87
Summary: Support for upgrading from the previous major release of PostgreSQL
699f87
Group: Applications/Databases
699f87
Requires: %{name}-server%{?_isa} = %{version}-%{release}
699f87
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
699f87
699f87
%description upgrade
699f87
The postgresql-upgrade package contains the pg_upgrade utility and supporting
699f87
files needed for upgrading a PostgreSQL database from the previous major
699f87
version of PostgreSQL.
699f87
%endif
699f87
699f87
699f87
%if %plperl
699f87
%package plperl
699f87
Summary: The Perl procedural language for PostgreSQL
699f87
Group: Applications/Databases
699f87
Requires: %{name}-server%{?_isa} = %{version}-%{release}
699f87
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
699f87
699f87
%description plperl
699f87
The postgresql-plperl package contains the PL/Perl procedural language,
699f87
which is an extension to the PostgreSQL database server.
699f87
Install this if you want to write database functions in Perl.
699f87
%endif
699f87
699f87
%if %plpython
699f87
%package plpython
699f87
Summary: The Python2 procedural language for PostgreSQL
699f87
Group: Applications/Databases
699f87
Requires: %{name}-server%{?_isa} = %{version}-%{release}
699f87
699f87
%description plpython
699f87
The postgresql-plpython package contains the PL/Python procedural language,
699f87
which is an extension to the PostgreSQL database server.
699f87
Install this if you want to write database functions in Python 2.
699f87
%endif
699f87
699f87
%if %plpython3
699f87
%package plpython3
699f87
Summary: The Python3 procedural language for PostgreSQL
699f87
Group: Applications/Databases
699f87
Requires: %{name}-server%{?_isa} = %{version}-%{release}
699f87
699f87
%description plpython3
699f87
The postgresql-plpython3 package contains the PL/Python3 procedural language,
699f87
which is an extension to the PostgreSQL database server.
699f87
Install this if you want to write database functions in Python 3.
699f87
%endif
699f87
699f87
%if %pltcl
699f87
%package pltcl
699f87
Summary: The Tcl procedural language for PostgreSQL
699f87
Group: Applications/Databases
699f87
Requires: %{name}-server%{?_isa} = %{version}-%{release}
699f87
699f87
%description pltcl
699f87
The postgresql-pltcl package contains the PL/Tcl procedural language,
699f87
which is an extension to the PostgreSQL database server.
699f87
Install this if you want to write database functions in Tcl.
699f87
%endif
699f87
699f87
%if %test
699f87
%package test
699f87
Summary: The test suite distributed with PostgreSQL
699f87
Group: Applications/Databases
699f87
Requires: %{name}-server%{?_isa} = %{version}-%{release}
699f87
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
699f87
699f87
%description test
699f87
The postgresql-test package contains files needed for various tests for the
699f87
PostgreSQL database management system, including regression tests and
699f87
benchmarks.
699f87
%endif
699f87
699f87
%prep
699f87
%setup -q
699f87
%patch1 -p1
699f87
%patch2 -p1
699f87
%patch3 -p1
699f87
%patch4 -p1
699f87
%patch5 -p1
699f87
%patch6 -p1
699f87
%patch8 -p1
699f87
%patch13 -p1
699f87
%patch14 -p1
7eafc1
%patch15 -p1
699f87
699f87
# We used to run autoconf here, but there's no longer any real need to,
699f87
# since Postgres ships with a reasonably modern configure script.
699f87
699f87
# add ppc64p7 support (https://fedoraproject.org/wiki/Features/Power7Subarch)
699f87
# hopefully need for this will go away next time upstream updates config.sub
699f87
sed -i -e "s/ppc64-\*/ppc64-\* \| ppc64p7-\*/" config/config.sub
699f87
699f87
cp -p %{SOURCE1} .
699f87
699f87
%if %upgrade
699f87
tar xfj %{SOURCE3}
699f87
# make sure older version is up-to-date on config.guess/config.sub;
699f87
# not always necessary, but PG 9.2 knows about aarch64 while 9.1 doesn't
699f87
# (and also see the ppc64p7 hack above)
699f87
cp -p config/config.guess postgresql-%{prevversion}/config/config.guess
699f87
cp -p config/config.sub postgresql-%{prevversion}/config/config.sub
699f87
699f87
pushd postgresql-%{prevversion}
699f87
%patch11 -p2
699f87
%patch12 -p2
699f87
popd
699f87
%endif
699f87
699f87
# remove .gitignore files to ensure none get into the RPMs (bug #642210)
699f87
find . -type f -name .gitignore | xargs rm
699f87
699f87
# prep the setup script, including insertion of some values it needs
699f87
sed -e 's|^PGVERSION=.*$|PGVERSION=%{version}|' \
699f87
        -e 's|^PGMAJORVERSION=.*$|PGMAJORVERSION=%{majorversion}|' \
699f87
        -e 's|^PGENGINE=.*$|PGENGINE=%{_bindir}|' \
699f87
        -e 's|^PREVMAJORVERSION=.*$|PREVMAJORVERSION=%{prevmajorversion}|' \
699f87
        -e 's|^PREVPGENGINE=.*$|PREVPGENGINE=%{_libdir}/pgsql/postgresql-%{prevmajorversion}/bin|' \
699f87
        -e 's|^README_RPM_DIST=.*$|README_RPM_DIST=%{_pkgdocdir}/%(basename %{SOURCE8})|' \
699f87
        <%{SOURCE9} >postgresql-setup
699f87
touch -r %{SOURCE9} postgresql-setup
699f87
chmod +x postgresql-setup
699f87
help2man -N -m "Postgresql RPM-dist manual" ./postgresql-setup -o postgresql-setup.1
699f87
699f87
# prep the startup check script, including insertion of some values it needs
699f87
sed -e 's|^PGVERSION=.*$|PGVERSION=%{version}|' \
699f87
        -e 's|^PREVMAJORVERSION=.*$|PREVMAJORVERSION=%{prevmajorversion}|' \
699f87
        -e 's|^PGDOCDIR=.*$|PGDOCDIR=%{_pkgdocdir}|' \
699f87
        <%{SOURCE4} >postgresql-check-db-dir
699f87
touch -r %{SOURCE4} postgresql-check-db-dir
699f87
699f87
%build
699f87
699f87
# fail quickly and obviously if user tries to build as root
699f87
%if %runselftest
699f87
	if [ x"`id -u`" = x0 ]; then
699f87
		echo "postgresql's regression tests fail if run as root."
699f87
		echo "If you really need to build the RPM as root, use"
699f87
		echo "--define='runselftest 0' to skip the regression tests."
699f87
		exit 1
699f87
	fi
699f87
%endif
699f87
699f87
# Fiddling with CFLAGS.
699f87
699f87
CFLAGS="${CFLAGS:-%optflags}"
699f87
%ifarch %{power64}
699f87
# See the bug #1051075, ppc64 should benefit from -O3
699f87
CFLAGS=`echo $CFLAGS | xargs -n 1 | sed 's|-O2|-O3|g' | xargs -n 100`
699f87
%endif
699f87
# Strip out -ffast-math from CFLAGS....
699f87
CFLAGS=`echo $CFLAGS|xargs -n 1|grep -v ffast-math|xargs -n 100`
699f87
# Add LINUX_OOM_SCORE_ADJ=0 to ensure child processes reset postmaster's oom_score_adj
699f87
CFLAGS="$CFLAGS -DLINUX_OOM_SCORE_ADJ=0"
699f87
export CFLAGS
699f87
699f87
# plpython requires separate configure/build runs to build against python 2
699f87
# versus python 3.  Our strategy is to do the python 3 run first, then make
699f87
# distclean and do it again for the "normal" build.  Note that the installed
699f87
# Makefile.global will reflect the python 2 build, which seems appropriate
699f87
# since that's still considered the default plpython version.
699f87
%if %plpython3
699f87
699f87
export PYTHON=/usr/bin/python3
699f87
699f87
# These configure options must match main build
699f87
%configure --disable-rpath \
699f87
%if %beta
699f87
	--enable-debug \
699f87
	--enable-cassert \
699f87
%endif
699f87
%if %plperl
699f87
	--with-perl \
699f87
%endif
699f87
%if %pltcl
699f87
	--with-tcl \
699f87
	--with-tclconfig=%{_libdir} \
699f87
%endif
699f87
%if %plpython3
699f87
	--with-python \
699f87
%endif
699f87
%if %ldap
699f87
	--with-ldap \
699f87
%endif
699f87
%if %ssl
699f87
	--with-openssl \
699f87
%endif
699f87
%if %pam
699f87
	--with-pam \
699f87
%endif
699f87
%if %kerberos
699f87
	--with-krb5 \
699f87
	--with-gssapi \
699f87
%endif
699f87
%if %uuid
699f87
	--with-ossp-uuid \
699f87
%endif
699f87
%if %xml
699f87
	--with-libxml \
699f87
	--with-libxslt \
699f87
%endif
699f87
%if %nls
699f87
	--enable-nls \
699f87
%endif
699f87
%if %sdt
699f87
	--enable-dtrace \
699f87
%endif
699f87
%if %selinux
699f87
	--with-selinux \
699f87
%endif
699f87
	--with-system-tzdata=%{_datadir}/zoneinfo \
699f87
	--datadir=%{_datadir}/pgsql
699f87
699f87
# Fortunately we don't need to build much except plpython itself
699f87
cd src/backend
699f87
make submake-errcodes
699f87
cd ../..
699f87
cd src/pl/plpython
699f87
make %{?_smp_mflags} all
699f87
cd ..
699f87
# save built form in a directory that "make distclean" won't touch
699f87
cp -a plpython plpython3
699f87
cd ../..
699f87
699f87
# must also save this version of Makefile.global for later
699f87
cp src/Makefile.global src/Makefile.global.python3
699f87
699f87
make distclean
699f87
699f87
%endif
699f87
699f87
unset PYTHON
699f87
699f87
# Normal (not python3) build begins here
699f87
699f87
%configure --disable-rpath \
699f87
%if %beta
699f87
	--enable-debug \
699f87
	--enable-cassert \
699f87
%endif
699f87
%if %plperl
699f87
	--with-perl \
699f87
%endif
699f87
%if %pltcl
699f87
	--with-tcl \
699f87
	--with-tclconfig=%{_libdir} \
699f87
%endif
699f87
%if %plpython
699f87
	--with-python \
699f87
%endif
699f87
%if %ldap
699f87
	--with-ldap \
699f87
%endif
699f87
%if %ssl
699f87
	--with-openssl \
699f87
%endif
699f87
%if %pam
699f87
	--with-pam \
699f87
%endif
699f87
%if %kerberos
699f87
	--with-krb5 \
699f87
	--with-gssapi \
699f87
%endif
699f87
%if %uuid
699f87
	--with-ossp-uuid \
699f87
%endif
699f87
%if %xml
699f87
	--with-libxml \
699f87
	--with-libxslt \
699f87
%endif
699f87
%if %nls
699f87
	--enable-nls \
699f87
%endif
699f87
%if %sdt
699f87
	--enable-dtrace \
699f87
%endif
699f87
%if %selinux
699f87
	--with-selinux \
699f87
%endif
699f87
	--with-system-tzdata=/usr/share/zoneinfo \
699f87
	--datadir=/usr/share/pgsql
699f87
699f87
make %{?_smp_mflags} world
699f87
699f87
# Have to hack makefile to put correct path into tutorial scripts
699f87
sed "s|C=\`pwd\`;|C=%{_libdir}/pgsql/tutorial;|" < src/tutorial/Makefile > src/tutorial/GNUmakefile
699f87
make %{?_smp_mflags} -C src/tutorial NO_PGXS=1 all
699f87
rm -f src/tutorial/GNUmakefile
699f87
699f87
%if %runselftest
699f87
	pushd src/test/regress
699f87
	make all
699f87
	make MAX_CONNECTIONS=5 check
699f87
	make clean
699f87
	popd
699f87
	pushd src/pl
699f87
	make MAX_CONNECTIONS=5 check
699f87
	popd
699f87
%if %plpython3
699f87
	# must install Makefile.global that selects python3
699f87
	mv src/Makefile.global src/Makefile.global.save
699f87
	cp src/Makefile.global.python3 src/Makefile.global
699f87
	touch -r src/Makefile.global.save src/Makefile.global
699f87
	# because "make check" does "make install" on the whole tree,
699f87
	# we must temporarily install plpython3 as src/pl/plpython,
699f87
	# since that is the subdirectory src/pl/Makefile knows about
699f87
	mv src/pl/plpython src/pl/plpython2
699f87
	mv src/pl/plpython3 src/pl/plpython
699f87
	pushd src/pl/plpython
699f87
	make MAX_CONNECTIONS=5 check
699f87
	popd
699f87
	# and clean up our mess
699f87
	mv src/pl/plpython src/pl/plpython3
699f87
	mv src/pl/plpython2 src/pl/plpython
699f87
	mv -f src/Makefile.global.save src/Makefile.global
699f87
%endif
699f87
	pushd contrib
699f87
	make MAX_CONNECTIONS=5 check
699f87
	popd
699f87
699f87
	pushd src/interfaces/ecpg
699f87
	make MAX_CONNECTIONS=5 check
699f87
	popd
699f87
%endif
699f87
699f87
# undo the "make clean" above
699f87
%if %test
699f87
	pushd src/test/regress
699f87
	make all
699f87
	popd
699f87
%endif
699f87
699f87
%if %upgrade
699f87
	pushd postgresql-%{prevversion}
699f87
699f87
	# The upgrade build can be pretty stripped-down, but make sure that
699f87
	# any options that affect on-disk file layout match the previous
699f87
	# major release!  Also, note we intentionally do not use %%configure
699f87
	# here, because we *don't* want its ideas about installation paths.
699f87
699f87
	# The -fno-aggressive-loop-optimizations is hack for #993532
699f87
	CFLAGS="$CFLAGS -fno-aggressive-loop-optimizations" ./configure \
699f87
		--build=%{_build} \
699f87
		--host=%{_host} \
699f87
		--prefix=%{_libdir}/pgsql/postgresql-%{prevmajorversion} \
699f87
		--disable-rpath \
699f87
%if %beta
699f87
		--enable-debug \
699f87
		--enable-cassert \
699f87
%endif
699f87
		--with-system-tzdata=/usr/share/zoneinfo
699f87
699f87
	make %{?_smp_mflags} all
699f87
699f87
	popd
699f87
%endif
699f87
699f87
%install
699f87
699f87
make DESTDIR=$RPM_BUILD_ROOT install-world
699f87
699f87
%if %plpython3
699f87
	mv src/Makefile.global src/Makefile.global.save
699f87
	cp src/Makefile.global.python3 src/Makefile.global
699f87
	touch -r src/Makefile.global.save src/Makefile.global
699f87
	pushd src/pl/plpython3
699f87
	make DESTDIR=$RPM_BUILD_ROOT install
699f87
	popd
699f87
	mv -f src/Makefile.global.save src/Makefile.global
699f87
%endif
699f87
699f87
# make sure these directories exist even if we suppressed all contrib modules
699f87
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/pgsql/contrib
699f87
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/pgsql/extension
699f87
699f87
# multilib header hack; note pg_config.h is installed in two places!
699f87
# we only apply this to known Red Hat multilib arches, per bug #177564
699f87
case `uname -i` in
699f87
  i386 | x86_64 | ppc | ppc64 | s390 | s390x | sparc | sparc64 )
699f87
    mv $RPM_BUILD_ROOT/usr/include/pg_config.h $RPM_BUILD_ROOT/usr/include/pg_config_`uname -i`.h
699f87
    install -m 644 %{SOURCE6} $RPM_BUILD_ROOT/usr/include/
699f87
    mv $RPM_BUILD_ROOT/usr/include/pgsql/server/pg_config.h $RPM_BUILD_ROOT/usr/include/pgsql/server/pg_config_`uname -i`.h
699f87
    install -m 644 %{SOURCE6} $RPM_BUILD_ROOT/usr/include/pgsql/server/
699f87
    mv $RPM_BUILD_ROOT/usr/include/ecpg_config.h $RPM_BUILD_ROOT/usr/include/ecpg_config_`uname -i`.h
699f87
    install -m 644 %{SOURCE7} $RPM_BUILD_ROOT/usr/include/
699f87
    ;;
699f87
  *)
699f87
    ;;
699f87
esac
699f87
699f87
install -d -m 755 $RPM_BUILD_ROOT%{_libdir}/pgsql/tutorial
699f87
cp -p src/tutorial/* $RPM_BUILD_ROOT%{_libdir}/pgsql/tutorial
699f87
699f87
install -m 755 postgresql-setup $RPM_BUILD_ROOT%{_bindir}/postgresql-setup
699f87
install -p -m 644 postgresql-setup.1 $RPM_BUILD_ROOT%{_mandir}/man1
699f87
699f87
install -m 755 postgresql-check-db-dir $RPM_BUILD_ROOT%{_bindir}/postgresql-check-db-dir
699f87
699f87
install -d $RPM_BUILD_ROOT%{_unitdir}
699f87
install -m 644 %{SOURCE10} $RPM_BUILD_ROOT%{_unitdir}/postgresql.service
699f87
699f87
install -d $RPM_BUILD_ROOT/usr/libexec/initscripts/legacy-actions/postgresql
699f87
install -m 755 %{SOURCE11} $RPM_BUILD_ROOT/usr/libexec/initscripts/legacy-actions/postgresql/initdb
699f87
install -m 755 %{SOURCE12} $RPM_BUILD_ROOT/usr/libexec/initscripts/legacy-actions/postgresql/upgrade
699f87
699f87
%if %pam
699f87
install -d $RPM_BUILD_ROOT/etc/pam.d
699f87
install -m 644 %{SOURCE14} $RPM_BUILD_ROOT/etc/pam.d/postgresql
699f87
%endif
699f87
699f87
# Create the directory for sockets.
699f87
install -d -m 755 $RPM_BUILD_ROOT/var/run/postgresql
699f87
699f87
# ... and make a tmpfiles script to recreate it at reboot.
699f87
mkdir -p $RPM_BUILD_ROOT%{_tmpfilesdir}
699f87
install -m 0644 %{SOURCE13} $RPM_BUILD_ROOT%{_tmpfilesdir}/postgresql.conf
699f87
699f87
# PGDATA needs removal of group and world permissions due to pg_pwd hole.
699f87
install -d -m 700 $RPM_BUILD_ROOT/var/lib/pgsql/data
699f87
699f87
# backups of data go here...
699f87
install -d -m 700 $RPM_BUILD_ROOT/var/lib/pgsql/backups
699f87
699f87
# postgres' .bash_profile
699f87
install -m 644 %{SOURCE15} $RPM_BUILD_ROOT/var/lib/pgsql/.bash_profile
699f87
699f87
699f87
%if %upgrade
699f87
	pushd postgresql-%{prevversion}
699f87
	make DESTDIR=$RPM_BUILD_ROOT install
699f87
	popd
699f87
699f87
	# remove stuff we don't actually need for upgrade purposes
699f87
	pushd $RPM_BUILD_ROOT%{_libdir}/pgsql/postgresql-%{prevmajorversion}
699f87
	rm bin/clusterdb
699f87
	rm bin/createdb
699f87
	rm bin/createlang
699f87
	rm bin/createuser
699f87
	rm bin/dropdb
699f87
	rm bin/droplang
699f87
	rm bin/dropuser
699f87
	rm bin/ecpg
699f87
	rm bin/initdb
699f87
	rm bin/pg_config
699f87
	rm bin/pg_dump
699f87
	rm bin/pg_dumpall
699f87
	rm bin/pg_restore
699f87
	rm bin/psql
699f87
	rm bin/reindexdb
699f87
	rm bin/vacuumdb
699f87
	rm -rf include
699f87
	rm lib/dict_snowball.so
699f87
	rm lib/libecpg*
699f87
	rm lib/libpg*
699f87
	rm lib/libpq*
699f87
	rm -rf lib/pgxs
699f87
	rm lib/plpgsql.so
699f87
	rm -rf share/doc
699f87
	rm -rf share/man
699f87
	rm -rf share/tsearch_data
699f87
	rm share/*.bki
699f87
	rm share/*description
699f87
	rm share/*.sample
699f87
	rm share/*.sql
699f87
	rm share/*.txt
699f87
	popd
699f87
%endif
699f87
699f87
699f87
%if %test
699f87
	# tests. There are many files included here that are unnecessary,
699f87
	# but include them anyway for completeness.  We replace the original
699f87
	# Makefiles, however.
699f87
	mkdir -p $RPM_BUILD_ROOT%{_libdir}/pgsql/test
699f87
	cp -a src/test/regress $RPM_BUILD_ROOT%{_libdir}/pgsql/test
699f87
	# pg_regress binary should be only in one subpackage, 
699f87
	# there will be a symlink from -test to -devel
699f87
	rm -f $RPM_BUILD_ROOT%{_libdir}/pgsql/test/regress/pg_regress
699f87
	ln -sf ../../pgxs/src/test/regress/pg_regress $RPM_BUILD_ROOT%{_libdir}/pgsql/test/regress/pg_regress
699f87
	pushd  $RPM_BUILD_ROOT%{_libdir}/pgsql/test/regress
699f87
	rm -f GNUmakefile Makefile *.o
699f87
	chmod 0755 pg_regress regress.so
699f87
	popd
699f87
	cp %{SOURCE5} $RPM_BUILD_ROOT%{_libdir}/pgsql/test/regress/Makefile
699f87
	chmod 0644 $RPM_BUILD_ROOT%{_libdir}/pgsql/test/regress/Makefile
699f87
%endif
699f87
699f87
# Fix some more documentation
699f87
cp %{SOURCE8} README.rpm-dist
699f87
rm -rf doc/html # HACK! allow 'rpmbuild -bi --short-circuit'
699f87
mv $RPM_BUILD_ROOT%{_docdir}/pgsql/html doc
699f87
rm -rf $RPM_BUILD_ROOT%{_docdir}/pgsql
699f87
699f87
# remove files not to be packaged
699f87
rm $RPM_BUILD_ROOT%{_libdir}/{libecpg,libpq,libecpg_compat,libpgtypes}.a
699f87
%if !%upgrade
699f87
rm -f $RPM_BUILD_ROOT%{_bindir}/pg_upgrade
699f87
rm -f $RPM_BUILD_ROOT%{_libdir}/pgsql/pg_upgrade_support.so
699f87
rm -f $RPM_BUILD_ROOT%{_mandir}/man1/pg_upgrade.*
699f87
%endif
699f87
699f87
# initialize file lists
699f87
cp /dev/null main.lst
699f87
cp /dev/null libs.lst
699f87
cp /dev/null server.lst
699f87
cp /dev/null devel.lst
699f87
cp /dev/null plperl.lst
699f87
cp /dev/null pltcl.lst
699f87
cp /dev/null plpython.lst
699f87
cp /dev/null plpython3.lst
699f87
699f87
%if %nls
699f87
%find_lang ecpg-%{majorversion}
699f87
cat ecpg-%{majorversion}.lang >>devel.lst
699f87
%find_lang ecpglib6-%{majorversion}
699f87
cat ecpglib6-%{majorversion}.lang >>libs.lst
699f87
%find_lang initdb-%{majorversion}
699f87
cat initdb-%{majorversion}.lang >>server.lst
699f87
%find_lang libpq5-%{majorversion}
699f87
cat libpq5-%{majorversion}.lang >>libs.lst
699f87
%find_lang pg_basebackup-%{majorversion}
699f87
cat pg_basebackup-%{majorversion}.lang >>server.lst
699f87
%find_lang pg_controldata-%{majorversion}
699f87
cat pg_controldata-%{majorversion}.lang >>server.lst
699f87
%find_lang pg_ctl-%{majorversion}
699f87
cat pg_ctl-%{majorversion}.lang >>server.lst
699f87
%find_lang pg_config-%{majorversion}
699f87
cat pg_config-%{majorversion}.lang >>main.lst
699f87
%find_lang pg_dump-%{majorversion}
699f87
cat pg_dump-%{majorversion}.lang >>main.lst
699f87
%find_lang pg_resetxlog-%{majorversion}
699f87
cat pg_resetxlog-%{majorversion}.lang >>server.lst
699f87
%find_lang pgscripts-%{majorversion}
699f87
cat pgscripts-%{majorversion}.lang >>main.lst
699f87
%if %plperl
699f87
%find_lang plperl-%{majorversion}
699f87
cat plperl-%{majorversion}.lang >>plperl.lst
699f87
%endif
699f87
%find_lang plpgsql-%{majorversion}
699f87
cat plpgsql-%{majorversion}.lang >>server.lst
699f87
%if %plpython
699f87
%find_lang plpython-%{majorversion}
699f87
cat plpython-%{majorversion}.lang >>plpython.lst
699f87
%endif
699f87
%if %plpython3
699f87
# plpython3 shares message files with plpython
699f87
%find_lang plpython-%{majorversion}
699f87
cat plpython-%{majorversion}.lang >>plpython3.lst
699f87
%endif
699f87
%if %pltcl
699f87
%find_lang pltcl-%{majorversion}
699f87
cat pltcl-%{majorversion}.lang >>pltcl.lst
699f87
%endif
699f87
%find_lang postgres-%{majorversion}
699f87
cat postgres-%{majorversion}.lang >>server.lst
699f87
%find_lang psql-%{majorversion}
699f87
cat psql-%{majorversion}.lang >>main.lst
699f87
%endif
699f87
699f87
%post libs -p /sbin/ldconfig 
699f87
%postun libs -p /sbin/ldconfig 
699f87
699f87
%pre server
699f87
/usr/sbin/groupadd -g 26 -o -r postgres >/dev/null 2>&1 || :
699f87
/usr/sbin/useradd -M -N -g postgres -o -r -d /var/lib/pgsql -s /bin/bash \
699f87
	-c "PostgreSQL Server" -u 26 postgres >/dev/null 2>&1 || :
699f87
699f87
%post server
699f87
%if 0%{?systemd_post:1}
699f87
%systemd_post postgresql.service
699f87
%else
699f87
if [ $1 -eq 1 ]; then
699f87
    # Initial installation
699f87
    /bin/systemctl daemon-reload >/dev/null 2>&1 || :
699f87
fi
699f87
%endif
699f87
699f87
# Run this when upgrading from SysV initscript to native systemd unit
699f87
%triggerun server -- postgresql-server < %{first_systemd_version}
699f87
# Save the current service runlevel info
699f87
# User must manually run systemd-sysv-convert --apply postgresql
699f87
# to migrate them to systemd targets
699f87
/usr/bin/systemd-sysv-convert --save postgresql >/dev/null 2>&1 || :
699f87
699f87
# Run these because the SysV package being removed won't do them
699f87
/sbin/chkconfig --del postgresql >/dev/null 2>&1 || :
699f87
/bin/systemctl try-restart postgresql.service >/dev/null 2>&1 || :
699f87
699f87
%preun server
699f87
%if 0%{?systemd_preun:1}
699f87
%systemd_preun postgresql.service
699f87
%else
699f87
if [ $1 -eq 0 ]; then
699f87
    # Package removal, not upgrade
699f87
    /bin/systemctl --no-reload disable postgresql.service >/dev/null 2>&1 || :
699f87
    /bin/systemctl stop postgresql.service >/dev/null 2>&1 || :
699f87
fi
699f87
%endif
699f87
699f87
%postun server
699f87
%if 0%{?systemd_postun_with_restart:1}
699f87
%systemd_postun_with_restart postgresql.service
699f87
%else
699f87
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
699f87
if [ $1 -ge 1 ]; then
699f87
    # Package upgrade, not uninstall
699f87
    /bin/systemctl try-restart postgresql.service >/dev/null 2>&1 || :
699f87
fi
699f87
%endif
699f87
699f87
# FILES section.
699f87
699f87
%files -f main.lst
699f87
%doc doc/KNOWN_BUGS doc/MISSING_FEATURES doc/TODO
699f87
%doc COPYRIGHT README HISTORY doc/bug.template
699f87
%doc README.rpm-dist
699f87
%doc doc/html
699f87
%{_bindir}/clusterdb
699f87
%{_bindir}/createdb
699f87
%{_bindir}/createlang
699f87
%{_bindir}/createuser
699f87
%{_bindir}/dropdb
699f87
%{_bindir}/droplang
699f87
%{_bindir}/dropuser
699f87
%{_bindir}/pg_config
699f87
%{_bindir}/pg_dump
699f87
%{_bindir}/pg_dumpall
699f87
%{_bindir}/pg_restore
699f87
%{_bindir}/psql
699f87
%{_bindir}/reindexdb
699f87
%{_bindir}/vacuumdb
699f87
%{_mandir}/man1/clusterdb.*
699f87
%{_mandir}/man1/createdb.*
699f87
%{_mandir}/man1/createlang.*
699f87
%{_mandir}/man1/createuser.*
699f87
%{_mandir}/man1/dropdb.*
699f87
%{_mandir}/man1/droplang.*
699f87
%{_mandir}/man1/dropuser.*
699f87
%{_mandir}/man1/pg_config.*
699f87
%{_mandir}/man1/pg_dump.*
699f87
%{_mandir}/man1/pg_dumpall.*
699f87
%{_mandir}/man1/pg_restore.*
699f87
%{_mandir}/man1/psql.*
699f87
%{_mandir}/man1/reindexdb.*
699f87
%{_mandir}/man1/vacuumdb.*
699f87
%{_mandir}/man7/*
699f87
%dir %{_libdir}/pgsql
699f87
699f87
%files docs
699f87
%doc *-US.pdf
699f87
%{_libdir}/pgsql/tutorial/
699f87
699f87
%files contrib
699f87
%{_datadir}/pgsql/extension/adminpack*
699f87
%{_datadir}/pgsql/extension/autoinc*
699f87
%{_datadir}/pgsql/extension/btree_gin*
699f87
%{_datadir}/pgsql/extension/btree_gist*
699f87
%{_datadir}/pgsql/extension/chkpass*
699f87
%{_datadir}/pgsql/extension/citext*
699f87
%{_datadir}/pgsql/extension/cube*
699f87
%{_datadir}/pgsql/extension/dblink*
699f87
%{_datadir}/pgsql/extension/dict_int*
699f87
%{_datadir}/pgsql/extension/dict_xsyn*
699f87
%{_datadir}/pgsql/extension/earthdistance*
699f87
%{_datadir}/pgsql/extension/file_fdw*
699f87
%{_datadir}/pgsql/extension/fuzzystrmatch*
699f87
%{_datadir}/pgsql/extension/hstore*
699f87
%{_datadir}/pgsql/extension/insert_username*
699f87
%{_datadir}/pgsql/extension/intagg*
699f87
%{_datadir}/pgsql/extension/intarray*
699f87
%{_datadir}/pgsql/extension/isn*
699f87
%{_datadir}/pgsql/extension/lo*
699f87
%{_datadir}/pgsql/extension/ltree*
699f87
%{_datadir}/pgsql/extension/moddatetime*
699f87
%{_datadir}/pgsql/extension/pageinspect*
699f87
%{_datadir}/pgsql/extension/pg_buffercache*
699f87
%{_datadir}/pgsql/extension/pg_freespacemap*
699f87
%{_datadir}/pgsql/extension/pg_stat_statements*
699f87
%{_datadir}/pgsql/extension/pg_trgm*
699f87
%{_datadir}/pgsql/extension/pgcrypto*
699f87
%{_datadir}/pgsql/extension/pgrowlocks*
699f87
%{_datadir}/pgsql/extension/pgstattuple*
699f87
%{_datadir}/pgsql/extension/refint*
699f87
%{_datadir}/pgsql/extension/seg*
699f87
%{_datadir}/pgsql/extension/tablefunc*
699f87
%{_datadir}/pgsql/extension/tcn*
699f87
%{_datadir}/pgsql/extension/test_parser*
699f87
%{_datadir}/pgsql/extension/timetravel*
699f87
%{_datadir}/pgsql/extension/tsearch2*
699f87
%{_datadir}/pgsql/extension/unaccent*
699f87
%{_libdir}/pgsql/_int.so
699f87
%{_libdir}/pgsql/adminpack.so
699f87
%{_libdir}/pgsql/auth_delay.so
699f87
%{_libdir}/pgsql/autoinc.so
699f87
%{_libdir}/pgsql/auto_explain.so
699f87
%{_libdir}/pgsql/btree_gin.so
699f87
%{_libdir}/pgsql/btree_gist.so
699f87
%{_libdir}/pgsql/chkpass.so
699f87
%{_libdir}/pgsql/citext.so
699f87
%{_libdir}/pgsql/cube.so
699f87
%{_libdir}/pgsql/dblink.so
699f87
%{_libdir}/pgsql/dict_int.so
699f87
%{_libdir}/pgsql/dict_xsyn.so
699f87
%{_libdir}/pgsql/dummy_seclabel.so
699f87
%{_libdir}/pgsql/earthdistance.so
699f87
%{_libdir}/pgsql/file_fdw.so
699f87
%{_libdir}/pgsql/fuzzystrmatch.so
699f87
%{_libdir}/pgsql/hstore.so
699f87
%{_libdir}/pgsql/insert_username.so
699f87
%{_libdir}/pgsql/isn.so
699f87
%{_libdir}/pgsql/lo.so
699f87
%{_libdir}/pgsql/ltree.so
699f87
%{_libdir}/pgsql/moddatetime.so
699f87
%{_libdir}/pgsql/pageinspect.so
699f87
%{_libdir}/pgsql/passwordcheck.so
699f87
%{_libdir}/pgsql/pg_buffercache.so
699f87
%{_libdir}/pgsql/pg_freespacemap.so
699f87
%{_libdir}/pgsql/pg_trgm.so
699f87
%{_libdir}/pgsql/pgcrypto.so
699f87
%{_libdir}/pgsql/pgrowlocks.so
699f87
%{_libdir}/pgsql/pgstattuple.so
699f87
%{_libdir}/pgsql/pg_stat_statements.so
699f87
%{_libdir}/pgsql/refint.so
699f87
%{_libdir}/pgsql/seg.so
699f87
%{_libdir}/pgsql/tablefunc.so
699f87
%{_libdir}/pgsql/tcn.so
699f87
%{_libdir}/pgsql/test_parser.so
699f87
%{_libdir}/pgsql/timetravel.so
699f87
%{_libdir}/pgsql/tsearch2.so
699f87
%{_libdir}/pgsql/unaccent.so
699f87
%if %selinux
699f87
%{_datadir}/pgsql/contrib/sepgsql.sql
699f87
%{_libdir}/pgsql/sepgsql.so
699f87
%endif
699f87
%if %ssl
699f87
%{_datadir}/pgsql/extension/sslinfo*
699f87
%{_libdir}/pgsql/sslinfo.so
699f87
%endif
699f87
%if %uuid
699f87
%{_datadir}/pgsql/extension/uuid-ossp*
699f87
%{_libdir}/pgsql/uuid-ossp.so
699f87
%endif
699f87
%if %xml
699f87
%{_datadir}/pgsql/extension/xml2*
699f87
%{_libdir}/pgsql/pgxml.so
699f87
%endif
699f87
%{_bindir}/oid2name
699f87
%{_bindir}/pg_archivecleanup
699f87
%{_bindir}/pg_standby
699f87
%{_bindir}/pg_test_fsync
699f87
%{_bindir}/pg_test_timing
699f87
%{_bindir}/pgbench
699f87
%{_bindir}/vacuumlo
699f87
%{_mandir}/man1/oid2name.*
699f87
%{_mandir}/man1/pg_archivecleanup.*
699f87
%{_mandir}/man1/pg_standby.*
699f87
%{_mandir}/man1/pg_test_fsync.*
699f87
%{_mandir}/man1/pg_test_timing.*
699f87
%{_mandir}/man1/pgbench.*
699f87
%{_mandir}/man1/vacuumlo.*
699f87
%{_mandir}/man3/dblink*
699f87
%doc contrib/spi/*.example
699f87
699f87
%files libs -f libs.lst
699f87
%doc COPYRIGHT
699f87
%{_libdir}/libpq.so.*
699f87
%{_libdir}/libecpg.so.*
699f87
%{_libdir}/libpgtypes.so.*
699f87
%{_libdir}/libecpg_compat.so.*
699f87
699f87
%files server -f server.lst
699f87
%{_unitdir}/postgresql.service
699f87
%dir /usr/libexec/initscripts/legacy-actions/postgresql
699f87
/usr/libexec/initscripts/legacy-actions/postgresql/*
699f87
%if %pam
699f87
%config(noreplace) /etc/pam.d/postgresql
699f87
%endif
699f87
%{_bindir}/initdb
699f87
%{_bindir}/pg_basebackup
699f87
%{_bindir}/pg_controldata
699f87
%{_bindir}/pg_ctl
699f87
%{_bindir}/pg_receivexlog
699f87
%{_bindir}/pg_resetxlog
699f87
%{_bindir}/postgres
699f87
%{_bindir}/postmaster
699f87
%{_bindir}/postgresql-setup
699f87
%{_bindir}/postgresql-check-db-dir
699f87
%{_mandir}/man1/initdb.*
699f87
%{_mandir}/man1/pg_basebackup.*
699f87
%{_mandir}/man1/pg_controldata.*
699f87
%{_mandir}/man1/pg_ctl.*
699f87
%{_mandir}/man1/pg_receivexlog.*
699f87
%{_mandir}/man1/pg_resetxlog.*
699f87
%{_mandir}/man1/postgres.*
699f87
%{_mandir}/man1/postgresql-setup.*
699f87
%{_mandir}/man1/postmaster.*
699f87
%{_datadir}/pgsql/postgres.bki
699f87
%{_datadir}/pgsql/postgres.description
699f87
%{_datadir}/pgsql/postgres.shdescription
699f87
%{_datadir}/pgsql/system_views.sql
699f87
%{_datadir}/pgsql/*.sample
699f87
%{_datadir}/pgsql/timezonesets/
699f87
%{_datadir}/pgsql/tsearch_data/
699f87
%{_libdir}/pgsql/dict_snowball.so
699f87
%{_libdir}/pgsql/plpgsql.so
699f87
%dir %{_datadir}/pgsql
699f87
%dir %{_datadir}/pgsql/contrib
699f87
%dir %{_datadir}/pgsql/extension
699f87
%{_datadir}/pgsql/extension/plpgsql*
699f87
%{_tmpfilesdir}/postgresql.conf
699f87
%attr(755,postgres,postgres) %dir /var/run/postgresql
699f87
%attr(700,postgres,postgres) %dir /var/lib/pgsql
699f87
%attr(700,postgres,postgres) %dir /var/lib/pgsql/data
699f87
%attr(700,postgres,postgres) %dir /var/lib/pgsql/backups
699f87
%attr(644,postgres,postgres) %config(noreplace) /var/lib/pgsql/.bash_profile
699f87
%{_libdir}/pgsql/libpqwalreceiver.so
699f87
%{_libdir}/pgsql/*_and_*.so
699f87
%{_libdir}/pgsql/euc2004_sjis2004.so
699f87
%{_datadir}/pgsql/conversion_create.sql
699f87
%{_datadir}/pgsql/information_schema.sql
699f87
%{_datadir}/pgsql/snowball_create.sql
699f87
%{_datadir}/pgsql/sql_features.txt
699f87
699f87
%files devel -f devel.lst
699f87
/usr/include/*
699f87
%{_bindir}/ecpg
699f87
%{_libdir}/libpq.so
699f87
%{_libdir}/libecpg.so
699f87
%{_libdir}/libecpg_compat.so
699f87
%{_libdir}/libpgtypes.so
699f87
%{_libdir}/pgsql/pgxs/
699f87
%{_mandir}/man1/ecpg.*
699f87
%{_mandir}/man3/SPI_*
699f87
699f87
%files static
699f87
%{_libdir}/libpgport.a
699f87
699f87
%if %upgrade
699f87
%files upgrade
699f87
%{_bindir}/pg_upgrade
699f87
%{_libdir}/pgsql/pg_upgrade_support.so
699f87
%{_libdir}/pgsql/postgresql-%{prevmajorversion}
699f87
%{_mandir}/man1/pg_upgrade.*
699f87
%endif
699f87
699f87
%if %plperl
699f87
%files plperl -f plperl.lst
699f87
%{_datadir}/pgsql/extension/plperl*
699f87
%{_libdir}/pgsql/plperl.so
699f87
%endif
699f87
699f87
%if %pltcl
699f87
%files pltcl -f pltcl.lst
699f87
%{_datadir}/pgsql/extension/pltcl*
699f87
%{_libdir}/pgsql/pltcl.so
699f87
%{_bindir}/pltcl_delmod
699f87
%{_bindir}/pltcl_listmod
699f87
%{_bindir}/pltcl_loadmod
699f87
%{_datadir}/pgsql/unknown.pltcl
699f87
%endif
699f87
699f87
%if %plpython
699f87
%files plpython -f plpython.lst
699f87
%{_datadir}/pgsql/extension/plpythonu*
699f87
%{_datadir}/pgsql/extension/plpython2*
699f87
%{_libdir}/pgsql/plpython2.so
699f87
%endif
699f87
699f87
%if %plpython3
699f87
%files plpython3 -f plpython3.lst
699f87
%{_datadir}/pgsql/extension/plpython3*
699f87
%{_libdir}/pgsql/plpython3.so
699f87
%endif
699f87
699f87
%if %test
699f87
%files test
699f87
%defattr(-,postgres,postgres)
699f87
%attr(-,postgres,postgres) %{_libdir}/pgsql/test/*
699f87
%attr(-,postgres,postgres) %dir %{_libdir}/pgsql/test
699f87
%endif
699f87
699f87
%changelog
7eafc1
* Tue Nov 5 2019 Filip Januš <fjanus@redhat.com> 9.2.24-2
7eafc1
- Check if callback is already set
7eafc1
  Resolves: #1755154
7eafc1
699f87
* Tue Aug 14 2018 Pavel Raiskup <praiskup@redhat.com> - 9.2.24-1
699f87
- update to the latest 9.2 release
699f87
- fix CVE-2018-10915
699f87
699f87
* Mon Nov 06 2017 Pavel Raiskup <praiskup@redhat.com> - 9.2.23-3
699f87
- setup: keep PGSETUP_* variables after switching to not-privileged user
699f87
699f87
* Mon Oct 23 2017 Pavel Raiskup <praiskup@redhat.com> - 9.2.23-2
699f87
- fix CVE-2017-12172
699f87
699f87
* Tue Aug 29 2017 Petr Kubat <pkubat@redhat.com> - 9.2.23-1
699f87
- update to 9.2.23 per release notes
699f87
  http://www.postgresql.org/docs/9.2/static/release-9-2-23.html
699f87
699f87
* Thu Aug 24 2017 Petr Kubat <pkubat@redhat.com> - 9.2.22-1
699f87
- update to 9.2.22 per release notes
699f87
  http://www.postgresql.org/docs/9.2/static/release-9-2-22.html
699f87
699f87
* Thu May 11 2017 Petr Kubat <pkubat@redhat.com> - 9.2.21-1
699f87
- update to 9.2.21 per release notes
699f87
  http://www.postgresql.org/docs/9.2/static/release-9-2-21.html
699f87
  http://www.postgresql.org/docs/9.2/static/release-9-2-20.html
699f87
  http://www.postgresql.org/docs/9.2/static/release-9-2-19.html
699f87
699f87
* Wed Feb 22 2017 Pavel Raiskup <praiskup@redhat.com> - 9.2.18-2
699f87
- package libpgport.a (rhbz#1305979)
699f87
699f87
* Wed Aug 17 2016 Petr Kubat <pkubat@redhat.com> - 9.2.18-1
699f87
- update to 9.2.18 per release notes
699f87
  http://www.postgresql.org/docs/9.2/static/release-9-2-18.html
699f87
  http://www.postgresql.org/docs/9.2/static/release-9-2-17.html
699f87
  http://www.postgresql.org/docs/9.2/static/release-9-2-16.html
699f87
699f87
* Thu Jun 30 2016 Petr Kubat <pkubat@redhat.com> - 9.2.15-2
699f87
- fix postgresql-setup to work if postgres user is set to /bin/nologin (#1122143)
699f87
699f87
* Fri Feb 12 2016 Pavel Kajaba <pkajaba@redhat.com> - 9.2.15-1
699f87
- update to 9.2.15 per release notes
699f87
  http://www.postgresql.org/docs/9.2/static/release-9-2-15.html
699f87
699f87
* Tue Oct 20 2015 Pavel Raiskup <praiskup@redhat.com> - 9.2.14-1
699f87
- update to 9.2.14 per release notes
699f87
  http://www.postgresql.org/docs/9.2/static/release-9-2-14.html
699f87
699f87
* Thu Jun 11 2015 Pavel Raiskup <praiskup@redhat.com> - 9.2.13-1
699f87
- update to 9.2.13 per release notes
699f87
  http://www.postgresql.org/docs/9.2/static/release-9-2-13.html
699f87
699f87
* Wed Jun 03 2015 Pavel Raiskup <praiskup@redhat.com> - 9.2.12-1
699f87
- update to 9.2.12 per release notes
699f87
  http://www.postgresql.org/docs/9.2/static/release-9-2-12.html
699f87
699f87
* Mon May 25 2015 Pavel Raiskup <praiskup@redhat.com> - 9.2.11-1
699f87
- update to 9.2.11 per release notes
699f87
  http://www.postgresql.org/docs/9.2/static/release-9-2-11.html
699f87
699f87
* Tue Mar 10 2015 Pavel Raiskup <praiskup@redhat.com> - 9.2.10-2
699f87
- enable ecpg testsuite
699f87
699f87
* Thu Feb 05 2015 Pavel Raiskup <praiskup@redhat.com> - 9.2.10-1
699f87
- update to 9.2.10 per release notes
699f87
  http://www.postgresql.org/docs/9.2/static/release-9-2-10.html
699f87
  http://www.postgresql.org/docs/9.2/static/release-9-2-9.html
699f87
  http://www.postgresql.org/docs/9.2/static/release-9-2-8.html
699f87
  (rhbz#1198672 rhbz#1198673)
699f87
699f87
* Tue Feb 18 2014 Pavel Raiskup <praiskup@redhat.com> - 9.2.7-1
699f87
- update to 9.2.7 per release notes (#1065845)
699f87
  http://www.postgresql.org/docs/9.2/static/release-9-2-7.html
699f87
699f87
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 9.2.6-7
699f87
- Mass rebuild 2014-01-24
699f87
699f87
* Thu Jan 23 2014 Pavel Raiskup <praiskup@redhat.com> - 9.2.6-6
699f87
- fix typos related to postgresql-setup (#1055965)
699f87
699f87
* Wed Jan 22 2014 Jozef Mlich <jmlich@redhat.com> - 9.2.6-5
699f87
- revamp postgresql-setup a little (#1055965)
699f87
699f87
* Fri Jan 10 2014 Pavel Raiskup <praiskup@redhat.com> - 9.2.6-4
699f87
- build with -O3 on ppc64 (#1051075)
699f87
699f87
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 9.2.6-3
699f87
- Mass rebuild 2013-12-27
699f87
699f87
* Tue Dec 17 2013 Pavel Raiskup <praiskup@redhat.com> - 9.2.6-2
699f87
- don't fail if user has badly configured 'postgres' user access (#1043477)
699f87
699f87
* Thu Dec 12 2013 Jozef Mlich <jmlich@redhat.com> - 9.2.6-1
699f87
- Resolves #1038688
699f87
- rebase to 9.2.6 see changes at
699f87
  http://www.postgresql.org/docs/9.2/static/release-9-2-6.html
699f87
699f87
* Wed Oct 23 2013 Jozef Mlich <jmlich@redhat.com> - 9.2.5-3
699f87
- Resolves: #1019762
699f87
- Diff hunk order is important in this patch
699f87
699f87
* Mon Oct 21 2013 Jozef Mlich <jmlich@redhat.com> - 9.2.5-2
699f87
- Resolves: #1019762 
699f87
- additionally fixes rpmdiff filelist problem with
699f87
  /usr/share/doc/postgresql-9.2.5/html/bookindex.html.orig
699f87
699f87
* Mon Oct 21 2013 Jozef Mlich <jmlich@redhat.com> - 9.2.5-1
699f87
- rebase postgresql to 9.2.5 #1019762 
699f87
  http://www.postgresql.org/docs/9.2/static/release-9-2-5.html
699f87
699f87
* Tue Aug 20 2013 Pavel Raiskup <praiskup@redhat.com> - 9.2.4-6
699f87
- disable aggressive loop optimizations for old codebase (#993532)
699f87
- upgrade: stop old server in case of permissions problem (#896161)
699f87
699f87
* Mon Jul 29 2013 Pavel Raiskup <praiskup@redhat.com> - 9.2.4-5
699f87
- %%beta implies debug everywhere (also in upgrade part of build)
699f87
- allow `rpmbuild -bi --short-circuit`
699f87
- upgrade: setup previous (RHEL6) version as 8.14.3
699f87
- upgrade: start old postgres with socket file in /var/run/postgresql
699f87
699f87
* Wed Jul 24 2013 Pavel Raiskup <praiskup@redhat.com> - 9.2.4-5
699f87
- split aarch64 patch to allow build without postgresql-upgrade
699f87
699f87
* Tue Jul 09 2013 Pavel Raiskup <praiskup@redhat.com> - 9.2.4-4
699f87
- do not use -b for manual page fixes
699f87
699f87
* Thu Jun 20 2013 Pavel Raiskup <praiskup@redhat.com> - 9.2.4-3
699f87
- fix README.rpm-dist for the bug (#969050)
699f87
- replace hard-wired path with %%{_datadir}
699f87
699f87
* Thu Jun 13 2013 Pavel Raiskup <praiskup@redhat.com> - 9.2.4-3
699f87
- add atomic operations support for aarch64 to preupgrade version also (#970661)
699f87
- apply the forgotten man-page-day patch (#948933)
699f87
699f87
* Thu Jun 13 2013 Jan Stanek <jstanek@redhat.com> - 9.2.4-3
699f87
- added patch for manual pages (#948933)
699f87
699f87
* Tue Jun 11 2013 Pavel Raiskup <praiskup@redhat.com> - 9.2.4-2
699f87
- postgresql-setup: don't create whole path to server's data to make sure that
699f87
  the parent directory has correct permissions (#972425)
699f87
699f87
* Wed Jun 05 2013 Pavel Raiskup <praiskup@redhat.com> - 9.2.4-2
699f87
- fix rpmlint warnings
699f87
- fix aarch64 build by defining missing atomic operations (#970661)
699f87
699f87
* Thu Apr  4 2013 Tom Lane <tgl@redhat.com> 9.2.4-1
699f87
- Update to PostgreSQL 9.2.4, for various fixes described at
699f87
  http://www.postgresql.org/docs/9.2/static/release-9-2-4.html
699f87
  including the fixes for CVE-2013-1899, CVE-2013-1900, CVE-2013-1901
699f87
Resolves: #929223, #929255, #929328
699f87
- fix build for aarch64 and ppc64p7
699f87
699f87
* Thu Feb  7 2013 Tom Lane <tgl@redhat.com> 9.2.3-1
699f87
- Update to PostgreSQL 9.2.3, for various fixes described at
699f87
  http://www.postgresql.org/docs/9.2/static/release-9-2-3.html
699f87
  including the fix for CVE-2013-0255
699f87
Resolves: #908722
699f87
- Make the package build with selinux option disabled
699f87
Resolves: #894367
699f87
- Include old version of pg_controldata in postgresql-upgrade subpackage
699f87
Related: #896161
699f87
699f87
* Thu Jan  3 2013 Tom Lane <tgl@redhat.com> 9.2.2-3
699f87
- Prevent creation of TCP socket during pg_upgrade regression test, so that
699f87
  concurrent RPM builds on the same machine won't fail
699f87
Resolves: #891531
699f87
- Make sure $PGDATA/pg_log/ gets the right SELinux label in postgresql-setup
699f87
Resolves: #891547
699f87
699f87
* Wed Dec 19 2012 Tom Lane <tgl@redhat.com> 9.2.2-2
699f87
- Make building of plpython3 dependent on Fedora version, per guidelines
699f87
Resolves: #888419
699f87
699f87
* Thu Dec  6 2012 Tom Lane <tgl@redhat.com> 9.2.2-1
699f87
- Update to PostgreSQL 9.2.2, for various fixes described at
699f87
  http://www.postgresql.org/docs/9.2/static/release-9-2-2.html
699f87
- Use new systemd install/uninstall trigger macros conditionally,
699f87
  so that package can still be installed on pre-F18 branches
699f87
699f87
* Mon Sep 24 2012 Tom Lane <tgl@redhat.com> 9.2.1-1
699f87
- Update to PostgreSQL 9.2.1, for various fixes described at
699f87
  http://www.postgresql.org/docs/9.2/static/release-9-2-1.html
699f87
  including a nasty data-loss bug
699f87
- Adopt new systemd macros for server package install/uninstall triggers
699f87
Resolves: #850277
699f87
699f87
* Mon Sep 10 2012 Tom Lane <tgl@redhat.com> 9.2.0-1
699f87
- Update to PostgreSQL 9.2.0 (major version bump);
699f87
  in-place upgrade support now works from 9.1.x as the previous version
699f87
- Add postgresql-plpython3 subpackage with PL/Python built against Python 3
699f87
699f87
* Tue Aug 28 2012 Tom Lane <tgl@redhat.com> 9.1.5-2
699f87
- Remove unnecessary ldconfig calls in pre/post triggers
699f87
Resolves: #849344
699f87
699f87
* Fri Aug 17 2012 Tom Lane <tgl@redhat.com> 9.1.5-1
699f87
- Update to PostgreSQL 9.1.5, for various fixes described at
699f87
  http://www.postgresql.org/docs/9.1/static/release-9-1-5.html
699f87
  including the fixes for CVE-2012-3488, CVE-2012-3489
699f87
699f87
* Mon Aug 13 2012 Tom Lane <tgl@redhat.com> 9.1.4-5
699f87
- Back-port upstream support for postmaster listening on multiple Unix sockets
699f87
- Configure postmaster to create sockets in both /var/run/postgresql and /tmp;
699f87
  the former is now the default place for libpq to contact the postmaster.
699f87
Resolves: #825448
699f87
- Annotate postgresql.conf about not setting port number there
699f87
- Minor specfile cleanup per suggestions from Tom Callaway
699f87
Related: #845110
699f87
699f87
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9.1.4-4
699f87
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
699f87
699f87
* Sat Jul 14 2012 Tom Lane <tgl@redhat.com> 9.1.4-3
699f87
- Update code to use oom_score_adj not oom_adj, thereby suppressing
699f87
  whining in the kernel log
699f87
- Add "legacy action" scripts to support "service postgresql initdb" and
699f87
  "service postgresql upgrade" in a now-approved fashion (requires a
699f87
  recent version of initscripts to work)
699f87
Resolves: #800416
699f87
699f87
* Mon Jun 11 2012 Petr Pisar <ppisar@redhat.com> - 9.1.4-2
699f87
- Perl 5.16 rebuild
699f87
699f87
* Mon Jun  4 2012 Tom Lane <tgl@redhat.com> 9.1.4-1
699f87
- Update to PostgreSQL 9.1.4, for various fixes described at
699f87
  http://www.postgresql.org/docs/9.1/static/release-9-1-4.html
699f87
  including the fixes for CVE-2012-2143, CVE-2012-2655
699f87
Resolves: #826606
699f87
- Update previous version (embedded in postgresql-upgrade) to 9.0.8
699f87
  because fix in whole-row variable dumping could be needed for upgrades
699f87
- Revert fix for bug #800416, per fedora-packaging discussion at
699f87
  http://lists.fedoraproject.org/pipermail/packaging/2012-April/008314.html
699f87
  "service postgresql initdb" is dead and will stay that way
699f87
699f87
* Sat Mar 17 2012 Tom Lane <tgl@redhat.com> 9.1.3-3
699f87
- Fix postgresql-setup to rely on systemd to parse the unit file, instead
699f87
  of using ad-hoc code
699f87
Resolves: #804290
699f87
699f87
* Tue Mar 13 2012 Tom Lane <tgl@redhat.com> 9.1.3-2
699f87
- Fix postgresql-setup to look for unit file in /usr/lib and to ignore
699f87
  comments therein
699f87
Resolves: #802835
699f87
- Resurrect a now-mostly-dummy postgresql init script, so that people can
699f87
  keep on using "service postgresql initdb" if they wish
699f87
Resolves: #800416
699f87
699f87
* Mon Feb 27 2012 Tom Lane <tgl@redhat.com> 9.1.3-1
699f87
- Update to PostgreSQL 9.1.3, for various fixes described at
699f87
  http://www.postgresql.org/docs/9.1/static/release-9-1-3.html
699f87
  including the fixes for CVE-2012-0866, CVE-2012-0867, CVE-2012-0868
699f87
Resolves: #797918
699f87
699f87
* Mon Jan  9 2012 Tom Lane <tgl@redhat.com> 9.1.2-2
699f87
- Make systemd unit file more user-friendly by resurrecting the old init
699f87
  script's checks for data directory presence and version match
699f87
Resolves: #771496
699f87
699f87
* Mon Dec  5 2011 Tom Lane <tgl@redhat.com> 9.1.2-1
699f87
- Update to PostgreSQL 9.1.2, for various fixes described at
699f87
  http://www.postgresql.org/docs/9.1/static/release-9-1-2.html
699f87
699f87
* Wed Nov 02 2011 Honza Horak <hhorak@redhat.com> 9.1.1-2
699f87
- Create a symlink of pg_regress instead of full copy;
699f87
  Don't strip symbols from regress libs
699f87
Related: #729012
699f87
699f87
* Mon Sep 26 2011 Tom Lane <tgl@redhat.com> 9.1.1-1
699f87
- Update to PostgreSQL 9.1.1, for various fixes described at
699f87
  http://www.postgresql.org/docs/9.1/static/release-9-1-1.html
699f87
- Enable build (but not test) of contrib/sepgsql
699f87
- Clean up specfile build options so that turning options off works again
699f87
699f87
* Mon Sep 12 2011 Tom Lane <tgl@redhat.com> 9.1.0-1
699f87
- Update to PostgreSQL 9.1.0 (major version bump);
699f87
  in-place upgrade support now works from 9.0.x as the previous version
699f87
699f87
* Wed Jul 27 2011 Tom Lane <tgl@redhat.com> 9.0.4-8
699f87
- Convert to systemd startup support
699f87
Resolves: #696427
699f87
699f87
* Thu Jul 21 2011 Petr Sabata <contyk@redhat.com> - 9.0.4-7
699f87
- Perl mass rebuild
699f87
699f87
* Wed Jul 20 2011 Petr Sabata <contyk@redhat.com> - 9.0.4-6
699f87
- Perl mass rebuild
699f87
699f87
* Wed Jul  6 2011 Tom Lane <tgl@redhat.com> 9.0.4-5
699f87
- Remove erroneously-included Default-Start line from LSB init block
699f87
Related: #717024
699f87
699f87
* Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> 9.0.4-4
699f87
- Perl mass rebuild
699f87
- incorporate upstream patch to make it build with Perl 5.14
699f87
699f87
* Fri Jun 10 2011 Tom Lane <tgl@redhat.com> 9.0.4-3
699f87
- Work around gcc 4.6.0 bug (temporary backport from next upstream release)
699f87
699f87
* Tue May 10 2011 Tom Lane <tgl@redhat.com> 9.0.4-2
699f87
- Add LSB init block to initscript, to ensure sane ordering at system boot
699f87
Resolves: #703215
699f87
699f87
* Mon Apr 18 2011 Tom Lane <tgl@redhat.com> 9.0.4-1
699f87
- Update to PostgreSQL 9.0.4, for various fixes described at
699f87
  http://www.postgresql.org/docs/9.0/static/release-9-0-4.html
699f87
- Add %%{?_isa} to cross-subpackage Requires, per latest packaging guidelines
699f87
699f87
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9.0.3-3
699f87
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
699f87
699f87
* Thu Feb  3 2011 Tom Lane <tgl@redhat.com> 9.0.3-2
699f87
- Remove filter-requires-perl-Pg.sh, which doesn't seem to be needed now that
699f87
  PyGreSQL has been split out; and our use of it isn't compatible with rpm 4.9
699f87
  anyway
699f87
699f87
* Tue Feb  1 2011 Tom Lane <tgl@redhat.com> 9.0.3-1
699f87
- Update to PostgreSQL 9.0.3, for various fixes described at
699f87
  http://www.postgresql.org/docs/9.0/static/release-9-0-3.html
699f87
  including the fix for CVE-2010-4015
699f87
Resolves: #674296
699f87
699f87
* Tue Dec 28 2010 Tom Lane <tgl@redhat.com> 9.0.2-1
699f87
- Update to PostgreSQL 9.0.2 (major version bump)
699f87
- Create infrastructure for in-place database upgrade using pg_upgrade
699f87
Resolves: #398221
699f87
699f87
* Thu Dec 16 2010 Tom Lane <tgl@redhat.com> 8.4.6-1
699f87
- Update to PostgreSQL 8.4.6, for various fixes described at
699f87
  http://www.postgresql.org/docs/8.4/static/release-8-4-6.html
699f87
- Ensure we don't package any .gitignore files from the source tarball
699f87
Related: #642210
699f87
699f87
* Tue Oct  5 2010 Tom Lane <tgl@redhat.com> 8.4.5-1
699f87
- Update to PostgreSQL 8.4.5, for various fixes described at
699f87
  http://www.postgresql.org/docs/8.4/static/release-8-4-5.html
699f87
  including the fix for CVE-2010-3433
699f87
Related: #639371
699f87
- Add -p "$pidfile" to initscript's status call to improve corner cases.
699f87
Related: #561010
699f87
699f87
* Sat Jul 31 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 8.4.4-3
699f87
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
699f87
- Duplicate COPYRIGHT in -libs subpackage, per revised packaging guidelines
699f87
699f87
* Wed Jun 02 2010 Marcela Maslanova <mmaslano@redhat.com> - 8.4.4-2
699f87
- Mass rebuild with perl-5.12.0
699f87
699f87
* Mon May 17 2010 Tom Lane <tgl@redhat.com> 8.4.4-1
699f87
- Update to PostgreSQL 8.4.4, for various fixes described at
699f87
  http://www.postgresql.org/docs/8.4/static/release-8-4-4.html
699f87
  including fixes for CVE-2010-1169 and CVE-2010-1170
699f87
Resolves: #593032
699f87
699f87
* Sun Mar 14 2010 Tom Lane <tgl@redhat.com> 8.4.3-1
699f87
- Update to PostgreSQL 8.4.3, for various fixes described at
699f87
  http://www.postgresql.org/docs/8.4/static/release-8-4-3.html
699f87
699f87
* Mon Feb 22 2010 Tom Lane <tgl@redhat.com> 8.4.2-8
699f87
- Bring init script into some modicum of compliance with Fedora/LSB standards
699f87
Resolves: #201043
699f87
699f87
* Thu Feb 18 2010 Tom "spot" Callaway <tcallawa@redhat.com> 8.4.2-7
699f87
- adjust license tag to reflect OSI decision
699f87
699f87
* Tue Jan 26 2010 Tom Lane <tgl@redhat.com> 8.4.2-6
699f87
- Emit explicit error message if user tries to build RPM as root
699f87
Related: #558921
699f87
699f87
* Wed Jan 20 2010 Tom Lane <tgl@redhat.com> 8.4.2-5
699f87
- Latest version of systemtap needs the probes.o file to be built again
699f87
Resolves: #557266
699f87
- Provide script and instructions for building the documentation PDF
699f87
699f87
* Mon Jan 11 2010 Tom Lane <tgl@redhat.com> 8.4.2-4
699f87
- Arrange for the postmaster, but not any of its child processes, to be run
699f87
  with oom_adj -17.  This compensates for the OOM killer not being smart about
699f87
  accounting for shared memory usage.
699f87
699f87
* Sat Jan  9 2010 Tom Lane <tgl@redhat.com> 8.4.2-3
699f87
- Remove the postgresql-python and postgresql-tcl subpackages.  These files
699f87
  are now broken out as their own packages (PyGreSQL and tcl-pgtcl,
699f87
  respectively), to reflect the now longstanding split of upstream projects.
699f87
Related: #452306, #452321
699f87
699f87
* Tue Jan  5 2010 Tom Lane <tgl@redhat.com> 8.4.2-2
699f87
- Remove static libraries (.a files) from package, per packaging guidelines
699f87
- Change %%define to %%global, per packaging guidelines
699f87
699f87
* Wed Dec 16 2009 Tom Lane <tgl@redhat.com> 8.4.2-1
699f87
- Update to PostgreSQL 8.4.2, for various fixes described at
699f87
  http://www.postgresql.org/docs/8.4/static/release-8-4-2.html
699f87
  including two security issues
699f87
Related: #546321
699f87
Related: #547662
699f87
- Use -N not the obsolete -n in useradd call
699f87
Resolves: #495727
699f87
- Clean up specfile to eliminate rpmlint gripes, mainly by removing
699f87
  no-longer-needed provisions for superseding rh-postgresql
699f87
699f87
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 8.4.1-5
699f87
- rebuild against perl 5.10.1
699f87
699f87
* Thu Oct 15 2009 Tom Lane <tgl@redhat.com> 8.4.1-4
699f87
- add sparc/sparc64 to multilib header support
699f87
699f87
* Mon Sep 21 2009 Tom Lane <tgl@redhat.com> 8.4.1-3
699f87
- Ensure pgstartup.log gets the right ownership/permissions during initdb
699f87
Resolves: #498959
699f87
699f87
* Wed Sep 16 2009 Tomas Mraz <tmraz@redhat.com> - 8.4.1-2
699f87
- Use password-auth common PAM configuration instead of system-auth
699f87
699f87
* Wed Sep  9 2009 Tom Lane <tgl@redhat.com> 8.4.1-1
699f87
- Update to PostgreSQL 8.4.1, for various fixes described at
699f87
  http://www.postgresql.org/docs/8.4/static/release-8-4-1.html
699f87
  including two security issues
699f87
Related: #522085
699f87
Related: #522092
699f87
699f87
* Tue Sep 01 2009 Karsten Hopp <karsten@redhat.com> 8.4.0-3.2
699f87
- bump release and build again with the correct libssl
699f87
699f87
* Tue Sep 01 2009 Karsten Hopp <karsten@redhat.com> 8.4.0-3.1
699f87
- disable dtrace on s390x as a workaround until #520469 has been fixed
699f87
699f87
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 8.4.0-3
699f87
- rebuilt with new openssl
699f87
699f87
* Thu Aug 20 2009 Tom "spot" Callaway <tcallawa@redhat.com> 8.4.0-2
699f87
- update License tag to MIT (PostgreSQL calls it "BSD", but it is MIT)
699f87
- Note: This changes nothing from a license compatibility perspective.
699f87
699f87
* Mon Aug 17 2009 Tom Lane <tgl@redhat.com> 8.4.0-1
699f87
- Update to PostgreSQL 8.4.0.  See release notes at
699f87
  http://www.postgresql.org/docs/8.4/static/release-8-4.html
699f87
699f87
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.3.7-2
699f87
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
699f87
699f87
* Sat Mar 21 2009 Tom Lane <tgl@redhat.com> 8.3.7-1
699f87
- Update to PostgreSQL 8.3.7, for various fixes described at
699f87
  http://www.postgresql.org/docs/8.3/static/release-8-3-7.html
699f87
  notably the fix for CVE-2009-0922
699f87
699f87
* Tue Mar 10 2009 Tom Lane <tgl@redhat.com> 8.3.6-4
699f87
- Prevent dependent packages from needing to include sys/sdt.h
699f87
  (unintended side effect of previous patch)
699f87
- Use -O1 on alpha, per report from Oliver Falk; -O2 tickles gcc bugs
699f87
699f87
* Sun Mar  8 2009 Tom Lane <tgl@redhat.com> 8.3.6-3
699f87
- Enable tracing via systemtap
699f87
Resolves: #488941
699f87
699f87
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.3.6-2
699f87
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
699f87
699f87
* Sat Feb  7 2009 Tom Lane <tgl@redhat.com> 8.3.6-1
699f87
- Update to PostgreSQL 8.3.6, for various fixes described at
699f87
  http://www.postgresql.org/docs/8.3/static/release-8-3-6.html
699f87
699f87
* Wed Jan 21 2009 Dennis Gilmore <dennis@ausil.us> 8.3.5-4
699f87
- use -O1 on sparc64
699f87
699f87
* Sat Jan 17 2009 Tomas Mraz <tmraz@redhat.com> - 8.3.5-3
699f87
- rebuild with new openssl
699f87
699f87
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 8.3.5-2
699f87
- Rebuild for Python 2.6
699f87
699f87
* Sun Nov  2 2008 Tom Lane <tgl@redhat.com> 8.3.5-1
699f87
- Update to PostgreSQL 8.3.5.
699f87
- Improve display from init script's initdb action, per Michael Schwendt
699f87
699f87
* Thu Sep 25 2008 Tom Lane <tgl@redhat.com> 8.3.4-1
699f87
- Update to PostgreSQL 8.3.4.
699f87
699f87
* Mon Jul 28 2008 Tom Lane <tgl@redhat.com> 8.3.3-3
699f87
- Fix build failure caused by new default patch fuzz = 0 policy in rawhide.
699f87
699f87
* Fri Jun 20 2008 Tom Lane <tgl@redhat.com> 8.3.3-2
699f87
- Install Pgtcl in /usr/lib/tcl$TCL_VERSION, not directly in /usr/lib.
699f87
  Needed because tcl 8.5 no longer puts /usr/lib into its package search path.
699f87
  NOTE: do not back-port this change into branches using pre-8.5 tcl, because
699f87
  /usr/lib/tcl8.4 had been a symlink to /usr/share/tcl8.4, and /usr/share
699f87
  is exactly where we must not put Pgtcl.
699f87
Resolves: #228263
699f87
699f87
* Wed Jun 11 2008 Tom Lane <tgl@redhat.com> 8.3.3-1
699f87
- Update to PostgreSQL 8.3.3.
699f87
- Remove postgresql-prefer-ncurses.patch, no longer needed in recent
699f87
  Fedora releases because libtermcap is gone.
699f87
699f87
* Sat May 17 2008 Tom Lane <tgl@redhat.com> 8.3.1-5
699f87
- rebuild because of buildsystem hiccup
699f87
699f87
* Sat May 17 2008 Tom Lane <tgl@redhat.com> 8.3.1-4
699f87
- Enable LDAP support
699f87
Resolves: #445315
699f87
- Use -Wl,--as-needed to suppress bogus dependencies for libraries that
699f87
  are really only needed by some of the subpackages
699f87
699f87
* Mon Apr 28 2008 Tom Lane <tgl@redhat.com> 8.3.1-3
699f87
- Fix build breakage on PPC due to incorrect configure test
699f87
Related: #444317
699f87
699f87
* Sat Apr 26 2008 Tom Lane <tgl@redhat.com> 8.3.1-2
699f87
- Clean up cross-subpackage Requires: to ensure that updating any one
699f87
  subpackage brings in the matching versions of others.
699f87
Resolves: #444271
699f87
699f87
* Tue Mar 25 2008 Tom Lane <tgl@redhat.com> 8.3.1-1
699f87
- Update to PostgreSQL 8.3.1.
699f87
699f87
* Tue Mar 18 2008 Tom "spot" Callaway <tcallawa@redhat.com> 8.3.0-3
699f87
- add Requires for versioned perl (libperl.so)
699f87
699f87
* Wed Feb  6 2008 Tom Lane <tgl@redhat.com> 8.3.0-2
699f87
- Enable the new GSSAPI support in 8.3.0.
699f87
699f87
* Mon Feb  4 2008 Tom Lane <tgl@redhat.com> 8.3.0-1
699f87
- Update to PostgreSQL 8.3.0.
699f87
699f87
* Fri Jan 18 2008 Tom Lane <tgl@redhat.com> 8.3RC2-1
699f87
- Update to PostgreSQL 8.3RC2 (not waiting for 8.3.0 because Fedora 9 alpha
699f87
  should be 8.3-based not 8.2-based).
699f87
- Update to pgtcl 1.6.2
699f87
699f87
* Mon Jan  7 2008 Tom Lane <tgl@redhat.com> 8.2.6-1
699f87
- Update to PostgreSQL 8.2.6 to fix CVE-2007-4769, CVE-2007-4772,
699f87
  CVE-2007-6067, CVE-2007-6600, CVE-2007-6601
699f87
- Make initscript and pam config files be installed unconditionally;
699f87
  seems new buildroots don't necessarily have those directories in place
699f87
699f87
* Wed Dec  5 2007 Tom Lane <tgl@redhat.com> 8.2.5-2
699f87
- Rebuild for new openssl
699f87
699f87
* Thu Sep 20 2007 Tom Lane <tgl@redhat.com> 8.2.5-1
699f87
- Update to PostgreSQL 8.2.5 and pgtcl 1.6.0
699f87
699f87
* Tue Sep  4 2007 Tom Lane <tgl@redhat.com> 8.2.4-6
699f87
- Fix multilib problem for /usr/include/ecpg_config.h (which is new in 8.2.x)
699f87
699f87
* Sat Aug 25 2007 Tom Lane <tgl@redhat.com> 8.2.4-5
699f87
- Use nicer solution for tzdata file substitution: upstream discussion
699f87
  concluded that hardwiring the path was better than a symlink after all.
699f87
699f87
* Wed Aug 22 2007 Tom Lane <tgl@redhat.com> 8.2.4-4
699f87
- Use tzdata package's data files instead of private copy, so that
699f87
  postgresql-server need not be turned for routine timezone updates
699f87
- Don't remove postgres user/group during RPM uninstall, per Fedora
699f87
  packaging guidelines
699f87
- Seems we need an explicit BuildRequires on gawk now
699f87
- Rebuild to fix Fedora toolchain issues
699f87
699f87
* Sun Aug 12 2007 Tom Lane <tgl@redhat.com> 8.2.4-3
699f87
- Recent perl changes in rawhide mean we need a more specific BuildRequires
699f87
699f87
* Wed Jun 20 2007 Tom Lane <tgl@redhat.com> 8.2.4-2
699f87
- Fix oversight in postgresql-test makefile: pg_regress isn't a shell script
699f87
  anymore.  Per upstream bug 3398.
699f87
699f87
* Tue Apr 24 2007 Tom Lane <tgl@redhat.com> 8.2.4-1
699f87
- Update to PostgreSQL 8.2.4 for CVE-2007-2138, data loss bugs
699f87
Resolves: #237682
699f87
699f87
* Wed Feb 14 2007 Karsten Hopp <karsten@redhat.com> 8.2.3-2
699f87
- rebuild with tcl-8.4
699f87
699f87
* Wed Feb  7 2007 Tom Lane <tgl@redhat.com> 8.2.3-1
699f87
- Update to PostgreSQL 8.2.3 due to regression induced by security fix
699f87
Resolves: #227522
699f87
699f87
* Sun Feb  4 2007 Tom Lane <tgl@redhat.com> 8.2.2-1
699f87
- Update to PostgreSQL 8.2.2 to fix CVE-2007-0555, CVE-2007-0556
699f87
Related: #225496
699f87
699f87
* Fri Jan 12 2007 Tom Lane <tgl@redhat.com> 8.2.1-2
699f87
- Split -pl subpackage into three new packages to reduce dependencies
699f87
  and track upstream project's packaging.
699f87
699f87
* Wed Jan 10 2007 Tom Lane <tgl@redhat.com> 8.2.1-1
699f87
- Update to PostgreSQL 8.2.1
699f87
- Update to pgtcl 1.5.3
699f87
- Be sure we link to libncurses, not libtermcap which is disappearing in Fedora
699f87
699f87
* Thu Dec  7 2006 Jeremy Katz <katzj@redhat.com> - 8.2.0-2
699f87
- rebuild for python 2.5
699f87
699f87
* Mon Dec  4 2006 Tom Lane <tgl@redhat.com> 8.2.0-1
699f87
- Update to PostgreSQL 8.2.0
699f87
- Update to PyGreSQL 3.8.1
699f87
- Fix chcon arguments in test/regress/Makefile
699f87
Related: #201035
699f87
- Adjust init script to not fool /etc/rc.d/rc
699f87
Resolves: #161470
699f87
- Change init script to not do initdb automatically, but require
699f87
  manual "service postgresql initdb" for safety.  Per upstream discussions.
699f87
699f87
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 8.1.4-1.1
699f87
- rebuild
699f87
699f87
* Mon May 22 2006 Tom Lane <tgl@redhat.com> 8.1.4-1
699f87
- Update to PostgreSQL 8.1.4 (includes fixes for CVE-2006-2313, CVE-2006-2314;
699f87
  see bug #192173)
699f87
- Update to PyGreSQL 3.8
699f87
- Suppress noise from chcon, per bug #187744
699f87
699f87
* Mon Mar 27 2006 Tom Lane <tgl@redhat.com> 8.1.3-2
699f87
- Remove JDBC from this build; we will package it as separate SRPM
699f87
699f87
* Mon Feb 13 2006 Jesse Keating <jkeating@redhat.com> - 8.1.3-1.1
699f87
- rebump for build order issues during double-long bump
699f87
699f87
* Mon Feb 13 2006 Tom Lane <tgl@redhat.com> 8.1.3-1
699f87
- Update to PostgreSQL 8.1.3 (fixes bug #180617, CVE-2006-0553)
699f87
- Update to jdbc driver build 405
699f87
- Modify multilib header hack to not break non-RH arches, per bug #177564
699f87
699f87
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 8.1.2-1.1
699f87
- rebuilt for new gcc4.1 snapshot and glibc changes
699f87
699f87
* Mon Jan  9 2006 Tom Lane <tgl@redhat.com> 8.1.2-1
699f87
- Update to PostgreSQL 8.1.2
699f87
- Repair extraneous quote in pgtcl configure script ... odd that bash
699f87
  didn't use to spit up on this.
699f87
699f87
* Thu Dec 15 2005 Tom Lane <tgl@redhat.com> 8.1.1-3
699f87
- fix pg_config.h for 64-bit and ppc platforms
699f87
- update Makefile.regress (needs to --load-language=plpgsql)
699f87
699f87
* Wed Dec 14 2005 Tom Lane <tgl@redhat.com> 8.1.1-2
699f87
- oops, looks like we want uname -i not uname -m
699f87
699f87
* Wed Dec 14 2005 Tom Lane <tgl@redhat.com> 8.1.1-1
699f87
- Update to PostgreSQL 8.1.1
699f87
- Make pg_config.h architecture-independent for multilib installs;
699f87
  put the original pg_config.h into pg_config_$ARCH.h
699f87
699f87
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
699f87
- rebuilt
699f87
699f87
* Sat Nov 12 2005 Tom Lane <tgl@redhat.com> 8.1.0-4
699f87
- Update included PDF-format manual to 8.1.
699f87
699f87
* Wed Nov  9 2005 Tom Lane <tgl@redhat.com> 8.1.0-3
699f87
- Rebuild due to openssl library update.
699f87
699f87
* Wed Nov  9 2005 Tom Lane <tgl@redhat.com> 8.1.0-2
699f87
- Rebuild due to openssl library update.
699f87
699f87
* Mon Nov  7 2005 Tom Lane <tgl@redhat.com> 8.1.0-1
699f87
- Update to PostgreSQL 8.1.0, PyGreSQL 3.7, and jdbc driver build 404
699f87
- Fix PAM config file (must have account not only auth) (bug #167040)
699f87
- Add BuildPrereq: libxslt-devel (bug #170141)
699f87
- Sync with PGDG SRPM as much as feasible
699f87
699f87
* Fri Oct 14 2005 Tomas Mraz <tmraz@redhat.com>
699f87
- use include instead of pam_stack in pam config
699f87
699f87
* Tue Oct  4 2005 Tom Lane <tgl@redhat.com> 8.0.4-2
699f87
- Add rpath to plperl.so (bug #162198)
699f87
699f87
* Tue Oct  4 2005 Tom Lane <tgl@redhat.com> 8.0.4-1
699f87
- Update to PostgreSQL 8.0.4, PyGreSQL 3.6.2, and jdbc driver build 312
699f87
- Adjust pgtcl link command to ensure it binds to correct libpq (bug #166665)
699f87
- Remove obsolete Conflicts: against other python versions (bug #166754)
699f87
- Add /etc/pam.d/postgresql (bug #167040)
699f87
- Include contrib/xml2 in build (bug #167492)
699f87
699f87
* Tue May 10 2005 Tom Lane <tgl@redhat.com> 8.0.3-1
699f87
- Update to PostgreSQL 8.0.3 (includes security and data-loss fixes; see
699f87
  bz#156727, CAN-2005-1409, CAN-2005-1410)
699f87
- Update to jdbc driver build 311
699f87
- Recreate postgres user after superseding an rh-postgresql install (bug #151911)
699f87
- Ensure postgresql server is restarted if running during an upgrade
699f87
699f87
* Thu Apr 14 2005 Florian La Roche <laroche@redhat.com> 8.0.2-2
699f87
- rebuild for postgresql-tcl
699f87
699f87
* Tue Apr 12 2005 Tom Lane <tgl@redhat.com> 8.0.2-1
699f87
- Update to PostgreSQL 8.0.2.
699f87
699f87
* Fri Mar 11 2005 Tom Lane <tgl@redhat.com> 8.0.1-5
699f87
- Remove unwanted rpath specification from pgtcl (bz#150649)
699f87
699f87
* Wed Mar  2 2005 Tom Lane <tgl@redhat.com> 8.0.1-4
699f87
- Attach Obsoletes: declarations for rh-postgresql to subpackages (bz#144435)
699f87
- Make Requires: and Prereq: package linkages specify release not only
699f87
  version, as per recent mailing list discussion.
699f87
699f87
* Tue Mar  1 2005 Tomas Mraz <tmraz@redhat.com> 8.0.1-3
699f87
- rebuild with openssl-0.9.7e
699f87
699f87
* Mon Feb 21 2005 Tom Lane <tgl@redhat.com> 8.0.1-2
699f87
- Repair improper error message in init script when PGVERSION doesn't match.
699f87
- Arrange for auto update of version embedded in init script.
699f87
699f87
* Sun Jan 30 2005 Tom Lane <tgl@redhat.com> 8.0.1-1
699f87
- Update to PostgreSQL 8.0.1.
699f87
- Add versionless symlinks to jar files (bz#145744)
699f87
699f87
* Wed Jan 19 2005 Tom Lane <tgl@redhat.com> 8.0.0-1
699f87
- Update to PostgreSQL 8.0.0, PyGreSQL 3.6.1, pgtcl 1.5.2,
699f87
  and jdbc driver build 309.
699f87
- Extensive cleanout of obsolete cruft in patch set.
699f87
- Regression tests are run during RPM build (NOTE: cannot build as root when
699f87
  this is enabled).
699f87
- Postmaster stderr goes someplace useful, not /dev/null (bz#76503, #103767)
699f87
- Make init script return a useful exit status (bz#80782)
699f87
- Move docs' tutorial directory to %%{_libdir}/pgsql/tutorial, since it
699f87
  includes .so files that surely do not belong under /usr/share.
699f87
- Remove useless .sgml files from docs RPM (bz#134450)
699f87
- Put regression tests under /usr/lib64 on 64-bit archs, since .so files
699f87
  are not architecture-independent.
699f87
699f87
* Wed Jan 12 2005 Tim Waugh <twaugh@redhat.com> 7.4.6-5
699f87
- Rebuilt for new readline.
699f87
699f87
* Tue Jan 11 2005 Dan Walsh <dwalsh@redhat.com> 7.4.6-4
699f87
- Add restorecon to postgresql.init in order to restore database to correct
699f87
- SELinux context.
699f87
699f87
* Thu Dec 16 2004 Tom Lane <tgl@redhat.com> 7.4.6-3
699f87
- Update to PyGreSQL 3.6 (to fix bug #142711)
699f87
- Adjust a few file permissions (bug #142431)
699f87
- Assign %%{_libdir}/pgsql to base package instead of -server (bug #74003)
699f87
699f87
* Mon Nov 15 2004 Tom Lane <tgl@redhat.com> 7.4.6-2
699f87
- Rebuild so python components play with python 2.4 (bug 139160)
699f87
699f87
* Sat Oct 23 2004 Tom Lane <tgl@redhat.com> 7.4.6-1
699f87
- Update to PostgreSQL 7.4.6 (bugs 136947, 136949)
699f87
- Make init script more paranoid about mkdir step of initializing a new
699f87
  database (bugs 136947, 136949)
699f87
699f87
* Wed Oct 20 2004 Tom Lane <tgl@redhat.com> 7.4.5-4
699f87
- Remove contrib/oidjoins stuff from installed fileset; it's of no use
699f87
  to ordinary users and has a security issue (bugs 136300, 136301)
699f87
- adjust chkconfig priority (bug 128852)
699f87
699f87
* Tue Oct 05 2004 Tom Lane <tgl@redhat.com> 7.4.5-3
699f87
- Solve the stale lockfile problem (bugs 71295, 96981, 134090)
699f87
- Use runuser instead of su for SELinux (bug 134588)
699f87
699f87
* Mon Aug 30 2004 Tom Lane <tgl@redhat.com> 7.4.5-2
699f87
- Update to PyGreSQL 3.5.
699f87
699f87
* Tue Aug 24 2004 Tom Lane <tgl@redhat.com> 7.4.5-1
699f87
- Update to PostgreSQL 7.4.5.
699f87
- Update JDBC jars to driver build 215.
699f87
- Add Obsoletes: entries for rh-postgresql packages, per bug 129278.
699f87
699f87
* Sat Jul 10 2004 Tom Lane <tgl@redhat.com> 7.4.3-3
699f87
- Undo ill-considered chkconfig change that causes server to start
699f87
  immediately upon install.  Mea culpa (bug 127552).
699f87
699f87
* Sat Jul 03 2004 Tom Lane <tgl@redhat.com> 7.4.3-2
699f87
- Update JDBC jars to driver build 214.
699f87
699f87
* Wed Jun 23 2004 Tom Lane <tgl@redhat.com> 7.4.3-1
699f87
- Update to PostgreSQL 7.4.3.
699f87
- Uninstalling server RPM stops postmaster first, per bug 114846.
699f87
- Fix su commands to not assume PG user's shell is sh-like, per bug 124024.
699f87
- Fix permissions on postgresql-python doc files, per bug 124822.
699f87
- Minor postgresql.init improvements.
699f87
699f87
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
699f87
- rebuilt
699f87
699f87
* Wed Mar 10 2004 Tom Lane <tgl@redhat.com> 7.4.2-1
699f87
- Update to PostgreSQL 7.4.2; sync with community SRPM as much as possible.
699f87
- Support PGOPTS from /etc/sysconfig/pgsql, per bug 111504.
699f87
- Fix permissions on /etc/sysconfig/pgsql, per bug 115278.
699f87
- SELinux patch in init file: always su 
699f87
- Rebuilt
699f87
699f87
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
699f87
- rebuilt
699f87
699f87
* Wed Feb 25 2004 Tom Lane <tgl@redhat.com>
699f87
- Update to PostgreSQL 7.4.1.
699f87
- Rebuilt
699f87
699f87
* Tue Feb 24 2004 Tom Lane <tgl@redhat.com>
699f87
- Fix chown syntax in postgresql.init also.
699f87
- Rebuilt
699f87
699f87
* Mon Feb 23 2004 Tim Waugh <twaugh@redhat.com>
699f87
- Use ':' instead of '.' as separator for chown.
699f87
699f87
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
699f87
- rebuilt
699f87
699f87
* Fri Jan 9 2004 Lamar Owen <lowen@pari.edu>
699f87
- 7.4.1-1PGDG
699f87
- Merge Sander Steffann's changes up to 7.4-0.5PGDG
699f87
- Proper 7.4.1 JDBC jars this time.
699f87
- Patch for no pl/python from Alvaro
699f87
699f87
* Fri Dec 05 2003 David Jee <djee@redhat.com> 7.4-5
699f87
- Rebuild for Perl 5.8.2.
699f87
699f87
* Mon Dec 01 2003 David Jee <djee@redhat.com> 7.4-4
699f87
- Add PyGreSQL patch for deprecated column pg_type.typprtlen [Bug #111263]
699f87
- Add headers patch which moves ecpg headers to /usr/include/ecpg
699f87
  [Bug #111195]
699f87
699f87
* Fri Nov 28 2003 David Jee <djee@redhat.com> 7.4-3
699f87
- uncomment buildrequires tcl-devel
699f87
699f87
* Fri Nov 28 2003 David Jee <djee@redhat.com> 7.4-2
699f87
- rebuild
699f87
699f87
* Mon Nov 24 2003 David Jee <djee@redhat.com> 7.4-1
699f87
- initial Red Hat build
699f87
- move jars to /usr/share/java
699f87
- fix rpm-multilib patch to use sysconfig
699f87
699f87
* Fri Nov 21 2003 Lamar Owen <lowen@pari.edu> <lamar.owen@wgcr.org>
699f87
- 7.4-0.1PGDG
699f87
- Development JDBC jars in addition to the 7.3 jars; will replace the
699f87
- 7.3 jars once 7.4 official jars are released.
699f87
- Changed to use the bzip2 source to save a little size.
699f87
- Removed some commented out portions of the specfile.
699f87
- Removed the 7.3.4 PDF docs.  Will replace with 7.4 PDF's once they
699f87
- are ready.
699f87
699f87
* Tue Nov 18 2003 Kaj J. Niemi <kajtzu@fi.basen.net> 7.4-0.1
699f87
- 7.4
699f87
- Fixed Patch #1 (now rpm-pgsql-7.4.patch)
699f87
- Fixed Patch #2 (now rpm-multilib-7.4.patch):
699f87
- Patch #4 is unnecessary (upstream)
699f87
- Fixed Patch #6 (now postgresql-7.4-src-tutorial.patch)
699f87
- Added Patch #8 (postgresql-7.4-com_err.patch) as com_err()
699f87
  is provided by e2fsprogs and CPPFLAGS gets lost somewhere
699f87
  inside configure (bad macro?)
699f87
- No 7.4 PDF docs available yet (Source #17)
699f87
- PyGreSQL is separated from the upstream distribution but
699f87
  we include it as usual (Source #18)
699f87
- Default to compiling libpq and ECPG as fully thread-safe
699f87
699f87
- 7.4 Origin.  See previous spec files for previous history. Adapted
699f87
- from Red Hat and PGDG's 7.3.4 RPM, directly descended from 
699f87
- postgresql-7.3.4-2 as shipped in Fedora Core 1.