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