]> git.pld-linux.org Git - packages/postgresql.git/blobdiff - postgresql.spec
- added Patch11: postgresql-ssl-libpq-mem-leak-1.patch
[packages/postgresql.git] / postgresql.spec
index 69a941ed4487faf4146df0654f3754f68c46df7a..7dbf21f9319663a5261191b971f68ed0e9d71fb0 100644 (file)
@@ -1,60 +1,81 @@
 #
-# Conditional build:
-# _with_jdbc           - with JDBC driver
+# - pg_autovacuum init support? look at its readme file, please
+# - pg_ctl uses psql again, current patch2 doesn't eliminate this
 #
+# Conditional build:
+%bcond_without tests                   # disable testing
+%bcond_without tcl                     # disables Tcl support
+%bcond_without kerberos5               # disable kerberos5 support
+%bcond_without perl                    # disable perl support
+%bcond_without pgsql_locale            # disable PostgreSQL locale
+%bcond_without pgsql_multibyte         # disable PostgreSQL multibyte
+%bcond_without python                  # disable python support
+%bcond_with    jdbc                    # enable JDBC driver
+%bcond_with    absolute_dbpaths        # enable absolute paths to create database
+                                       # (disabled by default because it is a security risk)
 
-%include       /usr/lib/rpm/macros.perl
 %include       /usr/lib/rpm/macros.python
-
 Summary:       PostgreSQL Data Base Management System
 Summary(de):   PostgreSQL Datenbankverwaltungssystem
 Summary(es):   Gestor de Banco de Datos PostgreSQL
 Summary(fr):   Sysème de gestion de base de données PostgreSQL
 Summary(pl):   PostgreSQL - system bazodanowy
 Summary(pt_BR):        Gerenciador de Banco de Dados PostgreSQL
+Summary(ru):   PostgreSQL - ÓÉÓÔÅÍÁ ÕÐÒÁ×ÌÅÎÉÑ ÂÁÚÁÍÉ ÄÁÎÎÙÈ
 Summary(tr):   Veri Tabaný Yönetim Sistemi
+Summary(uk):   PostgreSQL - ÓÉÓÔÅÍÁ ËÅÒÕ×ÁÎÎÑ ÂÁÚÁÍÉ ÄÁÎÉÈ
+Summary(zh_CN):        PostgreSQL ¿Í»§¶Ë³ÌÐòºÍ¿âÎļþ
 Name:          postgresql
-Version:       7.2
-Release:       6
+Version:       7.4
+Release:       0.9
 License:       BSD
 Group:         Applications/Databases
-Source0:       ftp://ftp.postgresql.org/pub/source/v%{version}/%{name}-%{version}.tar.gz
+##Source0:     ftp://ftp.postgresql.org/pub/source/v%{version}/%{name}-%{version}.tar.bz2
+Source0:       ftp://ftp2.pl.postgresql.org/mirrors/ftp.postgresql.org/source/v%{version}/%{name}-%{version}.tar.bz2
+# Source0-md5: 9db7432c431d1570b1f605727daf27bc
 Source1:       %{name}.init
 Source2:       pgsql-Database-HOWTO-html.tar.gz
+# Source2-md5: 5b656ddf1db41965761f85204a14398e
 Source3:       %{name}.sysconfig
-Source4:       pgaccess.desktop
-Source5:       pgaccess.png
-Patch0:                %{name}-no_libnsl.patch
-Patch1:                %{name}-configure.patch
-Patch2:                %{name}-ac_fixes.patch
-Patch3:                %{name}-pg_ctl-silent.patch
-Patch4:                %{name}-DESTDIR.patch
-Patch5:                %{name}-contribfixes.patch
+Patch0:                %{name}-doc.patch
+Patch1:                %{name}-pg_ctl-silent.patch
+Patch2:                %{name}-pg_ctl-nopsql.patch
+Patch3:                %{name}-conf.patch
+Patch4:                %{name}-absolute_dbpaths.patch
+Patch5:                %{name}-link.patch
+Patch6:                %{name}-com_err.patch
+Patch7:                %{name}-ecpg_link.patch
+Patch8:                %{name}-ecpg-includedir.patch
+Patch9:                %{name}-contrib_install.patch
+Patch10:       %{name}-tsearch2-compound_word_support_20031210.patch
+Patch11:       %{name}-ssl-libpq-mem-leak-1.patch
 Icon:          postgresql.xpm
 URL:           http://www.postgresql.org/
-BuildRequires: XFree86-devel
 BuildRequires: autoconf
 BuildRequires: automake
-BuildRequires: tcl-devel >= 8.3.2
-BuildRequires: tk-devel >= 8.3.2
-BuildRequires: readline-devel >= 4.2
+BuildRequires: bison >= 1.875
+%{?with_kerberos5:BuildRequires:       heimdal-devel}
 BuildRequires: ncurses-devel >= 5.0
-BuildRequires: openssl-devel >= 0.9.6a
-BuildRequires: perl-devel >= 5.6
-BuildRequires: python-devel >= 2.2
-BuildRequires: rpm-perlprov
+BuildRequires: openssl-devel >= 0.9.7c
+BuildRequires: pam-devel
+%{?with_perl:BuildRequires:    perl-devel}
+%{?with_python:BuildRequires:  python-devel >= 2.3}
+BuildRequires: readline-devel >= 4.2
 BuildRequires: rpm-pythonprov
+%{?with_tcl:BuildRequires:     tcl-devel >= 8.4.3}
+%{?with_tcl:BuildRequires:     tk-devel >= 8.4.3}
 BuildRequires: zlib-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-Prereq:                /sbin/chkconfig
-Prereq:                rc-scripts
-Prereq:                %{name}-clients = %{version}
-Prereq:                %{name}-libs = %{version}
+PreReq:                rc-scripts
+PreReq:                %{name}-clients = %{version}
+PreReq:                %{name}-libs = %{version}
 Requires(pre): /usr/bin/getgid
 Requires(pre): /bin/id
 Requires(pre): /usr/sbin/groupadd
 Requires(pre): /usr/sbin/useradd
 Requires(pre): /usr/sbin/usermod
+Requires(post,preun):  /sbin/chkconfig
 Obsoletes:     postgresql-server
 Obsoletes:     postgresql-test
 
@@ -215,12 +236,74 @@ desenvolvimento do PostgreSQL. O coordenador atual 
 (scrappy@postgreSQL.org). Esta equipe é agora responsável pelo
 desenvolvimento atual e futuro do PostgreSQL.
 
+%description -l ru
+PostgreSQL - ÓÉÓÔÅÍÁ ÕÐÒÁ×ÌÅÎÉÑ ÂÁÚÁÍÉ ÄÁÎÎÙÈ (ÐÒÅÖÄÅ ÉÚ×ÅÓÔÎÁÑ ËÁË
+Postgres, ÐÏÔÏÍ ËÁË Postgres95).
+
+PostgreSQL - ÜÔÏ ÒÁÓÛÉÒÅÎÎÁÑ ×ÅÒÓÉÑ ÓÉÓÔÅÍÙ ÕÐÒÁ×ÌÅÎÉÑ ÂÁÚÁÍÉ ÄÁÎÎÙÈ
+POSTGRES, ÉÓÓÌÅÄÏ×ÁÔÅÌØÓËÏÇÏ ÐÒÏÔÏÔÉÐÁ DBMS ÓÌÅÄÕÀÝÅÊ ÇÅÎÅÒÁÃÉÉ.
+óÏÈÒÁÎÑÑ ÍÏÝÎÕÀ ÍÏÄÅÌØ ÄÁÎÎÙÈ É ÂÏÇÁÔÙÊ ÎÁÂÏÒ ÔÉÐÏ× ÄÁÎÎÙÈ POSTGRES,
+ÏÎÁ ÚÁÍÅÎÑÅÔ ÑÚÙË ÚÁÐÒÏÓÏ× PostQuel ÒÁÓÛÉÒÅÎÎÙÍ ÎÁÂÏÒÏÍ SQL.
+PostgreSQL ÂÅÓÐÌÁÔÅΠɠÐÏÓÔÁ×ÌÑÅÔÓÑ × ×ÉÄÅ ÐÏÌÎÏÇÏ ËÏÍÐÌÅËÔÁ ÉÓÈÏÄÎÙÈ
+ÔÅËÓÔÏ×.
+
+PostgreSQL ÒÁÚÒÁÂÁÔÙ×ÁÌÓÑ ËÏÍÁÎÄÏÊ Internet-ÒÁÚÒÁÂÏÔÞÉËÏ×, ÐÏÄÐÉÓÁÎÎÙÈ
+ÎÁ ÓÐÉÓÏË ÒÁÓÓÙÌËÉ, ÐÏÓ×ÑÝÅÎÎÙÊ ÒÁÚÒÁÂÏÔËÅ PostgreSQL. ÷ ÎÁÓÔÏÑÝÅÅ
+×ÒÅÍÑ ËÏÏÒÄÉÎÁÔÏÒÏÍ Ñ×ÌÑÅÔÓÑ Marc G. Fournier
+(scrappy@postgreSQL.org). üÔÁ ËÏÍÁÎÄÁ × ÎÁÓÔÏÑÝÅÅ ×ÒÅÍÑ ÏÔ×ÅÞÁÅÔ ÚÁ
+×ÓÅ ÔÅËÕÝÉÅ É ÂÕÄÕÝÉÅ ÒÁÚÒÁÂÏÔËÉ PostgreSQL.
+
+á×ÔÏÒÁÍÉ PostgreSQL 1.01 ÂÙÌÉ Andrew Yu É Jolly Chen. íÎÏÇÉÅ ×ÎÅÓÌÉ
+Ó×ÏÊ ×ËÌÁÄ × ÐÏÒÔÉÒÏ×ÁÎÉÅ, ÔÅÓÔÉÒÏ×ÁÎÉÅ, ÏÔÌÁÄËÕ É ÕÌÕÞÛÅÎÉÅ ËÏÄÁ.
+ïÒÉÇÉÎÁÌØÎÙÊ ËÏÄ Postgres, ÏÔ ËÏÔÏÒÏÇÏ ÐÒÏÉÚÏÛÅÌ PostgreSQL, ÂÙÌ
+ÓÏÚÄÁΠÕÓÉÌÉÑÍÉ ÓÔÕÄÅÎÔÏ×, ÁÓÐÉÒÁÎÔÏ× É ÐÅÒÓÏÎÁÌÁ, ÒÁÂÏÔÁÀÝÅÇÏ ÐÏÄ
+ÒÕËÏ×ÏÄÓÔ×ÏÍ ÐÒÏÆÅÓÓÏÒÁ Michael Stonebraker × University of
+California, Berkeley.
+
+ïÒÉÇÉÎÁÌØÎÏÅ ÎÁÚ×ÁÎÉÅ ðï × Berkeley ÂÙÌÏ Postgres. ëÏÇÄÁ × 1995 ÇÏÄÕ
+ÂÙÌÁ ÄÏÂÁ×ÌÅÎÁ ÆÕÎËÃÉÏÎÁÌØÎÏÓÔØ SQL, ÎÁÚ×ÁÎÉÅ ÉÚÍÅÎÉÌÏÓØ ÎÁ
+Postgres95. ÷ ËÏÎÃÅ 1996 ÇÏÄÁ ÏÎÏ ÅÝÅ ÒÁÚ ÉÚÍÅÎÉÌÏÓØ É ÔÅÐÅÒØ ÜÔÏ
+PostgreSQL.
+
+PostgreSQL ÒÁÂÏÔÁÅÔ ÎÁ Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD
+É ÂÏÌØÛÉÎÓÔ×Å ÄÒÕÇÉÈ ÒÁÚÎÏ×ÉÄÎÏÓÔÅÊ Unix.
+
 %description -l tr
 PostgreSQL, POSTGRES'den türemiþ bir veri tabaný yönetim sistemidir
 (DBMS). Güçlü veri modeli ve zengin POSTGRES veri tiplerini
 desteklerken SQL'in geniþletilmiþ bir altkümesi yerine PostQuel
 sorgulama dilini koyar.
 
+%description -l uk
+PostgreSQL - ÓÉÓÔÅÍÁ ËÅÒÕ×ÁÎÎÑ ÂÁÚÁÍÉ ÄÁÎÉÈ (ÒÁΦ۠צÄÏÍÁ ÑË Postgres,
+ÐÏԦ͠ÑË Postgres95).
+
+PostgreSQL - ÃÅ ÒÏÚÛÉÒÅÎÁ ×ÅÒӦѠÓÉÓÔÅÍÉ ËÅÒÕ×ÁÎÎÑ ÂÁÚÁÍÉ ÄÁÎÉÈ
+POSTGRES, ÄÏÓ̦ÄÎÉÃØËÏÇÏ ÐÒÏÔÏÔÉÐÕ DBMS ÎÁÓÔÕÐÎϧ ÇÅÎÅÒÁæ§.
+úÂÅÒ¦ÇÁÀÞÉ ÐÏÔÕÖÎÕ ÍÏÄÅÌØ ÄÁÎÉÈ ÔÁ ÂÁÇÁÔÉÊ ÎÁ¦ҠÔÉЦנÄÁÎÉÈ POSTGRES,
+×ÏÎÁ ÚÁͦÎÀ¤ ÍÏ×Õ ÚÁÐÉԦנPostQuel ÒÏÚÛÉÒÅÎÉÍ ÎÁÂÏÒÏÍ SQL. PostgreSQL
+ÂÅÚËÏÛÔÏ×ÎÁ ÔÁ ÐÏÓÔÁ×ÌѤÔØÓÑ Õ ×ÉÇÌÑĦ ÐÏ×ÎÏÇÏ ËÏÍÐÌÅËÔÕ ×ÉȦÄÎÉÈ
+ÔÅËÓÔ¦×.
+
+PostgreSQL ÒÏÚÒÏÂÌѤÔØÓÑ ËÏÍÁÎÄÏÀ Internet-ÐÒÏÇÒÁͦÓÔ¦×, ÕÞÁÓÎÉ˦×
+ÓÐÉÓËÕ ÒÏÚÓÉÌËÉ, ÐÒÉÓ×ÑÞÅÎÏÇÏ ÒÏÚÒÏÂæ PostgreSQL. îÁÒÁÚ¦
+ËÏÏÒÄÉÎÁÔÏÒÏÍ ¤ Marc G. Fournier (scrappy@postgreSQL.org). ãÑ ËÏÍÁÎÄÁ
+צÄÐÏצÄÁ¤ ÚÁ ×Ó¦ ÐÏÔÏÞΦ ÔÁ ÍÁÊÂÕÔΦ ÒÏÚÒÏÂËÉ PostgreSQL.
+
+á×ÔÏÒÁÍÉ PostgreSQL 1.01 ÂÕÌÉ Andrew Yu ÔÁ Jolly Chen. âÁÇÁÔÏ ÌÀÄÅÊ
+×ÎÅÓÌÉ Óצʠ×ÎÅÓÏË × ÐÏÒÔÕ×ÁÎÎÑ, ÔÅÓÔÕ×ÁÎÎÑ, ×¦ÄÌÁÄËÕ ÔÁ ÐÏËÒÁÝÅÎÎÑ
+ËÏÄÕ. ïÒÉǦÎÁÌØÎÉÊ ËÏÄ Postgres, ×¦Ä ÑËÏÇÏ ÐÏÈÏÄÉÔØ PostgreSQL, ÂÕ×
+ÓÔ×ÏÒÅÎÉÊ ÚÕÓÉÌÌÑÍÉ ÓÔÕÄÅÎÔ¦×, ÁÓЦÒÁÎԦנÔÁ ÐÅÒÓÏÎÁÌÕ, ÑËÉÊ ÐÒÁÃÀ×Á×
+ЦĠËÅÒ¦×ÎÉÃÔ×ÏÍ ÐÒÏÆÅÓÏÒÁ Michael Stonebraker × University of
+California, Berkeley.
+
+ïÒÉǦÎÁÌØÎÁ ÎÁÚ×Á ÐÒÏÇÒÁÍÉ × Berkeley ÂÕÌÁ Postgres. ëÏÌÉ × 1995 ÒÏæ
+ÂÕÌÏ ÄÏÄÁÎÏ ÆÕÎËæÏÎÁÌØΦÓÔØ SQL, ÎÁÚ×Á ÚͦÎÉÌÁÓÑ ÎÁ Postgres95. ÷
+˦Îæ 1996 ÒÏËÕ ×ÏÎÁ ÝÅ ÒÁÚ ÚͦÎÉÌÁÓØ ¦ ÚÁÒÁÚ ÃÅ PostgreSQL.
+
+PostgreSQL ÐÒÁÃÀ¤ ÎÁ Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD
+ÔÁ Â¦ÌØÛÏÓÔ¦ ¦ÎÛÉÈ Ò¦ÚÎÏ×ÉĦנUnix.
+
 %package devel
 Summary:       PostgreSQL development header files and libraries
 Summary(de):   PostgreSQL-Entwicklungs-Header-Dateien und Libraries
@@ -228,7 +311,9 @@ Summary(es):        Archivos de inclusi
 Summary(fr):   En-têtes et bibliothèques de développement PostgreSQL
 Summary(pl):   PostgreSQL - pliki nag³ówkowe i biblioteki
 Summary(pt_BR):        Arquivos de inclusão e bibliotecas para desenvolvimento com o PostgreSQL
+Summary(ru):   PostgreSQL - ÈÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ ÒÁÚÒÁÂÏÔÞÉËÁ
 Summary(tr):   PostgreSQL baþlýk dosyalarý ve kitaplýklar
+Summary(uk):   PostgreSQL - ÈÅÄÅÒÉ ÔÁ Â¦Â̦ÏÔÅËÉ ÐÒÏÇÒÁͦÓÔÁ
 Group:         Development/Libraries
 Requires:      %{name}-libs = %{version}
 
@@ -261,10 +346,18 @@ Este pacote cont
 compilação de aplicativos que se comunicam diretamente com o servidor
 backend PostgreSQL.
 
+%description devel -l ru
+üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÈÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÓÂÏÒËÉ
+ÐÒÉÌÏÖÅÎÉÊ, ÎÅÐÏÓÒÅÄÓÔ×ÅÎÎÏ ×ÚÁÉÍÏÄÅÊÓÔ×ÕÀÝÉÈ Ó ÓÅÒ×ÅÒÏÍ PostgreSQL.
+
 %description devel -l tr
 Bu paket, PostgreSQL sunucusuyla konuþacak yazýlýmlar geliþtirmek için
 gereken baþlýk dosyalarýný ve kitaplýklarý içerir.
 
+%description devel -l uk
+ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ÈÅÄÅÒÉ ÔÁ Â¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ
+ÐÒÏÇÒÁÍ, Ñ˦ ÂÅÚÐÏÓÅÒÅÄÎØÏ ×ÚÁ¤ÍÏĦÀÔØ Ú ÓÅÒ×ÅÒÏÍ PostgreSQL.
+
 %package backend-devel
 Summary:       PostgreSQL backend development header files
 Summary(pl):   PostgreSQL - pliki nag³ówkowe dla backendu
@@ -284,6 +377,8 @@ Summary:    Clients needed to access a PostgreSQL server
 Summary(es):   Clientes necesarios para acceder al servidor PostgreSQL
 Summary(pl):   Klienci wymagani do dostêpu do serwera PostgreSQL
 Summary(pt_BR):        Clientes necessários para acessar o servidor PostgreSQL
+Summary(ru):   ëÌÉÅÎÔÓËÉÅ ÐÒÏÇÒÁÍÍÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÄÏÓÔÕÐÁ Ë ÓÅÒ×ÅÒÕ PostgreSQL
+Summary(uk):   ë̦¤ÎÔÓØ˦ ÐÒÏÇÒÁÍÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÄÏÓÔÕÐÕ ÄÏ ÓÅÒ×ÅÒÁ PostgreSQL
 Group:         Applications/Databases
 Requires:      %{name}-libs = %{version}
 
@@ -307,55 +402,24 @@ polece
 Este pacote inclui somente os clientes necessários para acessar um
 servidor PostgreSQL. O servidor está no pacote principal.
 
-%package perl
-Summary:       Perl interface to PostgreSQL database
-Summary(es):   Módulo Perl para acceder un servidor PostgreSQL
-Summary(pl):   Interfejs dla Perla umo¿liwiaj±cy dostêp do baz PostgreSQL
-Summary(pt_BR):        Módulo Perl para acesso ao servidor PostgreSQL
-Group:         Applications/Databases
-Requires:      perl >= 5.004
-Requires:      %{name}-libs = %{version}
+%description clients -l ru
+üÔÏÔ ÐÁËÅÔ ×ËÌÀÞÁÅÔ ÔÏÌØËÏ ËÌÉÅÎÔÓËÉÅ ÐÒÏÇÒÁÍÍÙ É ÂÉÂÌÉÏÔÅËÉ,
+ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÄÏÓÔÕÐÁ Ë ÓÅÒ×ÅÒÕ PostgreSQL. óÅÒ×ÅÒ ×ÈÏÄÉÔ × ÇÌÁ×ÎÙÊ
+ÐÁËÅÔ. åÓÌÉ ×ÁÍ ÎÁÄÏ ÔÏÌØËÏ ÒÁÂÏÔÁÔØ Ó ÄÒÕÇÉÍ ÓÅÒ×ÅÒÏÍ PostgreSQL, ÜÔÏ
+ÅÄÉÎÓÔ×ÅÎÎÙÊ ÐÁËÅÔ, ËÏÔÏÒÙÊ ×ÁÍ ÎÁÄÏ ÕÓÔÁÎÏ×ÉÔØ.
 
-%description perl
-This package includes only perl modules needed to access an PostgreSQL
-server.
+ôÅÐÅÒØ ÐÁËÅÔÙ Ó ÂÉÂÌÉÏÔÅËÁÍÉ ÄÌÑ ÒÁÚÎÙÈ ÑÚÙËÏ× ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ (C,
+C++, PERL É TCL) ÒÁÚÄÅÌÅÎÙ. üÔÏÔ ÐÁËÅÔ ×ËÌÀÞÁÅÔ ÔÏÌØËÏ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ
+ÑÚÙËÁ C.
 
-%description perl -l es
-Módulo Perl para acceder un servidor PostgreSQL
+%description clients -l uk
+ãÅÊ ÐÁËÅԠͦÓÔÉÔØ Ô¦ÌØËÉ Ë̦¤ÎÔÓØ˦ ÐÒÏÇÒÁÍÉ ÔÁ Â¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ
+ÄÌÑ ÄÏÓÔÕÐÕ ÄÏ ÓÅÒ×ÅÒÁ PostgreSQL. óÅÒ×ÅҠͦÓÔÉÔØÓÑ × ÇÏÌÏ×ÎÏÍÕ
+ÐÁËÅÔ¦. ñËÝÏ ×ÁÍ ÐÏÔÒ¦ÂÎÏ ÐÒÁÃÀ×ÁÔÉ Ú ¦ÎÛÉÍ ÓÅÒ×ÅÒÏÍ PostgreSQL, ÃÅ
+¤ÄÉÎÉÊ ÐÁËÅÔ, ÑËÉÊ ×ÁÍ ÔÒÅÂÁ ×ÓÔÁÎÏ×ÉÔÉ.
 
-%description perl -l pl
-Pakiet ten zawiera tylko modu³y Perla wymagane dla dostêpu do serwera
-PostgreSQL.
-
-%description perl -l pt_BR
-Módulo Perl para acesso ao servidor PostgreSQL.
-
-%package -n python-postgresql
-Summary:       The python-based client programs needed for accessing a PostgreSQL server
-Summary(es):   Módulo Python para acceder un servidor PostgreSQL
-Summary(pl):   Programy klienckie do dostêpu do serwera PostgreSQL napisane w Pythonie
-Summary(pt_BR):        Módulo Python para acesso ao servidor PostgreSQL.
-Group:         Development/Languages/Python
-Requires:      python >= 2.0
-Requires:      python-mx-DateTime
-Requires:      %{name}-libs = %{version}
-Obsoletes:     python-PyGreSQL
-Obsoletes:     postgresql-python
-
-%description -n python-postgresql
-postgresql-python includes the python-based client programs and client
-libraries that you'll need to access a PostgreSQL database management
-system server.
-
-%description -n python-postgresql -l es
-Módulo Python para acceder un servidor PostgreSQL
-
-%description -n python-postgresql -l pl
-Pakiet ten zawiera napisane w Pythonie programy i biblioteki klienckie
-do dostêpu do serwera baz danych PostgreSQL.
-
-%description -n python-postgresql -l pt_BR
-Módulo Python para acesso ao servidor PostgreSQL.
+ôÅÐÅÒ ÐÁËÅÔɠڠ¦Â̦ÏÔÅËÁÍÉ ÄÌÑ Ò¦ÚÎÉÈ ÍÏ× ÐÒÏÇÒÁÍÕ×ÁÎÎÑ (C, C++, PERL
+¦ TCL) ÒÏÚĦÌÅΦ. ãÅÊ ÐÁËÅԠͦÓÔÉÔØ Ô¦ÌØËɠ¦Â̦ÏÔÅËÉ ÄÌÑ ÍÏ×É C.
 
 %package doc
 Summary:       Documentation for PostgreSQL
@@ -375,6 +439,7 @@ Summary:    PostgreSQL libraries
 Summary(es):   Biblioteca compartida del PostgreSQL
 Summary(pl):   Biblioteki dzielone programu PostgreSQL
 Summary(pt_BR):        Biblioteca compartilhada do PostgreSQL
+Summary(zh_CN):        PostgreSQL ¿Í»§ËùÐèÒªµÄ¹²Ïí¿â
 Group:         Libraries
 
 %description libs
@@ -382,20 +447,45 @@ PostgreSQL shared libraries.
 
 %description libs -l es
 Este paquete contiene la biblioteca compartida para acceso al
-postgresql.
+PostgreSQL.
 
 %description libs -l pl
 Biblioteki dzielone programu PostgreSQL.
 
 %description libs -l pt_BR
 Este pacote contém a biblioteca compartilhada para acesso ao
-postgresql.
+PostgreSQL.
+
+%package ecpg
+Summary:       Embedded SQL in C interface
+Summary(pl):   Interfejs wbudowanego SQL-a w jêzyk C
+Group:         Libraries
+
+%description ecpg
+Embedded SQL in C interface.
+
+%description ecpg -l pl
+Interfejs wbudowanego SQL-a w jêzyk C.
+
+%package ecpg-devel
+Summary:       Embedded SQL in C interface files
+Summary(pl):   Pliki programistyczne interfejsu wbudowanego SQL-a w jêzyk C
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}
+
+%description ecpg-devel
+Embedded SQL in C interface files.
+
+%description ecpg-devel -l pl
+Pliki programistyczne interfejsu wbudowanego SQL-a w jêzyk C.
 
 %package static
 Summary:       PostgreSQL static libraries
 Summary(es):   Bibliotecas estaticas PostgreSQL
 Summary(pl):   Biblioteki statyczne programu PostgreSQL
 Summary(pt_BR):        Bibliotecas estáticas PostgreSQL
+Summary(ru):   óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ Ó PostgreSQL
+Summary(uk):   óÔÁÔÉÞΦ Â¦Â̦ÏÔÅËÉ ÄÌÑ ÐÒÏÇÒÁÍÕ×ÁÎÎÑ Ú PostgreSQL
 Group:         Development/Libraries
 Requires:      %{name}-devel = %{version}
 
@@ -415,145 +505,90 @@ Este pacote cont
 de aplicativos que se comunicam diretamente com o servidor backend
 PostgreSQL.
 
-%package c++
-Summary:       C++ interface to PostgreSQL
-Summary(pl):   Interfejs C++ do PostgreSQL
-Group:         Applications/Databases
-Requires:      %{name}-libs = %{version}
-
-%description c++
-This package includes library for C++ interface to PostgreSQL.
-
-%description c++ -l pl
-Pakiet ten zawiera biblioteki dla interfejsu C++ do PostgreSQL.
-
-%package c++-devel
-Summary:       C++ interface to PostgreSQL - development part
-Summary(pl):   Interfejs C++ do PostgreSQL - cze¶æ programistyczna
-Group:         Applications/Databases
-Requires:      %{name}-c++ = %{version}
-Requires:      %{name}-devel = %{version}
-
-%description c++-devel
-This package includes library and header files for C++ interface.
-
-%description c++-devel -l pl
-Pakiet ten zawiera biblioteki i pliki nag³ówkowe dla interfejsu C++.
-
-%package c++-static
-Summary:       C++ interface to PostgreSQL - static libraries
-Summary(pl):   Interfejs C++ do PostgreSQL - biblioteki statyczne
-Group:         Applications/Databases
-Requires:      %{name}-c++-devel = %{version}
-
-%description c++-static
-This package includes static library for interface C++.
+%description static -l ru
+üÔÏ ÏÔÄÅÌØÎÙÊ ÐÁËÅÔ ÓÏ ÓÔÁÔÉÞÅÓËÉÍÉ ÂÉÂÌÉÏÔÅËÁÍÉ, ËÏÔÏÒÙÅ ÂÏÌØÛÅ ÎÅ
+×ÈÏÄÑÔ × %{name}-devel.
 
-%description c++-static -l pl
-Pakiet ten zawiera biblioteki statyczne dla interfejsu C++.
-
-%package odbc
-Summary:       ODBC interface to PostgreSQL
-Summary(es):   Driver ODBC para acceder un servidor PostgreSQL
-Summary(pl):   Interfejs ODBC do PostgreSQL
-Summary(pt_BR):        Driver ODBC necessário para acessar um servidor PostgreSQL
-Group:         Applications/Databases
-Requires:      %{name}-libs = %{version}
-
-%description odbc
-This package includes library for interface ODBC.
-
-%description odbc -l es
-Driver para acceder un servidor PostgreSQL, a través de ODBC.
-
-%description odbc -l pl
-Pakiet ten zawiera biblioteki dla interfejsu ODBC.
-
-%description odbc -l pt_BR
-Driver ODBC necessário para acessar um servidor PostgreSQL.
-
-%package odbc-devel
-Summary:       ODBC interface to PostgreSQL - development part
-Summary(pl):   Interfejs ODBC do PostgreSQL - cze¶æ programistyczna
-Group:         Applications/Databases
-Requires:      %{name}-odbc = %{version}
-Requires:      %{name}-devel = %{version}
-
-%description odbc-devel
-This package includes library and header files for interface ODBC.
-
-%description odbc-devel -l pl
-Pakiet ten zawiera biblioteki i pliki nag³ówkowe dla interfejsu ODBC.
-
-%package odbc-static
-Summary:       ODBC interface to PostgreSQL - static libraries
-Summary(pl):   Interfejs ODBC do PostgreSQL - biblioteki statyczne
-Group:         Applications/Databases
-Requires:      %{name}-odbc-devel = %{version}
-
-%description odbc-static
-This package includes static library for interface ODBC.
-
-%description odbc-static -l pl
-Pakiet ten zawiera biblioteki statyczne dla interfejsu ODBC.
-
-%package -n pgaccess
-Summary:       A free graphical database management tool for PostgreSQL
-Summary(pl):   Graficzne narzêdzie do obs³ugi baz danych PostgreSQL
-Group:         Applications/Databases
-Requires:      %{name}-tcl = %{version}
-
-%description -n pgaccess
-A free graphical database management tool for PostgreSQL.
-
-%description -n pgaccess -l pl
-Graficzne narzêdzie do obs³ugi baz danych PostgreSQL.
+%description static -l uk
+ãÅ ÏËÒÅÍÉÊ ÐÁËÅÔ Ú¦ ÓÔÁÔÉÞÎÉÍɠ¦Â̦ÏÔÅËÁÍÉ, Ñ˦ Â¦ÌØÛ ÎÅ ×ÈÏÄÑÔØ ×
+%{name}-devel.
 
 %package tcl
-Summary:       tcl interface for PostgreSQL
-Summary(es):   Bibliotecas y shell TCL para acceder un servidor PostgreSQL
-Summary(pl):   Interfejs tcl dla PostgreSQL
-Summary(pt_BR):        Bibliotecas e shell para programas em TCL acessarem o servidor PostgreSQL
+Summary:       Tcl interface for PostgreSQL
+Summary(es):   Bibliotecas y shell Tcl para acceder un servidor PostgreSQL
+Summary(pl):   Interfejs Tcl dla PostgreSQL
+Summary(pt_BR):        Bibliotecas e shell para programas em Tcl acessarem o servidor PostgreSQL
+Summary(ru):   âÉÂÌÉÏÔÅËÉ ÄÌÑ ÄÏÓÔÕÐÁ Ë PostgreSQL ÉÚ Tcl
+Summary(uk):   â¦Â̦ÏÔÅËÉ ÄÌÑ ÄÏÓÔÕÐÕ ÄÏ PostgreSQL Ú Tcl
+Summary(zh_CN):        Ò»¸ö Tcl ¿âºÍ PostgreSQL µÄ PL/Tcl ±à³ÌÓïÑÔ
 Group:         Development/Languages/Tcl
 Requires:      %{name}-libs = %{version}
 
 %description tcl
-tcl interface for PostgreSQL.
+Tcl interface for PostgreSQL.
 
 %description tcl -l es
-Bibliotecas y shell TCL para acceder un servidor PostgreSQL
+Bibliotecas y shell Tcl para acceder un servidor PostgreSQL
 
 %description tcl -l pl
-Interfejs tcl dla PostgreSQL.
+Interfejs Tcl dla PostgreSQL.
 
 %description tcl -l pt_BR
-Bibliotecas e shell para programas em TCL acessarem o servidor
-PostgreSQL
+Bibliotecas e shell para programas em Tcl acessarem o servidor
+PostgreSQL.
+
+%description tcl -l ru
+libpgtcl - API ÄÌÑ ÄÏÓÔÕÐÁ Ë ÂÁÚÅ ÄÁÎÎÙÈ PostgreSQL ÉÚ ÑÚÙËÁ Tcl.
+
+%description tcl -l uk
+libpgtcl - API ÄÌÑ ÄÏÓÔÕÐÕ ÄÏ ÂÁÚÉ ÄÁÎÉÈ PostgreSQL Ú ÍÏ×É Tcl.
 
 %package tcl-devel
-Summary:       Development part of tcl interface for PostgreSQL
-Summary(pl):   Czê¶æ dla programistów interfejsu tcl dla PostgreSQL
+Summary:       Development part of Tcl interface for PostgreSQL
+Summary(pl):   Czê¶æ dla programistów interfejsu Tcl dla PostgreSQL
+Summary(ru):   èÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÒÁÚÒÁÂÏÔÏË Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ libpgtcl (Tcl ÉÎÔÅÒÆÅÊÓ ÄÌÑ PostgreSQL)
+Summary(uk):   èÅÄÅÒÉ ÔÁ Â¦Â̦ÏÔÅËÉ ÄÌÑ ÒÏÚÒÏÂÏË Ú ×ÉËÏÒÉÓÔÁÎÎÑÍ libpgtcl (Tcl-¦ÎÔÅÒÆÅÊÓ ÄÌÑ PostgreSQL)
 Group:         Development/Languages/Tcl
 Requires:      %{name}-tcl = %{version}
 Requires:      %{name}-devel = %{version}
 
 %description tcl-devel
-Development part of tcl interface for PostgreSQL.
+Development part of Tcl interface for PostgreSQL.
 
 %description tcl-devel -l pl
-Czê¶æ interfejsu tcl dla PostgreSQL przeznaczona dla programistów.
+Czê¶æ interfejsu Tcl dla PostgreSQL przeznaczona dla programistów.
+
+%description tcl-devel -l ru
+üÔÏ ÐÁËÅÔ ÒÁÚÒÁÂÏÔÞÉËÁ ÄÌÑ ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ Ó libpgtcl. ïΠ×ËÌÀÞÁÅÔ
+ÈÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÉÓÐÏÌØÚÏ×ÁÎÉÑ × ÐÒÏÇÒÁÍÍÁÈ, ËÏÔÏÒÙÅ ÉÓÐÏÌØÚÕÀÔ
+ËÏÄ ÉÌÉ API libtcl (Tcl ÉÎÔÅÒÆÅÊÓ ÄÌÑ PostgreSQL).
+
+%description tcl-devel -l uk
+ãÅ ÐÁËÅÔ ÐÒÏÇÒÁͦÓÔÁ ÄÌÑ ÐÒÏÇÒÁÍÕ×ÁÎÎÑ Ú libpgtcl. ÷¦Î Í¦ÓÔÉÔØ ÈÅÄÅÒÉ
+ÔÁ Â¦Â̦ÏÔÅËÉ ÄÌÑ ×ÉËÏÒÉÓÔÁÎÎÑ × ÐÒÏÇÒÁÍÁÈ, Ñ˦ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ ËÏÄ ÁÂÏ
+API libtcl (Tcl-¦ÎÔÅÒÆÅÊÓÕ ÄÌÑ PostgreSQL).
 
 %package tcl-static
-Summary:       Static libraries of tcl interface for PostgreSQL
-Summary(pl):   Biblioteki statyczne interfejsu tcl dla PostgreSQL
+Summary:       Static libraries of Tcl interface for PostgreSQL
+Summary(pl):   Biblioteki statyczne interfejsu Tcl dla PostgreSQL
+Summary(ru):   óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ Ó libpgtcl
+Summary(uk):   óÔÁÔÉÞΦ Â¦Â̦ÏÔÅËÉ ÄÌÑ ÐÒÏÇÒÁÍÕ×ÁÎÎÑ Ú libpgtcl
 Group:         Development/Languages/Tcl
 Requires:      %{name}-tcl-devel = %{version}
 
 %description tcl-static
-Static libraries of tcl interface for PostgreSQL.
+Static libraries of Tcl interface for PostgreSQL.
 
-%description tcl-devel -l pl
-Biblioteki statyczne interfejsu tcl dla PostgreSQL.
+%description tcl-static -l pl
+Biblioteki statyczne interfejsu Tcl dla PostgreSQL.
+
+%description tcl-static -l ru
+üÔÏ ÏÔÄÅÌØÎÙÊ ÐÁËÅÔ ÓÏ ÓÔÁÔÉÞÅÓËÉÍÉ ÂÉÂÌÉÏÔÅËÁÍÉ, ËÏÔÏÒÙÅ ÂÏÌØÛÅ ÎÅ
+×ÈÏÄÑÔ × postgresql-tcl-devel.
+
+%description tcl-static -l uk
+ãÅ ÏËÒÅÍÉÊ ÐÁËÅÔ Ú¦ ÓÔÁÔÉÞÎÉÍɠ¦Â̦ÏÔÅËÁÍÉ, ÝϠ¦ÌØÛÅ ÎÅ ×ÈÏÄÑÔØ ÄÏ
+postgresql-tcl-devel.
 
 %package module-plpgsql
 Summary:       PL/pgSQL - PostgreSQL procedural language
@@ -594,7 +629,7 @@ Summary:    PL/perl - PostgreSQL procedural language
 Summary(pl):   PL/perl jêzyk proceduralny bazy danych PostgreSQL
 Group:         Applications/Databases
 Requires:      %{name} = %{version}
-%requires_eq   perl
+%requires_eq   perl-base
 
 %description module-plperl
 From PostgreSQL documentation.
@@ -629,7 +664,7 @@ Summary:    PL/python - PostgreSQL procedural language
 Summary(pl):   PL/python jêzyk proceduralny bazy danych PostgreSQL
 Group:         Applications/Databases
 Requires:      %{name} = %{version}
-%requires_eq   python
+%pyrequires_eq python
 
 %description module-plpython
 From PostgreSQL documentation.
@@ -693,14 +728,48 @@ potrzeby.
 Za pomoc± komendy createlang mo¿na dodaæ wsparcie dla jêzyka
 proceduralnego PL/TCL dla swojej bazy danych.
 
+%package module-pgcrypto
+Summary:       Cryptographic functions for PostgreSQL
+Summary(pl):   Funkcje kryptograficzne dla PostgreSQL
+Group:         Applications/Databases
+Requires:       %{name} = %{version}
+
+%description module-pgcrypto
+Cryptographic functions for PostgreSQL.
+
+%description module-pgcrypto -l pl
+Funkcje kryptograficzne dla PostgreSQL.
+
+%package module-tsearch2
+Summary:       Full text extension for PostgreSQL
+Summary(pl):   Rozszerzenie pe³notekstowe dla PostgreSQL-a
+Group:         Applications/Databases
+Requires:      %{name} = %{version}
+
+%description module-tsearch2
+Implementation of a new data type tsvector - a searchable data type
+with indexed access:
+http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/
+
+%description module-tsearch2 -l pl
+Implementacja nowego typu danych tsvector - typu danych podlegaj±cego
+przeszukiwaniu z dostêpem poprzez indeksy:
+http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/
+
 %prep
-%setup  -q
+%setup -q
 %patch0 -p1
 %patch1 -p1
-%patch2 -p1
+%patch2 -p0
 %patch3 -p1
-%patch4 -p1
+%{?with_absolute_dbpaths:%patch4 -p1}
 %patch5 -p1
+%patch6 -p1
+%patch7 -p1
+%patch8 -p1
+%patch9 -p1
+%patch10 -p1
+%patch11 -p0
 
 tar xzf doc/man*.tar.gz
 
@@ -708,71 +777,68 @@ mkdir doc/unpacked
 tar zxf doc/postgres.tar.gz -C doc/unpacked
 
 # Erase all CVS dir
-rm -fR `find contrib/ -type d -name CVS`
+find contrib -type d -name CVS -exec rm -rf {} \;
 
 %build
 rm -f config/libtool.m4
-aclocal -I config
-autoconf
-%configure \
-       %{!?_without_pgsql_locale:--enable-locale} \
-       %{!?_without_pgsql_multibyte:--enable-multibyte} \
+install /usr/share/automake/config.* config/
+%{__aclocal} -I config
+%{__autoconf}
+%configure CFLAGS="%{rpmcflags} -DNEED_REENTRANT_FUNCS"\
+       %{?with_pgsql_locale:--enable-locale} \
+       %{?with_pgsql_multibyte:--enable-multibyte} \
        --disable-rpath \
+       --enable-nls \
+       --enable-thread-safety \
+       --enable-integer-datetimes \
        --enable-depend \
-       --enable-odbc \
        --enable-recode \
        --enable-syslog \
+       --with-pam \
        --enable-unicode-conversion \
        --with-CXX \
-       --with-tcl \
-       --with-tk \
-       --with-perl \
-       --with-python \
+       %{?with_tcl:--with-tcl} \
+       %{?with_tcl:--with-tk} \
+       %{?with_perl:--with-perl} \
+       %{?with_python:--with-python} \
+       %{?with_kerberos5:--with-krb5=%{_prefix}} \
        --with-openssl \
-       --enable-odbc \
-       --with-odbcinst=%{_sysconfdir} \
        --with-x \
-%{?_with_jdbc: --with-java}
+       %{?with_jdbc:--with-java}
 
 %{__make}
+%{__make} -C contrib/pg_autovacuum
+%{__make} -C contrib/pgcrypto
+%{__make} -C contrib/tsearch2
 %ifnarch sparc sparcv9 sparc64 alpha ppc
-%{!?_without_tests: %{__make} check }
+%{?with_tests:%{__make} check}
 %endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{rc.d/init.d,sysconfig}} \
-        $RPM_BUILD_ROOT{/var/{lib/pgsql,log},%{_pgsqldir}} \
-       $RPM_BUILD_ROOT{%{_applnkdir}/System,%{_pixmapsdir}} \
+       $RPM_BUILD_ROOT{/var/{lib/pgsql,log},%{_pgsqldir}} \
+       $RPM_BUILD_ROOT%{_mandir} \
        $RPM_BUILD_ROOT/home/services/postgres
 
 %{__make} install install-all-headers \
        DESTDIR=$RPM_BUILD_ROOT
 
-%{__make} install -C src/pl/plperl \
-       DESTDIR=$RPM_BUILD_ROOT
+%{?with_perl:%{__make} install -C src/pl/plperl DESTDIR=$RPM_BUILD_ROOT}
 
-touch $RPM_BUILD_ROOT/var/log/pgsql
+%{__make} -C contrib/pg_autovacuum install \
+       DESTDIR=$RPM_BUILD_ROOT
 
-# Move PL/pgSQL procedural language to %{_pgmoduledir}
-( cd $RPM_BUILD_ROOT%{_libdir}
-  mv -f plpgsql.so $RPM_BUILD_ROOT%{_pgmoduledir}
-)
+%{__make} -C contrib/pgcrypto install \
+       DESTDIR=$RPM_BUILD_ROOT
 
-# Move PL/TCL procedural language to %{_pgmoduledir}
-( cd $RPM_BUILD_ROOT%{_libdir}
-  mv -f pltcl.so $RPM_BUILD_ROOT%{_pgmoduledir}
-)
+%{__make} -C contrib/tsearch2 install \
+       DESTDIR=$RPM_BUILD_ROOT
 
-# odbc
-install src/interfaces/odbc/odbcinst.ini $RPM_BUILD_ROOT%{_sysconfdir}
+touch $RPM_BUILD_ROOT/var/log/pgsql
 
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/postgresql
 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/postgresql
-install %{SOURCE4} $RPM_BUILD_ROOT%{_applnkdir}/System
-install %{SOURCE5} $RPM_BUILD_ROOT%{_pixmapsdir}
-
-cp -a man?        $RPM_BUILD_ROOT%{_mandir}
 
 install -d howto
 ( cd howto
@@ -782,31 +848,50 @@ install -d howto
 %py_comp $RPM_BUILD_ROOT%{py_libdir}
 %py_ocomp $RPM_BUILD_ROOT%{py_libdir}
 
-gzip -9nf doc/FAQ doc/README* COPYRIGHT README HISTORY doc/bug.template \
-       src/interfaces/odbc/readme.txt \
-       src/interfaces/odbc/notice.txt
+# find locales
+for f in libpq pg_controldata pg_dump pg_resetxlog pgscripts postgres psql; do
+       %find_lang $f
+done
+# merge locales
+cat pgscripts.lang pg_resetxlog.lang postgres.lang pg_controldata.lang > main.lang
+cat pg_dump.lang psql.lang > clients.lang
 
 %clean
 rm -rf $RPM_BUILD_ROOT
-rm -f /tmp/tmp_perl_info
 
 %pre
+PG_DB_CLUSTERS=""
 if [ -f /etc/sysconfig/postgresql ]; then
-    POSTGRES_DATA_DIR=/var/lib/pgsql
-    . /etc/sysconfig/postgresql
-    if [ -f $POSTGRES_DATA_DIR/PG_VERSION ]; then
-       if [ `cat $POSTGRES_DATA_DIR/PG_VERSION` != '7.2' ]; then
-           echo "Database(s) in older, incompatible format exist in $POSTGRES_DATA_DIR."
-           echo "Dump them and clean $POSTGRES_DATA_DIR, then upgrade postgresql and"
-           echo "restore database(s)."
-        echo
-        echo "Warning for upgrade from version *before* 7.2."
-        echo "Please note, that postgresql module path changed from"
-        echo "/usr/lib/pgsql/module to /usr/lib/postgresql. Change the path"
-        echo "in dump file before restore."
-           exit 1
+       . /etc/sysconfig/postgresql
+       if [ -z "$PG_DB_CLUSTERS" -a -n "$POSTGRES_DATA_DIR" ]; then
+               PG_DB_CLUSTERS="$POSTGRES_DATA_DIR"
+       fi
+fi
+foundold=0
+for pgdir in $PG_DB_CLUSTERS; do
+       if [ -f $pgdir/PG_VERSION ]; then
+               if [ `cat $pgdir/PG_VERSION` != '7.4' ]; then
+                       echo "Found database(s) in older, incompatible format in cluster $pgdir."
+                       foundold=1
+               fi
        fi
-    fi
+done
+if [ "$foundold" = "1" ]; then
+       echo
+       echo "Dump all data from clusters mentioned above (using pg_dump or pg_dumpall)"
+       echo "and clean (or rename) those directories; then upgrade postgresql and"
+       echo "restore all data (using pg_restore or psql)."
+       echo "Remember to stop the daemon before upgrading!"
+       echo
+       echo "Warning for upgrade from version *before* 7.2."
+       echo "Please note, that postgresql module path changed from"
+       echo "/usr/lib/pgsql/module to /usr/lib/postgresql. Change the path"
+       echo "in dump file before restore."
+       echo
+       echo "Warning for upgrade from version *before* 7.3."
+       echo "Reading following webpage is encouraged:"
+       echo "http://www.ca.postgresql.org/docs/momjian/upgrade_tips_7.3."
+       exit 1
 fi
 
 getgid postgres >/dev/null 2>&1 || /usr/sbin/groupadd -g 88 -r -f postgres
@@ -820,9 +905,8 @@ fi
 
 %post
 /sbin/chkconfig --add postgresql
-
 if [ -f /var/lock/subsys/postgresql ]; then
-       /etc/rc.d/init.d/postgresql restart >&2
+       /etc/rc.d/init.d/postgresql restart >&2 || :
 else
        echo "Run \"/etc/rc.d/init.d/postgresql start\" to start postgresql server."
 fi
@@ -838,46 +922,58 @@ fi
 %post   libs -p /sbin/ldconfig
 %postun libs -p /sbin/ldconfig
 
+%post   ecpg -p /sbin/ldconfig
+%postun ecpg -p /sbin/ldconfig
+
 %post   tcl -p /sbin/ldconfig
 %postun tcl -p /sbin/ldconfig
 
-%post   c++ -p /sbin/ldconfig
-%postun c++ -p /sbin/ldconfig
-
-%post   odbc -p /sbin/ldconfig
-%postun odbc -p /sbin/ldconfig
-
-%files
+%files -f main.lang
 %defattr(644,root,root,755)
+%doc contrib/pg_autovacuum/README*
+%doc doc/FAQ* doc/README* doc/bug.template
+%doc COPYRIGHT README HISTORY
 %attr(754,root,root) /etc/rc.d/init.d/*
 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/sysconfig/*
 
+%attr(755,root,root) %{_bindir}/clusterdb
 %attr(755,root,root) %{_bindir}/createdb
+%attr(755,root,root) %{_bindir}/createlang
 %attr(755,root,root) %{_bindir}/createuser
 %attr(755,root,root) %{_bindir}/dropdb
+%attr(755,root,root) %{_bindir}/droplang
 %attr(755,root,root) %{_bindir}/dropuser
 %attr(755,root,root) %{_bindir}/initdb
 %attr(755,root,root) %{_bindir}/initlocation
+%attr(755,root,root) %{_bindir}/ipcclean
+%attr(755,root,root) %{_bindir}/pg_autovacuum
+%attr(755,root,root) %{_bindir}/pg_controldata
 %attr(755,root,root) %{_bindir}/pg_ctl
-%attr(755,root,root) %{_bindir}/pg_config
 %attr(755,root,root) %{_bindir}/pg_encoding
-%attr(755,root,root) %{_bindir}/pg_passwd
+%attr(755,root,root) %{_bindir}/pg_resetxlog
 %attr(755,root,root) %{_bindir}/postgres
 %attr(755,root,root) %{_bindir}/postmaster
-%attr(755,root,root) %{_bindir}/ipcclean
-%attr(755,root,root) %{_bindir}/createlang
-%attr(755,root,root) %{_bindir}/droplang
+
+%attr(755,root,root) %{_pgmoduledir}/ascii*
+%attr(755,root,root) %{_pgmoduledir}/cyrillic*
+%attr(755,root,root) %{_pgmoduledir}/euc*
+%attr(755,root,root) %{_pgmoduledir}/latin*
+%attr(755,root,root) %{_pgmoduledir}/utf*
 
 %dir %{_pgsqldir}
 %dir %{_pgmoduledir}
+%dir %{_datadir}/postgresql
 %{_datadir}/postgresql/*.bki
 %{_datadir}/postgresql/*.sample
 %{_datadir}/postgresql/*.description
+%{_datadir}/postgresql/*.sql
+%{_datadir}/postgresql/*.txt
 
 %attr(700,postgres,postgres) /home/services/postgres
 %attr(700,postgres,postgres) %dir /var/lib/pgsql
 %attr(640,postgres,postgres) %config(noreplace) %verify(not md5 size mtime) /var/log/pgsql
 
+%{_mandir}/man1/clusterdb.1*
 %{_mandir}/man1/createdb.1*
 %{_mandir}/man1/createlang.1*
 %{_mandir}/man1/createuser.1*
@@ -886,46 +982,47 @@ fi
 %{_mandir}/man1/dropuser.1*
 %{_mandir}/man1/initdb.1*
 %{_mandir}/man1/initlocation.1*
-%{_mandir}/man1/pg_passwd.1*
+%{_mandir}/man1/ipcclean.1*
+%{_mandir}/man1/pg_controldata.1*
 %{_mandir}/man1/pg_ctl.1*
-%{_mandir}/man1/pg_config.1*
+%{_mandir}/man1/pg_resetxlog.1*
 %{_mandir}/man1/postgres.1*
 %{_mandir}/man1/postmaster.1*
-%{_mandir}/man1/ipcclean.1*
-
-%doc contrib
-%doc doc/FAQ* doc/README*
-%doc COPYRIGHT.gz README.gz HISTORY.gz doc/bug.template.gz
 
 %files doc
 %defattr(644,root,root,755)
 %doc doc/unpacked/*
 %doc howto
 
-%files libs
+%files libs -f libpq.lang
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libpq.so.*.*
-%attr(755,root,root) %{_libdir}/libpgeasy.so.*.*
-%attr(755,root,root) %{_libdir}/libecpg.so.*.*
 %attr(755,root,root) %{_bindir}/pg_id
 
-%files devel
+%files ecpg
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/ecpg
+%attr(755,root,root) %{_libdir}/libecpg.so.*.*
+%attr(755,root,root) %{_libdir}/libecpg_compat.so.*.*
+%attr(755,root,root) %{_libdir}/libpgtypes.so.*.*
+%{_mandir}/man1/ecpg.1*
+
+%files ecpg-devel
+%defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libecpg.so
-%attr(755,root,root) %{_libdir}/libpgeasy.so
+%attr(755,root,root) %{_libdir}/libecpg_compat.so
+%attr(755,root,root) %{_libdir}/libpgtypes.so
+%{_includedir}/ecpg
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/pg_config
 %attr(755,root,root) %{_libdir}/libpq.so
 %dir %{_includedir}/postgresql
+%{_includedir}/libpq-fe.h
 %{_includedir}/pg_config.h
 %{_includedir}/pg_config_os.h
-%{_includedir}/ecpgerrno.h
-%{_includedir}/ecpglib.h
-%{_includedir}/ecpgtype.h
-%{_includedir}/libpgeasy.h
-%{_includedir}/libpq-fe.h
 %{_includedir}/postgres_ext.h
-%{_includedir}/sql3types.h
-%{_includedir}/sqlca.h
 %dir %{_includedir}/postgresql/internal
 %{_includedir}/postgresql/internal/c.h
 %{_includedir}/postgresql/internal/libpq-int.h
@@ -933,7 +1030,8 @@ fi
 %{_includedir}/postgresql/internal/pqexpbuffer.h
 %{_includedir}/postgresql/internal/lib
 %{_includedir}/postgresql/internal/libpq
-%{_mandir}/man1/ecpg.1*
+%{_includedir}/libpq
+%{_mandir}/man1/pg_config.1*
 
 %files backend-devel
 %defattr(644,root,root,755)
@@ -942,10 +1040,11 @@ fi
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libecpg.a
-%{_libdir}/libpgeasy.a
+%{_libdir}/libecpg_compat.a
 %{_libdir}/libpq.a
+%{_libdir}/libpgtypes.a
 
-%files clients
+%files clients -f clients.lang
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/pg_dump
 %attr(755,root,root) %{_bindir}/pg_dumpall
@@ -958,50 +1057,9 @@ fi
 %{_mandir}/man1/pg_restore.1*
 %{_mandir}/man1/psql.1*
 %{_mandir}/man1/vacuumdb.1*
-%{_mandir}/manl/*.l*
-
-%files c++
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libpq++.so.*.*
-
-%files c++-devel
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libpq++.so
-%{_includedir}/libpq++.h
-%{_includedir}/libpq++
-
-%files c++-static
-%defattr(644,root,root,755)
-%{_libdir}/libpq++.a
-
-%files perl
-%defattr(644,root,root,755)
-%dir %{perl_sitearch}/auto/Pg
-%{perl_sitearch}/auto/Pg/Pg.bs
-%attr(755,root,root) %{perl_sitearch}/auto/Pg/Pg.so
-%{perl_sitearch}/auto/Pg/autosplit.ix
-%{perl_sitearch}/Pg.pm
-%{_mandir}/man3/*
-
-
-%files -n python-postgresql
-%defattr(644,root,root,755)
-%{py_sitedir}/*.pyc
-%{py_sitedir}/*.pyo
-%attr(755,root,root) %{py_sitedir}/*.so
-
-%files -n pgaccess
-%defattr(644,root,root,755)
-%doc src/bin/pgaccess/doc/html/*
-%attr(755,root,root) %{_bindir}/pgaccess
-%dir %{_datadir}/postgresql/pgaccess
-%attr(755, root, root) %{_datadir}/postgresql/pgaccess/main.tcl
-%{_datadir}/postgresql/pgaccess/images
-%{_datadir}/postgresql/pgaccess/lib
-%{_applnkdir}/System/pgaccess.desktop
-%{_pixmapsdir}/pgaccess.png
-%{_mandir}/man1/pgaccess.1*
+%{_mandir}/man7/*.7*
 
+%if %{with tcl}
 %files tcl
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libpgtcl.so
@@ -1018,35 +1076,39 @@ fi
 %files tcl-static
 %defattr(644,root,root,755)
 %{_libdir}/libpgtcl.a
-
-%files odbc
-%defattr(644,root,root,755)
-%doc src/interfaces/odbc/readme.txt.gz src/interfaces/odbc/notice.txt.gz
-%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/odbc*
-%attr(755,root,root) %{_libdir}/libpsqlodbc.so.*.*
-%{_datadir}/postgresql/odbc.sql
-
-%files odbc-devel
-%defattr(644,root,root,755)
-#%{_includedir}/postgresql/iodbc
-%attr(755,root,root) %{_libdir}/libpsqlodbc.so
-
-%files odbc-static
-%defattr(644,root,root,755)
-%{_libdir}/libpsqlodbc.a
+%endif
 
 %files module-plpgsql
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_pgmoduledir}/plpgsql.so
 
+%if %{with perl}
 %files module-plperl
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_pgmoduledir}/plperl.so
+%endif
 
+%if %{with python}
 %files module-plpython
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_pgmoduledir}/plpython.so
+%endif
 
+%if %{with tcl}
 %files module-pltcl
 %defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/pltcl_*
 %attr(755,root,root) %{_pgmoduledir}/pltcl.so
+%endif
+
+%files module-pgcrypto
+%defattr(644,root,root,755)
+%doc contrib/pgcrypto/README*
+%attr(755,root,root) %{_pgmoduledir}/pgcrypto.so
+%{_datadir}/%{name}/pgcrypto.sql
+
+%files module-tsearch2
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_pgmoduledir}/tsearch2.so
+%{_datadir}/%{name}/tsearch2.sql
+%{_datadir}/%{name}/untsearch2.sql
This page took 0.062482 seconds and 4 git commands to generate.