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