cvsdist c205ec8
# build6x usage: define to 1 to build for RHL6.x.  Don't define at all for others.
cvsdist c205ec8
%{?build6x:%define kerberos 0}
cvsdist c205ec8
%{?build6x:%define nls 0}
cvsdist c205ec8
%{?build6x:%define ssl 0}
cvsdist 027e0bd
%{?build6x:%define tcldevel 0}
cvsdist c205ec8
%{?build6x:%define aconfver /bin/true}
cvsdist c205ec8
#work around the undefined or defined to 1 build 6x interaction with the pam stuff
cvsdist c205ec8
%{!?build6x:%define non6xpamdeps 1}
cvsdist c205ec8
%{?build6x:%define non6xpamdeps 0}
cvsdist 027e0bd
#build7x, build8, and build9 similar
cvsdist 027e0bd
%{?build8:%define build89 1}
cvsdist 027e0bd
%{?build9:%define build89 1}
cvsdist 027e0bd
%{?build7x:%define tcldevel 0}
cvsdist 027e0bd
%{?build8:%define tcldevel 0}
cvsdist c205ec8
%{?build7x:%define aconfver autoconf-2.53}
cvsdist c205ec8
cvsdist 027e0bd
%{!?tcldevel:%define tcldevel 1}
cvsdist c205ec8
%{!?aconfver:%define aconfver autoconf}
cvsdist c205ec8
cvsdist c205ec8
%define beta 0
cvsdist c205ec8
cvsdist c205ec8
%{?beta:%define __os_install_post /usr/lib/rpm/brp-compress}
cvsdist c205ec8
cvsdist c205ec8
%{!?tcl:%define tcl 1}
cvsdist c205ec8
%{!?jdbc:%define jdbc 1}
cvsdist c205ec8
%{!?test:%define test 1}
cvsdist c205ec8
%{!?python:%define python 1}
cvsdist c205ec8
%{!?pltcl:%define pltcl 1}
cvsdist c205ec8
%{!?plperl:%define plperl 1}
cvsdist c205ec8
%{!?pls:%define pls 1}
cvsdist c205ec8
%{!?ssl:%define ssl 1}
cvsdist c205ec8
%{!?kerberos:%define kerberos 1}
cvsdist c205ec8
%{!?nls:%define nls 1}
cvsdist c205ec8
%{!?pam:%define pam 1}
32269db
%{!?xml:%define xml 1}
cvsdist c205ec8
%{!?pgfts:%define pgfts 1}
6e96691
%{!?runselftest:%define runselftest 1}
cvsdist c205ec8
cvsdist c205ec8
# Python major version.
cvsdist c205ec8
%{expand: %%define pyver %(python -c 'import sys;print(sys.version[0:3])')}
cvsdist c205ec8
cvsdist c205ec8
cvsdist c205ec8
Summary: PostgreSQL client programs and libraries.
cvsdist c205ec8
Name: postgresql
32269db
Version: 8.0.4
cvsdist c205ec8
cvsdist c205ec8
# Conventions for PostgreSQL Global Development Group RPM releases:
cvsdist c205ec8
cvsdist c205ec8
# Official PostgreSQL Development Group RPMS have a PGDG after the release number.
cvsdist c205ec8
# Integer releases are stable -- 0.1.x releases are Pre-releases, and x.y are
cvsdist c205ec8
# test releases.
cvsdist c205ec8
cvsdist c205ec8
# Pre-releases are those that are built from CVS snapshots or pre-release
cvsdist c205ec8
# tarballs from postgresql.org.  Official beta releases are not 
cvsdist c205ec8
# considered pre-releases, nor are release candidates, as their beta or
cvsdist c205ec8
# release candidate status is reflected in the version of the tarball. Pre-
cvsdist c205ec8
# releases' versions do not change -- the pre-release tarball of 7.0.3, for
cvsdist c205ec8
# example, has the same tarball version as the final official release of 7.0.3:
cvsdist c205ec8
# but the tarball is different.
cvsdist c205ec8
cvsdist c205ec8
# Test releases are where PostgreSQL itself is not in beta, but certain parts of
cvsdist c205ec8
# the RPM packaging (such as the spec file, the initscript, etc) are in beta.
cvsdist c205ec8
cvsdist c205ec8
# Pre-release RPM's should not be put up on the public ftp.postgresql.org server
cvsdist c205ec8
# -- only test releases or full releases should be.
cvsdist c205ec8
f718878
Release: 2
cvsdist c205ec8
License: BSD
cvsdist c205ec8
Group: Applications/Databases
cvsdist c205ec8
Source0: ftp://ftp.postgresql.org/pub/source/v%{version}/postgresql-%{version}.tar.bz2
cvsdist c205ec8
Source3: postgresql.init
6e96691
Source4: Makefile.regress
cvsdist c205ec8
Source6: README.rpm-dist
32269db
Source8: http://jdbc.postgresql.org/download/postgresql-8.0-312.jdbc2.jar
32269db
Source9: http://jdbc.postgresql.org/download/postgresql-8.0-312.jdbc2ee.jar
32269db
Source10: http://jdbc.postgresql.org/download/postgresql-8.0-312.jdbc3.jar
32269db
Source14: postgresql.pam
cvsdist c205ec8
Source15: postgresql-bashprofile
cvsdist c205ec8
Source16: filter-requires-perl-Pg.sh
6e96691
Source17: postgresql-8.0-US.pdf
32269db
Source18: ftp://ftp.druid.net/pub/distrib/PyGreSQL-3.6.2.tgz
6e96691
Source19: ftp://gborg.postgresql.org/pub/pgtclng/stable/pgtcl1.5.2.tar.gz
6e96691
Source20: ftp://gborg.postgresql.org/pub/pgtclng/stable/pgtcldocs-20041108.zip
6e96691
Patch1: rpm-pgsql.patch
6e96691
Patch2: postgresql-src-tutorial.patch
6e96691
Patch3: postgresql-logging.patch
6e96691
Patch4: postgresql-test.patch
ec5d1ae
Patch5: pgtcl-no-rpath.patch
32269db
Patch6: postgresql-perl-rpath.patch
cvsdist c205ec8
Buildrequires: perl glibc-devel bison flex
cvsdist c205ec8
Prereq: /sbin/ldconfig initscripts
cvsdist c205ec8
%if %python
cvsdist c205ec8
BuildPrereq: python-devel
cvsdist c205ec8
%endif
6e96691
%if %tcl || %pltcl
cvsdist c205ec8
BuildPrereq: tcl
cvsdist 027e0bd
%if %tcldevel
cvsdist c205ec8
Buildrequires: tcl-devel
cvsdist c205ec8
%endif
cvsdist 027e0bd
%endif
cvsdist c205ec8
BuildPrereq: readline-devel
cvsdist c205ec8
BuildPrereq: zlib-devel >= 1.0.4
cvsdist c205ec8
%if %ssl
cvsdist c205ec8
BuildPrereq: openssl-devel
cvsdist c205ec8
%endif
cvsdist c205ec8
%if %kerberos
cvsdist c205ec8
BuildPrereq: krb5-devel
cvsdist c205ec8
BuildPrereq: e2fsprogs-devel
cvsdist c205ec8
%endif
cvsdist c205ec8
%if %nls
cvsdist c205ec8
BuildPrereq: gettext >= 0.10.35
cvsdist c205ec8
%endif
cvsdist c205ec8
%if %pam
cvsdist c205ec8
%if %non6xpamdeps
cvsdist c205ec8
BuildPrereq: pam-devel
cvsdist c205ec8
%endif
cvsdist c205ec8
%endif
32269db
%if %xml
32269db
BuildPrereq: libxml2-devel
32269db
%endif
cvsdist c205ec8
cvsdist c205ec8
Url: http://www.postgresql.org/ 
cvsdist eeda6e6
cvsdist c205ec8
Obsoletes: postgresql-clients
cvsdist c205ec8
Obsoletes: postgresql-perl
cvsdist c205ec8
Obsoletes: postgresql-tk
cvsdist eeda6e6
Obsoletes: rh-postgresql
cvsdist eeda6e6
cvsdist c205ec8
Buildroot: %{_tmppath}/%{name}-%{version}-root
cvsdist c205ec8
cvsdist c205ec8
# This is the PostgreSQL Global Development Group Official RPMset spec file,
cvsdist c205ec8
# or a derivative thereof.
cvsdist c205ec8
# Copyright 2003 Lamar Owen <lowen@pari.edu> <lamar.owen@wgcr.org>
cvsdist c205ec8
# and others listed.
cvsdist c205ec8
cvsdist c205ec8
# Major Contributors:
cvsdist c205ec8
# ---------------
cvsdist c205ec8
# Lamar Owen
cvsdist c205ec8
# Trond Eivind Glomsrd <teg@redhat.com>
cvsdist c205ec8
# Thomas Lockhart
cvsdist c205ec8
# Reinhard Max
cvsdist c205ec8
# Karl DeBisschop
cvsdist c205ec8
# Peter Eisentraut
cvsdist c205ec8
# Joe Conway
cvsdist c205ec8
# Andrew Overholt
cvsdist c205ec8
# David Jee
cvsdist c205ec8
# Kaj J. Niemi
cvsdist 027e0bd
# Sander Steffann
cvsdist 027e0bd
# Tom Lane
cvsdist c205ec8
# and others in the Changelog....
cvsdist c205ec8
cvsdist c205ec8
# This spec file and ancilliary files are licensed in accordance with 
cvsdist c205ec8
# The PostgreSQL license.
cvsdist c205ec8
cvsdist c205ec8
# On top of this file you can find the default build package list macros.  These can be overridden by defining
cvsdist c205ec8
# on the rpm command line:
cvsdist c205ec8
# rpm --define 'packagename 1' .... to force the package to build.
cvsdist c205ec8
# rpm --define 'packagename 0' .... to force the package NOT to build.
cvsdist c205ec8
# The base package, the lib package, the devel package, and the server package always get built.
cvsdist c205ec8
cvsdist c205ec8
cvsdist c205ec8
%description
cvsdist c205ec8
PostgreSQL is an advanced Object-Relational database management system
cvsdist c205ec8
(DBMS) that supports almost all SQL constructs (including
cvsdist c205ec8
transactions, subselects and user-defined types and functions). The
cvsdist c205ec8
postgresql package includes the client programs and libraries that
cvsdist c205ec8
you'll need to access a PostgreSQL DBMS server.  These PostgreSQL
cvsdist c205ec8
client programs are programs that directly manipulate the internal
cvsdist c205ec8
structure of PostgreSQL databases on a PostgreSQL server. These client
cvsdist c205ec8
programs can be located on the same machine with the PostgreSQL
cvsdist c205ec8
server, or may be on a remote machine which accesses a PostgreSQL
cvsdist c205ec8
server over a network connection. This package contains the docs
cvsdist c205ec8
in HTML for the whole package, as well as command-line utilities for
cvsdist c205ec8
managing PostgreSQL databases on a PostgreSQL server. 
cvsdist c205ec8
cvsdist c205ec8
If you want to manipulate a PostgreSQL database on a remote PostgreSQL
cvsdist c205ec8
server, you need this package. You also need to install this package
cvsdist c205ec8
if you're installing the postgresql-server package.
cvsdist c205ec8
cvsdist c205ec8
%package libs
cvsdist c205ec8
Summary: The shared libraries required for any PostgreSQL clients.
cvsdist c205ec8
Group: Applications/Databases
cvsdist c205ec8
Provides: libpq.so
dadd60b
Obsoletes: rh-postgresql-libs
cvsdist c205ec8
cvsdist c205ec8
%description libs
cvsdist c205ec8
The postgresql-libs package provides the essential shared libraries for any 
cvsdist c205ec8
PostgreSQL client program or interface. You will need to install this package
cvsdist c205ec8
to use any other PostgreSQL package or any clients that need to connect to a
cvsdist c205ec8
PostgreSQL server.
cvsdist c205ec8
cvsdist c205ec8
%package server
cvsdist c205ec8
Summary: The programs needed to create and run a PostgreSQL server.
cvsdist c205ec8
Group: Applications/Databases
cvsdist c205ec8
Prereq: /usr/sbin/useradd /sbin/chkconfig 
dadd60b
Prereq: postgresql = %{version}-%{release} libpq.so
dadd60b
Obsoletes: rh-postgresql-server
cvsdist c205ec8
cvsdist c205ec8
%description server
cvsdist c205ec8
The postgresql-server package includes the programs needed to create
cvsdist c205ec8
and run a PostgreSQL server, which will in turn allow you to create
cvsdist c205ec8
and maintain PostgreSQL databases.  PostgreSQL is an advanced
cvsdist c205ec8
Object-Relational database management system (DBMS) that supports
cvsdist c205ec8
almost all SQL constructs (including transactions, subselects and
cvsdist c205ec8
user-defined types and functions). You should install
cvsdist c205ec8
postgresql-server if you want to create and maintain your own
cvsdist c205ec8
PostgreSQL databases and/or your own PostgreSQL server. You also need
cvsdist c205ec8
to install the postgresql package.
cvsdist c205ec8
cvsdist c205ec8
cvsdist c205ec8
%package docs
cvsdist c205ec8
Summary: Extra documentation for PostgreSQL
cvsdist c205ec8
Group: Applications/Databases
dadd60b
Prereq: postgresql = %{version}-%{release}
dadd60b
Obsoletes: rh-postgresql-docs
dadd60b
cvsdist c205ec8
%description docs
6e96691
The postgresql-docs package includes some additional documentation for
6e96691
PostgreSQL.  Currently, this includes the main documentation in PDF format,
6e96691
the FAQ, and source files for the PostgreSQL tutorial.
cvsdist c205ec8
dadd60b
cvsdist c205ec8
%package contrib
cvsdist c205ec8
Summary: Contributed source and binaries distributed with PostgreSQL
cvsdist c205ec8
Group: Applications/Databases
dadd60b
Prereq: postgresql = %{version}-%{release}
dadd60b
Obsoletes: rh-postgresql-contrib
dadd60b
cvsdist c205ec8
%description contrib
cvsdist c205ec8
The postgresql-contrib package contains contributed packages that are
cvsdist c205ec8
included in the PostgreSQL distribution.
cvsdist c205ec8
cvsdist c205ec8
cvsdist c205ec8
%package devel
cvsdist c205ec8
Summary: PostgreSQL development header files and libraries.
cvsdist c205ec8
Group: Development/Libraries
dadd60b
Prereq: postgresql = %{version}-%{release}
dadd60b
Requires: postgresql-libs = %{version}-%{release}
dadd60b
Obsoletes: rh-postgresql-devel
cvsdist c205ec8
cvsdist c205ec8
%description devel
cvsdist c205ec8
The postgresql-devel package contains the header files and libraries
cvsdist c205ec8
needed to compile C or C++ applications which will directly interact
cvsdist c205ec8
with a PostgreSQL database management server and the ecpg Embedded C
cvsdist c205ec8
Postgres preprocessor. You need to install this package if you want to
cvsdist c205ec8
develop applications which will interact with a PostgreSQL server. If
cvsdist c205ec8
you're installing postgresql-server, you need to install this
cvsdist c205ec8
package.
cvsdist c205ec8
cvsdist c205ec8
#------------
cvsdist c205ec8
%if %pls
cvsdist c205ec8
%package pl
cvsdist c205ec8
Summary: The PL procedural languages for PostgreSQL.
cvsdist c205ec8
Group: Applications/Databases
dadd60b
PreReq: postgresql = %{version}-%{release}
dadd60b
PreReq: postgresql-server = %{version}-%{release}
dadd60b
Obsoletes: rh-postgresql-pl
cvsdist c205ec8
cvsdist c205ec8
%description pl
cvsdist c205ec8
PostgreSQL is an advanced Object-Relational database management
cvsdist c205ec8
system.  The postgresql-pl package contains the the PL/Perl, PL/Tcl, and PL/Python
cvsdist c205ec8
procedural languages for the backend.  PL/Pgsql is part of the core server package.
cvsdist c205ec8
%endif
cvsdist c205ec8
cvsdist c205ec8
#------------
cvsdist c205ec8
%if %tcl
cvsdist c205ec8
%package tcl
cvsdist c205ec8
Summary: A Tcl client library for PostgreSQL.
cvsdist c205ec8
Group: Applications/Databases
6e96691
Requires: libpq.so
6e96691
Requires: tcl >= 8.3
dadd60b
Obsoletes: rh-postgresql-tcl
cvsdist c205ec8
cvsdist c205ec8
%description tcl
cvsdist c205ec8
PostgreSQL is an advanced Object-Relational database management
6e96691
system.  The postgresql-tcl package contains the Pgtcl client library
6e96691
and its documentation.
cvsdist c205ec8
%endif
cvsdist c205ec8
cvsdist c205ec8
#------------
cvsdist c205ec8
%if %python
cvsdist c205ec8
%package python
cvsdist c205ec8
Summary: Development module for Python code to access a PostgreSQL DB.
cvsdist c205ec8
Group: Applications/Databases
6e96691
Requires: libpq.so
cvsdist c205ec8
Requires: python mx
dadd60b
Obsoletes: rh-postgresql-python
cvsdist c205ec8
cvsdist c205ec8
%description python
cvsdist c205ec8
PostgreSQL is an advanced Object-Relational database management
cvsdist c205ec8
system.  The postgresql-python package includes a module for
cvsdist c205ec8
developers to use when writing Python code for accessing a PostgreSQL
cvsdist c205ec8
database.
cvsdist c205ec8
%endif
cvsdist c205ec8
cvsdist c205ec8
#----------
cvsdist c205ec8
%if %jdbc
cvsdist c205ec8
%package jdbc
cvsdist c205ec8
Summary: Files needed for Java programs to access a PostgreSQL database.
cvsdist c205ec8
Group: Applications/Databases
dadd60b
Obsoletes: rh-postgresql-jdbc
cvsdist c205ec8
cvsdist c205ec8
%description jdbc
cvsdist c205ec8
PostgreSQL is an advanced Object-Relational database management
6e96691
system. The postgresql-jdbc package includes the .jar files needed for
cvsdist c205ec8
Java programs to access a PostgreSQL database.
cvsdist c205ec8
%endif
cvsdist c205ec8
cvsdist c205ec8
#------------
cvsdist c205ec8
%if %test
cvsdist c205ec8
%package test
cvsdist c205ec8
Summary: The test suite distributed with PostgreSQL.
cvsdist c205ec8
Group: Applications/Databases
dadd60b
PreReq: postgresql = %{version}-%{release}
dadd60b
PreReq: postgresql-server = %{version}-%{release}
dadd60b
Obsoletes: rh-postgresql-test
cvsdist c205ec8
cvsdist c205ec8
%description test
cvsdist c205ec8
PostgreSQL is an advanced Object-Relational database management
cvsdist c205ec8
system. The postgresql-test package includes the sources and pre-built
cvsdist c205ec8
binaries of various tests for the PostgreSQL database management
cvsdist c205ec8
system, including regression tests and benchmarks.
cvsdist c205ec8
%endif
cvsdist c205ec8
cvsdist c205ec8
%define __perl_requires %{SOURCE16}
cvsdist c205ec8
cvsdist c205ec8
%prep
cvsdist c205ec8
%setup -q 
cvsdist c205ec8
pushd doc
cvsdist c205ec8
tar zxf postgres.tar.gz
cvsdist c205ec8
popd
cvsdist c205ec8
%patch1 -p1
cvsdist c205ec8
%patch2 -p1
cvsdist c205ec8
%patch3 -p1
3fd417a
%patch4 -p1
32269db
# patch5 is applied later
32269db
%patch6 -p1
cvsdist c205ec8
cvsdist c205ec8
#call autoconf 2.53 or greater
cvsdist c205ec8
%aconfver
cvsdist c205ec8
cvsdist c205ec8
pushd doc
cvsdist c205ec8
tar -zcf postgres.tar.gz *.html stylesheet.css
cvsdist c205ec8
rm -f *.html stylesheet.css
cvsdist c205ec8
popd
cvsdist c205ec8
6e96691
cp -p %{SOURCE17} .
cvsdist c205ec8
cvsdist c205ec8
%if %python
cvsdist c205ec8
   tar xzf %{SOURCE18}
cvsdist c205ec8
   PYGRESQLDIR=`basename %{SOURCE18} .tgz`
cvsdist c205ec8
   mv $PYGRESQLDIR PyGreSQL
ec364ab
   # Some versions of PyGreSQL.tgz contain wrong file permissions
cvsdist 0c2148c
   chmod 644 PyGreSQL/Announce PyGreSQL/ChangeLog PyGreSQL/README
ec364ab
   chmod 755 PyGreSQL/tutorial
ec364ab
   chmod 644 PyGreSQL/tutorial/*.py
ec364ab
   chmod 755 PyGreSQL/tutorial/advanced.py PyGreSQL/tutorial/basics.py
cvsdist c205ec8
%endif
cvsdist c205ec8
6e96691
%if %tcl
6e96691
   tar xzf %{SOURCE19}
6e96691
   PGTCLDIR=`basename %{SOURCE19} .tar.gz`
6e96691
   mv $PGTCLDIR Pgtcl
6e96691
   unzip %{SOURCE20}
6e96691
   PGTCLDOCDIR=`basename %{SOURCE20} .zip`
6e96691
   mv $PGTCLDOCDIR Pgtcl-docs
ec5d1ae
ec5d1ae
%patch5 -p0
ec5d1ae
   pushd Pgtcl
ec5d1ae
%aconfver
ec5d1ae
   popd
6e96691
%endif
6e96691
cvsdist c205ec8
%build
cvsdist c205ec8
cvsdist c205ec8
CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS
cvsdist c205ec8
CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS
cvsdist c205ec8
cvsdist c205ec8
# Strip out -ffast-math from CFLAGS....
cvsdist c205ec8
CFLAGS=`echo $CFLAGS|xargs -n 1|grep -v ffast-math|xargs -n 100`
6e96691
cvsdist c205ec8
%configure --disable-rpath \
cvsdist c205ec8
%if %beta
cvsdist c205ec8
	--enable-debug \
cvsdist c205ec8
	--enable-cassert \
cvsdist c205ec8
%endif
cvsdist c205ec8
%if %plperl
cvsdist c205ec8
	--with-perl \
cvsdist c205ec8
%endif
6e96691
%if %pltcl
cvsdist c205ec8
	--with-tcl \
cvsdist c205ec8
	--with-tclconfig=%{_libdir} \
cvsdist c205ec8
%endif
cvsdist c205ec8
%if %python
cvsdist c205ec8
	--with-python \
cvsdist c205ec8
%endif
cvsdist c205ec8
%if %ssl
cvsdist c205ec8
	--with-openssl \
cvsdist c205ec8
%endif
cvsdist c205ec8
%if %pam
cvsdist c205ec8
	--with-pam \
cvsdist c205ec8
%endif
cvsdist c205ec8
%if %kerberos
6e96691
	--with-krb5 \
cvsdist c205ec8
%endif
cvsdist c205ec8
%if %nls
cvsdist c205ec8
	--enable-nls \
cvsdist c205ec8
%endif
cvsdist c205ec8
%if %pgfts
cvsdist c205ec8
	--enable-thread-safety \
cvsdist c205ec8
%endif
cvsdist c205ec8
	--sysconfdir=/etc/sysconfig/pgsql \
cvsdist c205ec8
	--datadir=/usr/share/pgsql \
cvsdist c205ec8
	--with-docdir=%{_docdir}
cvsdist c205ec8
Elliot Lee be132bc
make %{?_smp_mflags} all
Elliot Lee be132bc
make %{?_smp_mflags} -C contrib all
32269db
%if %xml
32269db
make %{?_smp_mflags} -C contrib/xml2 all
32269db
%endif
cvsdist c205ec8
6e96691
# Have to hack makefile to put correct path into tutorial scripts
6e96691
sed "s|C=\`pwd\`;|C=%{_libdir}/pgsql/tutorial;|" < src/tutorial/Makefile > src/tutorial/GNUmakefile
6e96691
make %{?_smp_mflags} -C src/tutorial NO_PGXS=1 all
6e96691
rm -f src/tutorial/GNUmakefile
6e96691
6e96691
%if %runselftest
6e96691
	pushd src/test/regress
cvsdist c205ec8
	make all
6e96691
	make MAX_CONNECTIONS=5 check
6e96691
	make clean
6e96691
	popd
6e96691
%endif
6e96691
6e96691
%if %test
6e96691
	pushd src/test/regress
6e96691
	make RPMTESTING=1 all
cvsdist c205ec8
	popd
cvsdist c205ec8
%endif
cvsdist c205ec8
cvsdist c205ec8
%if %python
cvsdist c205ec8
   PYTHON=/usr/bin/python
cvsdist c205ec8
   python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
cvsdist c205ec8
   python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
cvsdist c205ec8
   python_includespec="-I${python_prefix}/include/python${python_version}"
cvsdist c205ec8
cvsdist c205ec8
   pushd PyGreSQL
cvsdist c205ec8
6e96691
   gcc $CFLAGS -fpic -shared -o _pgmodule.so ${python_includespec} -I../src/interfaces/libpq -I../src/include -L../src/interfaces/libpq -lpq pgmodule.c
cvsdist c205ec8
cvsdist c205ec8
   popd
cvsdist c205ec8
%endif
cvsdist c205ec8
6e96691
%if %tcl
6e96691
   pushd Pgtcl
6e96691
   # pgtcl's configure only handles one include directory :-(
6e96691
   ./configure --prefix=/usr \
6e96691
     --libdir=%{_libdir} \
6e96691
     --with-tcl=%{_libdir} \
6e96691
     --with-postgres-include="../src/interfaces/libpq -I../src/include" \
6e96691
     --with-postgres-lib=../src/interfaces/libpq
6e96691
   # note: as of pgtcl 1.5.2, its makefile is not parallel-safe
6e96691
   make all
6e96691
   popd
6e96691
%endif
6e96691
cvsdist c205ec8
%install
cvsdist c205ec8
rm -rf $RPM_BUILD_ROOT
cvsdist c205ec8
cvsdist c205ec8
make DESTDIR=$RPM_BUILD_ROOT install
cvsdist c205ec8
make -C contrib DESTDIR=$RPM_BUILD_ROOT install
32269db
%if %xml
32269db
make -C contrib/xml2 DESTDIR=$RPM_BUILD_ROOT install
32269db
%endif
cvsdist c205ec8
6e96691
install -d -m 755 $RPM_BUILD_ROOT%{_libdir}/pgsql/tutorial
6e96691
cp src/tutorial/* $RPM_BUILD_ROOT%{_libdir}/pgsql/tutorial
cvsdist c205ec8
cvsdist c205ec8
%if %jdbc
cvsdist c205ec8
	# Java/JDBC
cvsdist c205ec8
	# Red Hat's standard place to put jarfiles is /usr/share/java
cvsdist c205ec8
cvsdist c205ec8
	# JDBC jars 
cvsdist c205ec8
	install -d $RPM_BUILD_ROOT/usr/share/java
ec364ab
	install -m 644 %{SOURCE8} $RPM_BUILD_ROOT/usr/share/java
ec364ab
	install -m 644 %{SOURCE9} $RPM_BUILD_ROOT/usr/share/java
ec364ab
	install -m 644 %{SOURCE10} $RPM_BUILD_ROOT/usr/share/java
eb3bf28
	# Versionless symlinks to the versioned jars
eb3bf28
	pushd $RPM_BUILD_ROOT/usr/share/java
eb3bf28
	ln -s `basename %{SOURCE8}` postgresql-jdbc2.jar
eb3bf28
	ln -s `basename %{SOURCE9}` postgresql-jdbc2ee.jar
eb3bf28
	ln -s `basename %{SOURCE10}` postgresql-jdbc3.jar
eb3bf28
	popd
6e96691
%endif
cvsdist c205ec8
6e96691
%if %tcl
6e96691
	install -d -m 755 $RPM_BUILD_ROOT%{_libdir}/Pgtcl
6e96691
	cp Pgtcl/pkgIndex.tcl $RPM_BUILD_ROOT%{_libdir}/Pgtcl
6e96691
	cp Pgtcl/libpgtcl*.so $RPM_BUILD_ROOT%{_libdir}/Pgtcl
cvsdist c205ec8
%endif
cvsdist c205ec8
cvsdist c205ec8
if [ -d /etc/rc.d/init.d ]
cvsdist c205ec8
then
cvsdist c205ec8
	install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
26b954a
	sed 's/^PGVERSION=.*$/PGVERSION=%{version}/' <%{SOURCE3} >postgresql.init
26b954a
	install -m 755 postgresql.init $RPM_BUILD_ROOT/etc/rc.d/init.d/postgresql
cvsdist c205ec8
fi
cvsdist c205ec8
32269db
%if %pam
32269db
if [ -d /etc/pam.d ]
32269db
then
32269db
	install -d $RPM_BUILD_ROOT/etc/pam.d
32269db
	install -m 644 %{SOURCE14} $RPM_BUILD_ROOT/etc/pam.d/postgresql
32269db
fi
32269db
%endif
32269db
3c38c70
# Remove stuff we don't want to ship.
3c38c70
rm -f $RPM_BUILD_ROOT%{_bindir}/findoidjoins
3c38c70
rm -f $RPM_BUILD_ROOT%{_bindir}/make_oidjoins_check
6e96691
rm -f $RPM_BUILD_ROOT%{_docdir}/pgsql/contrib/README.findoidjoins
3c38c70
rm -f contrib/findoidjoins/README.findoidjoins
cvsdist c205ec8
cvsdist c205ec8
# PGDATA needs removal of group and world permissions due to pg_pwd hole.
cvsdist c205ec8
install -d -m 700 $RPM_BUILD_ROOT/var/lib/pgsql/data
cvsdist c205ec8
cvsdist c205ec8
# backups of data go here...
cvsdist c205ec8
install -d -m 700 $RPM_BUILD_ROOT/var/lib/pgsql/backups
cvsdist c205ec8
cvsdist c205ec8
# postgres' .bash_profile
cvsdist c205ec8
install -m 644 %{SOURCE15} $RPM_BUILD_ROOT/var/lib/pgsql/.bash_profile
cvsdist c205ec8
cvsdist c205ec8
# Create the multiple postmaster startup directory
cvsdist c205ec8
install -d -m 700 $RPM_BUILD_ROOT/etc/sysconfig/pgsql
cvsdist c205ec8
cvsdist c205ec8
cvsdist c205ec8
%if %test
6e96691
	# tests. There are many files included here that are unnecessary,
6e96691
	# but include them anyway for completeness.  We replace the original
6e96691
	# Makefiles, however.
6e96691
	mkdir -p $RPM_BUILD_ROOT%{_libdir}/pgsql/test
6e96691
	cp -a src/test/regress $RPM_BUILD_ROOT%{_libdir}/pgsql/test
6e96691
	install -m 0755 contrib/spi/refint.so $RPM_BUILD_ROOT%{_libdir}/pgsql/test/regress
6e96691
	install -m 0755 contrib/spi/autoinc.so $RPM_BUILD_ROOT%{_libdir}/pgsql/test/regress
eb3bf28
	pushd  $RPM_BUILD_ROOT%{_libdir}/pgsql/test/regress
cvsdist c205ec8
	strip *.so
6e96691
	rm -f GNUmakefile Makefile
cvsdist c205ec8
	popd
6e96691
	cp %{SOURCE4} $RPM_BUILD_ROOT%{_libdir}/pgsql/test/regress/Makefile
6e96691
	chmod 0644 $RPM_BUILD_ROOT%{_libdir}/pgsql/test/regress/Makefile
cvsdist c205ec8
%endif
cvsdist c205ec8
cvsdist c205ec8
# Fix some more documentation
cvsdist c205ec8
# gzip doc/internals.ps
cvsdist c205ec8
cp %{SOURCE6} README.rpm-dist
6e96691
mv $RPM_BUILD_ROOT%{_docdir}/pgsql/html doc
6e96691
rm -rf $RPM_BUILD_ROOT%{_docdir}/pgsql
cvsdist c205ec8
cvsdist c205ec8
%if %python
cvsdist c205ec8
   pushd PyGreSQL
cvsdist c205ec8
   install -m 0755 -d $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/site-packages
cvsdist c205ec8
   install -m 0755 _pgmodule.so $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/site-packages
ec364ab
   install -m 0644 pg.py $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/site-packages
ec364ab
   install -m 0644 pgdb.py $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/site-packages
cvsdist c205ec8
   popd
cvsdist c205ec8
%endif
cvsdist c205ec8
cvsdist c205ec8
%find_lang libpq
6e96691
%find_lang initdb
6e96691
%find_lang pg_config
6e96691
%find_lang pg_ctl
cvsdist c205ec8
%find_lang pg_dump
cvsdist c205ec8
%find_lang postgres
cvsdist c205ec8
%find_lang psql
cvsdist c205ec8
%find_lang pg_resetxlog
cvsdist c205ec8
%find_lang pg_controldata
cvsdist c205ec8
%find_lang pgscripts
cvsdist c205ec8
cvsdist c205ec8
cat libpq.lang > libpq.lst
6e96691
cat pg_config.lang > pg_config.lst
6e96691
cat initdb.lang pg_ctl.lang psql.lang pg_dump.lang pgscripts.lang > main.lst
cvsdist c205ec8
cat postgres.lang pg_resetxlog.lang pg_controldata.lang > server.lst
cvsdist c205ec8
cvsdist c205ec8
%post libs -p /sbin/ldconfig 
cvsdist c205ec8
%postun libs -p /sbin/ldconfig 
cvsdist c205ec8
cvsdist c205ec8
%pre server
cvsdist c205ec8
groupadd -g 26 -o -r postgres >/dev/null 2>&1 || :
cvsdist c205ec8
useradd -M -n -g postgres -o -r -d /var/lib/pgsql -s /bin/bash \
cvsdist c205ec8
	-c "PostgreSQL Server" -u 26 postgres >/dev/null 2>&1 || :
cvsdist c205ec8
e8f554d
# If we're upgrading from rh-postgresql, we have to repeat the above actions
e8f554d
# after rh-postgresql-server is uninstalled, because its postun script runs
e8f554d
# after our pre script ...
e8f554d
%triggerpostun -n postgresql-server -- rh-postgresql-server
e8f554d
groupadd -g 26 -o -r postgres >/dev/null 2>&1 || :
e8f554d
useradd -M -n -g postgres -o -r -d /var/lib/pgsql -s /bin/bash \
e8f554d
	-c "PostgreSQL Server" -u 26 postgres >/dev/null 2>&1 || :
e8f554d
cvsdist c205ec8
%post server
cvsdist c205ec8
chkconfig --add postgresql
cvsdist c205ec8
/sbin/ldconfig
cvsdist c205ec8
cvsdist c205ec8
%preun server
cvsdist c205ec8
if [ $1 = 0 ] ; then
cvsdist aba59f5
	/sbin/service postgresql condstop >/dev/null 2>&1
cvsdist c205ec8
	chkconfig --del postgresql
cvsdist c205ec8
fi
cvsdist c205ec8
cvsdist c205ec8
%postun server
cvsdist c205ec8
/sbin/ldconfig 
e8f554d
if [ $1 -ge 1 ] ; then
e8f554d
	/sbin/service postgresql condrestart >/dev/null 2>&1 || :
e8f554d
fi
cvsdist c205ec8
if [ $1 = 0 ] ; then
cvsdist c205ec8
	userdel postgres >/dev/null 2>&1 || :
cvsdist c205ec8
	groupdel postgres >/dev/null 2>&1 || : 
cvsdist c205ec8
fi
cvsdist c205ec8
cvsdist c205ec8
%if %pls
cvsdist c205ec8
%post -p /sbin/ldconfig   pl
cvsdist c205ec8
%postun -p /sbin/ldconfig   pl
cvsdist c205ec8
%endif
cvsdist c205ec8
cvsdist c205ec8
%if %test
cvsdist c205ec8
%post test
cvsdist 027e0bd
chown -R postgres:postgres /usr/share/pgsql/test >/dev/null 2>&1 || :
cvsdist c205ec8
%endif
cvsdist c205ec8
cvsdist c205ec8
%clean
cvsdist c205ec8
rm -rf $RPM_BUILD_ROOT
cvsdist c205ec8
cvsdist c205ec8
# FILES section.
cvsdist c205ec8
cvsdist c205ec8
%files -f main.lst
cvsdist c205ec8
%defattr(-,root,root)
cvsdist c205ec8
%doc doc/FAQ doc/KNOWN_BUGS doc/MISSING_FEATURES doc/README* 
cvsdist c205ec8
%doc COPYRIGHT README HISTORY doc/bug.template
cvsdist c205ec8
%doc README.rpm-dist
cvsdist c205ec8
%doc doc/html
cvsdist c205ec8
%{_bindir}/clusterdb
cvsdist c205ec8
%{_bindir}/createdb
cvsdist c205ec8
%{_bindir}/createlang
cvsdist c205ec8
%{_bindir}/createuser
cvsdist c205ec8
%{_bindir}/dropdb
cvsdist c205ec8
%{_bindir}/droplang
cvsdist c205ec8
%{_bindir}/dropuser
cvsdist c205ec8
%{_bindir}/pg_dump
cvsdist c205ec8
%{_bindir}/pg_dumpall
cvsdist c205ec8
%{_bindir}/pg_restore
cvsdist c205ec8
%{_bindir}/psql
cvsdist c205ec8
%{_bindir}/vacuumdb
cvsdist c205ec8
%{_mandir}/man1/clusterdb.*
cvsdist c205ec8
%{_mandir}/man1/createdb.*
cvsdist c205ec8
%{_mandir}/man1/createlang.*
cvsdist c205ec8
%{_mandir}/man1/createuser.*
cvsdist c205ec8
%{_mandir}/man1/dropdb.*
cvsdist c205ec8
%{_mandir}/man1/droplang.*
cvsdist c205ec8
%{_mandir}/man1/dropuser.*
cvsdist c205ec8
%{_mandir}/man1/pg_dump.*
cvsdist c205ec8
%{_mandir}/man1/pg_dumpall.*
cvsdist c205ec8
%{_mandir}/man1/pg_restore.*
cvsdist c205ec8
%{_mandir}/man1/psql.*
cvsdist c205ec8
%{_mandir}/man1/vacuumdb.*
cvsdist c205ec8
%{_mandir}/man7/*
ec364ab
%dir %{_libdir}/pgsql
cvsdist c205ec8
cvsdist c205ec8
%files docs
cvsdist c205ec8
%defattr(-,root,root)
6e96691
%doc doc/src/FAQ
6e96691
%doc *-US.pdf
6e96691
%{_libdir}/pgsql/tutorial/
cvsdist c205ec8
cvsdist c205ec8
%files contrib
cvsdist c205ec8
%defattr(-,root,root)
cvsdist c205ec8
%{_libdir}/pgsql/_int.so
cvsdist c205ec8
%{_libdir}/pgsql/autoinc.so
cvsdist c205ec8
%{_libdir}/pgsql/btree_gist.so
cvsdist c205ec8
%{_libdir}/pgsql/chkpass.so
cvsdist c205ec8
%{_libdir}/pgsql/cube.so
cvsdist c205ec8
%{_libdir}/pgsql/dblink.so
cvsdist c205ec8
%{_libdir}/pgsql/dbsize.so
cvsdist c205ec8
%{_libdir}/pgsql/earthdistance.so
cvsdist c205ec8
%{_libdir}/pgsql/fti.so
cvsdist c205ec8
%{_libdir}/pgsql/fuzzystrmatch.so
cvsdist c205ec8
%{_libdir}/pgsql/insert_username.so
cvsdist c205ec8
%{_libdir}/pgsql/int_aggregate.so
cvsdist c205ec8
%{_libdir}/pgsql/isbn_issn.so
cvsdist c205ec8
%{_libdir}/pgsql/lo.so
cvsdist c205ec8
%{_libdir}/pgsql/ltree.so
cvsdist c205ec8
%{_libdir}/pgsql/misc_utils.so
cvsdist c205ec8
%{_libdir}/pgsql/moddatetime.so
cvsdist c205ec8
%{_libdir}/pgsql/noup.so
cvsdist c205ec8
%{_libdir}/pgsql/pending.so
cvsdist c205ec8
%{_libdir}/pgsql/pgcrypto.so
cvsdist c205ec8
%{_libdir}/pgsql/pgstattuple.so
6e96691
%{_libdir}/pgsql/pg_trgm.so
cvsdist c205ec8
%{_libdir}/pgsql/refint.so
cvsdist c205ec8
%{_libdir}/pgsql/rtree_gist.so
cvsdist c205ec8
%{_libdir}/pgsql/seg.so
cvsdist c205ec8
%{_libdir}/pgsql/string_io.so
cvsdist c205ec8
%{_libdir}/pgsql/tablefunc.so
cvsdist c205ec8
%{_libdir}/pgsql/timetravel.so
cvsdist c205ec8
%{_libdir}/pgsql/tsearch.so
cvsdist c205ec8
%{_libdir}/pgsql/tsearch2.so
cvsdist c205ec8
%{_libdir}/pgsql/user_locks.so
32269db
%if %xml
32269db
%{_libdir}/pgsql/pgxml.so
32269db
%endif
cvsdist c205ec8
%{_datadir}/pgsql/contrib/
6e96691
%{_bindir}/DBMirror.pl
6e96691
%{_bindir}/clean_pending.pl
6e96691
%{_bindir}/my2pg.pl
6e96691
%{_bindir}/mysql2pgsql
cvsdist c205ec8
%{_bindir}/dbf2pg
cvsdist c205ec8
%{_bindir}/fti.pl
cvsdist c205ec8
%{_bindir}/oid2name
cvsdist c205ec8
%{_bindir}/pg_dumplo
cvsdist c205ec8
%{_bindir}/pgbench
cvsdist c205ec8
%{_bindir}/vacuumlo
cvsdist c205ec8
%{_bindir}/pg_autovacuum
cvsdist c205ec8
%doc contrib/*/README.* contrib/spi/*.example
cvsdist c205ec8
cvsdist c205ec8
%files libs -f libpq.lang
cvsdist c205ec8
%defattr(-,root,root)
cvsdist c205ec8
%{_libdir}/libpq.so.*
cvsdist c205ec8
%{_libdir}/libecpg.so.*
cvsdist c205ec8
%{_libdir}/libpgtypes.so.*
cvsdist c205ec8
%{_libdir}/libecpg_compat.so.*
cvsdist c205ec8
cvsdist c205ec8
%files server -f server.lst
cvsdist c205ec8
%defattr(-,root,root)
cvsdist c205ec8
/etc/rc.d/init.d/postgresql
32269db
%if %pam
32269db
/etc/pam.d/postgresql
32269db
%endif
cvsdist 027e0bd
%attr (755,root,root) %dir /etc/sysconfig/pgsql
cvsdist c205ec8
%{_bindir}/initdb
cvsdist c205ec8
%{_bindir}/ipcclean
cvsdist c205ec8
%{_bindir}/pg_controldata
cvsdist c205ec8
%{_bindir}/pg_ctl
cvsdist c205ec8
%{_bindir}/pg_resetxlog
cvsdist c205ec8
%{_bindir}/postgres
cvsdist c205ec8
%{_bindir}/postmaster
cvsdist c205ec8
%{_mandir}/man1/initdb.*
cvsdist c205ec8
%{_mandir}/man1/ipcclean.*
cvsdist c205ec8
%{_mandir}/man1/pg_controldata.*
cvsdist c205ec8
%{_mandir}/man1/pg_ctl.*
cvsdist c205ec8
%{_mandir}/man1/pg_resetxlog.*
cvsdist c205ec8
%{_mandir}/man1/postgres.*
cvsdist c205ec8
%{_mandir}/man1/postmaster.*
cvsdist c205ec8
%{_datadir}/pgsql/postgres.bki
cvsdist c205ec8
%{_datadir}/pgsql/postgres.description
6e96691
%{_datadir}/pgsql/system_views.sql
cvsdist c205ec8
%{_datadir}/pgsql/*.sample
6e96691
%{_datadir}/pgsql/timezone/
cvsdist c205ec8
%{_libdir}/pgsql/plpgsql.so
cvsdist c205ec8
%dir %{_datadir}/pgsql
cvsdist c205ec8
%attr(700,postgres,postgres) %dir /var/lib/pgsql
cvsdist c205ec8
%attr(700,postgres,postgres) %dir /var/lib/pgsql/data
cvsdist c205ec8
%attr(700,postgres,postgres) %dir /var/lib/pgsql/backups
cvsdist c205ec8
%attr(644,postgres,postgres) %config(noreplace) /var/lib/pgsql/.bash_profile
cvsdist c205ec8
%{_libdir}/pgsql/*_and_*.so
cvsdist c205ec8
%{_datadir}/pgsql/conversion_create.sql
cvsdist c205ec8
%{_datadir}/pgsql/information_schema.sql
cvsdist c205ec8
%{_datadir}/pgsql/sql_features.txt
cvsdist c205ec8
6e96691
%files devel -f pg_config.lst
cvsdist c205ec8
%defattr(-,root,root)
cvsdist c205ec8
/usr/include/*
cvsdist c205ec8
%{_bindir}/ecpg
cvsdist c205ec8
%{_bindir}/pg_config
cvsdist c205ec8
%{_libdir}/libpq.so
cvsdist c205ec8
%{_libdir}/libecpg.so
cvsdist c205ec8
%{_libdir}/libpq.a
cvsdist c205ec8
%{_libdir}/libecpg.a
cvsdist c205ec8
%{_libdir}/libecpg_compat.so
cvsdist c205ec8
%{_libdir}/libecpg_compat.a
6e96691
%{_libdir}/libpgport.a
cvsdist c205ec8
%{_libdir}/libpgtypes.so
cvsdist c205ec8
%{_libdir}/libpgtypes.a
6e96691
%{_libdir}/pgsql/pgxs/
cvsdist c205ec8
%{_mandir}/man1/ecpg.*
cvsdist c205ec8
%{_mandir}/man1/pg_config.*
cvsdist c205ec8
cvsdist c205ec8
%if %tcl
cvsdist c205ec8
%files tcl
cvsdist c205ec8
%defattr(-,root,root)
6e96691
%{_libdir}/Pgtcl/
6e96691
%doc Pgtcl-docs/*
cvsdist c205ec8
%endif
cvsdist c205ec8
cvsdist c205ec8
%if %pls
cvsdist c205ec8
%files pl
cvsdist c205ec8
%defattr(-,root,root)
cvsdist c205ec8
%if %plperl
cvsdist c205ec8
%{_libdir}/pgsql/plperl.so
cvsdist c205ec8
%endif
cvsdist c205ec8
%if %pltcl
cvsdist c205ec8
%{_libdir}/pgsql/pltcl.so
cvsdist c205ec8
%{_bindir}/pltcl_delmod
cvsdist c205ec8
%{_bindir}/pltcl_listmod
cvsdist c205ec8
%{_bindir}/pltcl_loadmod
cvsdist c205ec8
%{_datadir}/pgsql/unknown.pltcl
cvsdist c205ec8
%endif
cvsdist 027e0bd
%if %python
cvsdist c205ec8
%{_libdir}/pgsql/plpython.so
cvsdist c205ec8
%endif
cvsdist 027e0bd
%endif
cvsdist c205ec8
cvsdist c205ec8
%if %python
cvsdist c205ec8
%files python
cvsdist c205ec8
%defattr(-,root,root)
cvsdist 0c2148c
%doc PyGreSQL/tutorial PyGreSQL/Announce PyGreSQL/ChangeLog PyGreSQL/README
cvsdist c205ec8
%{_libdir}/python%{pyver}/site-packages/_pgmodule.so
cvsdist c205ec8
%{_libdir}/python%{pyver}/site-packages/*.py
cvsdist c205ec8
%endif
cvsdist c205ec8
cvsdist c205ec8
%if %jdbc
cvsdist c205ec8
%files jdbc
cvsdist c205ec8
%defattr(-,root,root)
6e96691
%{_datadir}/java/*
cvsdist c205ec8
%endif
cvsdist c205ec8
cvsdist c205ec8
%if %test
cvsdist c205ec8
%files test
cvsdist c205ec8
%defattr(-,postgres,postgres)
6e96691
%attr(-,postgres,postgres) %{_libdir}/pgsql/test/*
6e96691
%attr(-,postgres,postgres) %dir %{_libdir}/pgsql/test
cvsdist c205ec8
%endif
cvsdist c205ec8
cvsdist c205ec8
%changelog
81785f0
* Fri Oct 14 2005 Tomas Mraz <tmraz@redhat.com>
81785f0
- use include instead of pam_stack in pam config
81785f0
f718878
* Tue Oct  4 2005 Tom Lane <tgl@redhat.com> 8.0.4-2
f718878
- Add rpath to plperl.so (bug #162198)
f718878
32269db
* Tue Oct  4 2005 Tom Lane <tgl@redhat.com> 8.0.4-1
32269db
- Update to PostgreSQL 8.0.4, PyGreSQL 3.6.2, and jdbc driver build 312
32269db
- Adjust pgtcl link command to ensure it binds to correct libpq (bug #166665)
32269db
- Remove obsolete Conflicts: against other python versions (bug #166754)
32269db
- Add /etc/pam.d/postgresql (bug #167040)
32269db
- Include contrib/xml2 in build (bug #167492)
32269db
e8f554d
* Tue May 10 2005 Tom Lane <tgl@redhat.com> 8.0.3-1
e8f554d
- Update to PostgreSQL 8.0.3 (includes security and data-loss fixes; see
e8f554d
  bz#156727, CAN-2005-1409, CAN-2005-1410)
e8f554d
- Update to jdbc driver build 311
e8f554d
- Recreate postgres user after superseding an rh-postgresql install (bug #151911)
e8f554d
- Ensure postgresql server is restarted if running during an upgrade
e8f554d
e8f554d
* Thu Apr 14 2005 Florian La Roche <laroche@redhat.com> 8.0.2-2
Florian La Roche 391b666
- rebuild for postgresql-tcl
Florian La Roche 391b666
41ac9b7
* Tue Apr 12 2005 Tom Lane <tgl@redhat.com> 8.0.2-1
41ac9b7
- Update to PostgreSQL 8.0.2.
41ac9b7
ec5d1ae
* Fri Mar 11 2005 Tom Lane <tgl@redhat.com> 8.0.1-5
ec5d1ae
- Remove unwanted rpath specification from pgtcl (bz#150649)
ec5d1ae
dadd60b
* Wed Mar  2 2005 Tom Lane <tgl@redhat.com> 8.0.1-4
dadd60b
- Attach Obsoletes: declarations for rh-postgresql to subpackages (bz#144435)
dadd60b
- Make Requires: and Prereq: package linkages specify release not only
dadd60b
  version, as per recent mailing list discussion.
dadd60b
a70d6a1
* Tue Mar  1 2005 Tomas Mraz <tmraz@redhat.com> 8.0.1-3
a70d6a1
- rebuild with openssl-0.9.7e
a70d6a1
26b954a
* Mon Feb 21 2005 Tom Lane <tgl@redhat.com> 8.0.1-2
26b954a
- Repair improper error message in init script when PGVERSION doesn't match.
26b954a
- Arrange for auto update of version embedded in init script.
26b954a
eb3bf28
* Sun Jan 30 2005 Tom Lane <tgl@redhat.com> 8.0.1-1
eb3bf28
- Update to PostgreSQL 8.0.1.
eb3bf28
- Add versionless symlinks to jar files (bz#145744)
eb3bf28
6e96691
* Wed Jan 19 2005 Tom Lane <tgl@redhat.com> 8.0.0-1
6e96691
- Update to PostgreSQL 8.0.0, PyGreSQL 3.6.1, pgtcl 1.5.2,
6e96691
  and jdbc driver build 309.
6e96691
- Extensive cleanout of obsolete cruft in patch set.
6e96691
- Regression tests are run during RPM build (NOTE: cannot build as root when
6e96691
  this is enabled).
6e96691
- Postmaster stderr goes someplace useful, not /dev/null (bz#76503, #103767)
6e96691
- Make init script return a useful exit status (bz#80782)
6e96691
- Move docs' tutorial directory to %%{_libdir}/pgsql/tutorial, since it
6e96691
  includes .so files that surely do not belong under /usr/share.
6e96691
- Remove useless .sgml files from docs RPM (bz#134450)
6e96691
- Put regression tests under /usr/lib64 on 64-bit archs, since .so files
6e96691
  are not architecture-independent.
6e96691
cc192f6
* Wed Jan 12 2005 Tim Waugh <twaugh@redhat.com> 7.4.6-5
cc192f6
- Rebuilt for new readline.
cc192f6
a884bda
* Tue Jan 11 2005 Dan Walsh <dwalsh@redhat.com> 7.4.6-4
a884bda
- Add restorecon to postgresql.init in order to restore database to correct
a884bda
- SELinux context.
a884bda
ec364ab
* Thu Dec 16 2004 Tom Lane <tgl@redhat.com> 7.4.6-3
ec364ab
- Update to PyGreSQL 3.6 (to fix bug #142711)
ec364ab
- Adjust a few file permissions (bug #142431)
ec364ab
- Assign %%{_libdir}/pgsql to base package instead of -server (bug #74003)
ec364ab
e5eb733
* Mon Nov 15 2004 Tom Lane <tgl@redhat.com> 7.4.6-2
e5eb733
- Rebuild so python components play with python 2.4 (bug 139160)
e5eb733
fefe019
* Sat Oct 23 2004 Tom Lane <tgl@redhat.com> 7.4.6-1
fefe019
- Update to PostgreSQL 7.4.6 (bugs 136947, 136949)
fefe019
- Make init script more paranoid about mkdir step of initializing a new
fefe019
  database (bugs 136947, 136949)
fefe019
3c38c70
* Wed Oct 20 2004 Tom Lane <tgl@redhat.com> 7.4.5-4
3c38c70
- Remove contrib/oidjoins stuff from installed fileset; it's of no use
3c38c70
  to ordinary users and has a security issue (bugs 136300, 136301)
3c38c70
- adjust chkconfig priority (bug 128852)
3c38c70
3fd417a
* Tue Oct 05 2004 Tom Lane <tgl@redhat.com> 7.4.5-3
3fd417a
- Solve the stale lockfile problem (bugs 71295, 96981, 134090)
3fd417a
- Use runuser instead of su for SELinux (bug 134588)
3fd417a
cvsdist 0c2148c
* Mon Aug 30 2004 Tom Lane <tgl@redhat.com> 7.4.5-2
cvsdist 0c2148c
- Update to PyGreSQL 3.5.
cvsdist 0c2148c
cvsdist eeda6e6
* Wed Aug 24 2004 Tom Lane <tgl@redhat.com> 7.4.5-1
cvsdist eeda6e6
- Update to PostgreSQL 7.4.5.
cvsdist eeda6e6
- Update JDBC jars to driver build 215.
cvsdist eeda6e6
- Add Obsoletes: entries for rh-postgresql packages, per bug 129278.
cvsdist eeda6e6
cvsdist 419f136
* Sat Jul 10 2004 Tom Lane <tgl@redhat.com> 7.4.3-3
cvsdist 419f136
- Undo ill-considered chkconfig change that causes server to start
cvsdist 419f136
  immediately upon install.  Mea culpa (bug 127552).
cvsdist 419f136
cvsdist 54d3615
* Sat Jul 03 2004 Tom Lane <tgl@redhat.com> 7.4.3-2
cvsdist 54d3615
- Update JDBC jars to driver build 214.
cvsdist 54d3615
cvsdist aba59f5
* Wed Jun 23 2004 Tom Lane <tgl@redhat.com> 7.4.3-1
cvsdist aba59f5
- Update to PostgreSQL 7.4.3.
cvsdist aba59f5
- Uninstalling server RPM stops postmaster first, per bug 114846.
cvsdist aba59f5
- Fix su commands to not assume PG user's shell is sh-like, per bug 124024.
cvsdist aba59f5
- Fix permissions on postgresql-python doc files, per bug 124822.
cvsdist aba59f5
- Minor postgresql.init improvements.
cvsdist aba59f5
cvsdist aba59f5
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
cvsdist aba59f5
- rebuilt
cvsdist aba59f5
cvsdist 027e0bd
* Wed Mar 10 2004 Tom Lane <tgl@redhat.com> 7.4.2-1
cvsdist 027e0bd
- Update to PostgreSQL 7.4.2; sync with community SRPM as much as possible.
cvsdist 027e0bd
- Support PGOPTS from /etc/sysconfig/pgsql, per bug 111504.
cvsdist 027e0bd
- Fix permissions on /etc/sysconfig/pgsql, per bug 115278.
cvsdist 027e0bd
- SELinux patch in init file: always su 
cvsdist 027e0bd
- Rebuilt
cvsdist 027e0bd
cvsdist 027e0bd
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 027e0bd
- rebuilt
cvsdist 027e0bd
cvsdist 027e0bd
* Wed Feb 25 2004 Tom Lane <tgl@redhat.com>
cvsdist 027e0bd
- Update to PostgreSQL 7.4.1.
cvsdist 027e0bd
- Rebuilt
cvsdist 027e0bd
cvsdist 027e0bd
* Tue Feb 24 2004 Tom Lane <tgl@redhat.com>
cvsdist 027e0bd
- Fix chown syntax in postgresql.init also.
cvsdist 027e0bd
- Rebuilt
cvsdist 027e0bd
cvsdist 027e0bd
* Mon Feb 23 2004 Tim Waugh <twaugh@redhat.com>
cvsdist 027e0bd
- Use ':' instead of '.' as separator for chown.
cvsdist 027e0bd
cvsdist 027e0bd
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 027e0bd
- rebuilt
cvsdist 027e0bd
cvsdist 027e0bd
* Fri Jan 9 2004 Lamar Owen <lowen@pari.edu>
cvsdist 027e0bd
- 7.4.1-1PGDG
cvsdist 027e0bd
- Merge Sander Steffann's changes up to 7.4-0.5PGDG
cvsdist 027e0bd
- Proper 7.4.1 JDBC jars this time.
cvsdist 027e0bd
- Patch for no pl/python from Alvaro
cvsdist 027e0bd
cvsdist c205ec8
* Fri Dec 05 2003 David Jee <djee@redhat.com> 7.4-5
cvsdist c205ec8
- Rebuild for Perl 5.8.2.
cvsdist c205ec8
cvsdist c205ec8
* Mon Dec 01 2003 David Jee <djee@redhat.com> 7.4-4
cvsdist c205ec8
- Add PyGreSQL patch for deprecated column pg_type.typprtlen [Bug #111263]
cvsdist c205ec8
- Add headers patch which moves ecpg headers to /usr/include/ecpg
cvsdist c205ec8
  [Bug #111195]
cvsdist c205ec8
cvsdist c205ec8
* Fri Nov 28 2003 David Jee <djee@redhat.com> 7.4-3
cvsdist c205ec8
- uncomment buildrequires tcl-devel
cvsdist c205ec8
cvsdist c205ec8
* Fri Nov 28 2003 David Jee <djee@redhat.com> 7.4-2
cvsdist c205ec8
- rebuild
cvsdist c205ec8
cvsdist c205ec8
* Mon Nov 24 2003 David Jee <djee@redhat.com> 7.4-1
cvsdist c205ec8
- initial Red Hat build
cvsdist c205ec8
- move jars to /usr/share/java
cvsdist c205ec8
- fix rpm-multilib patch to use sysconfig
cvsdist c205ec8
cvsdist c205ec8
* Fri Nov 21 2003 Lamar Owen <lowen@pari.edu> <lamar.owen@wgcr.org>
cvsdist c205ec8
- 7.4-0.1PGDG
cvsdist c205ec8
- Development JDBC jars in addition to the 7.3 jars; will replace the
cvsdist c205ec8
- 7.3 jars once 7.4 official jars are released.
cvsdist c205ec8
- Changed to use the bzip2 source to save a little size.
cvsdist c205ec8
- Removed some commented out portions of the specfile.
cvsdist c205ec8
- Removed the 7.3.4 PDF docs.  Will replace with 7.4 PDF's once they
cvsdist c205ec8
- are ready.
cvsdist c205ec8
cvsdist c205ec8
* Tue Nov 18 2003 Kaj J. Niemi <kajtzu@fi.basen.net> 7.4-0.1
cvsdist c205ec8
- 7.4
cvsdist c205ec8
- Fixed Patch #1 (now rpm-pgsql-7.4.patch)
cvsdist c205ec8
- Fixed Patch #2 (now rpm-multilib-7.4.patch):
cvsdist c205ec8
- Patch #4 is unnecessary (upstream)
cvsdist c205ec8
- Fixed Patch #6 (now postgresql-7.4-src-tutorial.patch)
cvsdist c205ec8
- Added Patch #8 (postgresql-7.4-com_err.patch) as com_err()
cvsdist c205ec8
  is provided by e2fsprogs and CPPFLAGS gets lost somewhere
cvsdist c205ec8
  inside configure (bad macro?)
cvsdist c205ec8
- No 7.4 PDF docs available yet (Source #17)
cvsdist c205ec8
- PyGreSQL is separated from the upstream distribution but
cvsdist c205ec8
  we include it as usual (Source #18)
cvsdist c205ec8
- Default to compiling libpq and ECPG as fully thread-safe
cvsdist c205ec8
cvsdist c205ec8
- 7.4 Origin.  See previous spec files for previous history. Adapted
cvsdist c205ec8
- from Red Hat and PGDG's 7.3.4 RPM, directly descended from 
cvsdist c205ec8
- postgresql-7.3.4-2 as shipped in Fedora Core 1.