summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcvsdist <cvsdist@fedoraproject.org>2004-09-09 10:38:47 +0000
committercvsdist <cvsdist@fedoraproject.org>2004-09-09 10:38:47 +0000
commit68d4798ff5f3820aac52a6f4bcd3b2062d6f2f18 (patch)
tree8e9deba9235f90315b4662b3f3182515ed58ef69
parent4fcf7007a779f3187a68ff023f361517e55707d7 (diff)
downloadpostgresql-setup-postgresql-7_2-0_7_1.tar.gz
postgresql-setup-postgresql-7_2-0_7_1.tar.xz
postgresql-setup-postgresql-7_2-0_7_1.zip
auto-import postgresql-7.2-0.7.1 from postgresql-7.2-0.7.1.src.rpmpostgresql-7_2-0_7_1
-rw-r--r--.cvsignore3
-rw-r--r--README.rpm-dist146
-rw-r--r--postgresql.init21
-rwxr-xr-xpostgresql.spec454
-rw-r--r--sources3
5 files changed, 194 insertions, 433 deletions
diff --git a/.cvsignore b/.cvsignore
index 3159d4b..3ed633e 100644
--- a/.cvsignore
+++ b/.cvsignore
@@ -1,5 +1,4 @@
-contrib-intarray.tar.gz
file-lists.tar.gz
migration-scripts.tar.gz
-postgresql-7.1.3.tar.gz
+postgresql-7.2.tar.gz
postgresql-dump.1.gz
diff --git a/README.rpm-dist b/README.rpm-dist
index 53779c7..f66e75e 100644
--- a/README.rpm-dist
+++ b/README.rpm-dist
@@ -1,8 +1,7 @@
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>
-Trond Eivind Glomsrød <teg@redhat.com>
-----------------------------------------------------------------------------
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
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
-----------------------------------------------------------------------------
If this is an upgrade, please go to section 3, UPGRADING.
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.
@@ -73,19 +79,19 @@ CREDITS
Thomas Lockhart
Uncle George
Ryan Kirkpatrick
-Trond Eivind Glomsrød <teg@redhat.com>
+Trond Eivind Glomsrød
Mark Knox
Mike Mascari
Nicolas Huillard
Karl DeBisschop
Roger Luethi
-Jeff Johnson <jbj@redhat.com>
+Jeff Johnson
Reinhard Max
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:
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
functionality. Here is a mapping:
-SuSE: Red Hat Linux:
+SuSE: RedHat:
----- -----------------
postgres postgresql
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.
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
-server is no longer required. The clients were split out -- after
-all, a person who needs the perl client may very well not need the tcl
-client, etc. And, the regression tests were added to give some
-confidence of the suitability of PostgreSQL, as well as the stability
-of the server machine. Additionally, the regression tests can be used
-to help find hardware errors.
+possible to set up a RedHat linux machine to be only a client -- the server
+is no longer required. The clients were split out -- after all, a person who
+needs the perl client may very well not need the tcl client, etc. And, the
+regression tests were added to give some confidence of the suitability of
+PostgreSQL, as well as the stability of the server machine. Additionally,
+the regression tests can be used to help find hardware errors.
RPM FILE LOCATIONS.
-----------------------------------------------------------------------------
@@ -154,7 +159,7 @@ subdirectories.
Different distributions have different ideas of some of these file locations.
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
-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.
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)
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
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
the on-disk format.
-This property (feature, misfeature, bug, whatever) has been a known
-property of PostgreSQL since before it was called PostgreSQL -- it has
-always been this way. However, the means by which an upgrade is
-performed is not readily performed in a fully automated fashion, as a
-"dump-initdb-restore" cycle has to be performed. This doesn't appear
-to be too difficult -- however, dumping the old database requires the
-old executables -- and, if you've already done an rpm -U postgresql*
-(or upgraded from an older version of Red Hat Linux and didn't
-specifically exclude the postgresql rpms), you no longer have the
-older executables to dump your data. And your data is useless (until
-you reinstall the old version, that is). All RPM's prior to late
-releases of version 6.5. 1 have this upgrade issue.
-
-The newest RPM's for PostgreSQL attempt to make your job in upgrading
-a little easier. First, during the installation of the new RPM's, a
-copy is made of all the executable files and libraries necessary to
-make a backup of your data. Second, the initialization script in the
-new postgresql-server package detects the version of any database
-found -- if the version is old, then the startup of the new version is
-aborted. However, if no database is found, a new one is made.
-
-One thing must be remembered -- due to the restructuring of the
-PostgreSQL RPM's, you will have to manually select the
-postgresql-server package if you want the server -- it is not
-installed by default in an upgrade. You can either select it during
-the upgrade/install, or you can mount your Red Hat Linux CD and
+This property (feature, misfeature, bug, whatever) has been a known property of
+PostgreSQL since before it was called PostgreSQL -- it has always been this
+way. However, the means by which an upgrade is performed is not readily
+performed in a fully automated fashion, as a "dump-initdb-restore" cycle has
+to be performed. This doesn't appear to be too difficult -- however, dumping
+the old database requires the old executables -- and, if you've already done
+an rpm -U postgresql* (or upgraded from an older version of RedHat and didn't
+specifically exclude the postgresql rpms), you no longer have the older
+executables to dump your data. And your data is useless (until you reinstall
+the old version, that is). All RPM's prior to late releases of version 6.5.
+1 have this upgrade issue.
+
+The newest RPM's for PostgreSQL attempt to make your job in upgrading a little
+easier. First, during the installation of the new RPM's, a copy is made of
+all the executable files and libraries necessary to make a backup of your data.
+Second, the initialization script in the new postgresql-server package detects
+the version of any database found -- if the version is old, then the startup
+of the new version is aborted. However, if no database is found, a new one
+is made.
+
+One thing must be remembered -- due to the restructuring of the PostgreSQL
+RPM's, you will have to manually select the postgresql-server package if you
+want the server -- it is not installed by default in an upgrade. You can either
+select it during the upgrade/install, or you can mount your RedHat CD and
install manually with rpm -i.
-To facilitate upgrading, the postgresql-dump utility has been
-provided. Look at the man page for postgresql-dump to see its usage.
-All executables to restore the immediately prior version of the
-PostgreSQL database are placed in the directory /usr/lib/pgsql/backup,
-and are accessed by the postgresql-dump script. The directory
-/usr/lib/pgsql/backup is owned by the postgres user -- you can use
-this directory to hold dump files and preserve directories.
+To facilitate upgrading, the postgresql-dump utility has been provided. Look
+at the man page for postgresql-dump to see its usage. All executables to
+restore the immediately prior version of the PostgreSQL database are placed in
+the directory /usr/lib/pgsql/backup, and are accessed by the postgresql-dump
+script. The directory /usr/lib/pgsql/backup is owned by the postgres user --
+you can use this directory to hold dump files and preserve directories.
The basic sequence is:
(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
postgresql.org.
-There are some tests that will almost always fail with Red Hat Linux
-5.x and 6.x installations. The geometry, float8, and on occassion the
-random test will fail. These failures are normal for Red Hat Linux
-5.2 and 6.1. For Red Hat Linux 6.1 with certain i18n settings, there
-will be other tests fail.
+There are some tests that will almost always fail with RedHat Linux 5.x and 6.x
+installations. The geometry, float8, and on occassion the random test will
+fail. These failures are normal for RedHat 5.2 and 6.1. For RedHat 6.1 with
+certain i18n settings, there will be other tests fail.
-For 7.1RC1, all 76 tests passed on Red Hat Linux 6.2 and RedHat
-7.0. This was accomplished by fiddling with the locale settings. In
-version 7.1.2 this capability was removed -- you need to set your
-locale to 'C' before executing the first postmaster startup, or many
-more regression tests will fail. With the locale set to 'C', all 76
-tests pass on Red Hat Linux 7.1.
+For 7.1RC1, all 76 tests passed on RedHat 6.2 and RedHat 7.0. This
+was accomplished by fiddling with the locale settings. In version 7.1.2 this
+capability was removed -- you need to set your locale to 'C' before executing
+the first postmaster startup, or many more regression tests will fail.
For interpretation of the regression tests, see the PostgreSQL documentation.
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
-the postmaster, with sanity checking, as root, run "service postgresql start"
-to shut postmaster down, "service postgresql stop"
-
+the postmaster, with sanity checking, as root, run
+/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
listing.
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.
-This same script also works for TurboLinux, and any other distribution
-similar enough to Red Hat Linux. SuSE Linux uses a different
-approach, using a different location and a different script, found at
-either /sbin/init.d/postgres or /usr/sbin/rcpostgres. Please see the
-SuSE 'README.linux' for more information.
+This same script also works for TurboLinux, and any other distribution similar
+enough to RedHat. SuSE Linux uses a different approach, using a different
+location and a different script, found at either /sbin/init.d/postgres or
+/usr/sbin/rcpostgres. Please see the SuSE 'README.linux' for more information.
SuSE has maintained their own RPMset for some time -- their documentation
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
a non-root build environment.
-Install the source RPM with rpm -i, then CD to the rpm building area
-(on Red Hat Linux this is /usr/src/redhat by default). You will have
-to have a full development environment to rebuild the full RPM set.
+Install the source RPM with rpm -i, then CD to the rpm building area (on RedHat
+this is /usr/src/redhat by default). You will have to have a full development
+environment to rebuild the full RPM set.
This release of the RPMset includes the ability to conditionally build
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.
+
diff --git a/postgresql.init b/postgresql.init
index 5d198eb..47d9cb5 100644
--- a/postgresql.init
+++ b/postgresql.init
@@ -39,8 +39,11 @@
# sync up.
# Karl's fixes for some quoting issues.
+# Version 7.2b2 Lamar Owen <lamar.owen@wgcr.org>
+# version change.
+
# PGVERSION is:
-PGVERSION=7.1.3
+PGVERSION=7.2
# Source function library.
INITD=/etc/rc.d/init.d
@@ -75,7 +78,7 @@ start(){
then
# Check version of existing PGDATA
- if [ `cat $PGDATA/PG_VERSION` != '7.1' ]
+ if [ `cat $PGDATA/PG_VERSION` != '7.2' ]
then
SYSDOCDIR="(Your System's documentation directory)"
if [ -d /usr/doc/postgresql-$PGVERSION ]
@@ -95,10 +98,17 @@ start(){
SYSDOCDIR=/usr/share/doc/packages
fi
echo
- echo $"An old version of the database format was found."
- echo $"You need to upgrade the data format before using PostgreSQL."
- echo $"See $SYSDOCDIR/postgresql-$PGVERSION/README.rpm-dist for more information."
+ 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."
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
# No existing PGDATA! Initdb it.
@@ -223,3 +233,4 @@ esac
exit 0
+
diff --git a/postgresql.spec b/postgresql.spec
index 6a57b72..e1c2e5c 100755
--- a/postgresql.spec
+++ b/postgresql.spec
@@ -8,21 +8,22 @@
%{!?pltcl:%define pltcl 1}
%{?forceplperl:%define plperl %{expand:forceplperl}}
%{!?forceplperl:%define forceplperl 0}
-%{!?plperl:%define plperl 0}
+%{!?plperl:%define plperl 1}
%{!?ssl:%define ssl 1}
%{!?kerberos:%define kerberos 1}
# Utility feature defines.
%{!?enable_mb:%define enable_mb 1}
%{!?pgaccess:%define pgaccess 1}
-%{!?newintarray:%define newintarray 1}
# 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.
Name: postgresql
-Version: 7.1.3
+Version: 7.2
# 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
# -- only test releases or full releases should be.
-Release: 5.72
+Release: 0.7.1
License: BSD
Group: Applications/Databases
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
Source14: rh-pgdump.sh
Source15: postgresql-bashprofile
-Source16: http://www.sai.msu.su/~megera/postgres/gist/code/7.1.2/contrib-intarray.tar.gz
-Patch1: rpm-pgsql-7.1.patch
-Patch2: postgresql-7.1.plperl.patch
-Patch3: postgresql-7.1.s390x.patch
-Patch4: postgresql-7.1.3-security.patch
-Buildrequires: perl glibc-devel
+Patch1: rpm-pgsql-7.2.patch
+Patch2: postgresql-7.2rc2-betterquote.patch
+Buildrequires: perl glibc-devel autoconf
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
BuildPrereq: openssl-devel
%endif
-%if %ssl
+%if %kerberos
BuildPrereq: krb5-devel
%endif
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>
# and others listed.
@@ -114,6 +115,7 @@ Obsoletes: postgresql-test
# Thomas Lockhart
# Reinhard Max
# Karl DeBisschop
+# Peter Eisentraut
# and others in the Changelog....
# 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
Summary: The shared libraries required for any PostgreSQL clients.
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
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
Summary: Development module for Python code to access a PostgreSQL DB.
Group: Applications/Databases
-Requires: python >= 1.5 mx
-Conflicts: python >= 1.6
-
+Requires: mx%{?pymainver}
+Requires: python%{?pymainver} >= %pyver, python < %pynextver
%description python
PostgreSQL is an advanced Object-Relational database management
@@ -315,34 +316,7 @@ system, including regression tests and benchmarks.
%setup -q
%patch1 -p1
-
-#PL/Perl stuff
%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
@@ -356,12 +330,15 @@ tar xzf %{SOURCE4}
# cp /usr/share/libtool/config.* .
#fi
+CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS
+CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS
+
# Strip out -ffast-math from CFLAGS....
-CFLAGS=`echo $RPM_OPT_FLAGS|xargs -n 1|grep -v ffast-math|xargs -n 100`
-export CXXFLAGS="$CFLAGS"
+CFLAGS=`echo $CFLAGS|xargs -n 1|grep -v ffast-math|xargs -n 100`
+export PYTHON="/usr/bin/python%{pyver}"
-./configure --enable-locale --with-CXX --prefix=/usr\
+./configure --enable-locale --with-CXX --prefix=/usr --disable-rpath\
%if %perl
--with-perl \
%endif
@@ -391,28 +368,10 @@ export CXXFLAGS="$CFLAGS"
--sysconfdir=/etc/pgsql \
--mandir=%{_mandir} \
--docdir=%{_docdir} \
- --includedir=%{_includedir}/pgsql \
+ --includedir=%{_includedir} \
--datadir=/usr/share/pgsql
-make COPT="$CFLAGS" 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
+make %{?_smp_mflags} all
%if %test
pushd src/test
@@ -423,19 +382,9 @@ make COPT="$CFLAGS" all
%install
rm -rf $RPM_BUILD_ROOT
-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
+make DESTDIR=$RPM_BUILD_ROOT install
%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
# 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
-make -C doc
-
# man pages....
-pushd $RPM_BUILD_ROOT%{_mandir}
-tar xzf $RPM_BUILD_DIR/postgresql-%{version}/doc/man.tar.gz
-
# the postgresql-dump manpage.....
+pushd $RPM_BUILD_ROOT%{_mandir}
cp %{SOURCE12} man1
popd
@@ -484,13 +429,6 @@ install -m755 %SOURCE14 $RPM_BUILD_ROOT/usr/bin/
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....
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
%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
# Java/JDBC
# 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
-# Fixup more permissions...
-chmod 644 $RPM_BUILD_ROOT%{_mandir}/*/*
-chmod +x $RPM_BUILD_ROOT/usr/lib/lib*.so.*
-
# The initscripts....
# Redhat-style....
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...
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
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.
mkdir -p $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/autoinc.so $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
# Fix some more documentation
-# no need for the OS2 client
-rm -rf contrib/os2client
-gzip doc/internals.ps
+# gzip doc/internals.ps
cp %{SOURCE6} README.rpm-dist
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
popd
-# soundex
-pushd soundex
-perl -pi -e "s|/usr/lib/contrib|/usr/lib/pgsql/contrib/soundex|" *.sql
-popd
-
# spi
pushd spi
perl -pi -e "s|/usr/lib/contrib|/usr/lib/pgsql/contrib/spi|" *.sql
@@ -694,20 +607,15 @@ 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
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
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.
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
@@ -802,6 +710,8 @@ rm -f perlfiles.list
/usr/bin/dropuser
/usr/bin/pg_dump
/usr/bin/pg_dumpall
+/usr/bin/pg_encoding
+/usr/bin/pg_id
/usr/bin/pg_restore
/usr/bin/psql
/usr/bin/vacuumdb
@@ -814,7 +724,8 @@ rm -f perlfiles.list
%{_mandir}/man1/pg_dump.1*
%{_mandir}/man1/pg_dumpall.1*
%{_mandir}/man1/psql.1*
-%{_mandir}/manl/*
+%{_mandir}/man1/vacuumdb.1*
+%{_mandir}/man7/*
%files docs
%defattr(-,root,root)
@@ -822,10 +733,9 @@ rm -f perlfiles.list
%files contrib
%defattr(-,root,root)
-%dir /usr/lib/pgsql/contrib
+%dir /usr/lib/pgsql/contrib/
/usr/lib/pgsql/contrib/*
-
%files libs
%defattr(-,root,root)
/usr/lib/libpq.so.*
@@ -839,8 +749,6 @@ rm -f perlfiles.list
/usr/bin/initlocation
/usr/bin/ipcclean
/usr/bin/pg_ctl
-/usr/bin/pg_encoding
-/usr/bin/pg_id
/usr/bin/pg_passwd
/usr/bin/postgres
/usr/bin/postgresql-dump
@@ -853,12 +761,9 @@ rm -f perlfiles.list
%{_mandir}/man1/pg_passwd.1*
%{_mandir}/man1/postgres.1*
%{_mandir}/man1/postmaster.1*
-%{_mandir}/man1/vacuumdb.1*
%{_mandir}/man1/postgresql-dump.1*
-/usr/share/pgsql/global.bki
-/usr/share/pgsql/global.description
-/usr/share/pgsql/template1.bki
-/usr/share/pgsql/template1.description
+/usr/share/pgsql/postgres.bki
+/usr/share/pgsql/postgres.description
/usr/share/pgsql/*.sample
/usr/lib/pgsql/plpgsql.so
%dir /usr/lib/pgsql
@@ -872,21 +777,26 @@ rm -f perlfiles.list
%files devel
%defattr(-,root,root)
-%dir /usr/include/pgsql
-/usr/include/pgsql/*
+/usr/include/*
/usr/bin/ecpg
-/usr/lib/lib*.a
/usr/bin/pg_config
/usr/lib/libpq.so
/usr/lib/libecpg.so
/usr/lib/libpq++.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/pg_config.1*
%if %tcl
%files tcl
%defattr(-,root,root)
-%attr(755,root,root) /usr/lib/libpgtcl.so*
+%attr(755,root,root) /usr/lib/libpgtcl.so.*
/usr/bin/pgtclsh
%{_mandir}/man1/pgtclsh.1*
/usr/lib/pgsql/pltcl.so
@@ -898,6 +808,7 @@ rm -f perlfiles.list
/usr/bin/pgtksh
%{_mandir}/man1/pgtksh.1*
%endif
+
%if %pgaccess
%doc doc/pgaccess/*
/usr/share/pgsql/pgaccess
@@ -908,8 +819,7 @@ rm -f perlfiles.list
%if %odbc
%files odbc
%defattr(-,root,root)
-%attr(755,root,root) /usr/lib/libpsqlodbc.so*
-%config(noreplace) /etc/pgsql/odbcinst.ini
+%attr(755,root,root) /usr/lib/libpsqlodbc.so
/usr/share/pgsql/odbc.sql
%endif
@@ -945,218 +855,60 @@ rm -f perlfiles.list
%if %test
%files test
%defattr(-,postgres,postgres)
-%dir /usr/lib/pgsql/test
-%attr(755,postgres,postgres)/usr/lib/pgsql/config.guess
+%attr(-,postgres,postgres) /usr/lib/pgsql/test/*
%attr(-,postgres,postgres) %dir /usr/lib/pgsql/test
-%attr(-,postgres,postgres)/usr/lib/pgsql/test/*
%endif
%changelog
-* Tue Nov 04 2003 David Jee <djee@redhat.com> [7.1.3-5.72]
-- Add to the security patch a fix for to_ascii() buffer overrun.
-[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]
-- Addition to security backpatch
-
-* Mon Dec 16 2002 Andrew Overholt <overholt@redhat.com> [7.1.3-4bp]
-- Add backpatching of security fixes from 7.2.2 and 7.3.
-
-* Mon Aug 20 2001 Trond Eivind Glomsrød <teg@redhat.com> 7.1.3-2
-- Fix usage of "Red Hat Linux" in the README.rpm-dist, do other minor
- fixes to this file
-- Don't use newlines inside strings in the initscript
-
-* Mon Aug 20 2001 Trond Eivind Glomsrød <teg@redhat.com> 7.1.3-1
-- Updated README.rpm-dist from Lamar.
-- 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
-- Add patches from 7.1-stable branch. This should fix #50799 and #50797
-- Enable kerberos authentication (#50644)
-- handle stop with stale pid file (#50499)
-- make the test subpackage (not built by default) own /usr/lib/pgsql/test
-
-* Mon Jul 9 2001 Trond Eivind Glomsrød <teg@redhat.com>
-- Make the -devel subpackage depend on -libs, not the main package
-
-* Tue Jun 19 2001 Trond Eivind Glomsrød <teg@redhat.com>
-- Make sure the python subpackage depends on mx - otherwise, you'd get an
- error when importing
-
-* Mon Jun 18 2001 Florian La Roche <Florian.LaRoche@redhat.de>
-- add changes for s390x
-
-* Fri Jun 15 2001 Trond Eivind Glomsrød <teg@redhat.com>
-- Many path fixes for contrib packages
-- Newer intarray
-- 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>
-- -4PGDG
-- patchset update for pg_regress.sh
-- can the dot in the release -- confused too many people and some programs.
-- -3.PGDG
-- 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>
-- sync
-- Run chkconfig --add on server install
-- 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>
-- Sync up with Trond Eivind's set.
-
-* Thu Jun 7 2001 Trond Eivind Glomsrød <teg@redhat.com>
-- Don't create postgres' .bashrc from the server post script: include it instead
-- Move the test packages from /usr/share/pgsql to /usr/lib/pgsql
-- Move the symlinks libpq.so, libecpg.so, libpq++.so and libpgeasy.so to the devel subpackage from
- libs
-- 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
+* Mon Feb 4 2002 Trond Eivind Glomsrød <teg@redhat.com> 7.2-0.7
+- 7.2
+
+* Thu Jan 31 2002 Elliot Lee <sopwith@redhat.com> 7.2rc2-0.3
+- Fix python dependencies
+
+* Mon Jan 28 2002 Trond Eivind Glomsrød <teg@redhat.com> 7.2rc2-0.2
+- Added Elliot Lee's python quote enhancement patch
+
+* Fri Jan 25 2002 Trond Eivind Glomsrød <teg@redhat.com> 7.2rc2-0.1
+- 7.2rc2
+- Patches now included mainstream
+
+* Wed Jan 23 2002 Trond Eivind Glomsrød <teg@redhat.com> 7.2rc1-0.2
+- fix perl
+
+* Wed Jan 23 2002 Trond Eivind Glomsrød <teg@redhat.com> 7.2rc1-0.1
+- 7.2rc1
+- Disable perl for now, it doesn't build...
+- autoconf fixes
+
+* Thu Jan 17 2002 Trond Eivind Glomsrød <teg@redhat.com> 7.2b5-0.3
+- Work around buggy autoconf test (AC_PROG_CC_WORKS)
+
+* Tue Jan 15 2002 Trond Eivind Glomsrød <teg@redhat.com> 7.2b5-0.2
+- 7.2b5
+
+* Tue Nov 27 2001 Trond Eivind Glomsrød <teg@redhat.com>
+- Improve python version handling
+
+* Fri Nov 23 2001 Lamar Owen <lamar.owen@wgcr.org>
+- 7.2b3-0.2PGDG
+- second beta3 tarball.
+
+* Thu Nov 22 2001 Lamar Owen <lamar.owen@wgcr.org>
+- 7.2b3-0.1PGDG
+- Beta3
+- Docs changes --man pages back, internals.ps gone.
+- manl (letter 'ell') is now 'man7'.
+
+* Mon Nov 19 2001 Lamar Owen <lamar.owen@wgcr.org>
+- 7.2b2-0.1PGDG
+- --disable-rpath configure option.
+
+* Fri Oct 26 2001 Lamar Owen <lamar.owen@wgcr.org>
+- Actual PGDG 7.2b1.
+
+* Mon Oct 01 2001 Lamar Owen <lamar.owen@wgcr.org>
+- 7.2alpha-0.1PGDG
+- Merged some changes from Peter Eisentraut for7.2.
+- Cleaned up some legacy junk.
+- Prepare for 7.2 beta cycle.
diff --git a/sources b/sources
index 6c4f126..1cfe388 100644
--- a/sources
+++ b/sources
@@ -1,5 +1,4 @@
-85e9b43217c22ca22a45b3a831f7df4a contrib-intarray.tar.gz
57d69fb52be57f7caa91cccf7d24d199 file-lists.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