auto-import postgresql-7.2-0.7.1 from postgresql-7.2-0.7.1.src.rpm
This commit is contained in:
parent
4fcf7007a7
commit
68d4798ff5
@ -1,5 +1,4 @@
|
|||||||
contrib-intarray.tar.gz
|
|
||||||
file-lists.tar.gz
|
file-lists.tar.gz
|
||||||
migration-scripts.tar.gz
|
migration-scripts.tar.gz
|
||||||
postgresql-7.1.3.tar.gz
|
postgresql-7.2.tar.gz
|
||||||
postgresql-dump.1.gz
|
postgresql-dump.1.gz
|
||||||
|
142
README.rpm-dist
142
README.rpm-dist
@ -1,8 +1,7 @@
|
|||||||
README.rpm-dist
|
README.rpm-dist
|
||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
Version 3.7, for PostgreSQL 7.1.3
|
Version 3.99, for PostgreSQL 7.2 beta cycle.
|
||||||
Lamar Owen <lamar.owen@wgcr.org>
|
Lamar Owen <lamar.owen@wgcr.org>
|
||||||
Trond Eivind Glomsrød <teg@redhat.com>
|
|
||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
|
|
||||||
Contents:
|
Contents:
|
||||||
@ -49,11 +48,18 @@ These RPMs are designed to be LSB-compliant -- if you find this not to be the
|
|||||||
case, please let me know by way of the pgsql-ports@postgresql.org mailing
|
case, please let me know by way of the pgsql-ports@postgresql.org mailing
|
||||||
list.
|
list.
|
||||||
|
|
||||||
|
NOTE:
|
||||||
|
This RPMset is part of the PostgreSQL beta cycle. Beta means BETA -- there
|
||||||
|
may be some rough edges. Testers are welcome; but please don't put this in
|
||||||
|
production on a mission-critical system unless you know _exactly_ what you
|
||||||
|
are doing. The first few 7.2beta RPMset's will likely have many problems --
|
||||||
|
we will work through those as the cycle proceeds.
|
||||||
|
|
||||||
QUICKSTART
|
QUICKSTART
|
||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
If this is an upgrade, please go to section 3, UPGRADING.
|
If this is an upgrade, please go to section 3, UPGRADING.
|
||||||
If this is a fresh installation, simply start the postmaster using:
|
If this is a fresh installation, simply start the postmaster using:
|
||||||
/etc/rc.d/init.d/postgresql start (on Red Hat Linux and TurboLinux)
|
/etc/rc.d/init.d/postgresql start (on RedHat and TurboLinux)
|
||||||
|
|
||||||
On SuSE, please see the file 'README.linux' in this directory.
|
On SuSE, please see the file 'README.linux' in this directory.
|
||||||
|
|
||||||
@ -73,19 +79,19 @@ CREDITS
|
|||||||
Thomas Lockhart
|
Thomas Lockhart
|
||||||
Uncle George
|
Uncle George
|
||||||
Ryan Kirkpatrick
|
Ryan Kirkpatrick
|
||||||
Trond Eivind Glomsrød <teg@redhat.com>
|
Trond Eivind Glomsrød
|
||||||
Mark Knox
|
Mark Knox
|
||||||
Mike Mascari
|
Mike Mascari
|
||||||
Nicolas Huillard
|
Nicolas Huillard
|
||||||
Karl DeBisschop
|
Karl DeBisschop
|
||||||
Roger Luethi
|
Roger Luethi
|
||||||
Jeff Johnson <jbj@redhat.com>
|
Jeff Johnson
|
||||||
Reinhard Max
|
Reinhard Max
|
||||||
|
|
||||||
|
|
||||||
POSTGRESQL RPM PACKAGES AND RATIONALE.
|
POSTGRESQL RPM PACKAGES AND RATIONALE.
|
||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
On Red Hat Linux, prior to version 6.5, PostgreSQL was packaged in RPM form in
|
On RedHat Linux, prior to version 6.5, PostgreSQL was packaged in RPM form in
|
||||||
three (or four) packages:
|
three (or four) packages:
|
||||||
|
|
||||||
postgresql: The server and documentation
|
postgresql: The server and documentation
|
||||||
@ -119,7 +125,7 @@ postgresql-contrib: The contrib source tree, as well as selected binaries.
|
|||||||
|
|
||||||
For SuSE Linux <= 7.0, the packages are named differently, but with the same
|
For SuSE Linux <= 7.0, the packages are named differently, but with the same
|
||||||
functionality. Here is a mapping:
|
functionality. Here is a mapping:
|
||||||
SuSE: Red Hat Linux:
|
SuSE: RedHat:
|
||||||
----- -----------------
|
----- -----------------
|
||||||
postgres postgresql
|
postgres postgresql
|
||||||
pg_serv postgresql-server
|
pg_serv postgresql-server
|
||||||
@ -135,13 +141,12 @@ There are other changes to the SuSE packages to make them conform to the
|
|||||||
SuSE packaging standards. SuSE Linux has been shipping their own packages.
|
SuSE packaging standards. SuSE Linux has been shipping their own packages.
|
||||||
|
|
||||||
While the repackaging will initially cause some confusion, it makes it
|
While the repackaging will initially cause some confusion, it makes it
|
||||||
possible to set up a Red Hat Linux machine to be only a client -- the
|
possible to set up a RedHat linux machine to be only a client -- the server
|
||||||
server is no longer required. The clients were split out -- after
|
is no longer required. The clients were split out -- after all, a person who
|
||||||
all, a person who needs the perl client may very well not need the tcl
|
needs the perl client may very well not need the tcl client, etc. And, the
|
||||||
client, etc. And, the regression tests were added to give some
|
regression tests were added to give some confidence of the suitability of
|
||||||
confidence of the suitability of PostgreSQL, as well as the stability
|
PostgreSQL, as well as the stability of the server machine. Additionally,
|
||||||
of the server machine. Additionally, the regression tests can be used
|
the regression tests can be used to help find hardware errors.
|
||||||
to help find hardware errors.
|
|
||||||
|
|
||||||
RPM FILE LOCATIONS.
|
RPM FILE LOCATIONS.
|
||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
@ -154,7 +159,7 @@ subdirectories.
|
|||||||
Different distributions have different ideas of some of these file locations.
|
Different distributions have different ideas of some of these file locations.
|
||||||
In particular, the documentation directory can be /usr/doc, /usr/doc/packages,
|
In particular, the documentation directory can be /usr/doc, /usr/doc/packages,
|
||||||
/usr/share/doc, /usr/share/doc/packages, or some other similar path. The
|
/usr/share/doc, /usr/share/doc/packages, or some other similar path. The
|
||||||
Red Hat Linux 7 locations are listed below. On SuSE <7.1, substitute 'postgres' for
|
RedHat 7 locations are listed below. On SuSE <7.1, substitute 'postgres' for
|
||||||
'postgresql' below, and 'pg_tk' for 'postgresql-tk' below.
|
'postgresql' below, and 'pg_tk' for 'postgresql-tk' below.
|
||||||
|
|
||||||
However, the RPM's install the files like this:
|
However, the RPM's install the files like this:
|
||||||
@ -173,7 +178,7 @@ Other shared data: /usr/share/pgsql
|
|||||||
Regression tests: /usr/lib/pgsql/test/regress (in the -test package)
|
Regression tests: /usr/lib/pgsql/test/regress (in the -test package)
|
||||||
Documentation SGML: /usr/share/doc/postgresql-docs-x.y.z
|
Documentation SGML: /usr/share/doc/postgresql-docs-x.y.z
|
||||||
|
|
||||||
The above list references the Red Hat Linux 7.x structure. These locations may
|
The above list references the Red Hat 7.x structure. These locations may
|
||||||
change for other distributions. Use of 'rpm -ql' for each package is
|
change for other distributions. Use of 'rpm -ql' for each package is
|
||||||
recommended as the 'Official' location source.
|
recommended as the 'Official' location source.
|
||||||
|
|
||||||
@ -203,41 +208,38 @@ the binary on-disk database format changing between major versions (like
|
|||||||
between 6.3 and 6.4). However, a change from 6.5 to 6.5.3 does not change
|
between 6.3 and 6.4). However, a change from 6.5 to 6.5.3 does not change
|
||||||
the on-disk format.
|
the on-disk format.
|
||||||
|
|
||||||
This property (feature, misfeature, bug, whatever) has been a known
|
This property (feature, misfeature, bug, whatever) has been a known property of
|
||||||
property of PostgreSQL since before it was called PostgreSQL -- it has
|
PostgreSQL since before it was called PostgreSQL -- it has always been this
|
||||||
always been this way. However, the means by which an upgrade is
|
way. However, the means by which an upgrade is performed is not readily
|
||||||
performed is not readily performed in a fully automated fashion, as a
|
performed in a fully automated fashion, as a "dump-initdb-restore" cycle has
|
||||||
"dump-initdb-restore" cycle has to be performed. This doesn't appear
|
to be performed. This doesn't appear to be too difficult -- however, dumping
|
||||||
to be too difficult -- however, dumping the old database requires the
|
the old database requires the old executables -- and, if you've already done
|
||||||
old executables -- and, if you've already done an rpm -U postgresql*
|
an rpm -U postgresql* (or upgraded from an older version of RedHat and didn't
|
||||||
(or upgraded from an older version of Red Hat Linux and didn't
|
specifically exclude the postgresql rpms), you no longer have the older
|
||||||
specifically exclude the postgresql rpms), you no longer have the
|
executables to dump your data. And your data is useless (until you reinstall
|
||||||
older executables to dump your data. And your data is useless (until
|
the old version, that is). All RPM's prior to late releases of version 6.5.
|
||||||
you reinstall the old version, that is). All RPM's prior to late
|
1 have this upgrade issue.
|
||||||
releases of version 6.5. 1 have this upgrade issue.
|
|
||||||
|
|
||||||
The newest RPM's for PostgreSQL attempt to make your job in upgrading
|
The newest RPM's for PostgreSQL attempt to make your job in upgrading a little
|
||||||
a little easier. First, during the installation of the new RPM's, a
|
easier. First, during the installation of the new RPM's, a copy is made of
|
||||||
copy is made of all the executable files and libraries necessary to
|
all the executable files and libraries necessary to make a backup of your data.
|
||||||
make a backup of your data. Second, the initialization script in the
|
Second, the initialization script in the new postgresql-server package detects
|
||||||
new postgresql-server package detects the version of any database
|
the version of any database found -- if the version is old, then the startup
|
||||||
found -- if the version is old, then the startup of the new version is
|
of the new version is aborted. However, if no database is found, a new one
|
||||||
aborted. However, if no database is found, a new one is made.
|
is made.
|
||||||
|
|
||||||
One thing must be remembered -- due to the restructuring of the
|
One thing must be remembered -- due to the restructuring of the PostgreSQL
|
||||||
PostgreSQL RPM's, you will have to manually select the
|
RPM's, you will have to manually select the postgresql-server package if you
|
||||||
postgresql-server package if you want the server -- it is not
|
want the server -- it is not installed by default in an upgrade. You can either
|
||||||
installed by default in an upgrade. You can either select it during
|
select it during the upgrade/install, or you can mount your RedHat CD and
|
||||||
the upgrade/install, or you can mount your Red Hat Linux CD and
|
|
||||||
install manually with rpm -i.
|
install manually with rpm -i.
|
||||||
|
|
||||||
To facilitate upgrading, the postgresql-dump utility has been
|
To facilitate upgrading, the postgresql-dump utility has been provided. Look
|
||||||
provided. Look at the man page for postgresql-dump to see its usage.
|
at the man page for postgresql-dump to see its usage. All executables to
|
||||||
All executables to restore the immediately prior version of the
|
restore the immediately prior version of the PostgreSQL database are placed in
|
||||||
PostgreSQL database are placed in the directory /usr/lib/pgsql/backup,
|
the directory /usr/lib/pgsql/backup, and are accessed by the postgresql-dump
|
||||||
and are accessed by the postgresql-dump script. The directory
|
script. The directory /usr/lib/pgsql/backup is owned by the postgres user --
|
||||||
/usr/lib/pgsql/backup is owned by the postgres user -- you can use
|
you can use this directory to hold dump files and preserve directories.
|
||||||
this directory to hold dump files and preserve directories.
|
|
||||||
|
|
||||||
The basic sequence is:
|
The basic sequence is:
|
||||||
(as user postgres):
|
(as user postgres):
|
||||||
@ -306,40 +308,37 @@ If tests fail, please see the file regression.diffs in that directory. If
|
|||||||
you need help interpreting that file, contact the pgsql-ports list on
|
you need help interpreting that file, contact the pgsql-ports list on
|
||||||
postgresql.org.
|
postgresql.org.
|
||||||
|
|
||||||
There are some tests that will almost always fail with Red Hat Linux
|
There are some tests that will almost always fail with RedHat Linux 5.x and 6.x
|
||||||
5.x and 6.x installations. The geometry, float8, and on occassion the
|
installations. The geometry, float8, and on occassion the random test will
|
||||||
random test will fail. These failures are normal for Red Hat Linux
|
fail. These failures are normal for RedHat 5.2 and 6.1. For RedHat 6.1 with
|
||||||
5.2 and 6.1. For Red Hat Linux 6.1 with certain i18n settings, there
|
certain i18n settings, there will be other tests fail.
|
||||||
will be other tests fail.
|
|
||||||
|
|
||||||
For 7.1RC1, all 76 tests passed on Red Hat Linux 6.2 and RedHat
|
For 7.1RC1, all 76 tests passed on RedHat 6.2 and RedHat 7.0. This
|
||||||
7.0. This was accomplished by fiddling with the locale settings. In
|
was accomplished by fiddling with the locale settings. In version 7.1.2 this
|
||||||
version 7.1.2 this capability was removed -- you need to set your
|
capability was removed -- you need to set your locale to 'C' before executing
|
||||||
locale to 'C' before executing the first postmaster startup, or many
|
the first postmaster startup, or many more regression tests will fail.
|
||||||
more regression tests will fail. With the locale set to 'C', all 76
|
|
||||||
tests pass on Red Hat Linux 7.1.
|
|
||||||
|
|
||||||
For interpretation of the regression tests, see the PostgreSQL documentation.
|
For interpretation of the regression tests, see the PostgreSQL documentation.
|
||||||
|
|
||||||
STARTING POSTMASTER AUTOMATICALLY AT SYSTEM STARTUP
|
STARTING POSTMASTER AUTOMATICALLY AT SYSTEM STARTUP
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Red Hat Linux uses the System V Init system. A startup script for PostgreSQL
|
RedHat Linux uses the System V Init package. A startup script for PostgreSQL
|
||||||
is provided in the server package, as /etc/rc.d/init.d/postgresql. To start
|
is provided in the server package, as /etc/rc.d/init.d/postgresql. To start
|
||||||
the postmaster, with sanity checking, as root, run "service postgresql start"
|
the postmaster, with sanity checking, as root, run
|
||||||
to shut postmaster down, "service postgresql stop"
|
/etc/rc.d/init.d/postgresql start
|
||||||
|
to shut postmaster down,
|
||||||
|
/etc/rc.d/init.d/postgresql stop
|
||||||
There are other parameters to this script -- /etc/rc.d/init.d/postgresql for a
|
There are other parameters to this script -- /etc/rc.d/init.d/postgresql for a
|
||||||
listing.
|
listing.
|
||||||
|
|
||||||
To get this script to run at system startup or any time the system switches into
|
To get this script to run at system startup or any time the system switches into
|
||||||
runlevels 3, 4, or 5, run 'chkconfig --add postgresql', and the proper symlinks
|
runlevels 4, 5, or 6, run 'chkconfig --add postgresql', and the proper symlinks
|
||||||
will be created. Check the chkconfig man page for more information.
|
will be created. Check the chkconfig man page for more information.
|
||||||
|
|
||||||
This same script also works for TurboLinux, and any other distribution
|
This same script also works for TurboLinux, and any other distribution similar
|
||||||
similar enough to Red Hat Linux. SuSE Linux uses a different
|
enough to RedHat. SuSE Linux uses a different approach, using a different
|
||||||
approach, using a different location and a different script, found at
|
location and a different script, found at either /sbin/init.d/postgres or
|
||||||
either /sbin/init.d/postgres or /usr/sbin/rcpostgres. Please see the
|
/usr/sbin/rcpostgres. Please see the SuSE 'README.linux' for more information.
|
||||||
SuSE 'README.linux' for more information.
|
|
||||||
|
|
||||||
SuSE has maintained their own RPMset for some time -- their documentation
|
SuSE has maintained their own RPMset for some time -- their documentation
|
||||||
supercedes any found in this file.
|
supercedes any found in this file.
|
||||||
@ -369,9 +368,9 @@ you will need to rebuild from the source RPM. Download the .src.rpm for this
|
|||||||
release. You will need to be root to rebuild, unless you have already set up
|
release. You will need to be root to rebuild, unless you have already set up
|
||||||
a non-root build environment.
|
a non-root build environment.
|
||||||
|
|
||||||
Install the source RPM with rpm -i, then CD to the rpm building area
|
Install the source RPM with rpm -i, then CD to the rpm building area (on RedHat
|
||||||
(on Red Hat Linux this is /usr/src/redhat by default). You will have
|
this is /usr/src/redhat by default). You will have to have a full development
|
||||||
to have a full development environment to rebuild the full RPM set.
|
environment to rebuild the full RPM set.
|
||||||
|
|
||||||
This release of the RPMset includes the ability to conditionally build
|
This release of the RPMset includes the ability to conditionally build
|
||||||
sets of packages. The parameters, their defaults, and the meanings are:
|
sets of packages. The parameters, their defaults, and the meanings are:
|
||||||
@ -443,3 +442,4 @@ SuSE information is available at SuSE's website and information contacts.
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -39,8 +39,11 @@
|
|||||||
# sync up.
|
# sync up.
|
||||||
# Karl's fixes for some quoting issues.
|
# Karl's fixes for some quoting issues.
|
||||||
|
|
||||||
|
# Version 7.2b2 Lamar Owen <lamar.owen@wgcr.org>
|
||||||
|
# version change.
|
||||||
|
|
||||||
# PGVERSION is:
|
# PGVERSION is:
|
||||||
PGVERSION=7.1.3
|
PGVERSION=7.2
|
||||||
|
|
||||||
# Source function library.
|
# Source function library.
|
||||||
INITD=/etc/rc.d/init.d
|
INITD=/etc/rc.d/init.d
|
||||||
@ -75,7 +78,7 @@ start(){
|
|||||||
then
|
then
|
||||||
# Check version of existing PGDATA
|
# Check version of existing PGDATA
|
||||||
|
|
||||||
if [ `cat $PGDATA/PG_VERSION` != '7.1' ]
|
if [ `cat $PGDATA/PG_VERSION` != '7.2' ]
|
||||||
then
|
then
|
||||||
SYSDOCDIR="(Your System's documentation directory)"
|
SYSDOCDIR="(Your System's documentation directory)"
|
||||||
if [ -d /usr/doc/postgresql-$PGVERSION ]
|
if [ -d /usr/doc/postgresql-$PGVERSION ]
|
||||||
@ -95,10 +98,17 @@ start(){
|
|||||||
SYSDOCDIR=/usr/share/doc/packages
|
SYSDOCDIR=/usr/share/doc/packages
|
||||||
fi
|
fi
|
||||||
echo
|
echo
|
||||||
echo $"An old version of the database format was found."
|
echo $"An old version of the database format was found.\nYou need to upgrade the data format before using PostgreSQL.\nSee $SYSDOCDIR/postgresql-$PGVERSION/README.rpm-dist for more information."
|
||||||
echo $"You need to upgrade the data format before using PostgreSQL."
|
|
||||||
echo $"See $SYSDOCDIR/postgresql-$PGVERSION/README.rpm-dist for more information."
|
|
||||||
exit 1
|
exit 1
|
||||||
|
# This doesn't seem to do anything useful...
|
||||||
|
# else
|
||||||
|
# if echo "$TYPESET"|grep "declare -f success ()" >/dev/null
|
||||||
|
# then
|
||||||
|
# success "$PSQL_CHECK"
|
||||||
|
# else
|
||||||
|
# echo " [ OK ]"
|
||||||
|
# fi
|
||||||
|
# echo
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# No existing PGDATA! Initdb it.
|
# No existing PGDATA! Initdb it.
|
||||||
@ -223,3 +233,4 @@ esac
|
|||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
|
||||||
|
428
postgresql.spec
428
postgresql.spec
@ -8,21 +8,22 @@
|
|||||||
%{!?pltcl:%define pltcl 1}
|
%{!?pltcl:%define pltcl 1}
|
||||||
%{?forceplperl:%define plperl %{expand:forceplperl}}
|
%{?forceplperl:%define plperl %{expand:forceplperl}}
|
||||||
%{!?forceplperl:%define forceplperl 0}
|
%{!?forceplperl:%define forceplperl 0}
|
||||||
%{!?plperl:%define plperl 0}
|
%{!?plperl:%define plperl 1}
|
||||||
%{!?ssl:%define ssl 1}
|
%{!?ssl:%define ssl 1}
|
||||||
%{!?kerberos:%define kerberos 1}
|
%{!?kerberos:%define kerberos 1}
|
||||||
|
|
||||||
# Utility feature defines.
|
# Utility feature defines.
|
||||||
%{!?enable_mb:%define enable_mb 1}
|
%{!?enable_mb:%define enable_mb 1}
|
||||||
%{!?pgaccess:%define pgaccess 1}
|
%{!?pgaccess:%define pgaccess 1}
|
||||||
%{!?newintarray:%define newintarray 1}
|
|
||||||
|
|
||||||
# Python major version.
|
# Python major version.
|
||||||
%{expand: %%define pyver %(python -c 'import sys;print(sys.version[0:3])')}
|
%define pyver 2.2
|
||||||
|
%define pymainver 2
|
||||||
|
%define pynextver 2.3
|
||||||
|
|
||||||
Summary: PostgreSQL client programs and libraries.
|
Summary: PostgreSQL client programs and libraries.
|
||||||
Name: postgresql
|
Name: postgresql
|
||||||
Version: 7.1.3
|
Version: 7.2
|
||||||
|
|
||||||
# Conventions for PostgreSQL Global Development Group RPM releases:
|
# Conventions for PostgreSQL Global Development Group RPM releases:
|
||||||
|
|
||||||
@ -44,7 +45,7 @@ Version: 7.1.3
|
|||||||
# Pre-release RPM's should not be put up on the public ftp.postgresql.org server
|
# Pre-release RPM's should not be put up on the public ftp.postgresql.org server
|
||||||
# -- only test releases or full releases should be.
|
# -- only test releases or full releases should be.
|
||||||
|
|
||||||
Release: 5.72
|
Release: 0.7.1
|
||||||
License: BSD
|
License: BSD
|
||||||
Group: Applications/Databases
|
Group: Applications/Databases
|
||||||
Source0: ftp://ftp.postgresql.org/pub/source/v%{version}/postgresql-%{version}.tar.gz
|
Source0: ftp://ftp.postgresql.org/pub/source/v%{version}/postgresql-%{version}.tar.gz
|
||||||
@ -58,18 +59,17 @@ Source11: jdbc7.1-1.2.jar
|
|||||||
Source12: postgresql-dump.1.gz
|
Source12: postgresql-dump.1.gz
|
||||||
Source14: rh-pgdump.sh
|
Source14: rh-pgdump.sh
|
||||||
Source15: postgresql-bashprofile
|
Source15: postgresql-bashprofile
|
||||||
Source16: http://www.sai.msu.su/~megera/postgres/gist/code/7.1.2/contrib-intarray.tar.gz
|
Patch1: rpm-pgsql-7.2.patch
|
||||||
Patch1: rpm-pgsql-7.1.patch
|
Patch2: postgresql-7.2rc2-betterquote.patch
|
||||||
Patch2: postgresql-7.1.plperl.patch
|
Buildrequires: perl glibc-devel autoconf
|
||||||
Patch3: postgresql-7.1.s390x.patch
|
|
||||||
Patch4: postgresql-7.1.3-security.patch
|
|
||||||
Buildrequires: perl glibc-devel
|
|
||||||
Prereq: /sbin/ldconfig initscripts
|
Prereq: /sbin/ldconfig initscripts
|
||||||
BuildPrereq: python-devel perl tcl /lib/cpp
|
BuildPrereq: python%{?pymainver}-devel perl tcl
|
||||||
|
BuildPrereq: readline-devel >= 4.0
|
||||||
|
BuildPrereq: zlib-devel >= 1.0.4
|
||||||
%if %ssl
|
%if %ssl
|
||||||
BuildPrereq: openssl-devel
|
BuildPrereq: openssl-devel
|
||||||
%endif
|
%endif
|
||||||
%if %ssl
|
%if %kerberos
|
||||||
BuildPrereq: krb5-devel
|
BuildPrereq: krb5-devel
|
||||||
%endif
|
%endif
|
||||||
Url: http://www.postgresql.org/
|
Url: http://www.postgresql.org/
|
||||||
@ -103,7 +103,8 @@ Obsoletes: postgresql-test
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
# This is the PostgreSQL Global Development Group Official RPMset spec file.
|
# This is the PostgreSQL Global Development Group Official RPMset spec file,
|
||||||
|
# or a derivative thereof.
|
||||||
# Copyright 2001 Lamar Owen <lamar@postgresql.org> <lamar.owen@wgcr.org>
|
# Copyright 2001 Lamar Owen <lamar@postgresql.org> <lamar.owen@wgcr.org>
|
||||||
# and others listed.
|
# and others listed.
|
||||||
|
|
||||||
@ -114,6 +115,7 @@ Obsoletes: postgresql-test
|
|||||||
# Thomas Lockhart
|
# Thomas Lockhart
|
||||||
# Reinhard Max
|
# Reinhard Max
|
||||||
# Karl DeBisschop
|
# Karl DeBisschop
|
||||||
|
# Peter Eisentraut
|
||||||
# and others in the Changelog....
|
# and others in the Changelog....
|
||||||
|
|
||||||
# This spec file and ancilliary files are licensed in accordance with
|
# This spec file and ancilliary files are licensed in accordance with
|
||||||
@ -147,7 +149,7 @@ if you're installing the postgresql-server package.
|
|||||||
%package libs
|
%package libs
|
||||||
Summary: The shared libraries required for any PostgreSQL clients.
|
Summary: The shared libraries required for any PostgreSQL clients.
|
||||||
Group: Applications/Databases
|
Group: Applications/Databases
|
||||||
Provides: libpq.so.2.1 libpq.so.2.0 libpq.so
|
Provides: libpq.so.2 libpq.so.2.0 libpq.so
|
||||||
|
|
||||||
%description libs
|
%description libs
|
||||||
The postgresql-libs package provides the essential shared libraries for any
|
The postgresql-libs package provides the essential shared libraries for any
|
||||||
@ -274,9 +276,8 @@ to use when writing Perl code for accessing a PostgreSQL database.
|
|||||||
%package python
|
%package python
|
||||||
Summary: Development module for Python code to access a PostgreSQL DB.
|
Summary: Development module for Python code to access a PostgreSQL DB.
|
||||||
Group: Applications/Databases
|
Group: Applications/Databases
|
||||||
Requires: python >= 1.5 mx
|
Requires: mx%{?pymainver}
|
||||||
Conflicts: python >= 1.6
|
Requires: python%{?pymainver} >= %pyver, python < %pynextver
|
||||||
|
|
||||||
|
|
||||||
%description python
|
%description python
|
||||||
PostgreSQL is an advanced Object-Relational database management
|
PostgreSQL is an advanced Object-Relational database management
|
||||||
@ -315,34 +316,7 @@ system, including regression tests and benchmarks.
|
|||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
|
|
||||||
#PL/Perl stuff
|
|
||||||
%patch2 -p1
|
%patch2 -p1
|
||||||
%patch3 -p1
|
|
||||||
|
|
||||||
#Backpatched security fixes
|
|
||||||
%patch4 -p1
|
|
||||||
|
|
||||||
|
|
||||||
%if %forceplperl
|
|
||||||
FORCEPLPERL=--force
|
|
||||||
%else
|
|
||||||
FORCEPLPERL=
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %plperl
|
|
||||||
pushd src/pl/plperl
|
|
||||||
EXTRA_INCLUDES=-I../../include plperl_installdir=$RPM_BUILD_ROOT/usr/lib perl Makefile.PL $FORCEPLPERL
|
|
||||||
popd
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# Add (optional) newer intarray with bugfixes over the included one
|
|
||||||
%if %newintarray
|
|
||||||
pushd contrib
|
|
||||||
rm -fr intarray
|
|
||||||
tar xvzf %{SOURCE16}
|
|
||||||
popd
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
@ -356,12 +330,15 @@ tar xzf %{SOURCE4}
|
|||||||
# cp /usr/share/libtool/config.* .
|
# cp /usr/share/libtool/config.* .
|
||||||
#fi
|
#fi
|
||||||
|
|
||||||
|
CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS
|
||||||
|
CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS
|
||||||
|
|
||||||
# Strip out -ffast-math from CFLAGS....
|
# Strip out -ffast-math from CFLAGS....
|
||||||
|
|
||||||
CFLAGS=`echo $RPM_OPT_FLAGS|xargs -n 1|grep -v ffast-math|xargs -n 100`
|
CFLAGS=`echo $CFLAGS|xargs -n 1|grep -v ffast-math|xargs -n 100`
|
||||||
export CXXFLAGS="$CFLAGS"
|
export PYTHON="/usr/bin/python%{pyver}"
|
||||||
|
|
||||||
./configure --enable-locale --with-CXX --prefix=/usr\
|
./configure --enable-locale --with-CXX --prefix=/usr --disable-rpath\
|
||||||
%if %perl
|
%if %perl
|
||||||
--with-perl \
|
--with-perl \
|
||||||
%endif
|
%endif
|
||||||
@ -391,28 +368,10 @@ export CXXFLAGS="$CFLAGS"
|
|||||||
--sysconfdir=/etc/pgsql \
|
--sysconfdir=/etc/pgsql \
|
||||||
--mandir=%{_mandir} \
|
--mandir=%{_mandir} \
|
||||||
--docdir=%{_docdir} \
|
--docdir=%{_docdir} \
|
||||||
--includedir=%{_includedir}/pgsql \
|
--includedir=%{_includedir} \
|
||||||
--datadir=/usr/share/pgsql
|
--datadir=/usr/share/pgsql
|
||||||
|
|
||||||
make COPT="$CFLAGS" all
|
make %{?_smp_mflags} all
|
||||||
|
|
||||||
%if %plperl
|
|
||||||
pushd src/pl/plperl
|
|
||||||
make INC=-I../../include
|
|
||||||
popd
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %python
|
|
||||||
pushd src
|
|
||||||
pushd interfaces/python
|
|
||||||
cp /usr/lib/python%{pyver}/config/Makefile.pre.in .
|
|
||||||
echo *shared* > Setup
|
|
||||||
echo _pg pgmodule.c -I../../include -I../libpq -L../libpq -lpq -lcrypt >> Setup
|
|
||||||
make -f Makefile.pre.in boot
|
|
||||||
make
|
|
||||||
popd
|
|
||||||
popd
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %test
|
%if %test
|
||||||
pushd src/test
|
pushd src/test
|
||||||
@ -423,19 +382,9 @@ make COPT="$CFLAGS" all
|
|||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install
|
make DESTDIR=$RPM_BUILD_ROOT install
|
||||||
|
|
||||||
%if %plperl
|
|
||||||
make DESTDIR=$RPM_BUILD_ROOT -C src/pl/plperl install
|
|
||||||
#cp blib/arch/auto/plperl/plperl.so $RPM_BUILD_ROOT/usr/lib
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %perl
|
%if %perl
|
||||||
pushd src/interfaces/perl5
|
|
||||||
perl -pi -e "s|LD_RUN_PATH=\".*PATH\)\"||" Makefile
|
|
||||||
perl -pi -e "s|LD_RUN_PATH =.*$||" Makefile
|
|
||||||
popd
|
|
||||||
|
|
||||||
make PREFIX=$RPM_BUILD_ROOT/usr -C src/interfaces/perl5 -f Makefile install
|
make PREFIX=$RPM_BUILD_ROOT/usr -C src/interfaces/perl5 -f Makefile install
|
||||||
|
|
||||||
# Get rid of the packing list generated by the perl Makefile, and build my own...
|
# Get rid of the packing list generated by the perl Makefile, and build my own...
|
||||||
@ -465,14 +414,10 @@ make DESTDIR=$RPM_BUILD_ROOT -C src/pl/plperl install
|
|||||||
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
make -C doc
|
|
||||||
|
|
||||||
|
|
||||||
# man pages....
|
# man pages....
|
||||||
pushd $RPM_BUILD_ROOT%{_mandir}
|
|
||||||
tar xzf $RPM_BUILD_DIR/postgresql-%{version}/doc/man.tar.gz
|
|
||||||
|
|
||||||
# the postgresql-dump manpage.....
|
# the postgresql-dump manpage.....
|
||||||
|
pushd $RPM_BUILD_ROOT%{_mandir}
|
||||||
cp %{SOURCE12} man1
|
cp %{SOURCE12} man1
|
||||||
popd
|
popd
|
||||||
|
|
||||||
@ -484,13 +429,6 @@ install -m755 %SOURCE14 $RPM_BUILD_ROOT/usr/bin/
|
|||||||
|
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install-all-headers
|
make DESTDIR=$RPM_BUILD_ROOT install-all-headers
|
||||||
|
|
||||||
#fixup directory permissions for SPI stuff...
|
|
||||||
#pushd $RPM_BUILD_ROOT/usr/include/pgsql
|
|
||||||
#chmod 755 access catalog executor nodes rewrite storage tcop utils
|
|
||||||
#popd
|
|
||||||
|
|
||||||
#popd
|
|
||||||
|
|
||||||
# copy over Makefile.global to the include dir....
|
# copy over Makefile.global to the include dir....
|
||||||
install -m755 src/Makefile.global $RPM_BUILD_ROOT/usr/include/pgsql
|
install -m755 src/Makefile.global $RPM_BUILD_ROOT/usr/include/pgsql
|
||||||
|
|
||||||
@ -506,15 +444,6 @@ install -m755 src/Makefile.global $RPM_BUILD_ROOT/usr/include/pgsql
|
|||||||
popd
|
popd
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %python
|
|
||||||
# Python
|
|
||||||
pushd src/interfaces/python
|
|
||||||
# Makefile.pre.in doesn't yet support .py files anyway, so we stick to a manual installation
|
|
||||||
mkdir -p $RPM_BUILD_ROOT/usr/lib/python%{pyver}/site-packages
|
|
||||||
install -m 755 _pgmodule.so *.py $RPM_BUILD_ROOT/usr/lib/python%{pyver}/site-packages/
|
|
||||||
popd
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %jdbc
|
%if %jdbc
|
||||||
# Java/JDBC
|
# Java/JDBC
|
||||||
# The user will have to set a CLASSPATH to find it here, but not sure where else to put it...
|
# The user will have to set a CLASSPATH to find it here, but not sure where else to put it...
|
||||||
@ -525,10 +454,6 @@ install -m755 src/Makefile.global $RPM_BUILD_ROOT/usr/include/pgsql
|
|||||||
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# Fixup more permissions...
|
|
||||||
chmod 644 $RPM_BUILD_ROOT%{_mandir}/*/*
|
|
||||||
chmod +x $RPM_BUILD_ROOT/usr/lib/lib*.so.*
|
|
||||||
|
|
||||||
# The initscripts....
|
# The initscripts....
|
||||||
# Redhat-style....
|
# Redhat-style....
|
||||||
if [ -d /etc/rc.d/init.d ]
|
if [ -d /etc/rc.d/init.d ]
|
||||||
@ -554,10 +479,6 @@ install -d -m 700 $RPM_BUILD_ROOT/var/lib/pgsql/data
|
|||||||
# backups of data go here...
|
# backups of data go here...
|
||||||
install -d -m 700 $RPM_BUILD_ROOT/var/lib/pgsql/backups
|
install -d -m 700 $RPM_BUILD_ROOT/var/lib/pgsql/backups
|
||||||
|
|
||||||
# Move the PL's to the right place
|
|
||||||
mkdir -p $RPM_BUILD_ROOT/usr/lib/pgsql
|
|
||||||
mv $RPM_BUILD_ROOT/usr/lib/pl*.so $RPM_BUILD_ROOT/usr/lib/pgsql
|
|
||||||
|
|
||||||
# postgres' .bash_profile
|
# postgres' .bash_profile
|
||||||
install -m 644 %{SOURCE15} $RPM_BUILD_ROOT/var/lib/pgsql/.bash_profile
|
install -m 644 %{SOURCE15} $RPM_BUILD_ROOT/var/lib/pgsql/.bash_profile
|
||||||
|
|
||||||
@ -566,7 +487,6 @@ install -m 644 %{SOURCE15} $RPM_BUILD_ROOT/var/lib/pgsql/.bash_profile
|
|||||||
# them anyway for completeness.
|
# them anyway for completeness.
|
||||||
mkdir -p $RPM_BUILD_ROOT/usr/lib/pgsql/test
|
mkdir -p $RPM_BUILD_ROOT/usr/lib/pgsql/test
|
||||||
cp -a src/test/regress $RPM_BUILD_ROOT/usr/lib/pgsql/test
|
cp -a src/test/regress $RPM_BUILD_ROOT/usr/lib/pgsql/test
|
||||||
install -m 0755 config/config.guess $RPM_BUILD_ROOT/usr/lib/pgsql
|
|
||||||
install -m 0755 contrib/spi/refint.so $RPM_BUILD_ROOT/usr/lib/pgsql/test/regress
|
install -m 0755 contrib/spi/refint.so $RPM_BUILD_ROOT/usr/lib/pgsql/test/regress
|
||||||
install -m 0755 contrib/spi/autoinc.so $RPM_BUILD_ROOT/usr/lib/pgsql/test/regress
|
install -m 0755 contrib/spi/autoinc.so $RPM_BUILD_ROOT/usr/lib/pgsql/test/regress
|
||||||
pushd $RPM_BUILD_ROOT/usr/lib/pgsql/test/regress/
|
pushd $RPM_BUILD_ROOT/usr/lib/pgsql/test/regress/
|
||||||
@ -586,9 +506,7 @@ popd
|
|||||||
#chmod 0644 $RPM_BUILD_ROOT/etc/logrotate.d/postgres
|
#chmod 0644 $RPM_BUILD_ROOT/etc/logrotate.d/postgres
|
||||||
|
|
||||||
# Fix some more documentation
|
# Fix some more documentation
|
||||||
# no need for the OS2 client
|
# gzip doc/internals.ps
|
||||||
rm -rf contrib/os2client
|
|
||||||
gzip doc/internals.ps
|
|
||||||
cp %{SOURCE6} README.rpm-dist
|
cp %{SOURCE6} README.rpm-dist
|
||||||
mv $RPM_BUILD_ROOT%{_docdir}/postgresql/html doc
|
mv $RPM_BUILD_ROOT%{_docdir}/postgresql/html doc
|
||||||
|
|
||||||
@ -672,11 +590,6 @@ pushd seg
|
|||||||
perl -pi -e "s|/usr/lib/contrib|/usr/lib/pgsql/contrib/seg|" *.sql
|
perl -pi -e "s|/usr/lib/contrib|/usr/lib/pgsql/contrib/seg|" *.sql
|
||||||
popd
|
popd
|
||||||
|
|
||||||
# soundex
|
|
||||||
pushd soundex
|
|
||||||
perl -pi -e "s|/usr/lib/contrib|/usr/lib/pgsql/contrib/soundex|" *.sql
|
|
||||||
popd
|
|
||||||
|
|
||||||
# spi
|
# spi
|
||||||
pushd spi
|
pushd spi
|
||||||
perl -pi -e "s|/usr/lib/contrib|/usr/lib/pgsql/contrib/spi|" *.sql
|
perl -pi -e "s|/usr/lib/contrib|/usr/lib/pgsql/contrib/spi|" *.sql
|
||||||
@ -694,20 +607,15 @@ popd
|
|||||||
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
# Fix a dangling symlink
|
|
||||||
mkdir -p $RPM_BUILD_ROOT/usr/include/pgsql/port
|
|
||||||
cp src/include/port/linux.h $RPM_BUILD_ROOT/usr/include/pgsql/port/
|
|
||||||
ln -sf port/linux.h $RPM_BUILD_ROOT/usr/include/pgsql/os.h
|
|
||||||
|
|
||||||
#more broken symlinks
|
#more broken symlinks
|
||||||
rm -f $RPM_BUILD_ROOT/usr/lib/pgsql/contrib/pg_resetxlog/pg_crc.c $RPM_BUILD_ROOT/usr/lib/pgsql/contrib/pg_controldata/pg_crc.c
|
rm -f $RPM_BUILD_ROOT/usr/lib/pgsql/contrib/pg_resetxlog/pg_crc.c $RPM_BUILD_ROOT/usr/lib/pgsql/contrib/pg_controldata/pg_crc.c
|
||||||
cp src/backend/utils/hash/pg_crc.c $RPM_BUILD_ROOT/usr/lib/pgsql/contrib/pg_resetxlog/pg_crc.c
|
cp src/backend/utils/hash/pg_crc.c $RPM_BUILD_ROOT/usr/lib/pgsql/contrib/pg_resetxlog/pg_crc.c
|
||||||
ln $RPM_BUILD_ROOT/usr/lib/pgsql/contrib/pg_resetxlog/pg_crc.c $RPM_BUILD_ROOT/usr/lib/pgsql/contrib/pg_controldata/pg_crc.c
|
ln $RPM_BUILD_ROOT/usr/lib/pgsql/contrib/pg_resetxlog/pg_crc.c $RPM_BUILD_ROOT/usr/lib/pgsql/contrib/pg_controldata/pg_crc.c
|
||||||
|
|
||||||
# Symlink libpq.so.2.0 to libpq.so.2.1 for backwards compatibility, until
|
# Symlink libpq.so.2.0 to libpq.so.2 for backwards compatibility, until
|
||||||
# -soname patches are the norm.
|
# -soname patches are the norm.
|
||||||
pushd $RPM_BUILD_ROOT/usr/lib
|
pushd $RPM_BUILD_ROOT/usr/lib
|
||||||
ln -s libpq.so.2.1 libpq.so.2.0
|
ln -s libpq.so.2 libpq.so.2.0
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
|
||||||
@ -802,6 +710,8 @@ rm -f perlfiles.list
|
|||||||
/usr/bin/dropuser
|
/usr/bin/dropuser
|
||||||
/usr/bin/pg_dump
|
/usr/bin/pg_dump
|
||||||
/usr/bin/pg_dumpall
|
/usr/bin/pg_dumpall
|
||||||
|
/usr/bin/pg_encoding
|
||||||
|
/usr/bin/pg_id
|
||||||
/usr/bin/pg_restore
|
/usr/bin/pg_restore
|
||||||
/usr/bin/psql
|
/usr/bin/psql
|
||||||
/usr/bin/vacuumdb
|
/usr/bin/vacuumdb
|
||||||
@ -814,7 +724,8 @@ rm -f perlfiles.list
|
|||||||
%{_mandir}/man1/pg_dump.1*
|
%{_mandir}/man1/pg_dump.1*
|
||||||
%{_mandir}/man1/pg_dumpall.1*
|
%{_mandir}/man1/pg_dumpall.1*
|
||||||
%{_mandir}/man1/psql.1*
|
%{_mandir}/man1/psql.1*
|
||||||
%{_mandir}/manl/*
|
%{_mandir}/man1/vacuumdb.1*
|
||||||
|
%{_mandir}/man7/*
|
||||||
|
|
||||||
%files docs
|
%files docs
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
@ -822,10 +733,9 @@ rm -f perlfiles.list
|
|||||||
|
|
||||||
%files contrib
|
%files contrib
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%dir /usr/lib/pgsql/contrib
|
%dir /usr/lib/pgsql/contrib/
|
||||||
/usr/lib/pgsql/contrib/*
|
/usr/lib/pgsql/contrib/*
|
||||||
|
|
||||||
|
|
||||||
%files libs
|
%files libs
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
/usr/lib/libpq.so.*
|
/usr/lib/libpq.so.*
|
||||||
@ -839,8 +749,6 @@ rm -f perlfiles.list
|
|||||||
/usr/bin/initlocation
|
/usr/bin/initlocation
|
||||||
/usr/bin/ipcclean
|
/usr/bin/ipcclean
|
||||||
/usr/bin/pg_ctl
|
/usr/bin/pg_ctl
|
||||||
/usr/bin/pg_encoding
|
|
||||||
/usr/bin/pg_id
|
|
||||||
/usr/bin/pg_passwd
|
/usr/bin/pg_passwd
|
||||||
/usr/bin/postgres
|
/usr/bin/postgres
|
||||||
/usr/bin/postgresql-dump
|
/usr/bin/postgresql-dump
|
||||||
@ -853,12 +761,9 @@ rm -f perlfiles.list
|
|||||||
%{_mandir}/man1/pg_passwd.1*
|
%{_mandir}/man1/pg_passwd.1*
|
||||||
%{_mandir}/man1/postgres.1*
|
%{_mandir}/man1/postgres.1*
|
||||||
%{_mandir}/man1/postmaster.1*
|
%{_mandir}/man1/postmaster.1*
|
||||||
%{_mandir}/man1/vacuumdb.1*
|
|
||||||
%{_mandir}/man1/postgresql-dump.1*
|
%{_mandir}/man1/postgresql-dump.1*
|
||||||
/usr/share/pgsql/global.bki
|
/usr/share/pgsql/postgres.bki
|
||||||
/usr/share/pgsql/global.description
|
/usr/share/pgsql/postgres.description
|
||||||
/usr/share/pgsql/template1.bki
|
|
||||||
/usr/share/pgsql/template1.description
|
|
||||||
/usr/share/pgsql/*.sample
|
/usr/share/pgsql/*.sample
|
||||||
/usr/lib/pgsql/plpgsql.so
|
/usr/lib/pgsql/plpgsql.so
|
||||||
%dir /usr/lib/pgsql
|
%dir /usr/lib/pgsql
|
||||||
@ -872,21 +777,26 @@ rm -f perlfiles.list
|
|||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%dir /usr/include/pgsql
|
/usr/include/*
|
||||||
/usr/include/pgsql/*
|
|
||||||
/usr/bin/ecpg
|
/usr/bin/ecpg
|
||||||
/usr/lib/lib*.a
|
|
||||||
/usr/bin/pg_config
|
/usr/bin/pg_config
|
||||||
/usr/lib/libpq.so
|
/usr/lib/libpq.so
|
||||||
/usr/lib/libecpg.so
|
/usr/lib/libecpg.so
|
||||||
/usr/lib/libpq++.so
|
/usr/lib/libpq++.so
|
||||||
/usr/lib/libpgeasy.so
|
/usr/lib/libpgeasy.so
|
||||||
|
/usr/lib/libpgtcl.so
|
||||||
|
/usr/lib/libpq.a
|
||||||
|
/usr/lib/libecpg.a
|
||||||
|
/usr/lib/libpq++.a
|
||||||
|
/usr/lib/libpgeasy.a
|
||||||
|
/usr/lib/libpgtcl.a
|
||||||
%{_mandir}/man1/ecpg.1*
|
%{_mandir}/man1/ecpg.1*
|
||||||
|
%{_mandir}/man1/pg_config.1*
|
||||||
|
|
||||||
%if %tcl
|
%if %tcl
|
||||||
%files tcl
|
%files tcl
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%attr(755,root,root) /usr/lib/libpgtcl.so*
|
%attr(755,root,root) /usr/lib/libpgtcl.so.*
|
||||||
/usr/bin/pgtclsh
|
/usr/bin/pgtclsh
|
||||||
%{_mandir}/man1/pgtclsh.1*
|
%{_mandir}/man1/pgtclsh.1*
|
||||||
/usr/lib/pgsql/pltcl.so
|
/usr/lib/pgsql/pltcl.so
|
||||||
@ -898,6 +808,7 @@ rm -f perlfiles.list
|
|||||||
/usr/bin/pgtksh
|
/usr/bin/pgtksh
|
||||||
%{_mandir}/man1/pgtksh.1*
|
%{_mandir}/man1/pgtksh.1*
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %pgaccess
|
%if %pgaccess
|
||||||
%doc doc/pgaccess/*
|
%doc doc/pgaccess/*
|
||||||
/usr/share/pgsql/pgaccess
|
/usr/share/pgsql/pgaccess
|
||||||
@ -908,8 +819,7 @@ rm -f perlfiles.list
|
|||||||
%if %odbc
|
%if %odbc
|
||||||
%files odbc
|
%files odbc
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%attr(755,root,root) /usr/lib/libpsqlodbc.so*
|
%attr(755,root,root) /usr/lib/libpsqlodbc.so
|
||||||
%config(noreplace) /etc/pgsql/odbcinst.ini
|
|
||||||
/usr/share/pgsql/odbc.sql
|
/usr/share/pgsql/odbc.sql
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -945,218 +855,60 @@ rm -f perlfiles.list
|
|||||||
%if %test
|
%if %test
|
||||||
%files test
|
%files test
|
||||||
%defattr(-,postgres,postgres)
|
%defattr(-,postgres,postgres)
|
||||||
%dir /usr/lib/pgsql/test
|
%attr(-,postgres,postgres) /usr/lib/pgsql/test/*
|
||||||
%attr(755,postgres,postgres)/usr/lib/pgsql/config.guess
|
|
||||||
%attr(-,postgres,postgres) %dir /usr/lib/pgsql/test
|
%attr(-,postgres,postgres) %dir /usr/lib/pgsql/test
|
||||||
%attr(-,postgres,postgres)/usr/lib/pgsql/test/*
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Tue Nov 04 2003 David Jee <djee@redhat.com> [7.1.3-5.72]
|
* Mon Feb 4 2002 Trond Eivind Glomsrød <teg@redhat.com> 7.2-0.7
|
||||||
- Add to the security patch a fix for to_ascii() buffer overrun.
|
- 7.2
|
||||||
[Bug #108578]
|
|
||||||
- Add to the security patch another fix that avoids running off
|
|
||||||
the end of to_timestamp()'s input string when the input is shorter
|
|
||||||
than the format string expects. [Bug #109067]
|
|
||||||
|
|
||||||
* Wed Jan 9 2003 Andrew Overholt <overholt@redhat.com> [7.1.3-4bp.2]
|
* Thu Jan 31 2002 Elliot Lee <sopwith@redhat.com> 7.2rc2-0.3
|
||||||
- Addition to security backpatch
|
- Fix python dependencies
|
||||||
|
|
||||||
* Mon Dec 16 2002 Andrew Overholt <overholt@redhat.com> [7.1.3-4bp]
|
* Mon Jan 28 2002 Trond Eivind Glomsrød <teg@redhat.com> 7.2rc2-0.2
|
||||||
- Add backpatching of security fixes from 7.2.2 and 7.3.
|
- Added Elliot Lee's python quote enhancement patch
|
||||||
|
|
||||||
* Mon Aug 20 2001 Trond Eivind Glomsrød <teg@redhat.com> 7.1.3-2
|
* Fri Jan 25 2002 Trond Eivind Glomsrød <teg@redhat.com> 7.2rc2-0.1
|
||||||
- Fix usage of "Red Hat Linux" in the README.rpm-dist, do other minor
|
- 7.2rc2
|
||||||
fixes to this file
|
- Patches now included mainstream
|
||||||
- Don't use newlines inside strings in the initscript
|
|
||||||
|
|
||||||
* Mon Aug 20 2001 Trond Eivind Glomsrød <teg@redhat.com> 7.1.3-1
|
* Wed Jan 23 2002 Trond Eivind Glomsrød <teg@redhat.com> 7.2rc1-0.2
|
||||||
- Updated README.rpm-dist from Lamar.
|
- fix perl
|
||||||
- Make sure "Red Hat" and "Red Hat Linux" are used properly in the README.rpm-dist
|
|
||||||
- Work around the horror that is perl's Makefile generation
|
|
||||||
(LD_RUN_PATH is not a good thing) (#51957)
|
|
||||||
- 7.1.3, stable bugfix release. Remove patches from CVS as they are now included
|
|
||||||
- Own more directories
|
|
||||||
|
|
||||||
* Mon Aug 6 2001 Trond Eivind Glomsrød <teg@redhat.com> 7.1.2-7
|
* Wed Jan 23 2002 Trond Eivind Glomsrød <teg@redhat.com> 7.2rc1-0.1
|
||||||
- Add patches from 7.1-stable branch. This should fix #50799 and #50797
|
- 7.2rc1
|
||||||
- Enable kerberos authentication (#50644)
|
- Disable perl for now, it doesn't build...
|
||||||
- handle stop with stale pid file (#50499)
|
- autoconf fixes
|
||||||
- make the test subpackage (not built by default) own /usr/lib/pgsql/test
|
|
||||||
|
|
||||||
* Mon Jul 9 2001 Trond Eivind Glomsrød <teg@redhat.com>
|
* Thu Jan 17 2002 Trond Eivind Glomsrød <teg@redhat.com> 7.2b5-0.3
|
||||||
- Make the -devel subpackage depend on -libs, not the main package
|
- Work around buggy autoconf test (AC_PROG_CC_WORKS)
|
||||||
|
|
||||||
* Tue Jun 19 2001 Trond Eivind Glomsrød <teg@redhat.com>
|
* Tue Jan 15 2002 Trond Eivind Glomsrød <teg@redhat.com> 7.2b5-0.2
|
||||||
- Make sure the python subpackage depends on mx - otherwise, you'd get an
|
- 7.2b5
|
||||||
error when importing
|
|
||||||
|
|
||||||
* Mon Jun 18 2001 Florian La Roche <Florian.LaRoche@redhat.de>
|
* Tue Nov 27 2001 Trond Eivind Glomsrød <teg@redhat.com>
|
||||||
- add changes for s390x
|
- Improve python version handling
|
||||||
|
|
||||||
* Fri Jun 15 2001 Trond Eivind Glomsrød <teg@redhat.com>
|
* Fri Nov 23 2001 Lamar Owen <lamar.owen@wgcr.org>
|
||||||
- Many path fixes for contrib packages
|
- 7.2b3-0.2PGDG
|
||||||
- Newer intarray
|
- second beta3 tarball.
|
||||||
- Don't use nested ifs for tkpkg/pgaccess
|
|
||||||
- Turn off test package for Red Hat Linux - it makes most sense just to use
|
|
||||||
this during development
|
|
||||||
- One "pgacess" -> "pgaccess"
|
|
||||||
|
|
||||||
* Wed Jun 13 2001 Lamar Owen <lamar.owen@wgcr.org> <lamar@postgresql.org>
|
* Thu Nov 22 2001 Lamar Owen <lamar.owen@wgcr.org>
|
||||||
- -4PGDG
|
- 7.2b3-0.1PGDG
|
||||||
- patchset update for pg_regress.sh
|
- Beta3
|
||||||
- can the dot in the release -- confused too many people and some programs.
|
- Docs changes --man pages back, internals.ps gone.
|
||||||
- -3.PGDG
|
- manl (letter 'ell') is now 'man7'.
|
||||||
- updated README.rpm-dist
|
|
||||||
- updated patch to 7.1.2, fixing some places where /usr/share/pgsql
|
|
||||||
was still being used where /usr/lib/pgsql was intended.
|
|
||||||
- PGLIB now set to /usr/lib/pgsql -- initdb doesn't use it to find the bki's.
|
|
||||||
|
|
||||||
* Tue Jun 12 2001 Trond Eivind Glomsrød <teg@redhat.com>
|
* Mon Nov 19 2001 Lamar Owen <lamar.owen@wgcr.org>
|
||||||
- sync
|
- 7.2b2-0.1PGDG
|
||||||
- Run chkconfig --add on server install
|
- --disable-rpath configure option.
|
||||||
- Move the prereqs on useradd on chkconfig to the server package
|
|
||||||
- don't disable the %%clean section
|
|
||||||
|
|
||||||
* Sat Jun 09 2001 Lamar Owen <lamar.owen@wgcr.org>
|
* Fri Oct 26 2001 Lamar Owen <lamar.owen@wgcr.org>
|
||||||
- Sync up with Trond Eivind's set.
|
- Actual PGDG 7.2b1.
|
||||||
|
|
||||||
* Thu Jun 7 2001 Trond Eivind Glomsrød <teg@redhat.com>
|
* Mon Oct 01 2001 Lamar Owen <lamar.owen@wgcr.org>
|
||||||
- Don't create postgres' .bashrc from the server post script: include it instead
|
- 7.2alpha-0.1PGDG
|
||||||
- Move the test packages from /usr/share/pgsql to /usr/lib/pgsql
|
- Merged some changes from Peter Eisentraut for7.2.
|
||||||
- Move the symlinks libpq.so, libecpg.so, libpq++.so and libpgeasy.so to the devel subpackage from
|
- Cleaned up some legacy junk.
|
||||||
libs
|
- Prepare for 7.2 beta cycle.
|
||||||
- Source the i18n data from the .bashrc instead of in the initscript
|
|
||||||
|
|
||||||
* Mon May 28 2001 Trond Eivind Glomsrød <teg@redhat.com>
|
|
||||||
- Handle i18n for database startup - backend needs to have the same locale everytime,
|
|
||||||
but this certainly can't be hardcoded to C either
|
|
||||||
- Fix stop, restart in initscript (#42217)
|
|
||||||
- Make database init _much_ less verbose
|
|
||||||
- other minor fixes to the initscript
|
|
||||||
|
|
||||||
* Fri May 25 2001 Trond Eivind Glomsrød <teg@redhat.com>
|
|
||||||
- 7.1.2
|
|
||||||
|
|
||||||
* Thu May 24 2001 Lamar Owen <lamar@postgresql.org> <lamar.owen@wgcr.org>
|
|
||||||
- 7.1.2-0.1.1.PGDG PRERELEASE
|
|
||||||
- Changed versioning and release numbering a little for better flexibility,
|
|
||||||
-- particularly for distribution packagers.
|
|
||||||
- Release numbering comment at top of spec, where it's more useful.
|
|
||||||
- Trimmed changelog to 7.1.x. See the last 7.0.3's specfile for the 7.0
|
|
||||||
changlog, and the last 6.5.3's specfile for the changelog prior to
|
|
||||||
7.0.
|
|
||||||
|
|
||||||
* Sun May 20 2001 Lamar Owen <lamar@postgresql.org> <lamar.owen@wgcr.org>
|
|
||||||
- 7.1.1-4.PGDG
|
|
||||||
- _really_ got Python version agnosticism working.
|
|
||||||
|
|
||||||
* Sat May 19 2001 Lamar Owen <lamar@postgresql.org> <lamar.owen@wgcr.org>
|
|
||||||
- 7.1.1-3.PGDG Release
|
|
||||||
- Python version agnosticism.....
|
|
||||||
|
|
||||||
* Tue May 15 2001 Trond Eivind Glomsrød <teg@redhat.com>
|
|
||||||
- Use openssl
|
|
||||||
- Make it obsolete subpackages if they aren't built
|
|
||||||
|
|
||||||
* Mon May 14 2001 Lamar Owen <lamar@postgresql.org> <lamar.owen@wgcr.org>
|
|
||||||
- 7.1.1-2.PGDG Release.
|
|
||||||
- Appended .PGDG to release string to differentiate our RPM set from the others.
|
|
||||||
- /bin/sh fix in initscript
|
|
||||||
- README.rpm-dist updates.
|
|
||||||
|
|
||||||
* Mon May 14 2001 Bernhard Rosenkraenzer <bero@redhat.com> 7.1.1-0.7
|
|
||||||
- Rebuild with new readline
|
|
||||||
|
|
||||||
* Thu May 10 2001 Trond Eivind Glomsrød <teg@redhat.com>
|
|
||||||
- Initial 7.1.1
|
|
||||||
|
|
||||||
* Mon May 7 2001 Trond Eivind Glomsrød <teg@redhat.com>
|
|
||||||
- Specify shell when running commands through su in the initscript, to avoid problems
|
|
||||||
when people switch the postgres user to use tcsh
|
|
||||||
|
|
||||||
* Thu Apr 19 2001 Trond Eivind Glomsrød <teg@redhat.com>
|
|
||||||
- JDBC driver for Postgresql 7.1
|
|
||||||
|
|
||||||
* Sun Apr 15 2001 Trond Eivind Glomsrød <teg@redhat.com>
|
|
||||||
- slightly different versioning scheming, will go back to the official
|
|
||||||
later when I'm sure the package is ready to use
|
|
||||||
|
|
||||||
* Fri Apr 13 2001 Lamar Owen <lamar@postgresql.org> <lamar.owen@wgcr.org>
|
|
||||||
- 7.1 RELEASE
|
|
||||||
- 7.1-1 RPM RELEASE
|
|
||||||
- Change to COPTS -- strip out -ffastmath -- Considered Harmful.
|
|
||||||
- Back to old versioning scheme, kept teg's other fixes.
|
|
||||||
- README.rpm-dist updated.
|
|
||||||
- PGVERSION updated all-around (hopefully!)
|
|
||||||
- Couple of fixes from Peter E.
|
|
||||||
- Rearrange dependencies -- only the -libs subpackage is required for most stuff
|
|
||||||
- Removed broken and confusing logrotate script.
|
|
||||||
|
|
||||||
* Mon Apr 9 2001 Trond Eivind Glomsrød <teg@redhat.com>
|
|
||||||
- chown considered harmful - removed
|
|
||||||
- fix dangling symlimks (pg_crc.c)
|
|
||||||
- libpq.so changes for maximum compatiblity
|
|
||||||
- different versioning scheme, to avoid trouble later
|
|
||||||
- remove temporary perl file from the file list
|
|
||||||
- fix spelling error in tcl description
|
|
||||||
- mark odbcinst.ini as a config file
|
|
||||||
- use %%defattr on packages which didn't have it
|
|
||||||
|
|
||||||
* Sat Apr 07 2001 Lamar Owen <lamar@postgresql.org> <lamar.owen@wgcr.org>
|
|
||||||
- Integrated the PL/Perl stuff from Karl DeBisschop --conditional.
|
|
||||||
- Packaging reorg: added contrib and docs subpackages.
|
|
||||||
- Removed sgml source docs from main package --> docs subpackage.
|
|
||||||
- Removed contrib tree from main package --> contrib subpackage.
|
|
||||||
- Contrib tree is now prebuilt -- HOWEVER, very little install work is
|
|
||||||
currently done with this.
|
|
||||||
|
|
||||||
* Fri Apr 06 2001 Lamar Owen <lamar@postgresql.org> <lamar.owen@wgcr.org>
|
|
||||||
- Quickie RC3. There will be a 7.1RC3-2 shortly with other stuff.
|
|
||||||
|
|
||||||
* Tue Apr 03 2001 Lamar Owen <lamar@postgresql.org> <lamar.owen@wgcr.org>
|
|
||||||
- RC2
|
|
||||||
- eliminate versioning information for ancilliary files in prep for CVS.
|
|
||||||
- Fix docs mixup.
|
|
||||||
|
|
||||||
* Tue Mar 27 2001 Lamar Owen <lamar@postgresql.org> <lamar.owen@wgcr.org>
|
|
||||||
- RC1 quickie.
|
|
||||||
|
|
||||||
* Tue Mar 20 2001 Lamar Owen <lamar@postgresql.org>
|
|
||||||
- Beta 6 initial build.
|
|
||||||
- Use make install-all-headers instead of cpio hack for devel headers.
|
|
||||||
- Split out the libs into the libs subpackage.
|
|
||||||
- Updated initscript to use pg_ctl to stop
|
|
||||||
- Updated initscript to initdb and start postmaster with LC_ALL=C to
|
|
||||||
prevent index corruption.
|
|
||||||
|
|
||||||
|
|
||||||
* Sun Jan 28 2001 Lamar Owen <lamar@postgresql.org>
|
|
||||||
- Beta4
|
|
||||||
- Return to 'pgsql' directories instead of 'postgresql'
|
|
||||||
- Better perl patches.
|
|
||||||
|
|
||||||
* Mon Jan 15 2001 Lamar Owen <lamar@postgresql.org>
|
|
||||||
- Edit patches to get rid of some cruft.
|
|
||||||
- Eliminate some more pre-7.1 specfile baggage that is no longer necessary.
|
|
||||||
- Moved pg_id to server
|
|
||||||
- added Makefile.global and pg_config to devel
|
|
||||||
- Corrected /usr/include/pgsql to /usr/include/postgresql
|
|
||||||
- Fixed some configure options. Will be trying the configure macro next release
|
|
||||||
- Since it is terminally ill in this version pg_upgrade is _gone_.
|
|
||||||
- Thanks to Peter E for a good review.
|
|
||||||
|
|
||||||
* Sun Jan 14 2001 Lamar Owen <lamar@postgresql.org>
|
|
||||||
- Running regression. 1 on the release-o-meter.
|
|
||||||
- Minor patches to get regression running right.
|
|
||||||
- Initscript tweaking -- the old test for a database structure fails with 7.1's new structure.
|
|
||||||
|
|
||||||
* Sat Jan 13 2001 Lamar Owen <lamar@postgresql.org>
|
|
||||||
- Perl 5 needs to be built with PREFIX set on the Makefile, not GNUmakefile....
|
|
||||||
- The 7.1 build is different from the 7.0 build -- see the configure line.
|
|
||||||
- NOTE: many files that used to be in /usr/share/postgresql are now in /usr/share/postgresql!
|
|
||||||
- by request, conditional packages are now supported. See the top of the spec.
|
|
||||||
- Fixed the server postinstall problems.
|
|
||||||
|
|
||||||
* Mon Jan 08 2001 Lamar Owen <lamar@postgresql.org>
|
|
||||||
- First 7.1 beta test-build
|
|
||||||
|
3
sources
3
sources
@ -1,5 +1,4 @@
|
|||||||
85e9b43217c22ca22a45b3a831f7df4a contrib-intarray.tar.gz
|
|
||||||
57d69fb52be57f7caa91cccf7d24d199 file-lists.tar.gz
|
57d69fb52be57f7caa91cccf7d24d199 file-lists.tar.gz
|
||||||
5e9beca9c039be1ded2e51a0edcd9fba migration-scripts.tar.gz
|
5e9beca9c039be1ded2e51a0edcd9fba migration-scripts.tar.gz
|
||||||
a92c77092034fb35c7b3bb82beebd54b postgresql-7.1.3.tar.gz
|
4174777cd91f3cc96f91efb2e4e1bc7c postgresql-7.2.tar.gz
|
||||||
3d2e8223f6bb715659cbecedeae81ccc postgresql-dump.1.gz
|
3d2e8223f6bb715659cbecedeae81ccc postgresql-dump.1.gz
|
||||||
|
Loading…
Reference in New Issue
Block a user