Blame SPECS/postgresql.spec

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