-Summary: PostgreSQL Data Base Management System
-Summary(de): PostgreSQL Datenbankverwaltungssystem
-Summary(fr): Sysème de gestion de base de données PostgreSQL.
-Summary(pl): PostgreSQL system bazodanowy
-Summary(tr): Veri Tabaný Yönetim Sistemi
-Name: postgresql
-Version: 6.4.2
-Release: 2
-Copyright: BSD
-Group: Applications/Databases
-URL: http://www.postgresql.org/
-Source: ftp://ftp.postgresql.org/pub/%{name}-%{version}.tar.gz
-Source1: postgresql.init
-Source2: pgsql-Database-HOWTO-html.tar.gz
-Patch: postgresql-6.4.2-opt.patch
-Buildroot: /tmp/%{name}-%{version}-root
-Prereq: /sbin/chkconfig /sbin/ldconfig
-Requires: postgresql-clients
+Summary: PostgreSQL Data Base Management System
+Summary(de): PostgreSQL Datenbankverwaltungssystem
+Summary(fr): Sysème de gestion de base de données PostgreSQL.
+Summary(pl): PostgreSQL system bazodanowy
+Summary(tr): Veri Tabaný Yönetim Sistemi
+Name: postgresql
+Version: 6.4.2
+Release: 7
+Copyright: BSD
+Group: Applications/Databases
+Group(pl): Aplikacje/Bazy danych
+Source0: ftp://ftp.postgresql.org/pub/%{name}-%{version}.tar.gz
+Source1: postgresql.init
+Source2: pgsql-Database-HOWTO-html.tar.gz
+Patch: postgresql-6.4.2-opt.patch
+URL: http://www.postgresql.org/
+Prereq: /sbin/chkconfig
+Buildroot: /tmp/%{name}-%{version}-root
+Requires: %{name}-clients = %{version}
%description
PostgreSQL Data Base Management System (formerly known as Postgres, then as
geniþletilmiþ bir altkümesi yerine PostQuel sorgulama dilini koyar.
%package devel
-Requires: postgresql-clients
-Summary: PostgreSQL development header files and libraries
-Summary(de): PostgreSQL-Entwicklungs-Header-Dateien und Libraries
-Summary(fr): En-têtes et bibliothèques de développement PostgreSQL
-Summary(pl): PostgreSQL - nag³owki i biblioteki
-Summary(tr): PostgreSQL baþlýk dosyalarý ve kitaplýklar
-Group: Development/Libraries
+Summary: PostgreSQL development header files and libraries
+Summary(de): PostgreSQL-Entwicklungs-Header-Dateien und Libraries
+Summary(fr): En-têtes et bibliothèques de développement PostgreSQL
+Summary(pl): PostgreSQL - nag³owki i biblioteki
+Summary(tr): PostgreSQL baþlýk dosyalarý ve kitaplýklar
+Group: Development/Libraries
+Group(pl): Programowanie/Biblioteki
+Requires: %{name}-clients = %{version}
%description devel
This package contains header files and libraries required to compile
du backend PostgreSQL.
%description -l pl devel
-Pakiet ten zawiera nag³ówki oraz biblioteki wymagane do kompilacji
-aplikacji ³±cz±cych siê bezpo¶rednio z serwerem PostgreSQL.
+Pakiet zawiera nag³ówki oraz biblioteki wymagane do kompilacji aplikacji
+³±cz±cych siê bezpo¶rednio z serwerem PostgreSQL.
%description -l tr devel
Bu paket, PostgreSQL sunucusuyla konuþacak yazýlýmlar geliþtirmek için
gereken baþlýk dosyalarýný ve kitaplýklarý içerir.
%package data
-Summary: PostgreSQL initial database structure
-Summary(de): PostgreSQL-Ausgangs-Datenbankstruktur
-Summary(fr): Structure initiale de base de données PostgreSQL
-Summary(pl): PostgreSQL - inicjuj±ca struktura bazy danych
-Summary(tr): PostgreSQL baþlangýç veritabaný yapýsý
-Group: Applications/Databases
-Requires: postgresql postgresql-clients
-Conflicts: postgresql-data <= 6.2.1
+Summary: PostgreSQL initial database structure
+Summary(de): PostgreSQL-Ausgangs-Datenbankstruktur
+Summary(fr): Structure initiale de base de données PostgreSQL
+Summary(pl): PostgreSQL - inicjuj±ca struktura bazy danych
+Summary(tr): PostgreSQL baþlangýç veritabaný yapýsý
+Group: Applications/Databases
+Group(pl): Aplikacje/Bazy danych
+Requires: %{name} = %{version}
+Requires: %{name}-clients = %{version}
+Conflicts: postgresql-data <= 6.2.1
%description data
This packages includes an initial database structure directory for PostgreSQL.
/var/lib/pgsql pour stocker vos bases de données.
%description -l pl data
-Pakiet ten zawiera zainicjowan± strukturê bazodanow± dla PostgreSQL. Dla
+Pakiet zawiera zainicjowan± strukturê bazodanow± dla PostgreSQL. Dla
szybkiego startu PostgreSQL rekomendowane jest zainstalowanie tego pakietu
razem z pakietem serwera (jednak¿e nie jest on wymagany).
komutunu kullanarak kendiniz yaratmanýz gerekir.
%package clients
-Summary: clients needed to access a PostgreSQL server
-Summary(pl): klienci wymagani do dostêpu do serwera PostgreSQL
-Group: Applications/Databases
+Summary: clients needed to access a PostgreSQL server
+Summary(pl): klienci wymagani do dostêpu do serwera PostgreSQL
+Group: Applications/Databases
+Group(pl): Aplikacje/Bazy danych
%description clients
This package includes only the clients and client libraries needed to access
on a remote PostgreSQL server.
%description -l pl clients
-Pakiet ten zawiera tylko klientów oraz biblioteki niezbêdne dla dostêpu
-do serwera PostgreSQL. Serwer znajduje siê w g³ównym pakiecie.
+Pakiet zawiera klientów oraz biblioteki niezbêdne dla dostêpu do serwera
+PostgreSQL. Serwer znajduje siê w g³ównym pakiecie.
%package perl
-Summary: Perl interface to PostgreSQL database
-Summary(pl): Interface dla Perl'a umo¿liwiaj±cy dostêp do baz PostgreSQL
-Group: Application/Databases
-Requires: postgresql, perl >= 5.004
+Summary: Perl interface to PostgreSQL database
+Summary(pl): Interface dla Perl'a umo¿liwiaj±cy dostêp do baz PostgreSQL
+Group: Applications/Databases
+Group(pl): Aplikacje/Bazy danych
+Requires: postgresql, perl >= 5.004
%description perl
This package includes only perl modules needed to access an PostgreSQL server.
PostgreSQL.
%package doc
-Summary: Documentation for PostgreSQL
-Summary(pl): Dodatkowa dokumantacja dla PostgreSQL
-Group: Application/Databases
-Requires: postgresql
+Summary: Documentation for PostgreSQL
+Summary(pl): Dodatkowa dokumantacja dla PostgreSQL
+Group: Applications/Databases
+Group(pl): Aplikacje/Bazy danych
+Requires: %{name} = %{version}
%description doc
This package includes documentation and HOWTO for programmer, admin etc., in
administratorów w formacie HTML.
%package odbc
-Summary: ODBC interface to PostgreSQL
-Summary(pl): Interface ODBC do PostgreSQL
-Group: Application/Databases
-Requires: postgresql
+Summary: ODBC interface to PostgreSQL
+Summary(pl): Interface ODBC do PostgreSQL
+Group: Applications/Databases
+Group(pl): Aplikacje/Bazy danych
+Requires: %{name} = %{version}
%description odbc
This package includes library and header files for interface ODBC.
Pakiet ten zawiera biblioteki i pliki nag³ówkowe dla interface'u ODBC.
%prep
-rm -rf $RPM_BUILD_ROOT
-
%setup -q
%patch -p1 -b .opt
%build
cd src
-autoconf
-%ifarch alpha
-EXTRA_configure="--with-template=linuxalpha"
-%endif
-CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr \
- --enable-hba --enable-locale \
- --with-odbc --with-odbcinst=/etc \
+CFLAGS="$RPM_OPT_FLAGS" \
+./configure %{_target_platform} \
+ --prefix=/usr \
+ --enable-hba \
+ --enable-locale \
+ --with-odbc \
+ --with-odbcinst=/etc \
--without-tcl \
--with-x \
- --with-perl $EXTRA_configure
+%ifarch alpha
+ --with-template=linuxalpha \
+%endif
+ --with-perl
gmake OPT_FLAGS="$RPM_OPT_FLAGS"
# For Perl interface
( cd src/interfaces/perl5
- PERLVER=`ls -d /usr/lib/perl5/${RPM_ARCH}-linux/5.*`
+
+perl -V:installarchlib > /tmp/tmp_perl_info
+perl -V:installsitearch >> /tmp/tmp_perl_info
+. /tmp/tmp_perl_info
+
+ PERLVER=$installarchlib
install -d $RPM_BUILD_ROOT/$PERLVER
perl Makefile.PL
make PREFIX=$RPM_BUILD_ROOT/usr install
- PACK="$RPM_BUILD_ROOT/usr/lib/perl5/site_perl/${RPM_ARCH}-linux/auto/Pg/.packlist"
+ PACK="$RPM_BUILD_ROOT$installsitearch/auto/Pg/.packlist"
mv $PACK $PACK.old
sed -e "s|$RPM_BUILD_ROOT/|/|g" -e "s|./||" < $PACK.old > $PACK
rm -f $PACK.old
LOCAL="$RPM_BUILD_ROOT/$PERLVER/perllocal.pod"
mv $LOCAL $LOCAL.old
- sed -e "s|$RPM_BUILD_ROOT/|/|g" < $LOCAL.old > $LOCAL
+ sed -e "s|$RPM_BUILD_ROOT/|/|g" < $LOCAL.old > $LOCAL.pg
rm -f $LOCAL.old
)
-find $RPM_BUILD_ROOT/usr/lib/perl5 -type f -print | \
- sed -e "s|$RPM_BUILD_ROOT/|/|g" > perlfiles.list
-find $RPM_BUILD_ROOT/usr/lib/perl5 -type d -name Pg -print | \
+find $RPM_BUILD_ROOT%{_libdir}/perl5 -type f -print | \
+ sed -e "s|$RPM_BUILD_ROOT/|/|g" | grep -v "perllocal.pod$" > perlfiles.list
+find $RPM_BUILD_ROOT%{_libdir}/perl5 -type d -name Pg -print | \
sed -e "s|$RPM_BUILD_ROOT/|%dir /|g" >> perlfiles.list
-# Move all includes beneath /usr/include/pgsql.
-( cd $RPM_BUILD_ROOT/usr/include
+# Move all includes beneath %{_includedir}/pgsql.
+( cd $RPM_BUILD_ROOT%{_includedir}
rm -rf include
for f in *.h access commands executor lib libpq libpq++ port utils
do
done
)
-# Move all templates/examples beneath /usr/lib/pgsql
-( cd $RPM_BUILD_ROOT/usr/lib
+# Move all templates/examples beneath %{_libdir}/pgsql
+( cd $RPM_BUILD_ROOT%{_libdir}
install -d pgsql
mv *source *sample pgsql
)
# Move odbc.ini file to etc
mv -f $RPM_BUILD_ROOT/usr/*.ini $RPM_BUILD_ROOT/etc
-install -m 755 $RPM_SOURCE_DIR/postgresql.init $RPM_BUILD_ROOT/etc/rc.d/init.d/postgresql
+install $RPM_SOURCE_DIR/postgresql.init $RPM_BUILD_ROOT/etc/rc.d/init.d/postgresql
install -d howto
( cd howto
)
# Strip 'em all
-strip -s $RPM_BUILD_ROOT/usr/bin/* || :
+strip -s $RPM_BUILD_ROOT%{_bindir}/* || :
+
+# gzip all man pages
+gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/*
# Erase all CVS dir
rm -fR `find contrib/ -type d -name CVS`
-%pre
-useradd -M -o -r -d /var/lib/pgsql -s /bin/bash \
+%pre data
+if ! `grep postgres /etc/passwd >/dev/null 2>&1`; then
+ useradd -M -o -r -d /var/lib/pgsql -s /bin/bash \
-c "PostgreSQL Server" postgres >/dev/null 2>&1 || :
+fi
%post
/sbin/chkconfig --add postgresql
-%post data
-# Create sample database
-if ! `grep postgres /etc/passwd >/dev/null 2>&1`; then
- echo "You must add new user postgres before init database."
- exit 1
-fi
-su postgres -c "LD_LIBRARY_PATH=/usr/lib \
- /usr/bin/initdb --pgdata=/var/lib/pgsql \
- --pglib=/usr/lib/pgsql"
-
-%post -p /sbin/ldconfig clients
-
-%post -p /sbin/ldconfig devel
-
-%post -p /sbin/ldconfig odbc
-
%preun
if [ $1 = 0 ]; then
- if [ -f /var/lock/subsys/postmaster ]; then
- /etc/rc.d/init.d/postgresql stop
- fi
- /sbin/chkconfig --del postgresql
+ if [ -f /var/lock/subsys/postmaster ]; then
+ /etc/rc.d/init.d/postgresql stop
+ fi
+ /sbin/chkconfig --del postgresql
fi
+%post data
+# Create sample database
+su postgres -c "LD_LIBRARY_PATH=%{_libdir} \
+ %{_bindir}/initdb --pgdata=/var/lib/pgsql \
+ --pglib=%{_libdir}/pgsql"
+
+%post -p /sbin/ldconfig clients
%postun -p /sbin/ldconfig clients
+%post -p /sbin/ldconfig devel
%postun -p /sbin/ldconfig devel
+%post -p /sbin/ldconfig odbc
%postun -p /sbin/ldconfig odbc
+%post perl
+POD=`find %{_libdir} -name perllocal.pod.pg`
+DIR=`dirname $POD`
+if [ -f $DIR/perllocal.pod ]; then
+ mv $DIR/perllocal.pod $DIR/perllocal.pod.prepg
+ cat $DIR/perllocal.pod.pg $DIR/perllocal.pod.prepg > $DIR/perllocal.pod
+else
+ cp $DIR/perllocal.pod.pg $DIR/perllocal.pod
+fi
+rm -f $DIR/perllocal.pod.pg
%clean
rm -rf $RPM_BUILD_ROOT
-
+rm -f /tmp/tmp_perl_info
%files doc
-%defattr(644, root, root, 755)
+%defattr(644,root,root,755)
%doc doc/unpacked/*
%doc howto
%files
-%defattr(644, root, root, 755)
+%defattr(644,root,root,755)
%doc contrib
%doc doc/FAQ doc/FAQ_Linux doc/README*
%doc COPYRIGHT README HISTORY doc/bug.template
%doc doc/*.ps.gz
-%attr(755, root, root) /etc/rc.d/init.d/*
-
-%attr(644, postgres, postgres, 755) /usr/lib/pgsql
-%attr(755, root, root) /usr/bin/cleardbdir
-%attr(755, root, root) /usr/bin/createdb
-%attr(755, root, root) /usr/bin/createuser
-%attr(755, root, root) /usr/bin/destroydb
-%attr(755, root, root) /usr/bin/destroyuser
-%attr(755, root, root) /usr/bin/initdb
-%attr(755, root, root) /usr/bin/initlocation
-%attr(755, root, root) /usr/bin/pg_passwd
-%attr(755, root, root) /usr/bin/pg_version
-%attr(755, root, root) /usr/bin/postgres
-%attr(755, root, root) /usr/bin/postmaster
-%attr(644, root, man) /usr/man/man1/cleardbdir.1
-%attr(644, root, man) /usr/man/man1/createdb.1
-%attr(644, root, man) /usr/man/man1/createuser.1
-%attr(644, root, man) /usr/man/man1/destroydb.1
-%attr(644, root, man) /usr/man/man1/destroyuser.1
-%attr(644, root, man) /usr/man/man1/initdb.1
-%attr(644, root, man) /usr/man/man1/initlocation.1
-%attr(644, root, man) /usr/man/man1/pg_passwd.1
-%attr(644, root, man) /usr/man/man1/postgres.1
-%attr(644, root, man) /usr/man/man1/postmaster.1
-%attr(644, root, man) /usr/man/man5/*.5
+%attr(754,root,root) /etc/rc.d/init.d/*
+
+%attr(644, postgres, postgres,755) %{_libdir}/pgsql
+%attr(755,root,root) %{_bindir}/cleardbdir
+%attr(755,root,root) %{_bindir}/createdb
+%attr(755,root,root) %{_bindir}/createuser
+%attr(755,root,root) %{_bindir}/destroydb
+%attr(755,root,root) %{_bindir}/destroyuser
+%attr(755,root,root) %{_bindir}/initdb
+%attr(755,root,root) %{_bindir}/initlocation
+%attr(755,root,root) %{_bindir}/pg_passwd
+%attr(755,root,root) %{_bindir}/pg_version
+%attr(755,root,root) %{_bindir}/postgres
+%attr(755,root,root) %{_bindir}/postmaster
+%{_mandir}/man1/cleardbdir.1.gz
+%{_mandir}/man1/createdb.1.gz
+%{_mandir}/man1/createuser.1.gz
+%{_mandir}/man1/destroydb.1.gz
+%{_mandir}/man1/destroyuser.1.gz
+%{_mandir}/man1/initdb.1.gz
+%{_mandir}/man1/initlocation.1.gz
+%{_mandir}/man1/pg_passwd.1.gz
+%{_mandir}/man1/postgres.1.gz
+%{_mandir}/man1/postmaster.1.gz
+%{_mandir}/man5/*.5.gz
%files devel
-%defattr(644, root, root, 755)
-/usr/lib/libec*.a
-/usr/lib/libpq*.a
-/usr/lib/libec*.so
-/usr/lib/libpq*.so
-/usr/include/pgsql
-%attr(644, root, man) /usr/man/man3/*
-%attr(755, root, root) /usr/bin/ecpg
-%attr(644, root, man) /usr/man/man1/ecpg.1
+%defattr(644,root,root,755)
+%{_libdir}/libec*.a
+%{_libdir}/libpq*.a
+%attr(755,root,root) %{_libdir}/libec*.so
+%attr(755,root,root) %{_libdir}/libpq*.so
+%{_includedir}/pgsql
+%{_mandir}/man3/*.gz
+%attr(755,root,root) %{_bindir}/ecpg
+%{_mandir}/man1/ecpg.1.gz
%files data
%defattr(-,postgres,postgres)
%attr(-,postgres,postgres) /var/lib/pgsql
%files clients
-%defattr(644, root, root, 755)
-/usr/lib/libec*.so.*
-/usr/lib/libpq*.so.*
-%attr(755, root, root) /usr/bin/pg_dump
-%attr(755, root, root) /usr/bin/pg_dumpall
-%attr(755, root, root) /usr/bin/pg_id
-%attr(755, root, root) /usr/bin/pg_upgrade
-%attr(755, root, root) /usr/bin/psql
-%attr(644, root, man) /usr/man/man1/pg_dump.1
-%attr(644, root, man) /usr/man/man1/pg_dumpall.1
-%attr(644, root, man) /usr/man/man1/pg_upgrade.1
-%attr(644, root, man) /usr/man/man1/psql.1
-%attr(644, root, man) /usr/man/manl/*
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libec*.so.*
+%attr(755,root,root) %{_libdir}/libpq*.so.*
+%attr(755,root,root) %{_bindir}/pg_dump
+%attr(755,root,root) %{_bindir}/pg_dumpall
+%attr(755,root,root) %{_bindir}/pg_id
+%attr(755,root,root) %{_bindir}/pg_upgrade
+%attr(755,root,root) %{_bindir}/psql
+%{_mandir}/man1/pg_dump.1.gz
+%{_mandir}/man1/pg_dumpall.1.gz
+%{_mandir}/man1/pg_upgrade.1.gz
+%{_mandir}/man1/psql.1.gz
+%{_mandir}/manl/*.gz
%files -f perlfiles.list perl
-%defattr(-, root, root)
+%defattr(-,root,root)
%files odbc
-%defattr(644, root, root, 755)
+%defattr(644,root,root,755)
%doc src/interfaces/odbc/readme.txt src/interfaces/odbc/notice.txt
%config(noreplace) %verify(not size mtime md5) /etc/odbc*
-/usr/lib/libpsqlodbc*
-/usr/include/iodbc
+%{_libdir}/libpsqlodbc*
+%{_includedir}/iodbc
%changelog
+* Wed Mar 24 1999 Jacek Smyda <smyda@posexperts.com.pl>
+ [6.4.2-7]
+- correct dir for perl
+
+* Fri Mar 5 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
+ [6.4.2-6]
+- changed ermission on rc script to 754,
+- /sbin/ldconfig emoved from Prereq list,
+- removed man group from man pages.
+
+* Fri Mar 5 1999 Jacek Smyda <smyda@posexperts.com.pl>
+- add polish group names
+- correct install perllocal.pod
+
+* Wed Mar 3 1999 Jacek Smyda <smyda@posexperts.com.pl>
+- correct group name
+
+* Thu Feb 25 1999 Jacek Smyda <smyda@posexperts.com.pl>
+- gzip man pages
+
* Thu Feb 18 1999 Jacek Smyda <smyda@posexperts.com.pl>
- Remove template database from data package and init after install
- /var/lib/pgsql/pg_pwd should not be 666
* Sun Jun 21 1998 Jeff Johnson <jbj@redhat.com>
-- create /usr/lib/pgsql (like /usr/include/pgsql)
+- create %{_libdir}/pgsql (like %{_includedir}/pgsql)
- resurrect libpq++.so*
- fix name problem in startup-script (problem #533)
* Fri Jun 19 1998 Jeff Johnson <jbj@redhat.com>
- configure had "--prefix=$RPM_BUILD_ROOT/usr"
-- move all include files below /usr/include/pgsql.
+- move all include files below %{_includedir}/pgsql.
- resurrect perl client file lists.
* Tue May 05 1998 Prospector System <bugs@redhat.com>