Blame SPECS/postgresql.spec

ca36e9
# This is the PostgreSQL Global Development Group Official RPMset spec file,
ca36e9
# or a derivative thereof.
ca36e9
# Copyright 2003-2009 Lamar Owen <lowen@pari.edu> <lamar.owen@wgcr.org>
ca36e9
# and others listed.
ca36e9
ca36e9
# Major Contributors:
ca36e9
# ---------------
ca36e9
# Lamar Owen
ca36e9
# Trond Eivind Glomsrd <teg@redhat.com>
ca36e9
# Thomas Lockhart
ca36e9
# Reinhard Max
ca36e9
# Karl DeBisschop
ca36e9
# Peter Eisentraut
ca36e9
# Joe Conway
ca36e9
# Andrew Overholt
ca36e9
# David Jee
ca36e9
# Kaj J. Niemi
ca36e9
# Sander Steffann
ca36e9
# Tom Lane
ca36e9
# and others in the Changelog....
ca36e9
ca36e9
# This spec file and ancillary files are licensed in accordance with
ca36e9
# The PostgreSQL license.
ca36e9
ca36e9
# In this file you can find the default build package list macros.
ca36e9
# These can be overridden by defining on the rpm command line:
ca36e9
# rpm --define 'packagename 1' .... to force the package to build.
ca36e9
# rpm --define 'packagename 0' .... to force the package NOT to build.
ca36e9
# The base package, the libs package, the devel package, and the server package
ca36e9
# always get built.
ca36e9
%{?scl:%scl_package postgresql}
ca36e9
ca36e9
%{!?beta:%global beta 0}
ca36e9
%{?beta:%global __os_install_post /usr/lib/rpm/brp-compress}
ca36e9
ca36e9
%{!?test:%global test 1}
ca36e9
%{!?rewind:%global rewind 1}
ca36e9
%{!?plpython:%global plpython 1}
ca36e9
%{!?plpython3:%global plpython3 0}
ca36e9
%{!?pltcl:%global pltcl 1}
ca36e9
%{!?plperl:%global plperl 1}
ca36e9
%{!?ssl:%global ssl 1}
ca36e9
%{!?kerberos:%global kerberos 1}
ca36e9
%{!?ldap:%global ldap 1}
ca36e9
%{!?nls:%global nls 1}
ca36e9
%{!?uuid:%global uuid 1}
ca36e9
%{!?xml:%global xml 1}
ca36e9
%{!?pam:%global pam 1}
ca36e9
%{!?sdt:%global sdt 1}
ca36e9
%{!?selinux:%global selinux 1}
ca36e9
%{!?runselftest:%global runselftest 1}
ca36e9
ca36e9
# By default, patch(1) creates backup files when chunks apply with offsets.
ca36e9
# Turn that off to ensure such files don't get included in RPMs.
ca36e9
%global _default_patch_flags --no-backup-if-mismatch
ca36e9
ca36e9
%if 0%{?scl:1}
ca36e9
%global scl_upper %{lua:print(string.upper(string.gsub(rpm.expand("%{scl}"), "-", "_")))}
ca36e9
%endif
ca36e9
ca36e9
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
ca36e9
Summary: PostgreSQL client programs
ca36e9
Name: %{?scl_prefix}postgresql
ca36e9
%global majorversion 9.5
ca36e9
Version: 9.5.2
ca36e9
Release: 2%{?dist}
ca36e9
ca36e9
# The PostgreSQL license is very similar to other MIT licenses, but the OSI
ca36e9
# recognizes it as an independent license, so we do as well.
ca36e9
License: PostgreSQL
ca36e9
Group: Applications/Databases
ca36e9
Url: http://www.postgresql.org/
ca36e9
ca36e9
%global setup_version 4.0
ca36e9
ca36e9
%global service_name %{?scl_prefix}postgresql.service
ca36e9
Source0: ftp://ftp.postgresql.org/pub/source/v%{version}/postgresql-%{version}.tar.bz2
ca36e9
# The PDF file is generated by generate-pdf.sh, which see for comments
ca36e9
Source1: postgresql-%{version}-US.pdf
ca36e9
# generate-pdf.sh is not used during RPM build, but include for documentation
ca36e9
Source2: generate-pdf.sh
ca36e9
Source5: Makefile.regress
ca36e9
Source6: pg_config.h
ca36e9
Source7: ecpg_config.h
ca36e9
Source13: postgresql.tmpfiles.d
ca36e9
Source14: postgresql.pam
ca36e9
Source15: postgresql-bashprofile
ca36e9
ca36e9
# http://fedorapeople.org/cgit/praiskup/public_git/postgresql-setup.git/
ca36e9
Source16: http://praiskup.fedorapeople.org/proj/postgresql-setup/postgresql-setup-%{setup_version}.tar.gz
ca36e9
ca36e9
# Comments for these patches are in the patch files.
ca36e9
Patch1: rpm-pgsql.patch
ca36e9
Patch2: postgresql-logging.patch
ca36e9
Patch3: postgresql-perl-rpath.patch
ca36e9
Patch4: postgresql-config-comment.patch
ca36e9
Patch6: postgresql-var-run-socket.patch
ca36e9
Patch8: postgresql-man.patch
ca36e9
Patch9: postgresql-socket-dirs-pgupgrade.patch
ca36e9
ca36e9
BuildRequires: perl(ExtUtils::MakeMaker) glibc-devel bison flex gawk
ca36e9
BuildRequires: perl(ExtUtils::Embed)
ca36e9
BuildRequires: readline-devel zlib-devel
ca36e9
ca36e9
# postgresql-setup build requires
ca36e9
BuildRequires: m4 elinks docbook-utils help2man
ca36e9
ca36e9
%if 0%{?rhel} >= 6
ca36e9
BuildRequires: perl-devel
ca36e9
%endif
ca36e9
BuildRequires: systemd
ca36e9
ca36e9
%if %plpython
ca36e9
BuildRequires: python-devel
ca36e9
%endif
ca36e9
ca36e9
%if %plpython3
ca36e9
BuildRequires: python3-devel
ca36e9
%endif
ca36e9
ca36e9
%if %pltcl
ca36e9
BuildRequires: tcl-devel
ca36e9
%endif
ca36e9
ca36e9
%if %ssl
ca36e9
BuildRequires: openssl-devel
ca36e9
%endif
ca36e9
ca36e9
%if %kerberos
ca36e9
BuildRequires: krb5-devel
ca36e9
%endif
ca36e9
ca36e9
%if %ldap
ca36e9
BuildRequires: openldap-devel
ca36e9
%endif
ca36e9
ca36e9
%if %nls
ca36e9
BuildRequires: gettext >= 0.10.35
ca36e9
%endif
ca36e9
ca36e9
%if %uuid
ca36e9
BuildRequires: uuid-devel
ca36e9
%endif
ca36e9
ca36e9
%if %xml
ca36e9
BuildRequires: libxml2-devel libxslt-devel
ca36e9
%endif
ca36e9
ca36e9
%if %pam
ca36e9
BuildRequires: pam-devel
ca36e9
%endif
ca36e9
ca36e9
%if %sdt
ca36e9
BuildRequires: systemtap-sdt-devel
ca36e9
%endif
ca36e9
ca36e9
%if %selinux
ca36e9
BuildRequires: libselinux-devel
ca36e9
%endif
ca36e9
ca36e9
# main package requires -libs subpackage
ca36e9
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
ca36e9
%{?scl:Requires:%scl_runtime}
ca36e9
ca36e9
%description
ca36e9
PostgreSQL is an advanced Object-Relational database management system (DBMS).
ca36e9
The base postgresql package contains the client programs that you'll need to
ca36e9
access a PostgreSQL DBMS server, as well as HTML documentation for the whole
ca36e9
system.  These client programs can be located on the same machine as the
ca36e9
PostgreSQL server, or on a remote machine that accesses a PostgreSQL server
ca36e9
over a network connection.  The PostgreSQL server can be found in the
ca36e9
postgresql-server sub-package.
ca36e9
ca36e9
ca36e9
%package libs
ca36e9
Summary: The shared libraries required for any PostgreSQL clients
ca36e9
Group: Applications/Databases
ca36e9
# for /sbin/ldconfig
ca36e9
Requires(post): glibc
ca36e9
Requires(postun): glibc
ca36e9
%{?scl:Requires:%scl_runtime}
ca36e9
%description libs
ca36e9
The postgresql-libs package provides the essential shared libraries for any 
ca36e9
PostgreSQL client program or interface. You will need to install this package
ca36e9
to use any other PostgreSQL package or any clients that need to connect to a
ca36e9
PostgreSQL server.
ca36e9
ca36e9
ca36e9
%package server
ca36e9
Summary: The programs needed to create and run a PostgreSQL server
ca36e9
Group: Applications/Databases
ca36e9
Requires: %{name}%{?_isa} = %{version}-%{release}
ca36e9
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
ca36e9
Requires: /usr/bin/scl_source
ca36e9
Requires(pre): /usr/sbin/useradd
ca36e9
# We require this to be present for %%{_prefix}/lib/tmpfiles.d
ca36e9
Requires: systemd
ca36e9
# Make sure it's there when scriptlets run, too
ca36e9
Requires(post): systemd
ca36e9
Requires(preun): systemd
ca36e9
Requires(postun): systemd
ca36e9
%{?scl:Requires:%scl_runtime}
ca36e9
ca36e9
%description server
ca36e9
PostgreSQL is an advanced Object-Relational database management system (DBMS).
ca36e9
The postgresql-server package contains the programs needed to create
ca36e9
and run a PostgreSQL server, which will in turn allow you to create
ca36e9
and maintain PostgreSQL databases.
ca36e9
ca36e9
ca36e9
%package docs
ca36e9
Summary: Extra documentation for PostgreSQL
ca36e9
Group: Applications/Databases
ca36e9
Requires: %{name}%{?_isa} = %{version}-%{release}
ca36e9
%{?scl:Requires:%scl_runtime}
ca36e9
ca36e9
%description docs
ca36e9
The postgresql-docs package contains some additional documentation for
ca36e9
PostgreSQL.  Currently, this includes the main documentation in PDF format
ca36e9
and source files for the PostgreSQL tutorial.
ca36e9
ca36e9
ca36e9
%package contrib
ca36e9
Summary: Extension modules distributed with PostgreSQL
ca36e9
Group: Applications/Databases
ca36e9
Requires: %{name}%{?_isa} = %{version}-%{release}
ca36e9
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
ca36e9
%{?scl:Requires:%scl_runtime}
ca36e9
ca36e9
%description contrib
ca36e9
The postgresql-contrib package contains various extension modules that are
ca36e9
included in the PostgreSQL distribution.
ca36e9
ca36e9
ca36e9
%package devel
ca36e9
Summary: PostgreSQL development header files and libraries
ca36e9
Group: Development/Libraries
ca36e9
Requires: %{name}%{?_isa} = %{version}-%{release}
ca36e9
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
ca36e9
ca36e9
%description devel
ca36e9
The postgresql-devel package contains the header files and libraries
ca36e9
needed to compile C or C++ applications which will directly interact
ca36e9
with a PostgreSQL database management server.  It also contains the ecpg
ca36e9
Embedded C Postgres preprocessor. You need to install this package if you want
ca36e9
to develop applications which will interact with a PostgreSQL server.
ca36e9
ca36e9
%package static
ca36e9
Summary: Statically linked PostgreSQL libraries
ca36e9
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
ca36e9
ca36e9
%description static
ca36e9
Statically linked PostgreSQL libraries that do not have dynamically linked
ca36e9
counterparts.
ca36e9
ca36e9
%if %plperl
ca36e9
%package plperl
ca36e9
Summary: The Perl procedural language for PostgreSQL
ca36e9
Group: Applications/Databases
ca36e9
Requires: %{name}-server%{?_isa} = %{version}-%{release}
ca36e9
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
ca36e9
BuildRequires: perl-Data-Dumper
ca36e9
%{?scl:Requires:%scl_runtime}
ca36e9
ca36e9
%description plperl
ca36e9
The postgresql-plperl package contains the PL/Perl procedural language,
ca36e9
which is an extension to the PostgreSQL database server.
ca36e9
Install this if you want to write database functions in Perl.
ca36e9
%endif
ca36e9
ca36e9
%if %plpython
ca36e9
%package plpython
ca36e9
Summary: The Python2 procedural language for PostgreSQL
ca36e9
Group: Applications/Databases
ca36e9
Requires: %{name}-server%{?_isa} = %{version}-%{release}
ca36e9
%{?scl:Requires:%scl_runtime}
ca36e9
ca36e9
%description plpython
ca36e9
The postgresql-plpython package contains the PL/Python procedural language,
ca36e9
which is an extension to the PostgreSQL database server.
ca36e9
Install this if you want to write database functions in Python 2.
ca36e9
%endif
ca36e9
ca36e9
%if %plpython3
ca36e9
%package plpython3
ca36e9
Summary: The Python3 procedural language for PostgreSQL
ca36e9
Group: Applications/Databases
ca36e9
Requires: %{name}-server%{?_isa} = %{version}-%{release}
ca36e9
%{?scl:Requires:%scl_runtime}
ca36e9
ca36e9
%description plpython3
ca36e9
The postgresql-plpython3 package contains the PL/Python3 procedural language,
ca36e9
which is an extension to the PostgreSQL database server.
ca36e9
Install this if you want to write database functions in Python 3.
ca36e9
%endif
ca36e9
ca36e9
%if %pltcl
ca36e9
%package pltcl
ca36e9
Summary: The Tcl procedural language for PostgreSQL
ca36e9
Group: Applications/Databases
ca36e9
Requires: %{name}-server%{?_isa} = %{version}-%{release}
ca36e9
Requires: tcl-pgtcl
ca36e9
%{?scl:Requires:%scl_runtime}
ca36e9
ca36e9
%description pltcl
ca36e9
The postgresql-pltcl package contains the PL/Tcl procedural language,
ca36e9
which is an extension to the PostgreSQL database server.
ca36e9
Install this if you want to write database functions in Tcl.
ca36e9
%endif
ca36e9
ca36e9
%if %test
ca36e9
%package test
ca36e9
Summary: The test suite distributed with PostgreSQL
ca36e9
Group: Applications/Databases
ca36e9
Requires: %{name}-server%{?_isa} = %{version}-%{release}
ca36e9
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
ca36e9
%{?scl:Requires:%scl_runtime}
ca36e9
ca36e9
%description test
ca36e9
The postgresql-test package contains files needed for various tests for the
ca36e9
PostgreSQL database management system, including regression tests and
ca36e9
benchmarks.
ca36e9
%endif
ca36e9
ca36e9
%prep
ca36e9
%setup -q %{?scl:-n %{pkg_name}-%{version}} -a 16
ca36e9
%patch1 -p1
ca36e9
%patch2 -p1
ca36e9
%patch3 -p1
ca36e9
%patch4 -p1
ca36e9
%patch6 -p1
ca36e9
%patch8 -p1
ca36e9
%patch9 -p1
ca36e9
ca36e9
# We used to run autoconf here, but there's no longer any real need to,
ca36e9
# since Postgres ships with a reasonably modern configure script.
ca36e9
ca36e9
# add ppc64p7 support (https://fedoraproject.org/wiki/Features/Power7Subarch)
ca36e9
# hopefully need for this will go away next time upstream updates config.sub
ca36e9
sed -i -e "s/ppc64-\*/ppc64-\* \| ppc64p7-\*/" config/config.sub
ca36e9
ca36e9
cp -p %{SOURCE1} .
ca36e9
ca36e9
# We need to add an extra setting of SCL environment into the service file
ca36e9
# and some checks into scripts that can be possibly run without scl enable,
ca36e9
# but only if we build the package in SCL environment. 
ca36e9
cp -p %{SOURCE15} .
ca36e9
%if 0%{?scl:1}
ca36e9
%global scl_sed_patches 1
ca36e9
%if %scl_sed_patches
ca36e9
find . -type f -name Makefile -exec sed -i -e "s/SO_MAJOR_VERSION=\s\?\([0-9]\+\)/SO_MAJOR_VERSION= %{?scl}-\1/" {} \;
ca36e9
%endif
ca36e9
%endif
ca36e9
ca36e9
# remove .gitignore files to ensure none get into the RPMs (bug #642210)
ca36e9
find . -type f -name .gitignore | xargs rm
ca36e9
ca36e9
%build
ca36e9
ca36e9
# fail quickly and obviously if user tries to build as root
ca36e9
%if %runselftest
ca36e9
	if [ x"`id -u`" = x0 ]; then
ca36e9
		echo "postgresql's regression tests fail if run as root."
ca36e9
		echo "If you really need to build the RPM as root, use"
ca36e9
		echo "--define='runselftest 0' to skip the regression tests."
ca36e9
		exit 1
ca36e9
	fi
ca36e9
%endif
ca36e9
ca36e9
CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS
ca36e9
ca36e9
# Strip out -ffast-math from CFLAGS....
ca36e9
CFLAGS=`echo $CFLAGS|xargs -n 1|grep -v ffast-math|xargs -n 100`
ca36e9
# Add LINUX_OOM_SCORE_ADJ=0 to ensure child processes reset postmaster's oom_score_adj
ca36e9
CFLAGS="$CFLAGS -DLINUX_OOM_SCORE_ADJ=0"
ca36e9
# let's try removing this kluge, it may just be a workaround for bz#520916
ca36e9
# # use -O1 on sparc64 and alpha
ca36e9
# %%ifarch sparc64 alpha
ca36e9
# CFLAGS=`echo $CFLAGS| sed -e "s|-O2|-O1|g" `
ca36e9
# %%endif
ca36e9
ca36e9
cd postgresql-setup-%{setup_version}
ca36e9
%configure \
ca36e9
    pgdocdir=%{_pkgdocdir} \
ca36e9
    systemdunitsdir=%{_root_prefix}/lib/systemd/system \
ca36e9
    systemduserunitsdir=%{_root_sysconfdir}/systemd/system \
ca36e9
    systemdlegacyscriptsdir=%{_root_libexecdir}/initscripts/legacy-actions \
ca36e9
    PGVERSION=%{version} \
ca36e9
    PGMAJORVERSION=%{majorversion} \
ca36e9
    NAME_DEFAULT_PREV_SERVICE=postgresql \
ca36e9
    SCLS=%{?scl} \
ca36e9
    NAME_SRV_PFX=%{?scl}- \
ca36e9
    NAME_PKG_PFX=%{?scl}-
ca36e9
ca36e9
make %{?_smp_mflags}
ca36e9
cd ..
ca36e9
ca36e9
ca36e9
# plpython requires separate configure/build runs to build against python 2
ca36e9
# versus python 3.  Our strategy is to do the python 3 run first, then make
ca36e9
# distclean and do it again for the "normal" build.  Note that the installed
ca36e9
# Makefile.global will reflect the python 2 build, which seems appropriate
ca36e9
# since that's still considered the default plpython version.
ca36e9
%if %plpython3
ca36e9
ca36e9
export PYTHON=/usr/bin/python3
ca36e9
ca36e9
# These configure options must match main build
ca36e9
%configure --disable-rpath \
ca36e9
%if %beta
ca36e9
	--enable-debug \
ca36e9
	--enable-cassert \
ca36e9
%endif
ca36e9
%if %plperl
ca36e9
	--with-perl \
ca36e9
%endif
ca36e9
%if %pltcl
ca36e9
	--with-tcl \
ca36e9
	--with-tclconfig=%{?scl:%_root_libdir}%{!?scl:%_libdir} \
ca36e9
%endif
ca36e9
%if %plpython3
ca36e9
	--with-python \
ca36e9
%endif
ca36e9
%if %ldap
ca36e9
	--with-ldap \
ca36e9
%endif
ca36e9
%if %ssl
ca36e9
	--with-openssl \
ca36e9
%endif
ca36e9
%if %pam
ca36e9
	--with-pam \
ca36e9
%endif
ca36e9
%if %kerberos
ca36e9
	--with-krb5 \
ca36e9
	--with-gssapi \
ca36e9
%endif
ca36e9
%if %uuid
ca36e9
	--with-ossp-uuid \
ca36e9
%endif
ca36e9
%if %xml
ca36e9
	--with-libxml \
ca36e9
	--with-libxslt \
ca36e9
%endif
ca36e9
%if %nls
ca36e9
	--enable-nls \
ca36e9
%endif
ca36e9
%if %sdt
ca36e9
	--enable-dtrace \
ca36e9
%endif
ca36e9
%if 0{!%selinux:1}
ca36e9
	--with-selinux \
ca36e9
%endif
ca36e9
	--with-system-tzdata=%{?scl:%_root_datadir}%{!?scl:%_datadir}/zoneinfo \
ca36e9
	--datadir=%{_datadir}/pgsql
ca36e9
ca36e9
# Fortunately we don't need to build much except plpython itself
ca36e9
cd src/backend
ca36e9
make submake-errcodes
ca36e9
cd ../..
ca36e9
cd src/pl/plpython
ca36e9
make %{?_smp_mflags} all
ca36e9
cd ..
ca36e9
# save built form in a directory that "make distclean" won't touch
ca36e9
cp -a plpython plpython3
ca36e9
cd ../..
ca36e9
ca36e9
# must also save this version of Makefile.global for later
ca36e9
cp src/Makefile.global src/Makefile.global.python3
ca36e9
ca36e9
make distclean
ca36e9
ca36e9
%endif
ca36e9
ca36e9
unset PYTHON
ca36e9
ca36e9
# Normal (not python3) build begins here
ca36e9
ca36e9
# we want to build with rpath since LD_LIBRARY_PATH is not strong enough
ca36e9
# for running pg_ctl under runuser command
ca36e9
%configure --disable-rpath \
ca36e9
%if %beta
ca36e9
	--enable-debug \
ca36e9
	--enable-cassert \
ca36e9
%endif
ca36e9
%if %plperl
ca36e9
	--with-perl \
ca36e9
%endif
ca36e9
%if %pltcl
ca36e9
	--with-tcl \
ca36e9
	--with-tclconfig=%{?scl:%_root_libdir}%{!?scl:%_libdir} \
ca36e9
%endif
ca36e9
%if %plpython
ca36e9
	--with-python \
ca36e9
%endif
ca36e9
%if %ldap
ca36e9
	--with-ldap \
ca36e9
%endif
ca36e9
%if %ssl
ca36e9
	--with-openssl \
ca36e9
%endif
ca36e9
%if %pam
ca36e9
	--with-pam \
ca36e9
%endif
ca36e9
%if %kerberos
ca36e9
	--with-krb5 \
ca36e9
	--with-gssapi \
ca36e9
%endif
ca36e9
%if %uuid
ca36e9
	--with-ossp-uuid \
ca36e9
%endif
ca36e9
%if %xml
ca36e9
	--with-libxml \
ca36e9
	--with-libxslt \
ca36e9
%endif
ca36e9
%if %nls
ca36e9
	--enable-nls \
ca36e9
%endif
ca36e9
%if %sdt
ca36e9
	--enable-dtrace \
ca36e9
%endif
ca36e9
%if %selinux
ca36e9
	--with-selinux \
ca36e9
%endif
ca36e9
	--with-system-tzdata=%{?scl:%_root_datadir}%{!?scl:%_datadir}/zoneinfo \
ca36e9
	--datadir=%{_datadir}/pgsql
ca36e9
ca36e9
make %{?_smp_mflags} world
ca36e9
ca36e9
# Have to hack makefile to put correct path into tutorial scripts
ca36e9
sed "s|C=\`pwd\`;|C=%{_libdir}/pgsql/tutorial;|" < src/tutorial/Makefile > src/tutorial/GNUmakefile
ca36e9
make %{?_smp_mflags} -C src/tutorial NO_PGXS=1 all
ca36e9
rm -f src/tutorial/GNUmakefile
ca36e9
# The object files shouldn't be copied to rpm bz#1187514
ca36e9
rm -f src/tutorial/*.o
ca36e9
ca36e9
ca36e9
test_failure=0
ca36e9
ca36e9
# run_testsuite WHERE
ca36e9
# -------------------
ca36e9
# Run 'make check' in WHERE path.  When that command fails, return the logs
ca36e9
# given by PostgreSQL build system and set 'test_failure=1'.
ca36e9
ca36e9
run_testsuite()
ca36e9
{
ca36e9
	make -C "$1" MAX_CONNECTIONS=5 check && return 0
ca36e9
ca36e9
	test_failure=1
ca36e9
ca36e9
	(
ca36e9
		set +x
ca36e9
		find "$1" -name 'regression.diffs' | \
ca36e9
		while read line; do
ca36e9
			echo "=== make failure: $line ==="
ca36e9
			cat "$line"
ca36e9
		done
ca36e9
	)
ca36e9
}
ca36e9
ca36e9
%if %runselftest
ca36e9
	run_testsuite "src/test/regress"
ca36e9
	make clean -C "src/test/regress"
ca36e9
	run_testsuite "src/pl"
ca36e9
%if %plpython3
ca36e9
	# must install Makefile.global that selects python3
ca36e9
	mv src/Makefile.global src/Makefile.global.save
ca36e9
	cp src/Makefile.global.python3 src/Makefile.global
ca36e9
	touch -r src/Makefile.global.save src/Makefile.global
ca36e9
	# because "make check" does "make install" on the whole tree,
ca36e9
	# we must temporarily install plpython3 as src/pl/plpython,
ca36e9
	# since that is the subdirectory src/pl/Makefile knows about
ca36e9
	mv src/pl/plpython src/pl/plpython2
ca36e9
	mv src/pl/plpython3 src/pl/plpython
ca36e9
ca36e9
	run_testsuite "src/pl/plpython"
ca36e9
ca36e9
	# and clean up our mess
ca36e9
	mv src/pl/plpython src/pl/plpython3
ca36e9
	mv src/pl/plpython2 src/pl/plpython
ca36e9
	mv -f src/Makefile.global.save src/Makefile.global
ca36e9
%endif
ca36e9
	run_testsuite "contrib"
ca36e9
%endif
ca36e9
ca36e9
# "assert(ALL_TESTS_OK)"
ca36e9
test "$test_failure" -eq 0
ca36e9
ca36e9
%if %test
ca36e9
	# undo the "make clean" above
ca36e9
	make all -C src/test/regress
ca36e9
%endif
ca36e9
ca36e9
%install
ca36e9
ca36e9
cd postgresql-setup-%{setup_version}
ca36e9
make install DESTDIR=$RPM_BUILD_ROOT
ca36e9
cd ..
ca36e9
ca36e9
# For some reson, specifying %doc %{_pkgdocdir}/README.rpm-dist in %files does
ca36e9
# not work (at least on RHEL6) and rpmbuild fails with (it may be known issue
ca36e9
# but I was unable to debug properly yet):
ca36e9
#   error: create archive failed on file
ca36e9
#   /builddir/.../...-9.4.1/README.rpm-dist: cpio: Bad magic
ca36e9
cp $RPM_BUILD_ROOT/%{_pkgdocdir}/README.rpm-dist ./
ca36e9
ca36e9
# This creates config files for postgresql-setup to migrate dbs from various
ca36e9
# versions to current one since data are not compatible with latest version
ca36e9
# normal 9.2
ca36e9
cat > $RPM_BUILD_ROOT%{_sysconfdir}/postgresql-setup/upgrade/postgresql92.conf <
ca36e9
id		postgresql
ca36e9
major		9.2
ca36e9
data_default	/var/lib/pgsql/data
ca36e9
engine		/usr/bin
ca36e9
description	"Upgrade data from system PostgreSQL version (PostgreSQL 9.2)"
ca36e9
redhat_sockets_hack yes
ca36e9
EOF
ca36e9
ca36e9
# collection 9.2
ca36e9
cat > $RPM_BUILD_ROOT%{_sysconfdir}/postgresql-setup/upgrade/scl-postgresql92.conf <
ca36e9
id		postgresql92-postgresql
ca36e9
major		9.2
ca36e9
data_default	/opt/rh/postgresql92/root/var/lib/pgsql/data
ca36e9
engine		/opt/rh/postgresql92/root/usr/bin
ca36e9
description	"Upgrade data from RHSCL PostgreSQL version (PostgreSQL 9.2)"
ca36e9
scls		"postgresql92"
ca36e9
redhat_sockets_hack yes
ca36e9
EOF
ca36e9
ca36e9
# collection 9.4
ca36e9
cat > $RPM_BUILD_ROOT%{_sysconfdir}/postgresql-setup/upgrade/scl-postgresql94.conf <
ca36e9
id		rh-postgresql94-postgresql
ca36e9
major		9.4
ca36e9
data_default	/var/opt/rh/rh-postgresql94/lib/pgsql/data
ca36e9
engine		/opt/rh/rh-postgresql94/root/usr/bin
ca36e9
description	"Upgrade data from RHSCL 2.X PostgreSQL version (PostgreSQL 9.4)"
ca36e9
scls		"rh-postgresql94"
ca36e9
redhat_sockets_hack yes
ca36e9
EOF
ca36e9
ca36e9
make DESTDIR=$RPM_BUILD_ROOT install-world
ca36e9
ca36e9
%if %plpython3
ca36e9
	mv src/Makefile.global src/Makefile.global.save
ca36e9
	cp src/Makefile.global.python3 src/Makefile.global
ca36e9
	touch -r src/Makefile.global.save src/Makefile.global
ca36e9
	pushd src/pl/plpython3
ca36e9
	make DESTDIR=$RPM_BUILD_ROOT install
ca36e9
	popd
ca36e9
	mv -f src/Makefile.global.save src/Makefile.global
ca36e9
%endif
ca36e9
ca36e9
# make sure these directories exist even if we suppressed all contrib modules
ca36e9
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/pgsql/contrib
ca36e9
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/pgsql/extension
ca36e9
ca36e9
# multilib header hack; note pg_config.h is installed in two places!
ca36e9
# we only apply this to known Red Hat multilib arches, per bug #177564
ca36e9
case `uname -i` in
ca36e9
  i386 | x86_64 | ppc | ppc64 | ppc64p7 | s390 | s390x | sparc | sparc64 | aarch64 )
ca36e9
    mv $RPM_BUILD_ROOT%{_includedir}/pg_config.h $RPM_BUILD_ROOT%{_includedir}/pg_config_`uname -i`.h
ca36e9
    install -m 644 %{SOURCE6} $RPM_BUILD_ROOT%{_includedir}/
ca36e9
    mv $RPM_BUILD_ROOT%{_includedir}/pgsql/server/pg_config.h $RPM_BUILD_ROOT%{_includedir}/pgsql/server/pg_config_`uname -i`.h
ca36e9
    install -m 644 %{SOURCE6} $RPM_BUILD_ROOT%{_includedir}/pgsql/server/
ca36e9
    mv $RPM_BUILD_ROOT%{_includedir}/ecpg_config.h $RPM_BUILD_ROOT%{_includedir}/ecpg_config_`uname -i`.h
ca36e9
    install -m 644 %{SOURCE7} $RPM_BUILD_ROOT%{_includedir}/
ca36e9
    ;;
ca36e9
  *)
ca36e9
    ;;
ca36e9
esac
ca36e9
ca36e9
install -d -m 755 $RPM_BUILD_ROOT%{_libdir}/pgsql/tutorial
ca36e9
cp -p src/tutorial/* $RPM_BUILD_ROOT%{_libdir}/pgsql/tutorial
ca36e9
ca36e9
%if ! %{selinux}
ca36e9
mkdir -p -m 755 $RPM_BUILD_ROOT%{_datadir}/pgsql/contrib
ca36e9
%endif
ca36e9
ca36e9
%if %pam
ca36e9
install -d $RPM_BUILD_ROOT/etc/pam.d
ca36e9
install -m 644 %{SOURCE14} $RPM_BUILD_ROOT/etc/pam.d/%{?scl_prefix}postgresql
ca36e9
%endif
ca36e9
ca36e9
# Create the directory for sockets.
ca36e9
install -d -m 755 $RPM_BUILD_ROOT%{?_localstatedir}/run/postgresql
ca36e9
ca36e9
# ... and make a tmpfiles script to recreate it at reboot.
ca36e9
mkdir -p $RPM_BUILD_ROOT%{_tmpfilesdir}
ca36e9
install -m 0644 %{SOURCE13} $RPM_BUILD_ROOT%{_tmpfilesdir}/%{?scl_prefix}postgresql.conf
ca36e9
ca36e9
# PGDATA needs removal of group and world permissions due to pg_pwd hole.
ca36e9
install -d -m 700 $RPM_BUILD_ROOT%{?_localstatedir}/lib/pgsql/data 
ca36e9
ca36e9
# backups of data go here...
ca36e9
install -d -m 700 $RPM_BUILD_ROOT%{?_localstatedir}/lib/pgsql/backups
ca36e9
ca36e9
# postgres' .bash_profile
ca36e9
ca36e9
%if 0%{?scl:1}
ca36e9
install -d -m 755 $RPM_BUILD_ROOT%{?_root_localstatedir}/run/postgresql
ca36e9
ca36e9
# make sure /var/lib/pgsql exists, see bz#1023113
ca36e9
mkdir -p -m 700 $RPM_BUILD_ROOT%{?_localstatedir}/lib/pgsql
ca36e9
mkdir -p -m 700 $RPM_BUILD_ROOT%{?_root_localstatedir}/lib/pgsql
ca36e9
ca36e9
%endif
ca36e9
ca36e9
# see bz#1009365
ca36e9
sed -i	-e 's|/var/lib/pgsql/data|%{?localstatedir}/lib/pgsql/data|' postgresql-bashprofile
ca36e9
install -m 644 postgresql-bashprofile $RPM_BUILD_ROOT%{?_localstatedir}/lib/pgsql/.bash_profile
ca36e9
ca36e9
%if %test
ca36e9
	# tests. There are many files included here that are unnecessary,
ca36e9
	# but include them anyway for completeness.  We replace the original
ca36e9
	# Makefiles, however.
ca36e9
	mkdir -p $RPM_BUILD_ROOT%{_libdir}/pgsql/test
ca36e9
	cp -a src/test/regress $RPM_BUILD_ROOT%{_libdir}/pgsql/test
ca36e9
	# pg_regress binary should be only in one subpackage, 
ca36e9
	# there will be a symlink from -test to -devel
ca36e9
	rm -f $RPM_BUILD_ROOT%{_libdir}/pgsql/test/regress/pg_regress
ca36e9
	ln -sf ../../pgxs/src/test/regress/pg_regress $RPM_BUILD_ROOT%{_libdir}/pgsql/test/regress/pg_regress
ca36e9
	pushd  $RPM_BUILD_ROOT%{_libdir}/pgsql/test/regress
ca36e9
	rm -f GNUmakefile Makefile *.o
ca36e9
	chmod 0755 pg_regress regress.so
ca36e9
	popd
ca36e9
	sed 's|@bindir@|%{_bindir}|g' \
ca36e9
		< %{SOURCE5} \
ca36e9
		> $RPM_BUILD_ROOT%{_libdir}/pgsql/test/regress/Makefile
ca36e9
ca36e9
	chmod 0644 $RPM_BUILD_ROOT%{_libdir}/pgsql/test/regress/Makefile
ca36e9
%endif
ca36e9
ca36e9
# To allow --short-circuit
ca36e9
rm -rf doc/html
ca36e9
ca36e9
# Fix some more documentation
ca36e9
mv $RPM_BUILD_ROOT%{_docdir}/pgsql/html doc
ca36e9
rm -rf $RPM_BUILD_ROOT%{_docdir}/pgsql
ca36e9
ca36e9
# remove files not to be packaged
ca36e9
rm $RPM_BUILD_ROOT%{_libdir}/{libecpg,libpq,libecpg_compat,libpgtypes}.a
ca36e9
ca36e9
%if !%plperl
ca36e9
rm -f $RPM_BUILD_ROOT%{_bindir}/pgsql/hstore_plperl.so
ca36e9
%endif
ca36e9
ca36e9
%if !%plpython
ca36e9
rm -f $RPM_BUILD_ROOT%{_bindir}/pgsql/hstore_plpython2.so
ca36e9
%endif
ca36e9
ca36e9
# initialize file lists
ca36e9
cp /dev/null main.lst
ca36e9
cp /dev/null libs.lst
ca36e9
cp /dev/null server.lst
ca36e9
cp /dev/null devel.lst
ca36e9
cp /dev/null plperl.lst
ca36e9
cp /dev/null pltcl.lst
ca36e9
cp /dev/null plpython.lst
ca36e9
cp /dev/null plpython3.lst
ca36e9
ca36e9
%if %nls
ca36e9
%find_lang ecpg-%{majorversion}
ca36e9
cat ecpg-%{majorversion}.lang >>devel.lst
ca36e9
%find_lang ecpglib%{?scl_prefix}6-%{majorversion}
ca36e9
cat ecpglib%{?scl_prefix}6-%{majorversion}.lang >>libs.lst
ca36e9
%find_lang initdb-%{majorversion}
ca36e9
cat initdb-%{majorversion}.lang >>server.lst
ca36e9
%find_lang libpq%{?scl_prefix}5-%{majorversion}
ca36e9
cat libpq%{?scl_prefix}5-%{majorversion}.lang >>libs.lst
ca36e9
%find_lang pg_basebackup-%{majorversion}
ca36e9
cat pg_basebackup-%{majorversion}.lang >>server.lst
ca36e9
%find_lang pg_controldata-%{majorversion}
ca36e9
cat pg_controldata-%{majorversion}.lang >>server.lst
ca36e9
%find_lang pg_ctl-%{majorversion}
ca36e9
cat pg_ctl-%{majorversion}.lang >>server.lst
ca36e9
%find_lang pg_config-%{majorversion}
ca36e9
cat pg_config-%{majorversion}.lang >>main.lst
ca36e9
%find_lang pg_dump-%{majorversion}
ca36e9
cat pg_dump-%{majorversion}.lang >>main.lst
ca36e9
%find_lang pg_resetxlog-%{majorversion}
ca36e9
cat pg_resetxlog-%{majorversion}.lang >>server.lst
ca36e9
%find_lang pg_rewind-%{majorversion}
ca36e9
cat pg_rewind-%{majorversion}.lang >>server.lst
ca36e9
%find_lang pgscripts-%{majorversion}
ca36e9
cat pgscripts-%{majorversion}.lang >>main.lst
ca36e9
%if %plperl
ca36e9
%find_lang plperl-%{majorversion}
ca36e9
cat plperl-%{majorversion}.lang >>plperl.lst
ca36e9
%endif
ca36e9
%find_lang plpgsql-%{majorversion}
ca36e9
cat plpgsql-%{majorversion}.lang >>server.lst
ca36e9
%if %plpython
ca36e9
%find_lang plpython-%{majorversion}
ca36e9
cat plpython-%{majorversion}.lang >>plpython.lst
ca36e9
%endif
ca36e9
%if %plpython3
ca36e9
# plpython3 shares message files with plpython
ca36e9
%find_lang plpython-%{majorversion}
ca36e9
cat plpython-%{majorversion}.lang >>plpython3.lst
ca36e9
%endif
ca36e9
%if %pltcl
ca36e9
%find_lang pltcl-%{majorversion}
ca36e9
cat pltcl-%{majorversion}.lang >>pltcl.lst
ca36e9
%endif
ca36e9
%find_lang postgres-%{majorversion}
ca36e9
cat postgres-%{majorversion}.lang >>server.lst
ca36e9
%find_lang psql-%{majorversion}
ca36e9
cat psql-%{majorversion}.lang >>main.lst
ca36e9
%endif
ca36e9
ca36e9
ca36e9
%post libs -p /sbin/ldconfig 
ca36e9
%postun libs -p /sbin/ldconfig 
ca36e9
ca36e9
%pre server
ca36e9
/usr/sbin/groupadd -g 26 -o -r postgres >/dev/null 2>&1 || :
ca36e9
/usr/sbin/useradd -M -g postgres -o -r -d /var/lib/pgsql -s /bin/bash \
ca36e9
%if 0%{?rhel} >= 6
ca36e9
-N \
ca36e9
%endif
ca36e9
	-c "PostgreSQL Server" -u 26 postgres >/dev/null 2>&1 || :
ca36e9
ca36e9
%post server
ca36e9
%if 0%{?scl:1}
ca36e9
semanage fcontext -a -e "%{_unitdir}/postgresql.service" "%{_unitdir}/%{scl_prefix}postgresql.service" >/dev/null 2>&1 || :
ca36e9
# Per hhorak's report:	It seems that we can't simply use
ca36e9
# semanage fcontext -a -e %%{_root_bindir}/pg_ctl %%{_root_libexecdir}/postgresql-ctl
ca36e9
# because the equivalence (-e, --equal) rules are not transitive thus the
ca36e9
# %%{_libexec}/postgresql-ctl would get wrong context.
ca36e9
semanage fcontext -a -t postgresql_exec_t %{_root_libexecdir}/postgresql-ctl || :
ca36e9
selinuxenabled && load_policy || :
ca36e9
restorecon -R "%{?_scl_root}/" >/dev/null 2>&1 || :
ca36e9
restorecon -R "%{_sysconfdir}" >/dev/null 2>&1 || :
ca36e9
restorecon -R "%{_localstatedir}" >/dev/null 2>&1 || :
ca36e9
restorecon -R "%{_unitdir}/%{scl_prefix}postgresql.service" >/dev/null 2>&1 || :
ca36e9
%endif
ca36e9
ca36e9
%systemd_post %service_name
ca36e9
/sbin/ldconfig
ca36e9
ca36e9
%preun server
ca36e9
%systemd_preun %service_name
ca36e9
ca36e9
%postun server
ca36e9
%systemd_postun_with_restart %service_name
ca36e9
ca36e9
ca36e9
%check
ca36e9
cd postgresql-setup-%{setup_version}
ca36e9
make check
ca36e9
cd -
ca36e9
ca36e9
ca36e9
# FILES section.
ca36e9
ca36e9
%files -f main.lst
ca36e9
%doc doc/KNOWN_BUGS doc/MISSING_FEATURES doc/TODO
ca36e9
%doc COPYRIGHT README HISTORY doc/bug.template
ca36e9
%doc doc/html
ca36e9
%doc README.rpm-dist
ca36e9
%{_bindir}/clusterdb
ca36e9
%{_bindir}/createdb
ca36e9
%{_bindir}/createlang
ca36e9
%{_bindir}/createuser
ca36e9
%{_bindir}/dropdb
ca36e9
%{_bindir}/droplang
ca36e9
%{_bindir}/dropuser
ca36e9
%{_bindir}/pg_config
ca36e9
%{_bindir}/pg_dump
ca36e9
%{_bindir}/pg_dumpall
ca36e9
%{_bindir}/pg_isready
ca36e9
%{_bindir}/pg_restore
ca36e9
%{_bindir}/pg_upgrade
ca36e9
%{_bindir}/psql
ca36e9
%{_bindir}/reindexdb
ca36e9
%{_bindir}/vacuumdb
ca36e9
%{_mandir}/man1/clusterdb.*
ca36e9
%{_mandir}/man1/createdb.*
ca36e9
%{_mandir}/man1/createlang.*
ca36e9
%{_mandir}/man1/createuser.*
ca36e9
%{_mandir}/man1/dropdb.*
ca36e9
%{_mandir}/man1/droplang.*
ca36e9
%{_mandir}/man1/dropuser.*
ca36e9
%{_mandir}/man1/pg_config.*
ca36e9
%{_mandir}/man1/pg_dump.*
ca36e9
%{_mandir}/man1/pg_dumpall.*
ca36e9
%{_mandir}/man1/pg_isready.*
ca36e9
%{_mandir}/man1/pg_restore.*
ca36e9
%{_mandir}/man1//pg_upgrade.*
ca36e9
%{_mandir}/man1/psql.*
ca36e9
%{_mandir}/man1/reindexdb.*
ca36e9
%{_mandir}/man1/vacuumdb.*
ca36e9
%{_mandir}/man7/*
ca36e9
%dir %{_libdir}/pgsql
ca36e9
ca36e9
%files docs
ca36e9
%doc *-US.pdf
ca36e9
%{_libdir}/pgsql/tutorial/
ca36e9
%doc doc/html
ca36e9
ca36e9
%files contrib
ca36e9
%{_datadir}/pgsql/extension/adminpack*
ca36e9
%{_datadir}/pgsql/extension/autoinc*
ca36e9
%{_datadir}/pgsql/extension/btree_gin*
ca36e9
%{_datadir}/pgsql/extension/btree_gist*
ca36e9
%{_datadir}/pgsql/extension/chkpass*
ca36e9
%{_datadir}/pgsql/extension/citext*
ca36e9
%{_datadir}/pgsql/extension/cube*
ca36e9
%{_datadir}/pgsql/extension/dblink*
ca36e9
%{_datadir}/pgsql/extension/dict_int*
ca36e9
%{_datadir}/pgsql/extension/dict_xsyn*
ca36e9
%{_datadir}/pgsql/extension/earthdistance*
ca36e9
%{_datadir}/pgsql/extension/file_fdw*
ca36e9
%{_datadir}/pgsql/extension/fuzzystrmatch*
ca36e9
%{_datadir}/pgsql/extension/hstore*
ca36e9
%{_datadir}/pgsql/extension/insert_username*
ca36e9
%{_datadir}/pgsql/extension/intagg*
ca36e9
%{_datadir}/pgsql/extension/intarray*
ca36e9
%{_datadir}/pgsql/extension/isn*
ca36e9
%{_datadir}/pgsql/extension/lo*
ca36e9
%{_datadir}/pgsql/extension/ltree*
ca36e9
%{_datadir}/pgsql/extension/moddatetime*
ca36e9
%{_datadir}/pgsql/extension/pageinspect*
ca36e9
%{_datadir}/pgsql/extension/pg_buffercache*
ca36e9
%{_datadir}/pgsql/extension/pgcrypto*
ca36e9
%{_datadir}/pgsql/extension/pg_freespacemap*
ca36e9
%{_datadir}/pgsql/extension/pg_prewarm*
ca36e9
%{_datadir}/pgsql/extension/pgrowlocks*
ca36e9
%{_datadir}/pgsql/extension/pg_stat_statements*
ca36e9
%{_datadir}/pgsql/extension/pgstattuple*
ca36e9
%{_datadir}/pgsql/extension/pg_trgm*
ca36e9
%{_datadir}/pgsql/extension/postgres_fdw*
ca36e9
%{_datadir}/pgsql/extension/refint*
ca36e9
%{_datadir}/pgsql/extension/seg*
ca36e9
%{_datadir}/pgsql/extension/tablefunc*
ca36e9
%{_datadir}/pgsql/extension/tcn*
ca36e9
%{_datadir}/pgsql/extension/timetravel*
ca36e9
%{_datadir}/pgsql/extension/tsearch2*
ca36e9
%{_datadir}/pgsql/extension/tsm_system_rows*
ca36e9
%{_datadir}/pgsql/extension/tsm_system_time*
ca36e9
%{_datadir}/pgsql/extension/unaccent*
ca36e9
%{_libdir}/pgsql/adminpack.so
ca36e9
%{_libdir}/pgsql/auth_delay.so
ca36e9
%{_libdir}/pgsql/auto_explain.so
ca36e9
%{_libdir}/pgsql/autoinc.so
ca36e9
%{_libdir}/pgsql/btree_gin.so
ca36e9
%{_libdir}/pgsql/btree_gist.so
ca36e9
%{_libdir}/pgsql/chkpass.so
ca36e9
%{_libdir}/pgsql/citext.so
ca36e9
%{_libdir}/pgsql/cube.so
ca36e9
%{_libdir}/pgsql/dblink.so
ca36e9
%{_libdir}/pgsql/dict_int.so
ca36e9
%{_libdir}/pgsql/dict_xsyn.so
ca36e9
%{_libdir}/pgsql/earthdistance.so
ca36e9
%{_libdir}/pgsql/file_fdw.so
ca36e9
%{_libdir}/pgsql/fuzzystrmatch.so
ca36e9
%{_libdir}/pgsql/hstore.so
ca36e9
%if %plperl
ca36e9
%{_libdir}/pgsql/hstore_plperl.so
ca36e9
%endif
ca36e9
%if %plpython
ca36e9
%{_libdir}/pgsql/hstore_plpython2.so
ca36e9
%endif
ca36e9
%{_libdir}/pgsql/insert_username.so
ca36e9
%{_libdir}/pgsql/_int.so
ca36e9
%{_libdir}/pgsql/isn.so
ca36e9
%{_libdir}/pgsql/lo.so
ca36e9
%{_libdir}/pgsql/ltree.so
ca36e9
%if %plpython
ca36e9
%{_libdir}/pgsql/ltree_plpython2.so
ca36e9
%endif
ca36e9
%{_libdir}/pgsql/moddatetime.so
ca36e9
%{_libdir}/pgsql/pageinspect.so
ca36e9
%{_libdir}/pgsql/passwordcheck.so
ca36e9
%{_libdir}/pgsql/pg_buffercache.so
ca36e9
%{_libdir}/pgsql/pgcrypto.so
ca36e9
%{_libdir}/pgsql/pg_freespacemap.so
ca36e9
%{_libdir}/pgsql/pgrowlocks.so
ca36e9
%{_libdir}/pgsql/pg_stat_statements.so
ca36e9
%{_libdir}/pgsql/pgstattuple.so
ca36e9
%{_libdir}/pgsql/pg_trgm.so
ca36e9
%{_libdir}/pgsql/postgres_fdw.so
ca36e9
%{_libdir}/pgsql/refint.so
ca36e9
%{_libdir}/pgsql/seg.so
ca36e9
%{_libdir}/pgsql/tablefunc.so
ca36e9
%{_libdir}/pgsql/tcn.so
ca36e9
%{_libdir}/pgsql/test_decoding.so
ca36e9
%{_libdir}/pgsql/timetravel.so
ca36e9
%{_libdir}/pgsql/tsearch2.so
ca36e9
%{_libdir}/pgsql/tsm_system_rows.so
ca36e9
%{_libdir}/pgsql/tsm_system_time.so
ca36e9
%{_libdir}/pgsql/unaccent.so
ca36e9
%if %selinux
ca36e9
%{_datadir}/pgsql/contrib/sepgsql.sql
ca36e9
%{_libdir}/pgsql/sepgsql.so
ca36e9
%endif
ca36e9
%if %ssl
ca36e9
%{_datadir}/pgsql/extension/sslinfo*
ca36e9
%{_libdir}/pgsql/sslinfo.so
ca36e9
%endif
ca36e9
%if %uuid
ca36e9
%{_datadir}/pgsql/extension/uuid-ossp*
ca36e9
%{_libdir}/pgsql/uuid-ossp.so
ca36e9
%endif
ca36e9
%if %xml
ca36e9
%{_datadir}/pgsql/extension/xml2*
ca36e9
%{_libdir}/pgsql/pgxml.so
ca36e9
%endif
ca36e9
%{_bindir}/oid2name
ca36e9
%{_bindir}/pg_archivecleanup
ca36e9
%{_bindir}/pg_standby
ca36e9
%{_bindir}/pg_test_fsync
ca36e9
%{_bindir}/pg_test_timing
ca36e9
%{_bindir}/pg_xlogdump
ca36e9
%{_bindir}/pgbench
ca36e9
%{_bindir}/vacuumlo
ca36e9
%{_mandir}/man1/oid2name.*
ca36e9
%{_mandir}/man1/pg_archivecleanup.*
ca36e9
%{_mandir}/man1/pgbench.*
ca36e9
%{_mandir}/man1/pg_recvlogical.*
ca36e9
%{_mandir}/man1/pg_standby.*
ca36e9
%{_mandir}/man1/pg_test_fsync.*
ca36e9
%{_mandir}/man1/pg_test_timing.*
ca36e9
%{_mandir}/man1/pg_xlogdump.*
ca36e9
%{_mandir}/man1/vacuumlo.*
ca36e9
%{_mandir}/man3/dblink*
ca36e9
%doc contrib/spi/*.example
ca36e9
ca36e9
%files libs -f libs.lst
ca36e9
%doc COPYRIGHT
ca36e9
%{_libdir}/libpq.so.*
ca36e9
%{_libdir}/libecpg.so.*
ca36e9
%{_libdir}/libpgtypes.so.*
ca36e9
%{_libdir}/libecpg_compat.so.*
ca36e9
ca36e9
%files server -f server.lst
ca36e9
%{_unitdir}/%{scl_prefix}postgresql*.service
ca36e9
%dir %{_root_libexecdir}/initscripts/legacy-actions/%{?scl_prefix}postgresql
ca36e9
%{_root_libexecdir}/initscripts/legacy-actions/%{?scl_prefix}postgresql/*
ca36e9
%if %pam
ca36e9
%config(noreplace) /etc/pam.d/%{?scl_prefix}postgresql
ca36e9
%endif
ca36e9
%{_bindir}/initdb
ca36e9
%{_bindir}/pg_basebackup
ca36e9
%{_bindir}/pg_controldata
ca36e9
%{_bindir}/pg_ctl
ca36e9
%{_bindir}/pg_receivexlog
ca36e9
%{_bindir}/pg_recvlogical
ca36e9
%{_bindir}/pg_resetxlog
ca36e9
%{_bindir}/pg_rewind
ca36e9
%{_bindir}/postgres
ca36e9
%{_bindir}/postgresql-setup
ca36e9
%{_bindir}/postmaster
ca36e9
%{_mandir}/man1/initdb.*
ca36e9
%{_mandir}/man1/pg_basebackup.*
ca36e9
%{_mandir}/man1/pg_controldata.*
ca36e9
%{_mandir}/man1/pg_ctl.*
ca36e9
%{_mandir}/man1/pg_receivexlog.*
ca36e9
%{_mandir}/man1/pg_resetxlog.*
ca36e9
%{_mandir}/man1/pg_rewind.*
ca36e9
%{_mandir}/man1/postgres.*
ca36e9
%{_mandir}/man1/postgresql-setup.*
ca36e9
%{_mandir}/man1/postmaster.*
ca36e9
%{_datadir}/pgsql/postgres.bki
ca36e9
%{_datadir}/pgsql/postgres.description
ca36e9
%{_datadir}/pgsql/postgres.shdescription
ca36e9
%{_datadir}/pgsql/system_views.sql
ca36e9
%{_datadir}/pgsql/*.sample
ca36e9
%{_datadir}/pgsql/timezonesets/
ca36e9
%{_datadir}/pgsql/tsearch_data/
ca36e9
%dir %{_datadir}/postgresql-setup
ca36e9
%{_datadir}/postgresql-setup/library.sh
ca36e9
%{_libdir}/pgsql/dict_snowball.so
ca36e9
%{_libdir}/pgsql/pg_prewarm.so
ca36e9
%{_libdir}/pgsql/plpgsql.so
ca36e9
%dir %{_datadir}/pgsql
ca36e9
%dir %{_datadir}/pgsql/contrib
ca36e9
%dir %{_datadir}/pgsql/extension
ca36e9
%{_datadir}/pgsql/extension/plpgsql*
ca36e9
%{_tmpfilesdir}/%{?scl_prefix}postgresql.conf
ca36e9
%attr(755,postgres,postgres) %dir %{?_localstatedir}/run/postgresql
ca36e9
%attr(700,postgres,postgres) %dir %{?_localstatedir}/lib/pgsql
ca36e9
%attr(700,postgres,postgres) %dir %{?_localstatedir}/lib/pgsql/data
ca36e9
%attr(700,postgres,postgres) %dir %{?_localstatedir}/lib/pgsql/backups
ca36e9
%attr(644,postgres,postgres) %config(noreplace) %{?_localstatedir}/lib/pgsql/.bash_profile
ca36e9
%{_libdir}/pgsql/libpqwalreceiver.so
ca36e9
%{_libdir}/pgsql/*_and_*.so
ca36e9
%{_libdir}/pgsql/euc2004_sjis2004.so
ca36e9
%{_datadir}/pgsql/conversion_create.sql
ca36e9
%{_datadir}/pgsql/information_schema.sql
ca36e9
%{_datadir}/pgsql/snowball_create.sql
ca36e9
%{_datadir}/pgsql/sql_features.txt
ca36e9
%{_libexecdir}/postgresql-check-db-dir
ca36e9
%{_libexecdir}/postgresql-ctl
ca36e9
%dir %{_sysconfdir}/postgresql-setup
ca36e9
%dir %{_sysconfdir}/postgresql-setup/upgrade
ca36e9
%config %{_sysconfdir}/postgresql-setup/upgrade/*.conf
ca36e9
ca36e9
ca36e9
%if 0%{?scl:1}
ca36e9
%attr(755,postgres,postgres) %dir %{?_root_localstatedir}/run/postgresql
ca36e9
%attr(700,postgres,postgres) %dir %{?_root_localstatedir}/lib/pgsql
ca36e9
%endif
ca36e9
ca36e9
%files devel -f devel.lst
ca36e9
%{_includedir}/*
ca36e9
%{_bindir}/ecpg
ca36e9
%{_libdir}/libpq.so
ca36e9
%{_libdir}/libecpg.so
ca36e9
%{_libdir}/libecpg_compat.so
ca36e9
%{_libdir}/libpgtypes.so
ca36e9
%{_libdir}/pgsql/pgxs/
ca36e9
%dir %{_libdir}/pkgconfig/
ca36e9
%{_libdir}/pkgconfig/*.pc
ca36e9
%{_mandir}/man1/ecpg.*
ca36e9
%{_mandir}/man3/SPI_*
ca36e9
ca36e9
%files static
ca36e9
%{_libdir}/libpgcommon.a
ca36e9
%{_libdir}/libpgport.a
ca36e9
ca36e9
%if %plperl
ca36e9
%files plperl -f plperl.lst
ca36e9
%{_datadir}/pgsql/extension/plperl*
ca36e9
%{_libdir}/pgsql/plperl.so
ca36e9
%endif
ca36e9
ca36e9
%if %pltcl
ca36e9
%files pltcl -f pltcl.lst
ca36e9
%{_datadir}/pgsql/extension/pltcl*
ca36e9
%{_libdir}/pgsql/pltcl.so
ca36e9
%{_bindir}/pltcl_delmod
ca36e9
%{_bindir}/pltcl_listmod
ca36e9
%{_bindir}/pltcl_loadmod
ca36e9
%{_datadir}/pgsql/unknown.pltcl
ca36e9
%endif
ca36e9
ca36e9
%if %plpython
ca36e9
%files plpython -f plpython.lst
ca36e9
%{_datadir}/pgsql/extension/plpythonu*
ca36e9
%{_datadir}/pgsql/extension/plpython2*
ca36e9
%{_libdir}/pgsql/plpython2.so
ca36e9
%endif
ca36e9
ca36e9
%if %plpython3
ca36e9
%files plpython3 -f plpython3.lst
ca36e9
%{_datadir}/pgsql/extension/plpython3*
ca36e9
%{_libdir}/pgsql/plpython3.so
ca36e9
%endif
ca36e9
ca36e9
%if %test
ca36e9
%files test
ca36e9
%defattr(-,postgres,postgres)
ca36e9
%attr(-,postgres,postgres) %{_libdir}/pgsql/test/*
ca36e9
%attr(-,postgres,postgres) %dir %{_libdir}/pgsql/test
ca36e9
%endif
ca36e9
ca36e9
%changelog
ca36e9
* Mon May 09 2016 Pavel Raiskup <praiskup@redhat.com> - 9.5.2-2
ca36e9
- fix upgrade path from rh-postgresql94 (rhbz#1334351)
ca36e9
- fix path to binary directory in Makefile.regress (rhbz#1334706)
ca36e9
ca36e9
* Mon Apr 4 2016 Pavel Kajaba <pkajaba@redhat.com> - 9.5.2-1
ca36e9
- Rebase to 9.5.2 (CVE-2016-3065) per release notes
ca36e9
  http://www.postgresql.org/docs/9.5/static/release-9-5-2.html
ca36e9
ca36e9
* Tue Mar 29 2016 Pavel Kajaba <pkajaba@redhat.com> - 9.5.1-4
ca36e9
- Inlude missing files into files section (rhbz#1321915)
ca36e9
ca36e9
* Thu Mar 10 2016 Pavel Kajaba <pkajaba@redhat.com> - 9.5.1-3
ca36e9
- package static libraries without dynamic counterparts (rhbz#1314796)
ca36e9
ca36e9
* Wed Feb 17 2016 Pavel Kajaba <pkajaba@redhat.com> - 9.5.1-2
ca36e9
- Removed upgrade package because it was empty.
ca36e9
ca36e9
* Tue Feb 16 2016 Pavel Raiskup <praiskup@redhat.com> - 9.5.1-1
ca36e9
- Rebase to 9.5.1 (CVE-2016-0773) per release notes
ca36e9
  http://www.postgresql.org/docs/9.5/static/release-9-5-1.html
ca36e9
ca36e9
* Fri Feb 12 2016 Honza Horak <hhorak@redhat.com> - 9.5.0-5
ca36e9
- Rebuild with newer scl-utils
ca36e9
ca36e9
* Thu Feb 11 2016 Honza Horak <hhorak@redhat.com> - 9.5.0-4
ca36e9
- Rebuild with newer scl-utils in buildroot
ca36e9
ca36e9
* Tue Feb 09 2016 Honza Horak <hhorak@redhat.com> - 9.5.0-3
ca36e9
- Bump spec cause we have release 2 in centos already
ca36e9
ca36e9
* Wed Nov 18 2015 Pavel Kajaba <pkajaba@redhat.com> - 9.5-1
ca36e9
- Rebase to 9.5.0 per release notes
ca36e9
  http://www.postgresql.org/docs/9.5/static/release-9-5.html
ca36e9
ca36e9
* Wed Oct 21 2015 Pavel Raiskup <praiskup@redhat.com> - 9.4.5-1
ca36e9
- update to 9.4.5 per release notes
ca36e9
  http://www.postgresql.org/docs/9.4/static/release-9-4-5.html
ca36e9
ca36e9
* Mon Jun 15 2015 Jozef Mlich <jmlich@redhat.com> - 9.4.4-1
ca36e9
- rebase to 9.4.4 due to security issues
ca36e9
  CVE-2015-3165 CVE-2015-3167 CVE-2015-3166
ca36e9
  Resolves: #1225798
ca36e9
ca36e9
* Sun Mar 22 2015 Pavel Raiskup <praiskup@redhat.com> - 9.4.1-8
ca36e9
- postgresql-setup 3.3 - per several initscript start() issues
ca36e9
ca36e9
* Fri Mar 20 2015 Pavel Raiskup <praiskup@redhat.com> - 9.4.1-7
ca36e9
- set the postgresql-ctl context in main package
ca36e9
- rebase the postgresql-setup to v3.2 to fix --initdb for multiple
ca36e9
  postmasters scenario
ca36e9
ca36e9
* Thu Mar 19 2015 Jozef Mlich <jmlich@redhat.com> - 9.4.1-6
ca36e9
- postgreql-setup was updated to 3.1
ca36e9
ca36e9
* Thu Mar 19 2015 Jozef Mlich <jmlich@redhat.com> - 9.4.1-5
ca36e9
- adding tcl-pgtcl to requires of -tcl subpackage
ca36e9
  Resolves: #1199466
ca36e9
ca36e9
* Mon Mar 02 2015 Pavel Raiskup <praiskup@redhat.com> - 9.4.1-4
ca36e9
- use postgresql-setup.tar.gz
ca36e9
ca36e9
* Tue Feb 24 2015 Pavel Raiskup <praiskup@redhat.com> - 9.4.1-3
ca36e9
- allow pg_upgrade from postgresql92-postgresql (#1196030)
ca36e9
ca36e9
* Wed Feb 18 2015 Honza Horak <hhorak@redhat.com> - 9.4.1-2
ca36e9
- Remove NFS register feature for questionable usage for DBs
ca36e9
ca36e9
* Wed Feb 18 2015 Honza Horak <hhorak@redhat.com> - 9.4.1-1
ca36e9
- Update to 9.4.1
ca36e9
  This also fixes CVE-2015-0244 CVE-2014-8161 CVE-2015-0241 CVE-2015-0243
ca36e9
  Resolves: #1192910
ca36e9
ca36e9
* Thu Jan 29 2015 Jozef Mlich <jmlich@redhat.com> 9.4.0-1
ca36e9
- update to 9.4.0
ca36e9
ca36e9
* Fri Oct  3 2014 Marcela Mašláňová <mmaslano@redhat.com> 9.2.8-2.1
ca36e9
- global must be used in systemd_post, otherwise scriptlets fail
ca36e9
  Resolves: #1149257
ca36e9
ca36e9
* Mon Apr 07 2014 Jozef Mlich <jmlich@redhat.com> 9.2.8-2
ca36e9
- added two dashes into scl-legacy.patch
ca36e9
  Resolves: #1060767
ca36e9
ca36e9
* Wed Mar 26 2014 Jozef Mlich <jmlich@redhat.com> 9.2.8-1
ca36e9
- update to 9.2.8 minor version per release notes:
ca36e9
  http://www.postgresql.org/docs/9.2/static/release-9-2-8.html
ca36e9
  Resolves: #1079994
ca36e9
ca36e9
* Thu Feb 20 2014 Jozef Mlich <jmlich@redhat.com> 9.2.7-2
ca36e9
- update to 9.2.7 minor version per release notes:
ca36e9
  http://www.postgresql.org/docs/9.2/static/release-9-2-7.html
ca36e9
  Resolves: #1065861
ca36e9
  including fixes for CVE-2014-0066 CVE-2014-0064 CVE-2014-0065
ca36e9
  CVE-2014-0062 CVE-2014-0063 CVE-2014-0060 CVE-2014-0061
ca36e9
ca36e9
* Mon Feb 17 2014 Jozef Mlich <jmlich@redhat.com> 9.2.6-8
ca36e9
- Legacy scripts are using scl enable
ca36e9
  Resolves: #1060767
ca36e9
- Release bump to -8 in order to get builds from brew
ca36e9
ca36e9
* Thu Feb 13 2014 Jozef Mlich <jmlich@redhat.com> 9.2.6-4
ca36e9
- Require /usr/bin/scl_source that is not in every scl-utils
ca36e9
  Resolves: #1054261
ca36e9
ca36e9
* Wed Dec 18 2013 Jozef Mlich <jmlich@redhat.com> 9.2.6-3
ca36e9
- release bump to avoid name colision with rhel7 when using
ca36e9
  rhpkg build 
ca36e9
ca36e9
* Wed Dec 18 2013 Jozef Mlich <jmlich@redhat.com> 9.2.6-1
ca36e9
- rebase to 9.2.6
ca36e9
  http://www.postgresql.org/docs/9.2/static/release-9-2-6.html
ca36e9
  Resolves: #1038693
ca36e9
- More details about replication issues are at
ca36e9
  https://wiki.postgresql.org/wiki/Nov2013ReplicationIssue
ca36e9
ca36e9
* Wed Nov 27 2013 Honza Horak <hhorak@redhat.com> 9.2.5-9
ca36e9
- Rebuild for openssl dependency issues
ca36e9
ca36e9
* Wed Nov 27 2013 Honza Horak <hhorak@redhat.com> 9.2.5-8
ca36e9
- Use --no-backup-if-mismatch to avoid inclusion patch left-overs
ca36e9
ca36e9
* Mon Nov 25 2013 Honza Horak <hhorak@redhat.com> 9.2.5-7
ca36e9
- Fix wrongly patched postgresql-setup
ca36e9
ca36e9
* Fri Nov 22 2013 Honza Horak <hhorak@redhat.com> 9.2.5-6
ca36e9
- Restore SCL environment after runuser
ca36e9
ca36e9
* Tue Nov 19 2013 Honza Horak <hhorak@redhat.com> 9.2.5-5
ca36e9
- Port to RHEL-7
ca36e9
ca36e9
* Tue Nov 19 2013 Honza Horak <hhorak@redhat.com> 9.2.5-4
ca36e9
- Remove rpath usage and proper enable SCL environment after su instead
ca36e9
ca36e9
* Mon Nov 18 2013 Jozef Mlich <jmlich@redhat.com> 9.2.5-1
ca36e9
- rebase to 9.2.5
ca36e9
  http://www.postgresql.org/docs/9.2/static/release-9-2-5.html
ca36e9
- modified useradd command
ca36e9
  Resolves #1023113
ca36e9
- modified bash-profile
ca36e9
  Resolves #1009365
ca36e9
ca36e9
* Wed Oct  9 2013 Jozef Mlich <jmlich@redhat.com> 9.2.4-8
ca36e9
- release bump to scl 1.1
ca36e9
ca36e9
* Wed May 15 2013 Honza Horak <hhorak@redhat.com> 9.2.4-7
ca36e9
- Run restorecon to init script as well
ca36e9
  Resolves: #962391
ca36e9
ca36e9
* Tue May 14 2013 Honza Horak <hhorak@redhat.com> 9.2.4-6
ca36e9
- Move lock file under collection root
ca36e9
  Resolves: #962872
ca36e9
ca36e9
* Mon May 13 2013 Honza Horak <hhorak@redhat.com> 9.2.4-5
ca36e9
- Run restorecon in %%post section of -server
ca36e9
  Resolves: #962391
ca36e9
ca36e9
* Thu May  2 2013 Honza Horak <hhorak@redhat.com> 9.2.4-4
ca36e9
- Do not include daemon of the previous version and support upgrade from
ca36e9
  the core system version 8.4
ca36e9
- Pidfile used by init script should be in /opt
ca36e9
- Fix advice in the init script to use proper service name
ca36e9
- Include -devel sub-package for developing server-sice extensions
ca36e9
- Prefix major soname version of all libraries with collection name
ca36e9
ca36e9
* Thu Apr 25 2013 Honza Horak <hhorak@redhat.com> 9.2.4-3
ca36e9
- All sub-packages require SCL runtime
ca36e9
- Use only one Unix socket in /tmp
ca36e9
- Use rpath since we call some commands by runuser in init script,
ca36e9
  so LD_LIBRARY_PATH doesn't work here
ca36e9
ca36e9
* Thu Apr 18 2013 Honza Horak <hhorak@redhat.com> 9.2.4-2
ca36e9
- Remove RHEL-7 stuff
ca36e9
ca36e9
* Thu Apr  4 2013 Tom Lane <tgl@redhat.com> 9.2.4-1
ca36e9
- Update to PostgreSQL 9.2.4, for various fixes described at
ca36e9
  http://www.postgresql.org/docs/9.2/static/release-9-2-4.html
ca36e9
  including the fixes for CVE-2013-1899, CVE-2013-1900, CVE-2013-1901
ca36e9
Resolves: #929223, #929255, #929328
ca36e9
- fix build for aarch64 and ppc64p7
ca36e9
ca36e9
* Wed Feb 13 2013 Honza Horak <hhorak@redhat.com> 9.2.3-1
ca36e9
- Update to PostgreSQL 9.2.3, for various fixes described at
ca36e9
  http://www.postgresql.org/docs/9.2/static/release-9-2-3.html
ca36e9
  including the fix for CVE-2013-0255
ca36e9
Resolves: #908722
ca36e9
- Make the package build with selinux option disabled
ca36e9
Resolves: #894367
ca36e9
- Include old version of pg_controldata in postgresql-upgrade subpackage
ca36e9
Related: #896161
ca36e9
ca36e9
* Fri Jan  4 2013 Honza Horak <hhorak@redhat.com> 9.2.2-1
ca36e9
- Update to PostgreSQL 9.2.2, for various fixes described at
ca36e9
  http://www.postgresql.org/docs/9.2/static/release-9-2-2.html
ca36e9
- Prevent creation of TCP socket during pg_upgrade regression test, so that
ca36e9
  concurrent RPM builds on the same machine won't fail
ca36e9
Resolves: #891531
ca36e9
- Make sure $PGDATA/pg_log/ gets the right SELinux label in postgresql-setup
ca36e9
Resolves: #891547
ca36e9
ca36e9
* Mon Nov 12 2012 Honza Horak <hhorak@redhat.com> 9.2.1-4
ca36e9
- Rebuild for ppc64
ca36e9
ca36e9
* Thu Oct 25 2012 Honza Horak <hhorak@redhat.com> 9.2.1-3
ca36e9
- Run self tests during build
ca36e9
- Use a config file for specifying SCLS enabled when starting service
ca36e9
- Use sclname as a prefix of major number of libpq soname
ca36e9
- Edit spec file for RHEL-5
ca36e9
- Changed way how patch files are enhanced with scl macros values
ca36e9
- Disable uuid module, since e2fsprogs is not compatible
ca36e9
- Basic scripts fail if not run in scl environment
ca36e9
- Use scl-service wrapper to fix systemd start issues
ca36e9
- Fix paths in systemd service file
ca36e9
- Remove quotes from the service file, otherwise arguments are passed
ca36e9
  wrongly to scl-service
ca36e9
ca36e9
* Thu Oct 18 2012 Honza Horak <hhorak@redhat.com> 9.2.1-2
ca36e9
- Initial import into postgresql92 scl branch
ca36e9
ca36e9
* Mon Sep 24 2012 Tom Lane <tgl@redhat.com> 9.2.1-1
ca36e9
- Update to PostgreSQL 9.2.1, for various fixes described at
ca36e9
  http://www.postgresql.org/docs/9.2/static/release-9-2-1.html
ca36e9
  including a nasty data-loss bug
ca36e9
- Adopt new systemd macros for server package install/uninstall triggers
ca36e9
Resolves: #850277
ca36e9
ca36e9
* Mon Sep 10 2012 Tom Lane <tgl@redhat.com> 9.2.0-1
ca36e9
- Update to PostgreSQL 9.2.0 (major version bump);
ca36e9
  in-place upgrade support now works from 9.1.x as the previous version
ca36e9
- Add postgresql-plpython3 subpackage with PL/Python built against Python 3
ca36e9
ca36e9
* Tue Aug 28 2012 Tom Lane <tgl@redhat.com> 9.1.5-2
ca36e9
- Remove unnecessary ldconfig calls in pre/post triggers
ca36e9
Resolves: #849344
ca36e9
ca36e9
* Fri Aug 17 2012 Tom Lane <tgl@redhat.com> 9.1.5-1
ca36e9
- Update to PostgreSQL 9.1.5, for various fixes described at
ca36e9
  http://www.postgresql.org/docs/9.1/static/release-9-1-5.html
ca36e9
  including the fixes for CVE-2012-3488, CVE-2012-3489
ca36e9
ca36e9
* Mon Aug 13 2012 Tom Lane <tgl@redhat.com> 9.1.4-5
ca36e9
- Back-port upstream support for postmaster listening on multiple Unix sockets
ca36e9
- Configure postmaster to create sockets in both /var/run/postgresql and /tmp;
ca36e9
  the former is now the default place for libpq to contact the postmaster.
ca36e9
Resolves: #825448
ca36e9
- Annotate postgresql.conf about not setting port number there
ca36e9
- Minor specfile cleanup per suggestions from Tom Callaway
ca36e9
Related: #845110
ca36e9
ca36e9
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9.1.4-4
ca36e9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
ca36e9
ca36e9
* Sat Jul 14 2012 Tom Lane <tgl@redhat.com> 9.1.4-3
ca36e9
- Update code to use oom_score_adj not oom_adj, thereby suppressing
ca36e9
  whining in the kernel log
ca36e9
- Add "legacy action" scripts to support "service postgresql initdb" and
ca36e9
  "service postgresql upgrade" in a now-approved fashion (requires a
ca36e9
  recent version of initscripts to work)
ca36e9
Resolves: #800416
ca36e9
ca36e9
* Mon Jun 11 2012 Petr Pisar <ppisar@redhat.com> - 9.1.4-2
ca36e9
- Perl 5.16 rebuild
ca36e9
ca36e9
* Mon Jun  4 2012 Tom Lane <tgl@redhat.com> 9.1.4-1
ca36e9
- Update to PostgreSQL 9.1.4, for various fixes described at
ca36e9
  http://www.postgresql.org/docs/9.1/static/release-9-1-4.html
ca36e9
  including the fixes for CVE-2012-2143, CVE-2012-2655
ca36e9
Resolves: #826606
ca36e9
- Update previous version (embedded in postgresql-upgrade) to 9.0.8
ca36e9
  because fix in whole-row variable dumping could be needed for upgrades
ca36e9
- Revert fix for bug #800416, per fedora-packaging discussion at
ca36e9
  http://lists.fedoraproject.org/pipermail/packaging/2012-April/008314.html
ca36e9
  "service postgresql initdb" is dead and will stay that way
ca36e9
ca36e9
* Sat Mar 17 2012 Tom Lane <tgl@redhat.com> 9.1.3-3
ca36e9
- Fix postgresql-setup to rely on systemd to parse the unit file, instead
ca36e9
  of using ad-hoc code
ca36e9
Resolves: #804290
ca36e9
ca36e9
* Tue Mar 13 2012 Tom Lane <tgl@redhat.com> 9.1.3-2
ca36e9
- Fix postgresql-setup to look for unit file in /usr/lib and to ignore
ca36e9
  comments therein
ca36e9
Resolves: #802835
ca36e9
- Resurrect a now-mostly-dummy postgresql init script, so that people can
ca36e9
  keep on using "service postgresql initdb" if they wish
ca36e9
Resolves: #800416
ca36e9
ca36e9
* Mon Feb 27 2012 Tom Lane <tgl@redhat.com> 9.1.3-1
ca36e9
- Update to PostgreSQL 9.1.3, for various fixes described at
ca36e9
  http://www.postgresql.org/docs/9.1/static/release-9-1-3.html
ca36e9
  including the fixes for CVE-2012-0866, CVE-2012-0867, CVE-2012-0868
ca36e9
Resolves: #797918
ca36e9
ca36e9
* Mon Jan  9 2012 Tom Lane <tgl@redhat.com> 9.1.2-2
ca36e9
- Make systemd unit file more user-friendly by resurrecting the old init
ca36e9
  script's checks for data directory presence and version match
ca36e9
Resolves: #771496
ca36e9
ca36e9
* Mon Dec  5 2011 Tom Lane <tgl@redhat.com> 9.1.2-1
ca36e9
- Update to PostgreSQL 9.1.2, for various fixes described at
ca36e9
  http://www.postgresql.org/docs/9.1/static/release-9-1-2.html
ca36e9
ca36e9
* Wed Nov 02 2011 Honza Horak <hhorak@redhat.com> 9.1.1-2
ca36e9
- Create a symlink of pg_regress instead of full copy;
ca36e9
  Don't strip symbols from regress libs
ca36e9
Related: #729012
ca36e9
ca36e9
* Mon Sep 26 2011 Tom Lane <tgl@redhat.com> 9.1.1-1
ca36e9
- Update to PostgreSQL 9.1.1, for various fixes described at
ca36e9
  http://www.postgresql.org/docs/9.1/static/release-9-1-1.html
ca36e9
- Enable build (but not test) of contrib/sepgsql
ca36e9
- Clean up specfile build options so that turning options off works again
ca36e9
ca36e9
* Mon Sep 12 2011 Tom Lane <tgl@redhat.com> 9.1.0-1
ca36e9
- Update to PostgreSQL 9.1.0 (major version bump);
ca36e9
  in-place upgrade support now works from 9.0.x as the previous version
ca36e9
ca36e9
* Wed Jul 27 2011 Tom Lane <tgl@redhat.com> 9.0.4-8
ca36e9
- Convert to systemd startup support
ca36e9
Resolves: #696427
ca36e9
ca36e9
* Thu Jul 21 2011 Petr Sabata <contyk@redhat.com> - 9.0.4-7
ca36e9
- Perl mass rebuild
ca36e9
ca36e9
* Wed Jul 20 2011 Petr Sabata <contyk@redhat.com> - 9.0.4-6
ca36e9
- Perl mass rebuild
ca36e9
ca36e9
* Wed Jul  6 2011 Tom Lane <tgl@redhat.com> 9.0.4-5
ca36e9
- Remove erroneously-included Default-Start line from LSB init block
ca36e9
Related: #717024
ca36e9
ca36e9
* Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> 9.0.4-4
ca36e9
- Perl mass rebuild
ca36e9
- incorporate upstream patch to make it build with Perl 5.14
ca36e9
ca36e9
* Fri Jun 10 2011 Tom Lane <tgl@redhat.com> 9.0.4-3
ca36e9
- Work around gcc 4.6.0 bug (temporary backport from next upstream release)
ca36e9
ca36e9
* Tue May 10 2011 Tom Lane <tgl@redhat.com> 9.0.4-2
ca36e9
- Add LSB init block to initscript, to ensure sane ordering at system boot
ca36e9
Resolves: #703215
ca36e9
ca36e9
* Mon Apr 18 2011 Tom Lane <tgl@redhat.com> 9.0.4-1
ca36e9
- Update to PostgreSQL 9.0.4, for various fixes described at
ca36e9
  http://www.postgresql.org/docs/9.0/static/release-9-0-4.html
ca36e9
- Add %%{?_isa} to cross-subpackage Requires, per latest packaging guidelines
ca36e9
ca36e9
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9.0.3-3
ca36e9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
ca36e9
ca36e9
* Thu Feb  3 2011 Tom Lane <tgl@redhat.com> 9.0.3-2
ca36e9
- Remove filter-requires-perl-Pg.sh, which doesn't seem to be needed now that
ca36e9
  PyGreSQL has been split out; and our use of it isn't compatible with rpm 4.9
ca36e9
  anyway
ca36e9
ca36e9
* Tue Feb  1 2011 Tom Lane <tgl@redhat.com> 9.0.3-1
ca36e9
- Update to PostgreSQL 9.0.3, for various fixes described at
ca36e9
  http://www.postgresql.org/docs/9.0/static/release-9-0-3.html
ca36e9
  including the fix for CVE-2010-4015
ca36e9
Resolves: #674296
ca36e9
ca36e9
* Tue Dec 28 2010 Tom Lane <tgl@redhat.com> 9.0.2-1
ca36e9
- Update to PostgreSQL 9.0.2 (major version bump)
ca36e9
- Create infrastructure for in-place database upgrade using pg_upgrade
ca36e9
Resolves: #398221
ca36e9
ca36e9
* Thu Dec 16 2010 Tom Lane <tgl@redhat.com> 8.4.6-1
ca36e9
- Update to PostgreSQL 8.4.6, for various fixes described at
ca36e9
  http://www.postgresql.org/docs/8.4/static/release-8-4-6.html
ca36e9
- Ensure we don't package any .gitignore files from the source tarball
ca36e9
Related: #642210
ca36e9
ca36e9
* Tue Oct  5 2010 Tom Lane <tgl@redhat.com> 8.4.5-1
ca36e9
- Update to PostgreSQL 8.4.5, for various fixes described at
ca36e9
  http://www.postgresql.org/docs/8.4/static/release-8-4-5.html
ca36e9
  including the fix for CVE-2010-3433
ca36e9
Related: #639371
ca36e9
- Add -p "$pidfile" to initscript's status call to improve corner cases.
ca36e9
Related: #561010
ca36e9
ca36e9
* Sat Jul 31 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 8.4.4-3
ca36e9
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
ca36e9
- Duplicate COPYRIGHT in -libs subpackage, per revised packaging guidelines
ca36e9
ca36e9
* Wed Jun 02 2010 Marcela Maslanova <mmaslano@redhat.com> - 8.4.4-2
ca36e9
- Mass rebuild with perl-5.12.0
ca36e9
ca36e9
* Mon May 17 2010 Tom Lane <tgl@redhat.com> 8.4.4-1
ca36e9
- Update to PostgreSQL 8.4.4, for various fixes described at
ca36e9
  http://www.postgresql.org/docs/8.4/static/release-8-4-4.html
ca36e9
  including fixes for CVE-2010-1169 and CVE-2010-1170
ca36e9
Resolves: #593032
ca36e9
ca36e9
* Sun Mar 14 2010 Tom Lane <tgl@redhat.com> 8.4.3-1
ca36e9
- Update to PostgreSQL 8.4.3, for various fixes described at
ca36e9
  http://www.postgresql.org/docs/8.4/static/release-8-4-3.html
ca36e9
ca36e9
* Mon Feb 22 2010 Tom Lane <tgl@redhat.com> 8.4.2-8
ca36e9
- Bring init script into some modicum of compliance with Fedora/LSB standards
ca36e9
Resolves: #201043
ca36e9
ca36e9
* Thu Feb 18 2010 Tom "spot" Callaway <tcallawa@redhat.com> 8.4.2-7
ca36e9
- adjust license tag to reflect OSI decision
ca36e9
ca36e9
* Tue Jan 26 2010 Tom Lane <tgl@redhat.com> 8.4.2-6
ca36e9
- Emit explicit error message if user tries to build RPM as root
ca36e9
Related: #558921
ca36e9
ca36e9
* Wed Jan 20 2010 Tom Lane <tgl@redhat.com> 8.4.2-5
ca36e9
- Latest version of systemtap needs the probes.o file to be built again
ca36e9
Resolves: #557266
ca36e9
- Provide script and instructions for building the documentation PDF
ca36e9
ca36e9
* Mon Jan 11 2010 Tom Lane <tgl@redhat.com> 8.4.2-4
ca36e9
- Arrange for the postmaster, but not any of its child processes, to be run
ca36e9
  with oom_adj -17.  This compensates for the OOM killer not being smart about
ca36e9
  accounting for shared memory usage.
ca36e9
ca36e9
* Sat Jan  9 2010 Tom Lane <tgl@redhat.com> 8.4.2-3
ca36e9
- Remove the postgresql-python and postgresql-tcl subpackages.  These files
ca36e9
  are now broken out as their own packages (PyGreSQL and tcl-pgtcl,
ca36e9
  respectively), to reflect the now longstanding split of upstream projects.
ca36e9
Related: #452306, #452321
ca36e9
ca36e9
* Tue Jan  5 2010 Tom Lane <tgl@redhat.com> 8.4.2-2
ca36e9
- Remove static libraries (.a files) from package, per packaging guidelines
ca36e9
- Change %%define to %%global, per packaging guidelines
ca36e9
ca36e9
* Wed Dec 16 2009 Tom Lane <tgl@redhat.com> 8.4.2-1
ca36e9
- Update to PostgreSQL 8.4.2, for various fixes described at
ca36e9
  http://www.postgresql.org/docs/8.4/static/release-8-4-2.html
ca36e9
  including two security issues
ca36e9
Related: #546321
ca36e9
Related: #547662
ca36e9
- Use -N not the obsolete -n in useradd call
ca36e9
Resolves: #495727
ca36e9
- Clean up specfile to eliminate rpmlint gripes, mainly by removing
ca36e9
  no-longer-needed provisions for superseding rh-postgresql
ca36e9
ca36e9
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 8.4.1-5
ca36e9
- rebuild against perl 5.10.1
ca36e9
ca36e9
* Thu Oct 15 2009 Tom Lane <tgl@redhat.com> 8.4.1-4
ca36e9
- add sparc/sparc64 to multilib header support
ca36e9
ca36e9
* Mon Sep 21 2009 Tom Lane <tgl@redhat.com> 8.4.1-3
ca36e9
- Ensure pgstartup.log gets the right ownership/permissions during initdb
ca36e9
Resolves: #498959
ca36e9
ca36e9
* Wed Sep 16 2009 Tomas Mraz <tmraz@redhat.com> - 8.4.1-2
ca36e9
- Use password-auth common PAM configuration instead of system-auth
ca36e9
ca36e9
* Wed Sep  9 2009 Tom Lane <tgl@redhat.com> 8.4.1-1
ca36e9
- Update to PostgreSQL 8.4.1, for various fixes described at
ca36e9
  http://www.postgresql.org/docs/8.4/static/release-8-4-1.html
ca36e9
  including two security issues
ca36e9
Related: #522085
ca36e9
Related: #522092
ca36e9
ca36e9
* Tue Sep 01 2009 Karsten Hopp <karsten@redhat.com> 8.4.0-3.2
ca36e9
- bump release and build again with the correct libssl
ca36e9
ca36e9
* Tue Sep 01 2009 Karsten Hopp <karsten@redhat.com> 8.4.0-3.1
ca36e9
- disable dtrace on s390x as a workaround until #520469 has been fixed
ca36e9
ca36e9
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 8.4.0-3
ca36e9
- rebuilt with new openssl
ca36e9
ca36e9
* Thu Aug 20 2009 Tom "spot" Callaway <tcallawa@redhat.com> 8.4.0-2
ca36e9
- update License tag to MIT (PostgreSQL calls it "BSD", but it is MIT)
ca36e9
- Note: This changes nothing from a license compatibility perspective.
ca36e9
ca36e9
* Mon Aug 17 2009 Tom Lane <tgl@redhat.com> 8.4.0-1
ca36e9
- Update to PostgreSQL 8.4.0.  See release notes at
ca36e9
  http://www.postgresql.org/docs/8.4/static/release-8-4.html
ca36e9
ca36e9
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.3.7-2
ca36e9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
ca36e9
ca36e9
* Sat Mar 21 2009 Tom Lane <tgl@redhat.com> 8.3.7-1
ca36e9
- Update to PostgreSQL 8.3.7, for various fixes described at
ca36e9
  http://www.postgresql.org/docs/8.3/static/release-8-3-7.html
ca36e9
  notably the fix for CVE-2009-0922
ca36e9
ca36e9
* Tue Mar 10 2009 Tom Lane <tgl@redhat.com> 8.3.6-4
ca36e9
- Prevent dependent packages from needing to include sys/sdt.h
ca36e9
  (unintended side effect of previous patch)
ca36e9
- Use -O1 on alpha, per report from Oliver Falk; -O2 tickles gcc bugs
ca36e9
ca36e9
* Sun Mar  8 2009 Tom Lane <tgl@redhat.com> 8.3.6-3
ca36e9
- Enable tracing via systemtap
ca36e9
Resolves: #488941
ca36e9
ca36e9
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.3.6-2
ca36e9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
ca36e9
ca36e9
* Sat Feb  7 2009 Tom Lane <tgl@redhat.com> 8.3.6-1
ca36e9
- Update to PostgreSQL 8.3.6, for various fixes described at
ca36e9
  http://www.postgresql.org/docs/8.3/static/release-8-3-6.html
ca36e9
ca36e9
* Wed Jan 21 2009 Dennis Gilmore <dennis@ausil.us> 8.3.5-4
ca36e9
- use -O1 on sparc64
ca36e9
ca36e9
* Sat Jan 17 2009 Tomas Mraz <tmraz@redhat.com> - 8.3.5-3
ca36e9
- rebuild with new openssl
ca36e9
ca36e9
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 8.3.5-2
ca36e9
- Rebuild for Python 2.6
ca36e9
ca36e9
* Sun Nov  2 2008 Tom Lane <tgl@redhat.com> 8.3.5-1
ca36e9
- Update to PostgreSQL 8.3.5.
ca36e9
- Improve display from init script's initdb action, per Michael Schwendt
ca36e9
ca36e9
* Thu Sep 25 2008 Tom Lane <tgl@redhat.com> 8.3.4-1
ca36e9
- Update to PostgreSQL 8.3.4.
ca36e9
ca36e9
* Mon Jul 28 2008 Tom Lane <tgl@redhat.com> 8.3.3-3
ca36e9
- Fix build failure caused by new default patch fuzz = 0 policy in rawhide.
ca36e9
ca36e9
* Fri Jun 20 2008 Tom Lane <tgl@redhat.com> 8.3.3-2
ca36e9
- Install Pgtcl in /usr/lib/tcl$TCL_VERSION, not directly in /usr/lib.
ca36e9
  Needed because tcl 8.5 no longer puts /usr/lib into its package search path.
ca36e9
  NOTE: do not back-port this change into branches using pre-8.5 tcl, because
ca36e9
  /usr/lib/tcl8.4 had been a symlink to /usr/share/tcl8.4, and /usr/share
ca36e9
  is exactly where we must not put Pgtcl.
ca36e9
Resolves: #228263
ca36e9
ca36e9
* Wed Jun 11 2008 Tom Lane <tgl@redhat.com> 8.3.3-1
ca36e9
- Update to PostgreSQL 8.3.3.
ca36e9
- Remove postgresql-prefer-ncurses.patch, no longer needed in recent
ca36e9
  Fedora releases because libtermcap is gone.
ca36e9
ca36e9
* Sat May 17 2008 Tom Lane <tgl@redhat.com> 8.3.1-5
ca36e9
- rebuild because of buildsystem hiccup
ca36e9
ca36e9
* Sat May 17 2008 Tom Lane <tgl@redhat.com> 8.3.1-4
ca36e9
- Enable LDAP support
ca36e9
Resolves: #445315
ca36e9
- Use -Wl,--as-needed to suppress bogus dependencies for libraries that
ca36e9
  are really only needed by some of the subpackages
ca36e9
ca36e9
* Mon Apr 28 2008 Tom Lane <tgl@redhat.com> 8.3.1-3
ca36e9
- Fix build breakage on PPC due to incorrect configure test
ca36e9
Related: #444317
ca36e9
ca36e9
* Sat Apr 26 2008 Tom Lane <tgl@redhat.com> 8.3.1-2
ca36e9
- Clean up cross-subpackage Requires: to ensure that updating any one
ca36e9
  subpackage brings in the matching versions of others.
ca36e9
Resolves: #444271
ca36e9
ca36e9
* Tue Mar 25 2008 Tom Lane <tgl@redhat.com> 8.3.1-1
ca36e9
- Update to PostgreSQL 8.3.1.
ca36e9
ca36e9
* Tue Mar 18 2008 Tom "spot" Callaway <tcallawa@redhat.com> 8.3.0-3
ca36e9
- add Requires for versioned perl (libperl.so)
ca36e9
ca36e9
* Wed Feb  6 2008 Tom Lane <tgl@redhat.com> 8.3.0-2
ca36e9
- Enable the new GSSAPI support in 8.3.0.
ca36e9
ca36e9
* Mon Feb  4 2008 Tom Lane <tgl@redhat.com> 8.3.0-1
ca36e9
- Update to PostgreSQL 8.3.0.
ca36e9
ca36e9
* Fri Jan 18 2008 Tom Lane <tgl@redhat.com> 8.3RC2-1
ca36e9
- Update to PostgreSQL 8.3RC2 (not waiting for 8.3.0 because Fedora 9 alpha
ca36e9
  should be 8.3-based not 8.2-based).
ca36e9
- Update to pgtcl 1.6.2
ca36e9
ca36e9
* Mon Jan  7 2008 Tom Lane <tgl@redhat.com> 8.2.6-1
ca36e9
- Update to PostgreSQL 8.2.6 to fix CVE-2007-4769, CVE-2007-4772,
ca36e9
  CVE-2007-6067, CVE-2007-6600, CVE-2007-6601
ca36e9
- Make initscript and pam config files be installed unconditionally;
ca36e9
  seems new buildroots don't necessarily have those directories in place
ca36e9
ca36e9
* Wed Dec  5 2007 Tom Lane <tgl@redhat.com> 8.2.5-2
ca36e9
- Rebuild for new openssl
ca36e9
ca36e9
* Thu Sep 20 2007 Tom Lane <tgl@redhat.com> 8.2.5-1
ca36e9
- Update to PostgreSQL 8.2.5 and pgtcl 1.6.0
ca36e9
ca36e9
* Tue Sep  4 2007 Tom Lane <tgl@redhat.com> 8.2.4-6
ca36e9
- Fix multilib problem for /usr/include/ecpg_config.h (which is new in 8.2.x)
ca36e9
ca36e9
* Sat Aug 25 2007 Tom Lane <tgl@redhat.com> 8.2.4-5
ca36e9
- Use nicer solution for tzdata file substitution: upstream discussion
ca36e9
  concluded that hardwiring the path was better than a symlink after all.
ca36e9
ca36e9
* Wed Aug 22 2007 Tom Lane <tgl@redhat.com> 8.2.4-4
ca36e9
- Use tzdata package's data files instead of private copy, so that
ca36e9
  postgresql-server need not be turned for routine timezone updates
ca36e9
- Don't remove postgres user/group during RPM uninstall, per Fedora
ca36e9
  packaging guidelines
ca36e9
- Seems we need an explicit BuildRequires on gawk now
ca36e9
- Rebuild to fix Fedora toolchain issues
ca36e9
ca36e9
* Sun Aug 12 2007 Tom Lane <tgl@redhat.com> 8.2.4-3
ca36e9
- Recent perl changes in rawhide mean we need a more specific BuildRequires
ca36e9
ca36e9
* Wed Jun 20 2007 Tom Lane <tgl@redhat.com> 8.2.4-2
ca36e9
- Fix oversight in postgresql-test makefile: pg_regress isn't a shell script
ca36e9
  anymore.  Per upstream bug 3398.
ca36e9
ca36e9
* Tue Apr 24 2007 Tom Lane <tgl@redhat.com> 8.2.4-1
ca36e9
- Update to PostgreSQL 8.2.4 for CVE-2007-2138, data loss bugs
ca36e9
Resolves: #237682
ca36e9
ca36e9
* Wed Feb 14 2007 Karsten Hopp <karsten@redhat.com> 8.2.3-2
ca36e9
- rebuild with tcl-8.4
ca36e9
ca36e9
* Wed Feb  7 2007 Tom Lane <tgl@redhat.com> 8.2.3-1
ca36e9
- Update to PostgreSQL 8.2.3 due to regression induced by security fix
ca36e9
Resolves: #227522
ca36e9
ca36e9
* Sun Feb  4 2007 Tom Lane <tgl@redhat.com> 8.2.2-1
ca36e9
- Update to PostgreSQL 8.2.2 to fix CVE-2007-0555, CVE-2007-0556
ca36e9
Related: #225496
ca36e9
ca36e9
* Fri Jan 12 2007 Tom Lane <tgl@redhat.com> 8.2.1-2
ca36e9
- Split -pl subpackage into three new packages to reduce dependencies
ca36e9
  and track upstream project's packaging.
ca36e9
ca36e9
* Wed Jan 10 2007 Tom Lane <tgl@redhat.com> 8.2.1-1
ca36e9
- Update to PostgreSQL 8.2.1
ca36e9
- Update to pgtcl 1.5.3
ca36e9
- Be sure we link to libncurses, not libtermcap which is disappearing in Fedora
ca36e9
ca36e9
* Thu Dec  7 2006 Jeremy Katz <katzj@redhat.com> - 8.2.0-2
ca36e9
- rebuild for python 2.5
ca36e9
ca36e9
* Mon Dec  4 2006 Tom Lane <tgl@redhat.com> 8.2.0-1
ca36e9
- Update to PostgreSQL 8.2.0
ca36e9
- Update to PyGreSQL 3.8.1
ca36e9
- Fix chcon arguments in test/regress/Makefile
ca36e9
Related: #201035
ca36e9
- Adjust init script to not fool /etc/rc.d/rc
ca36e9
Resolves: #161470
ca36e9
- Change init script to not do initdb automatically, but require
ca36e9
  manual "service postgresql initdb" for safety.  Per upstream discussions.
ca36e9
ca36e9
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 8.1.4-1.1
ca36e9
- rebuild
ca36e9
ca36e9
* Mon May 22 2006 Tom Lane <tgl@redhat.com> 8.1.4-1
ca36e9
- Update to PostgreSQL 8.1.4 (includes fixes for CVE-2006-2313, CVE-2006-2314;
ca36e9
  see bug #192173)
ca36e9
- Update to PyGreSQL 3.8
ca36e9
- Suppress noise from chcon, per bug #187744
ca36e9
ca36e9
* Mon Mar 27 2006 Tom Lane <tgl@redhat.com> 8.1.3-2
ca36e9
- Remove JDBC from this build; we will package it as separate SRPM
ca36e9
ca36e9
* Mon Feb 13 2006 Jesse Keating <jkeating@redhat.com> - 8.1.3-1.1
ca36e9
- rebump for build order issues during double-long bump
ca36e9
ca36e9
* Mon Feb 13 2006 Tom Lane <tgl@redhat.com> 8.1.3-1
ca36e9
- Update to PostgreSQL 8.1.3 (fixes bug #180617, CVE-2006-0553)
ca36e9
- Update to jdbc driver build 405
ca36e9
- Modify multilib header hack to not break non-RH arches, per bug #177564
ca36e9
ca36e9
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 8.1.2-1.1
ca36e9
- rebuilt for new gcc4.1 snapshot and glibc changes
ca36e9
ca36e9
* Mon Jan  9 2006 Tom Lane <tgl@redhat.com> 8.1.2-1
ca36e9
- Update to PostgreSQL 8.1.2
ca36e9
- Repair extraneous quote in pgtcl configure script ... odd that bash
ca36e9
  didn't use to spit up on this.
ca36e9
ca36e9
* Thu Dec 15 2005 Tom Lane <tgl@redhat.com> 8.1.1-3
ca36e9
- fix pg_config.h for 64-bit and ppc platforms
ca36e9
- update Makefile.regress (needs to --load-language=plpgsql)
ca36e9
ca36e9
* Wed Dec 14 2005 Tom Lane <tgl@redhat.com> 8.1.1-2
ca36e9
- oops, looks like we want uname -i not uname -m
ca36e9
ca36e9
* Wed Dec 14 2005 Tom Lane <tgl@redhat.com> 8.1.1-1
ca36e9
- Update to PostgreSQL 8.1.1
ca36e9
- Make pg_config.h architecture-independent for multilib installs;
ca36e9
  put the original pg_config.h into pg_config_$ARCH.h
ca36e9
ca36e9
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
ca36e9
- rebuilt
ca36e9
ca36e9
* Sat Nov 12 2005 Tom Lane <tgl@redhat.com> 8.1.0-4
ca36e9
- Update included PDF-format manual to 8.1.
ca36e9
ca36e9
* Wed Nov  9 2005 Tom Lane <tgl@redhat.com> 8.1.0-3
ca36e9
- Rebuild due to openssl library update.
ca36e9
ca36e9
* Wed Nov  9 2005 Tom Lane <tgl@redhat.com> 8.1.0-2
ca36e9
- Rebuild due to openssl library update.
ca36e9
ca36e9
* Mon Nov  7 2005 Tom Lane <tgl@redhat.com> 8.1.0-1
ca36e9
- Update to PostgreSQL 8.1.0, PyGreSQL 3.7, and jdbc driver build 404
ca36e9
- Fix PAM config file (must have account not only auth) (bug #167040)
ca36e9
- Add BuildPrereq: libxslt-devel (bug #170141)
ca36e9
- Sync with PGDG SRPM as much as feasible
ca36e9
ca36e9
* Fri Oct 14 2005 Tomas Mraz <tmraz@redhat.com>
ca36e9
- use include instead of pam_stack in pam config
ca36e9
ca36e9
* Tue Oct  4 2005 Tom Lane <tgl@redhat.com> 8.0.4-2
ca36e9
- Add rpath to plperl.so (bug #162198)
ca36e9
ca36e9
* Tue Oct  4 2005 Tom Lane <tgl@redhat.com> 8.0.4-1
ca36e9
- Update to PostgreSQL 8.0.4, PyGreSQL 3.6.2, and jdbc driver build 312
ca36e9
- Adjust pgtcl link command to ensure it binds to correct libpq (bug #166665)
ca36e9
- Remove obsolete Conflicts: against other python versions (bug #166754)
ca36e9
- Add /etc/pam.d/postgresql (bug #167040)
ca36e9
- Include contrib/xml2 in build (bug #167492)
ca36e9
ca36e9
* Tue May 10 2005 Tom Lane <tgl@redhat.com> 8.0.3-1
ca36e9
- Update to PostgreSQL 8.0.3 (includes security and data-loss fixes; see
ca36e9
  bz#156727, CAN-2005-1409, CAN-2005-1410)
ca36e9
- Update to jdbc driver build 311
ca36e9
- Recreate postgres user after superseding an rh-postgresql install (bug #151911)
ca36e9
- Ensure postgresql server is restarted if running during an upgrade
ca36e9
ca36e9
* Thu Apr 14 2005 Florian La Roche <laroche@redhat.com> 8.0.2-2
ca36e9
- rebuild for postgresql-tcl
ca36e9
ca36e9
* Tue Apr 12 2005 Tom Lane <tgl@redhat.com> 8.0.2-1
ca36e9
- Update to PostgreSQL 8.0.2.
ca36e9
ca36e9
* Fri Mar 11 2005 Tom Lane <tgl@redhat.com> 8.0.1-5
ca36e9
- Remove unwanted rpath specification from pgtcl (bz#150649)
ca36e9
ca36e9
* Wed Mar  2 2005 Tom Lane <tgl@redhat.com> 8.0.1-4
ca36e9
- Attach Obsoletes: declarations for rh-postgresql to subpackages (bz#144435)
ca36e9
- Make Requires: and Prereq: package linkages specify release not only
ca36e9
  version, as per recent mailing list discussion.
ca36e9
ca36e9
* Tue Mar  1 2005 Tomas Mraz <tmraz@redhat.com> 8.0.1-3
ca36e9
- rebuild with openssl-0.9.7e
ca36e9
ca36e9
* Mon Feb 21 2005 Tom Lane <tgl@redhat.com> 8.0.1-2
ca36e9
- Repair improper error message in init script when PGVERSION doesn't match.
ca36e9
- Arrange for auto update of version embedded in init script.
ca36e9
ca36e9
* Sun Jan 30 2005 Tom Lane <tgl@redhat.com> 8.0.1-1
ca36e9
- Update to PostgreSQL 8.0.1.
ca36e9
- Add versionless symlinks to jar files (bz#145744)
ca36e9
ca36e9
* Wed Jan 19 2005 Tom Lane <tgl@redhat.com> 8.0.0-1
ca36e9
- Update to PostgreSQL 8.0.0, PyGreSQL 3.6.1, pgtcl 1.5.2,
ca36e9
  and jdbc driver build 309.
ca36e9
- Extensive cleanout of obsolete cruft in patch set.
ca36e9
- Regression tests are run during RPM build (NOTE: cannot build as root when
ca36e9
  this is enabled).
ca36e9
- Postmaster stderr goes someplace useful, not /dev/null (bz#76503, #103767)
ca36e9
- Make init script return a useful exit status (bz#80782)
ca36e9
- Move docs' tutorial directory to %%{_libdir}/pgsql/tutorial, since it
ca36e9
  includes .so files that surely do not belong under /usr/share.
ca36e9
- Remove useless .sgml files from docs RPM (bz#134450)
ca36e9
- Put regression tests under /usr/lib64 on 64-bit archs, since .so files
ca36e9
  are not architecture-independent.
ca36e9
ca36e9
* Wed Jan 12 2005 Tim Waugh <twaugh@redhat.com> 7.4.6-5
ca36e9
- Rebuilt for new readline.
ca36e9
ca36e9
* Tue Jan 11 2005 Dan Walsh <dwalsh@redhat.com> 7.4.6-4
ca36e9
- Add restorecon to postgresql.init in order to restore database to correct
ca36e9
- SELinux context.
ca36e9
ca36e9
* Thu Dec 16 2004 Tom Lane <tgl@redhat.com> 7.4.6-3
ca36e9
- Update to PyGreSQL 3.6 (to fix bug #142711)
ca36e9
- Adjust a few file permissions (bug #142431)
ca36e9
- Assign %%{_libdir}/pgsql to base package instead of -server (bug #74003)
ca36e9
ca36e9
* Mon Nov 15 2004 Tom Lane <tgl@redhat.com> 7.4.6-2
ca36e9
- Rebuild so python components play with python 2.4 (bug 139160)
ca36e9
ca36e9
* Sat Oct 23 2004 Tom Lane <tgl@redhat.com> 7.4.6-1
ca36e9
- Update to PostgreSQL 7.4.6 (bugs 136947, 136949)
ca36e9
- Make init script more paranoid about mkdir step of initializing a new
ca36e9
  database (bugs 136947, 136949)
ca36e9
ca36e9
* Wed Oct 20 2004 Tom Lane <tgl@redhat.com> 7.4.5-4
ca36e9
- Remove contrib/oidjoins stuff from installed fileset; it's of no use
ca36e9
  to ordinary users and has a security issue (bugs 136300, 136301)
ca36e9
- adjust chkconfig priority (bug 128852)
ca36e9
ca36e9
* Tue Oct 05 2004 Tom Lane <tgl@redhat.com> 7.4.5-3
ca36e9
- Solve the stale lockfile problem (bugs 71295, 96981, 134090)
ca36e9
- Use runuser instead of su for SELinux (bug 134588)
ca36e9
ca36e9
* Mon Aug 30 2004 Tom Lane <tgl@redhat.com> 7.4.5-2
ca36e9
- Update to PyGreSQL 3.5.
ca36e9
ca36e9
* Tue Aug 24 2004 Tom Lane <tgl@redhat.com> 7.4.5-1
ca36e9
- Update to PostgreSQL 7.4.5.
ca36e9
- Update JDBC jars to driver build 215.
ca36e9
- Add Obsoletes: entries for rh-postgresql packages, per bug 129278.
ca36e9
ca36e9
* Sat Jul 10 2004 Tom Lane <tgl@redhat.com> 7.4.3-3
ca36e9
- Undo ill-considered chkconfig change that causes server to start
ca36e9
  immediately upon install.  Mea culpa (bug 127552).
ca36e9
ca36e9
* Sat Jul 03 2004 Tom Lane <tgl@redhat.com> 7.4.3-2
ca36e9
- Update JDBC jars to driver build 214.
ca36e9
ca36e9
* Wed Jun 23 2004 Tom Lane <tgl@redhat.com> 7.4.3-1
ca36e9
- Update to PostgreSQL 7.4.3.
ca36e9
- Uninstalling server RPM stops postmaster first, per bug 114846.
ca36e9
- Fix su commands to not assume PG user's shell is sh-like, per bug 124024.
ca36e9
- Fix permissions on postgresql-python doc files, per bug 124822.
ca36e9
- Minor postgresql.init improvements.
ca36e9
ca36e9
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
ca36e9
- rebuilt
ca36e9
ca36e9
* Wed Mar 10 2004 Tom Lane <tgl@redhat.com> 7.4.2-1
ca36e9
- Update to PostgreSQL 7.4.2; sync with community SRPM as much as possible.
ca36e9
- Support PGOPTS from /etc/sysconfig/pgsql, per bug 111504.
ca36e9
- Fix permissions on /etc/sysconfig/pgsql, per bug 115278.
ca36e9
- SELinux patch in init file: always su 
ca36e9
- Rebuilt
ca36e9
ca36e9
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
ca36e9
- rebuilt
ca36e9
ca36e9
* Wed Feb 25 2004 Tom Lane <tgl@redhat.com>
ca36e9
- Update to PostgreSQL 7.4.1.
ca36e9
- Rebuilt
ca36e9
ca36e9
* Tue Feb 24 2004 Tom Lane <tgl@redhat.com>
ca36e9
- Fix chown syntax in postgresql.init also.
ca36e9
- Rebuilt
ca36e9
ca36e9
* Mon Feb 23 2004 Tim Waugh <twaugh@redhat.com>
ca36e9
- Use ':' instead of '.' as separator for chown.
ca36e9
ca36e9
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
ca36e9
- rebuilt
ca36e9
ca36e9
* Fri Jan 9 2004 Lamar Owen <lowen@pari.edu>
ca36e9
- 7.4.1-1PGDG
ca36e9
- Merge Sander Steffann's changes up to 7.4-0.5PGDG
ca36e9
- Proper 7.4.1 JDBC jars this time.
ca36e9
- Patch for no pl/python from Alvaro
ca36e9
ca36e9
* Fri Dec 05 2003 David Jee <djee@redhat.com> 7.4-5
ca36e9
- Rebuild for Perl 5.8.2.
ca36e9
ca36e9
* Mon Dec 01 2003 David Jee <djee@redhat.com> 7.4-4
ca36e9
- Add PyGreSQL patch for deprecated column pg_type.typprtlen [Bug #111263]
ca36e9
- Add headers patch which moves ecpg headers to /usr/include/ecpg
ca36e9
  [Bug #111195]
ca36e9
ca36e9
* Fri Nov 28 2003 David Jee <djee@redhat.com> 7.4-3
ca36e9
- uncomment buildrequires tcl-devel
ca36e9
ca36e9
* Fri Nov 28 2003 David Jee <djee@redhat.com> 7.4-2
ca36e9
- rebuild
ca36e9
ca36e9
* Mon Nov 24 2003 David Jee <djee@redhat.com> 7.4-1
ca36e9
- initial Red Hat build
ca36e9
- move jars to /usr/share/java
ca36e9
- fix rpm-multilib patch to use sysconfig
ca36e9
ca36e9
* Fri Nov 21 2003 Lamar Owen <lowen@pari.edu> <lamar.owen@wgcr.org>
ca36e9
- 7.4-0.1PGDG
ca36e9
- Development JDBC jars in addition to the 7.3 jars; will replace the
ca36e9
- 7.3 jars once 7.4 official jars are released.
ca36e9
- Changed to use the bzip2 source to save a little size.
ca36e9
- Removed some commented out portions of the specfile.
ca36e9
- Removed the 7.3.4 PDF docs.  Will replace with 7.4 PDF's once they
ca36e9
- are ready.
ca36e9
ca36e9
* Tue Nov 18 2003 Kaj J. Niemi <kajtzu@fi.basen.net> 7.4-0.1
ca36e9
- 7.4
ca36e9
- Fixed Patch #1 (now rpm-pgsql-7.4.patch)
ca36e9
- Fixed Patch #2 (now rpm-multilib-7.4.patch):
ca36e9
- Patch #4 is unnecessary (upstream)
ca36e9
- Fixed Patch #6 (now postgresql-7.4-src-tutorial.patch)
ca36e9
- Added Patch #8 (postgresql-7.4-com_err.patch) as com_err()
ca36e9
  is provided by e2fsprogs and CPPFLAGS gets lost somewhere
ca36e9
  inside configure (bad macro?)
ca36e9
- No 7.4 PDF docs available yet (Source #17)
ca36e9
- PyGreSQL is separated from the upstream distribution but
ca36e9
  we include it as usual (Source #18)
ca36e9
- Default to compiling libpq and ECPG as fully thread-safe
ca36e9
ca36e9
- 7.4 Origin.  See previous spec files for previous history. Adapted
ca36e9
- from Red Hat and PGDG's 7.3.4 RPM, directly descended from 
ca36e9
- postgresql-7.3.4-2 as shipped in Fedora Core 1.