auto-import postgresql-7.2-2.7 from postgresql-7.2-2.7.src.rpm

This commit is contained in:
cvsdist 2004-09-09 10:39:06 +00:00
parent 68d4798ff5
commit 9636c11b0d
5 changed files with 181 additions and 121 deletions

View File

@ -1,11 +1,11 @@
README.rpm-dist README.rpm-dist
----------------------------------------------------------------------------- -----------------------------------------------------------------------------
Version 3.99, for PostgreSQL 7.2 beta cycle. Version 4.0, for the PostgreSQL 7.2-1PGDG RPMset.
Lamar Owen <lamar.owen@wgcr.org> Lamar Owen <lamar.owen@wgcr.org>
----------------------------------------------------------------------------- -----------------------------------------------------------------------------
Contents: Contents:
0.) Quickie -i note. 0.) Quick -i note.
1.) Introduction, QuickStart, and credits 1.) Introduction, QuickStart, and credits
2.) PostgreSQL RPM packages and rationale 2.) PostgreSQL RPM packages and rationale
3.) Upgrading from an older version of PostgreSQL without losing data. 3.) Upgrading from an older version of PostgreSQL without losing data.
@ -17,7 +17,7 @@ Contents:
9.) Logging set up 9.) Logging set up
10.) Further Information Resource 10.) Further Information Resource
QUICKIE '-i' NOTE QUICK '-i' NOTE
----------------------------------------------------------------------------- -----------------------------------------------------------------------------
The postmaster '-i' option is NOT used by default in the initscript shipped The postmaster '-i' option is NOT used by default in the initscript shipped
with these RPMs. Please do NOT modify the initscript to add the '-i' back with these RPMs. Please do NOT modify the initscript to add the '-i' back
@ -31,7 +31,7 @@ This document exists to explain the layout of the RPM's for PostgreSQL, to
explain how to migrate from an older version, and to explain WHY it can be explain how to migrate from an older version, and to explain WHY it can be
so difficult to upgrade PostgreSQL. so difficult to upgrade PostgreSQL.
This document is written to be applicable to version 7.1.2 of PostgreSQL, This document is written to be applicable to version 7.2 of PostgreSQL,
which is the current version of the RPM's as of this writing. which is the current version of the RPM's as of this writing.
Official PostgreSQL Global Development Group RPM's will from version 7.1.2 Official PostgreSQL Global Development Group RPM's will from version 7.1.2
@ -48,21 +48,12 @@ 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 RedHat and TurboLinux) /etc/rc.d/init.d/postgresql start (on RedHat and TurboLinux)
On SuSE, please see the file 'README.linux' in this directory.
The file /var/lib/pgsql/.bash_profile is now packaged to help with the The file /var/lib/pgsql/.bash_profile is now packaged to help with the
setting of environment variables. You may edit this file, and it won't be setting of environment variables. You may edit this file, and it won't be
overwritten during an upgrade. However, enhancements and bugfixes may be added overwritten during an upgrade. However, enhancements and bugfixes may be added
@ -87,7 +78,7 @@ Karl DeBisschop
Roger Luethi Roger Luethi
Jeff Johnson Jeff Johnson
Reinhard Max Reinhard Max
Peter Eisentraut
POSTGRESQL RPM PACKAGES AND RATIONALE. POSTGRESQL RPM PACKAGES AND RATIONALE.
----------------------------------------------------------------------------- -----------------------------------------------------------------------------
@ -188,6 +179,9 @@ also seem like more work to keep track of where everything is -- but, that's
the beauty of RPM -- you don't have to keep track of the files, RPM does it the beauty of RPM -- you don't have to keep track of the files, RPM does it
for you. for you.
These RPM's are meant to be LSB-compliant. If you find errors in them that
cause thembe be non-compliant, please let me know.
UPGRADING. UPGRADING.
----------------------------------------------------------------------------- -----------------------------------------------------------------------------
CAUTION: While a semi-automatic upgrade process has been implemented, it is CAUTION: While a semi-automatic upgrade process has been implemented, it is
@ -196,11 +190,12 @@ performed BEFORE upgrading the RPMs! If you have already done the upgrade
with the RPM, and want to return to your previous version to do the dump, with the RPM, and want to return to your previous version to do the dump,
find the old RPM's and use 'rpm -U --oldpackage' to downgrade. find the old RPM's and use 'rpm -U --oldpackage' to downgrade.
I cannot overemphasize this precaution.
NOTE: moving your existing data from /var/lib/pgsql to /var/lib/pgsql/data is NOTE: moving your existing data from /var/lib/pgsql to /var/lib/pgsql/data is
not currently automatic -- you will need to do this yourself at this release! not currently automatic -- you will need to do this yourself at this release!
This change occurred between 6.5.3 and 7.0, so upgrading from priot to 7.0 to This change occurred between 6.5.3 and 7.0, so upgrading from prior to 7.0 to
7.0 or later might be difficult. The rh-dump script is provided to ease this, 7.0 or later might be difficult.
see below.
The single biggest problem with upgrading PostgreSQL RPM's has been the lack The single biggest problem with upgrading PostgreSQL RPM's has been the lack
of a reasonably automated upgrade process. PostgreSQL has the property of of a reasonably automated upgrade process. PostgreSQL has the property of
@ -246,14 +241,6 @@ The basic sequence is:
postgresql-dump -t /var/lib/pgsql/backup/db.bak -p /var/lib/pgsql/backup/old -d postgresql-dump -t /var/lib/pgsql/backup/db.bak -p /var/lib/pgsql/backup/old -d
(you can abort the ASCII dump with 'Q', as it uses more) Then, (as user root): (you can abort the ASCII dump with 'Q', as it uses more) Then, (as user root):
***** NOTE ***** ***** NOTE *****
The above script is broken. Use "rh-pgdump.sh targetfile" instead, remove the
old databases (/var/lib/pgsql/base) (or safer - move them somewhere else first),
start the database and follow the insert procedure described below.
***** NOTE ***** ***** NOTE *****
service postgresql start service postgresql start
(which will automatically create a new database structure) And finally, (which will automatically create a new database structure) And finally,
@ -332,13 +319,13 @@ 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 4, 5, or 6, run 'chkconfig --add postgresql', and the proper symlinks runlevels 3, 4, or 5, run:
will be created. Check the chkconfig man page for more information. chkconfig --add postgresql
chkconfig --level 345 postgresql on
This same script also works for TurboLinux, and any other distribution similar and the proper symlinks will be created. Check the chkconfig man page for more
enough to RedHat. SuSE Linux uses a different approach, using a different information. Note that this is manual -- while the startup script can include
location and a different script, found at either /sbin/init.d/postgres or tags to allow chkconfig to automatically perform the symlinking, this is not
/usr/sbin/rcpostgres. Please see the SuSE 'README.linux' for more information. done at this time.
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.
@ -375,6 +362,7 @@ 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:
beta 0 #build with cassert and do not strip the binaries
perl 1 #build the postgresql-perl package. perl 1 #build the postgresql-perl package.
tcl 1 #build the postgresql-tcl package. tcl 1 #build the postgresql-tcl package.
tkpkg 1 #build the postgresql-tk package. tkpkg 1 #build the postgresql-tk package.
@ -387,6 +375,7 @@ forceplperl 0 #don't force a build of pl/perl over libperl.a
plperl 0 #don't build the postgresql-plperl package. plperl 0 #don't build the postgresql-plperl package.
ssl 1 #use OpenSSL support. ssl 1 #use OpenSSL support.
kerberos 1 #use Kerberos 5 support. kerberos 1 #use Kerberos 5 support.
nls 1 #build with national language support.
enable_mb 1 #enable multibyte encodings. enable_mb 1 #enable multibyte encodings.
pgaccess 1 #build the pgaccess client, part of postgresql-tk. pgaccess 1 #build the pgaccess client, part of postgresql-tk.
newintarray 0 #substitute a newer intarray contrib. newintarray 0 #substitute a newer intarray contrib.
@ -437,9 +426,3 @@ I use automatic mail folder processing to put mail in the right place.
SuSE information is available at SuSE's website and information contacts. SuSE information is available at SuSE's website and information contacts.
----------------------------------------------------------------------------- -----------------------------------------------------------------------------

View File

@ -1,5 +1,5 @@
PGLIB=/usr/lib/pgsql
PGDATA=/var/lib/pgsql/data PGDATA=/var/lib/pgsql/data
[ -f $PGDATA/../initdb.i18n ] && source $PGDATA/../initdb.i18n [ -f $PGDATA/../initdb.i18n ] && source $PGDATA/../initdb.i18n
export PGLIB PGDATA export PGDATA

View File

@ -42,6 +42,12 @@
# Version 7.2b2 Lamar Owen <lamar.owen@wgcr.org> # Version 7.2b2 Lamar Owen <lamar.owen@wgcr.org>
# version change. # version change.
# Version 7.2 final. Lamar Owen <lamar.owen@wgcr.org>
# reload from Peter E.
# Eliminate the pidof postmaster test in stop -- we're using pg_ctl so we don't need pidof.
# Tested the $? return for the stop script -- it does in fact propagate.
# TODO: multiple postmasters.
# PGVERSION is: # PGVERSION is:
PGVERSION=7.2 PGVERSION=7.2
@ -98,7 +104,7 @@ 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.\nYou need to upgrade the data format before using PostgreSQL.\nSee $SYSDOCDIR/postgresql-$PGVERSION/README.rpm-dist for more information." echo -e $"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 exit 1
# This doesn't seem to do anything useful... # This doesn't seem to do anything useful...
# else # else
@ -169,13 +175,6 @@ start(){
} }
stop(){ stop(){
# Check for postmaster already running... exit if this happens
pid=`pidof -s postmaster`
if [ "$pid" == "" ]; then
rm -f /var/run/postmaster.pid
rm -f /var/lock/subsys/postgresql
exit 0;
fi
echo -n $"Stopping postgresql service: " echo -n $"Stopping postgresql service: "
# Check for older PGDATA location. # Check for older PGDATA location.
if [ -f /var/lib/pgsql/PG_VERSION ] && [ -d /var/lib/pgsql/base/template1 ] if [ -f /var/lib/pgsql/PG_VERSION ] && [ -d /var/lib/pgsql/base/template1 ]
@ -185,7 +184,7 @@ stop(){
export PGDATA=/var/lib/pgsql/data export PGDATA=/var/lib/pgsql/data
fi fi
su -l postgres -s /bin/sh -c "/usr/bin/pg_ctl stop -D $PGDATA -s -m fast" > /dev/null 2>&1 su -l postgres -s /bin/sh -c "/usr/bin/pg_ctl stop -D $PGDATA -s -m fast" > /dev/null 2>&1
ret=$? # This will always be 0, as the return code doesn't propagate... Fix that some day. ret=$?
if [ $ret -eq 0 ]; then if [ $ret -eq 0 ]; then
echo_success echo_success
else else
@ -205,6 +204,9 @@ condrestart(){
[ -e /var/lock/subsys/postgresql ] && restart || : [ -e /var/lock/subsys/postgresql ] && restart || :
} }
reload(){
su -l postgres -s /bin/sh -c "/usr/bin/pg_ctl reload -D $PGDATA -s" > /dev/null 2>&1
}
# This script is slightly unusual in that the name of the daemon (postmaster) # This script is slightly unusual in that the name of the daemon (postmaster)
# is not the same as the name of the subsystem (postgresql) # is not the same as the name of the subsystem (postgresql)
@ -226,11 +228,13 @@ case "$1" in
condrestart) condrestart)
condrestart condrestart
;; ;;
reload|force-reload)
reload
;;
*) *)
echo $"Usage: $0 {start|stop|status|restart|condrestart}" echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
exit 1 exit 1
esac esac
exit 0 exit 0

View File

@ -1,3 +1,6 @@
%define beta 0
%{?beta:%define __os_install_post /usr/lib/rpm/brp-compress}
%{!?perl:%define perl 1} %{!?perl:%define perl 1}
%{!?tcl:%define tcl 1} %{!?tcl:%define tcl 1}
%{!?tkpkg:%define tkpkg 1} %{!?tkpkg:%define tkpkg 1}
@ -8,18 +11,18 @@
%{!?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 1} %{!?plperl:%define plperl 0}
%{!?ssl:%define ssl 1} %{!?ssl:%define ssl 1}
%{!?kerberos:%define kerberos 1} %{!?kerberos:%define kerberos 1}
%{!?nls:%define nls 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}
# Python major version. # Python major version.
%define pyver 2.2 %{expand: %%define pyver %(python -c 'import sys;print(sys.version[0:3])')%{nil}}
%define pymainver 2 %{expand: %%define pynextver %(python -c 'import sys;print(float(sys.version[0:3])+0.1)')%{nil}}
%define pynextver 2.3
Summary: PostgreSQL client programs and libraries. Summary: PostgreSQL client programs and libraries.
Name: postgresql Name: postgresql
@ -45,7 +48,7 @@ Version: 7.2
# 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: 0.7.1 Release: 2.7
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
@ -54,24 +57,31 @@ Source4: file-lists.tar.gz
Source5: ftp://ftp.postgresql.org/pub/source/v%{version}/postgresql-%{version}.tar.gz.md5 Source5: ftp://ftp.postgresql.org/pub/source/v%{version}/postgresql-%{version}.tar.gz.md5
Source6: README.rpm-dist Source6: README.rpm-dist
Source7: migration-scripts.tar.gz Source7: migration-scripts.tar.gz
Source10: http://www.retep.org.uk/postgres/jdbc7.0-1.1.jar Source8: http://jdbc.postgresql.org/download/jdbc7.2dev-1.1.jar
Source11: jdbc7.1-1.2.jar Source9: http://jdbc.postgresql.org/download/jdbc7.2dev-1.2.jar
Source10: http://jdbc.postgresql.org/download/jdbc7.1-1.1.jar
Source11: http://jdbc.postgresql.org/download/jdbc7.1-1.2.jar
Source12: postgresql-dump.1.gz Source12: postgresql-dump.1.gz
Source14: rh-pgdump.sh
Source15: postgresql-bashprofile Source15: postgresql-bashprofile
Patch1: rpm-pgsql-7.2.patch Patch1: rpm-pgsql-7.2.patch
Patch2: postgresql-7.2rc2-betterquote.patch Patch2: postgresql-7.2-contribfixes.patch
Buildrequires: perl glibc-devel autoconf Patch3: postgresql-7.2rc2-betterquote.patch
Patch4: postgresql-7.2-tighten.patch
Buildrequires: perl glibc-devel
Prereq: /sbin/ldconfig initscripts Prereq: /sbin/ldconfig initscripts
BuildPrereq: python%{?pymainver}-devel perl tcl BuildPrereq: perl
BuildPrereq: readline-devel >= 4.0 BuildPrereq: readline-devel >= 4.0
BuildPrereq: zlib-devel >= 1.0.4 BuildPrereq: zlib-devel >= 1.0.4
BuildPrereq: patch >= 2.5.4
%if %ssl %if %ssl
BuildPrereq: openssl-devel BuildPrereq: openssl-devel
%endif %endif
%if %kerberos %if %kerberos
BuildPrereq: krb5-devel BuildPrereq: krb5-devel
%endif %endif
%if %nls
BuildPrereq: gettext >= 0.10.36
%endif
Url: http://www.postgresql.org/ Url: http://www.postgresql.org/
Obsoletes: postgresql-clients Obsoletes: postgresql-clients
Buildroot: %{_tmppath}/%{name}-%{version}-root Buildroot: %{_tmppath}/%{name}-%{version}-root
@ -81,6 +91,7 @@ Obsoletes: postgresql-plperl
%endif %endif
%if ! %{tcl} %if ! %{tcl}
Obsoletes: postgresql-tcl Obsoletes: postgresql-tcl
Buildrequires: tcl
%endif %endif
%if ! %{tkpkg} %if ! %{tkpkg}
Obsoletes: postgresql-tk Obsoletes: postgresql-tk
@ -93,6 +104,7 @@ Obsoletes: postgresql-perl
%endif %endif
%if ! %{python} %if ! %{python}
Obsoletes: postgresql-python Obsoletes: postgresql-python
BuildRequires: python-devel
%endif %endif
%if ! %{jdbc} %if ! %{jdbc}
Obsoletes: postgresql-jdbc Obsoletes: postgresql-jdbc
@ -276,8 +288,9 @@ 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: mx%{?pymainver} Requires: python mx
Requires: python%{?pymainver} >= %pyver, python < %pynextver Conflicts: python < %pyver, python >= %pynextver
%description python %description python
PostgreSQL is an advanced Object-Relational database management PostgreSQL is an advanced Object-Relational database management
@ -317,6 +330,8 @@ system, including regression tests and benchmarks.
%patch1 -p1 %patch1 -p1
%patch2 -p1 %patch2 -p1
%patch3 -p1
%patch4 -p1
%build %build
@ -336,9 +351,12 @@ CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS
# Strip out -ffast-math from CFLAGS.... # Strip out -ffast-math from CFLAGS....
CFLAGS=`echo $CFLAGS|xargs -n 1|grep -v ffast-math|xargs -n 100` 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 --disable-rpath\ ./configure --enable-locale --with-CXX --prefix=/usr --disable-rpath\
%if %beta
--enable-debug \
--enable-cassert \
%endif
%if %perl %if %perl
--with-perl \ --with-perl \
%endif %endif
@ -364,6 +382,9 @@ export PYTHON="/usr/bin/python%{pyver}"
%endif %endif
%if %kerberos %if %kerberos
--with-krb5=/usr/kerberos \ --with-krb5=/usr/kerberos \
%endif
%if %nls
--enable-nls \
%endif %endif
--sysconfdir=/etc/pgsql \ --sysconfdir=/etc/pgsql \
--mandir=%{_mandir} \ --mandir=%{_mandir} \
@ -371,7 +392,7 @@ export PYTHON="/usr/bin/python%{pyver}"
--includedir=%{_includedir} \ --includedir=%{_includedir} \
--datadir=/usr/share/pgsql --datadir=/usr/share/pgsql
make %{?_smp_mflags} all make all
%if %test %if %test
pushd src/test pushd src/test
@ -421,10 +442,6 @@ pushd $RPM_BUILD_ROOT%{_mandir}
cp %{SOURCE12} man1 cp %{SOURCE12} man1
popd popd
# install the dump script
install -m755 %SOURCE14 $RPM_BUILD_ROOT/usr/bin/
# install dev headers. # install dev headers.
make DESTDIR=$RPM_BUILD_ROOT install-all-headers make DESTDIR=$RPM_BUILD_ROOT install-all-headers
@ -448,7 +465,9 @@ install -m755 src/Makefile.global $RPM_BUILD_ROOT/usr/include/pgsql
# 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...
# Install 7.0 JDBC jars # JDBC jars
install -m 755 %{SOURCE8} $RPM_BUILD_ROOT/usr/share/pgsql
install -m 755 %{SOURCE9} $RPM_BUILD_ROOT/usr/share/pgsql
install -m 755 %{SOURCE10} $RPM_BUILD_ROOT/usr/share/pgsql install -m 755 %{SOURCE10} $RPM_BUILD_ROOT/usr/share/pgsql
install -m 755 %{SOURCE11} $RPM_BUILD_ROOT/usr/share/pgsql install -m 755 %{SOURCE11} $RPM_BUILD_ROOT/usr/share/pgsql
@ -525,84 +544,120 @@ pushd $RPM_BUILD_ROOT/usr/lib/pgsql/contrib
# Get rid of useless makefiles # Get rid of useless makefiles
rm -f Makefile */Makefile rm -f Makefile */Makefile
# earthdistance
pushd earthdistance
perl -pi -e "s|/usr/share/pgsql/contrib|/usr/lib/pgsql/contrib/earthdistance|" *
popd
# array # array
pushd array pushd array
perl -pi -e "s|/usr/lib/contrib|/usr/lib/pgsql/contrib/array|" * perl -pi -e "s|\\\$libdir|/usr/lib/pgsql/contrib/array|" *
popd
# btree_gist
pushd btree_gist
perl -pi -e "s|\\\$libdir|/usr/lib/pgsql/contrib/btree_gist|" *.sql
popd
# chkpass
pushd chkpass
perl -pi -e "s|\\\$libdir|/usr/lib/pgsql/contrib/chkpass|" *.sql
popd popd
# cube # cube
pushd cube pushd cube
perl -pi -e "s|/usr/lib/contrib|/usr/lib/pgsql/contrib/cube|" cube.sql perl -pi -e "s|\\\$libdir|/usr/lib/pgsql/contrib/cube|" cube.sql
popd
# dblink
pushd dblink
perl -pi -e "s|\\\$libdir|/usr/lib/pgsql/contrib/dblink|" dblink.sql
popd
# earthdistance
pushd earthdistance
perl -pi -e "s|/usr/share/pgsql/contrib|/usr/lib/pgsql/contrib/earthdistance|" *.sql
popd popd
# fulltext # fulltext
pushd fulltextindex pushd fulltextindex
perl -pi -e "s|/usr/lib/contrib|/usr/lib/pgsql/contrib/fulltextindex|" *.sql perl -pi -e "s|\\\$libdir|/usr/lib/pgsql/contrib/fulltextindex|" *.sql
popd
# fuzzystrmatch
pushd fuzzystrmatch
perl -pi -e "s|\\\$libdir|/usr/lib/pgsql/contrib/fuzzystrmatch|" *.sql
popd popd
# intarray # intarray
pushd intarray pushd intarray
perl -pi -e "s|/usr/lib/contrib|/usr/lib/pgsql/contrib/intarray|" *.sql perl -pi -e "s|\\\$libdir|/usr/lib/pgsql/contrib/intarray|" *.sql
popd popd
# isbn_issn # isbn_issn
pushd isbn_issn pushd isbn_issn
perl -pi -e "s|/usr/lib/contrib|/usr/lib/pgsql/contrib/isbn_issn|" *.sql perl -pi -e "s|\\\$libdir|/usr/lib/pgsql/contrib/isbn_issn|" *.sql
popd popd
# lo # lo
pushd lo pushd lo
perl -pi -e "s|/usr/lib/contrib|/usr/lib/pgsql/contrib/lo|" *.sql perl -pi -e "s|\\\$libdir|/usr/lib/pgsql/contrib/lo|" *.sql
popd popd
# miscutil # miscutil
pushd miscutil pushd miscutil
perl -pi -e "s|/usr/lib/contrib|/usr/lib/pgsql/contrib/miscutil|" *.sql perl -pi -e "s|\\\$libdir|/usr/lib/pgsql/contrib/miscutil|" *.sql
popd popd
# noup # noupdate
pushd noupdate pushd noupdate
perl -pi -e "s|/usr/lib/contrib|/usr/lib/pgsql/contrib/noupdate|" *.sql perl -pi -e "s|\\\$libdir|/usr/lib/pgsql/contrib/noupdate|" *.sql
popd popd
# pgcrypto # pgcrypto
pushd pgcrypto pushd pgcrypto
perl -pi -e "s|/usr/lib/contrib|/usr/lib/pgsql/contrib/pgcrypto|" *.sql perl -pi -e "s|\\\$libdir|/usr/lib/pgsql/contrib/pgcrypto|" *.sql
popd popd
# pgstattuple
pushd pgstattuple
perl -pi -e "s|\\\$libdir|/usr/lib/pgsql/contrib/pgstattuple|" *.sql
popd
# rserv # rserv
pushd rserv pushd rserv
perl -pi -e "s|/usr/share/|/usr/lib/|" * perl -pi -e "s|/usr/share/|/usr/lib/|" *
perl -pi -e "s|/usr/lib/contrib|/usr/lib/pgsql/contrib/rserv|" * perl -pi -e "s|\\\$libdir|/usr/lib/pgsql/contrib|" *
perl -pi -e "s|/usr/bin|/usr/lib/pgsql/contrib/rserv|" * perl -pi -e "s|/usr/bin|/usr/lib/pgsql/contrib/rserv|" *
perl -pi -e "s|/usr/lib/pgsql/contrib\"|/usr/lib/pgsql/contrib/rserv\"|" * popd
perl -pi -e "s|/usr/lib/pgsql/contrib$|/usr/lib/pgsql/contrib/rserv|" *
# rtree_gist
pushd pgstattuple
perl -pi -e "s|\\\$libdir|/usr/lib/pgsql/contrib|" *.sql
popd popd
# seg # seg
pushd seg pushd seg
perl -pi -e "s|/usr/lib/contrib|/usr/lib/pgsql/contrib/seg|" *.sql perl -pi -e "s|\\\$libdir|/usr/lib/pgsql/contrib|" *.sql
popd popd
# spi # spi
pushd spi pushd spi
perl -pi -e "s|/usr/lib/contrib|/usr/lib/pgsql/contrib/spi|" *.sql perl -pi -e "s|\\\$libdir|/usr/lib/pgsql/contrib/spi|" *.sql
popd popd
# Don"t need these
rm -fr startscripts
# string # string
pushd string pushd string
perl -pi -e "s|/usr/lib/contrib|/usr/lib/pgsql/contrib/string|" *.sql perl -pi -e "s|\\\$libdir|/usr/lib/pgsql/contrib/string|" *.sql
popd
# tsearch
pushd tsearch
perl -pi -e "s|\\\$libdir|/usr/lib/pgsql/contrib/tsearch|" *.sql
popd popd
# userlock # userlock
pushd userlock pushd userlock
perl -pi -e "s|/usr/lib/contrib|/usr/lib/pgsql/contrib/userlock|" *.sql perl -pi -e "s|\\\$libdir|/usr/lib/pgsql/contrib/userlock|" *.sql
popd popd
popd popd
@ -619,6 +674,14 @@ ln -s libpq.so.2 libpq.so.2.0
popd popd
%find_lang libpq
%find_lang pg_dump
%find_lang postgres
%find_lang psql
cat psql.lang pg_dump.lang > main.lst
cat postgres.lang files.lst > server.lst
%pre %pre
# Need to make backups of some executables if an upgrade # Need to make backups of some executables if an upgrade
# They will be needed to do a dump of the old version's database. # They will be needed to do a dump of the old version's database.
@ -696,7 +759,7 @@ rm -f perlfiles.list
# Note that macros such as config are available in those lists. # Note that macros such as config are available in those lists.
# The lists differentiate between RedHat, SuSE, and others. # The lists differentiate between RedHat, SuSE, and others.
%files %files -f main.lst
%defattr(-,root,root) %defattr(-,root,root)
%doc doc/FAQ doc/KNOWN_BUGS doc/MISSING_FEATURES doc/README* %doc doc/FAQ doc/KNOWN_BUGS doc/MISSING_FEATURES doc/README*
%doc COPYRIGHT README HISTORY doc/bug.template %doc COPYRIGHT README HISTORY doc/bug.template
@ -736,14 +799,14 @@ rm -f perlfiles.list
%dir /usr/lib/pgsql/contrib/ %dir /usr/lib/pgsql/contrib/
/usr/lib/pgsql/contrib/* /usr/lib/pgsql/contrib/*
%files libs %files libs -f libpq.lang
%defattr(-,root,root) %defattr(-,root,root)
/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.*
%files server -f files.lst %files server -f server.lst
%defattr(-,root,root) %defattr(-,root,root)
/usr/bin/initdb /usr/bin/initdb
/usr/bin/initlocation /usr/bin/initlocation
@ -753,7 +816,6 @@ rm -f perlfiles.list
/usr/bin/postgres /usr/bin/postgres
/usr/bin/postgresql-dump /usr/bin/postgresql-dump
/usr/bin/postmaster /usr/bin/postmaster
/usr/bin/rh-pgdump.sh
%{_mandir}/man1/initdb.1* %{_mandir}/man1/initdb.1*
%{_mandir}/man1/initlocation.1* %{_mandir}/man1/initlocation.1*
%{_mandir}/man1/ipcclean.1* %{_mandir}/man1/ipcclean.1*
@ -784,12 +846,14 @@ rm -f perlfiles.list
/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/libpq.a
/usr/lib/libecpg.a /usr/lib/libecpg.a
/usr/lib/libpq++.a /usr/lib/libpq++.a
/usr/lib/libpgeasy.a /usr/lib/libpgeasy.a
%if tcl
/usr/lib/libpgtcl.so
/usr/lib/libpgtcl.a /usr/lib/libpgtcl.a
%endif
%{_mandir}/man1/ecpg.1* %{_mandir}/man1/ecpg.1*
%{_mandir}/man1/pg_config.1* %{_mandir}/man1/pg_config.1*
@ -848,8 +912,10 @@ rm -f perlfiles.list
%if %jdbc %if %jdbc
%files jdbc %files jdbc
%defattr(-,root,root) %defattr(-,root,root)
/usr/share/pgsql/jdbc7.0-1.1.jar /usr/share/pgsql/jdbc7.1-1.1.jar
/usr/share/pgsql/jdbc7.1-1.2.jar /usr/share/pgsql/jdbc7.1-1.2.jar
/usr/share/pgsql/jdbc7.2dev-1.1.jar
/usr/share/pgsql/jdbc7.2dev-1.2.jar
%endif %endif
%if %test %if %test
@ -860,32 +926,39 @@ rm -f perlfiles.list
%endif %endif
%changelog %changelog
* Mon Feb 4 2002 Trond Eivind Glomsrød <teg@redhat.com> 7.2-0.7 * Mon Feb 18 2002 Trond Eivind Glomsrød <teg@redhat.com> 7.2-3
- 7.2 - Don't require tcl-devel, it's just tcl
- Fix contrib. A lot. Again (last time in 7.1)
- Add buildprereq of recent patch (#59910)
- make the initscript 0755
* Thu Jan 31 2002 Elliot Lee <sopwith@redhat.com> 7.2rc2-0.3 * Fri Feb 8 2002 Trond Eivind Glomsrød <teg@redhat.com> 7.2-2
- Fix python dependencies - Sync
- Fix output of backslash-ns from upgrade detection
- Make the default config use socket credentials, not trust
- Add patches for tsearch/gist from Oleg Bartunov <oleg@sai.msu.su>
- Deprecate rh-pgdump script. Dump before upgrading, restore afterwards.
And ask the developers to fix it.
- Dependency and file inclusion enhancements for conditionals
- escape previous changelog entry which didn't escape a macro
- python quote enhancement patch added
* Mon Jan 28 2002 Trond Eivind Glomsrød <teg@redhat.com> 7.2rc2-0.2 * Tue Feb 04 2002 Lamar Owen <lamar.owen@wgcr.org>
- Added Elliot Lee's python quote enhancement patch - 7.2 final.
- 7.2-1PGDG RPM release.
- Integrate NLS build per Peter E.
- Clean up a few things; undef beta for final build.
- Newer JDBC -- point to correct website and 7.2 dev.
- postgresql.init changes.
- NLS build does funky %%defattr things; redhat-style-files.lst changed
-- for execute permission on /etc/rc.d/init.d/postgresql
* Fri Jan 25 2002 Trond Eivind Glomsrød <teg@redhat.com> 7.2rc2-0.1 * Sun Jan 27 2002 Lamar Owen <lamar.owen@wgcr.org>
- 7.2rc2 - 7.2rc2-0.1PGDG
- Patches now included mainstream
* Wed Jan 23 2002 Trond Eivind Glomsrød <teg@redhat.com> 7.2rc1-0.2 * Thu Nov 29 2001 Lamar Owen <lamar.owen@wgcr.org>
- fix perl - 7.2b3-0.3PGDG
- beta conditionals for debugging, assertion checking, and no strip.
* 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> * Tue Nov 27 2001 Trond Eivind Glomsrød <teg@redhat.com>
- Improve python version handling - Improve python version handling

View File

@ -1,4 +1,4 @@
57d69fb52be57f7caa91cccf7d24d199 file-lists.tar.gz 75a05a4d34bceeb83d51f4cbde4d9952 file-lists.tar.gz
5e9beca9c039be1ded2e51a0edcd9fba migration-scripts.tar.gz 5e9beca9c039be1ded2e51a0edcd9fba migration-scripts.tar.gz
4174777cd91f3cc96f91efb2e4e1bc7c postgresql-7.2.tar.gz 4174777cd91f3cc96f91efb2e4e1bc7c postgresql-7.2.tar.gz
3d2e8223f6bb715659cbecedeae81ccc postgresql-dump.1.gz 3d2e8223f6bb715659cbecedeae81ccc postgresql-dump.1.gz