3 # - pg_autovacuum init support? look at its readme file, please
6 %bcond_without tests # disable testing
7 %bcond_without tcl # disables Tcl support
8 %bcond_without kerberos5 # disable kerberos5 support
9 %bcond_without perl # disable Perl support
10 %bcond_without pgsql_locale # disable PostgreSQL locale
11 %bcond_without pgsql_multibyte # disable PostgreSQL multibyte
12 %bcond_without python # disable Python support
13 %bcond_with absolute_dbpaths # enable absolute paths to create database
14 # (disabled by default because it is a security risk)
15 %bcond_without slony1 # disable Slony-I replication system
17 %define postgresql_version 8.0.1
18 %define postgresql_release 0.3
19 %define slony1_version 1.0.5
20 %define slony1_release 1
22 Summary: PostgreSQL Data Base Management System
23 Summary(de): PostgreSQL Datenbankverwaltungssystem
24 Summary(es): Gestor de Banco de Datos PostgreSQL
25 Summary(fr): Sysème de gestion de base de données PostgreSQL
26 Summary(pl): PostgreSQL - system bazodanowy
27 Summary(pt_BR): Gerenciador de Banco de Dados PostgreSQL
28 Summary(ru): PostgreSQL - ÓÉÓÔÅÍÁ ÕÐÒÁ×ÌÅÎÉÑ ÂÁÚÁÍÉ ÄÁÎÎÙÈ
29 Summary(tr): Veri Tabaný Yönetim Sistemi
30 Summary(uk): PostgreSQL - ÓÉÓÔÅÍÁ ËÅÒÕ×ÁÎÎÑ ÂÁÚÁÍÉ ÄÁÎÉÈ
31 Summary(zh_CN): PostgreSQL ¿Í»§¶Ë³ÌÐòºÍ¿âÎļþ
33 Version: %{postgresql_version}
34 Release: %{postgresql_release}
36 Group: Applications/Databases
37 Source0: ftp://ftp.postgresql.org/pub/source/v%{postgresql_version}/%{name}-%{postgresql_version}.tar.bz2
38 # Source0-md5: 075ac81c865b0af865459260bf1ca890
39 ##Source0: ftp://ftp.postgresql.org/pub/source/v%{version}beta/%{name}-%{version}%{beta}.tar.bz2
41 Source2: pgsql-Database-HOWTO-html.tar.gz
42 # Source2-md5: 5b656ddf1db41965761f85204a14398e
43 Source3: %{name}.sysconfig
44 Source4: http://developer.postgresql.org/~wieck/slony1/download/slony1-%{slony1_version}.tar.gz
45 # Source4-md5: 66fcc0f53028101e4e0f969e5f47fe43
47 Source6: slony1.pgpass
48 Source7: slony1.sysconfig
49 Patch0: %{name}-conf.patch
50 Patch1: %{name}-absolute_dbpaths.patch
51 Patch2: %{name}-link.patch
52 Patch3: %{name}-ecpg_link.patch
53 Patch4: %{name}-ecpg-includedir.patch
54 Patch5: %{name}-gram.patch
55 Patch6: %{name}-ac.patch
57 URL: http://www.postgresql.org/
58 BuildRequires: autoconf
59 BuildRequires: automake
60 #BuildRequires: bison >= 1.875 not needed for releases
62 BuildRequires: gettext-devel
63 %{?with_kerberos5:BuildRequires: heimdal-devel}
64 BuildRequires: libtool
65 BuildRequires: ncurses-devel >= 5.0
66 BuildRequires: openssl-devel >= 0.9.7d
67 BuildRequires: pam-devel
68 %{?with_perl:BuildRequires: perl-devel}
69 %{?with_python:BuildRequires: python-devel >= 1:2.3}
70 BuildRequires: readline-devel >= 4.2
71 BuildRequires: rpm-pythonprov
72 BuildRequires: sed >= 4.0
73 %{?with_tcl:BuildRequires: tcl-devel >= 8.4.3}
74 BuildRequires: zlib-devel
76 PreReq: %{name}-clients = %{postgresql_version}-%{postgresql_release}
77 PreReq: %{name}-libs = %{postgresql_version}-%{postgresql_release}
78 Requires(pre): /usr/bin/getgid
79 Requires(pre): /bin/id
80 Requires(pre): /usr/sbin/groupadd
81 Requires(pre): /usr/sbin/useradd
82 Requires(pre): /usr/sbin/usermod
83 Requires(post,preun): /sbin/chkconfig
84 Obsoletes: postgresql-server
85 Obsoletes: postgresql-test
86 BuildRoot: %{tmpdir}/%{name}-%{postgresql_version}-root-%(id -u -n)
88 %define _pgmoduledir %{_libdir}/postgresql
89 %define _pgsqldir %{_datadir}/postgresql/contrib
92 PostgreSQL Data Base Management System (formerly known as Postgres,
95 PostgreSQL is an enhancement of the POSTGRES database management
96 system, a next-generation DBMS research prototype. While PostgreSQL
97 retains the powerful data model and rich data types of POSTGRES, it
98 replaces the PostQuel query language with an extended subset of SQL.
99 PostgreSQL is free and the complete source is available.
101 PostgreSQL development is being performed by a team of Internet
102 developers who all subscribe to the PostgreSQL development mailing
103 list. The current coordinator is Marc G. Fournier
104 (scrappy@postgreSQL.org). This team is now responsible for all current
105 and future development of PostgreSQL.
107 The authors of PostgreSQL 1.01 were Andrew Yu and Jolly Chen. Many
108 others have contributed to the porting, testing, debugging and
109 enhancement of the code. The original Postgres code, from which
110 PostgreSQL is derived, was the effort of many graduate students,
111 undergraduate students, and staff programmers working under the
112 direction of Professor Michael Stonebraker at the University of
113 California, Berkeley.
115 The original name of the software at Berkeley was Postgres. When SQL
116 functionality was added in 1995, its name was changed to Postgres95.
117 The name was changed at the end of 1996 to PostgreSQL.
119 PostgreSQL runs on Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD,
120 and most flavours of Unix.
123 PostgreSQL Datenbank-Managementsystem (früher als Postgres, dann als
126 PostgreSQL ist eine Verbesserung des POSTGRES-DB-Managementsystems,
127 ein DBMS-Forschungsprototyp der nächsten Generation. Während es das
128 leistungsfähige Datenmodell und die reichhaltigen Datentypen von
129 POSTGRES beibehält, ersetzt es die PostQuel-Abfragesprache durch ein
130 Subset von SQL. PostgreSQL ist gratis, der gesamte Quellcode ist
133 Ein Team von Internet-Entwicklern befaßt sich mit PostgreSQL. Sie alle
134 sind auf der PostgreSQL-Entwickleradreßliste. Koordinator ist Marc G.
135 Fournier (scrappy@postgreSQL.org). Das Team ist verantwortlich für
136 alle aktuellen und künftigen Entwicklungen von PostgreSQL.
138 Die Autoren von PostgreSQL 1.01 waren Andrew Yu und Jolly Chen.
139 Zahlreiche andere haben zur Portierung, zum Testen, Debugging und zur
140 Verbesserung des Code beigetragen. Den Original-Postgres-Code, von dem
141 sich PostgreSQL ableitet, verdanken wir der Arbeit vieler Doktoranden,
142 Studenten und Programmierern unter der Leitung von Professor Michael
143 Stonebraker an der University of California, Berkeley.
145 Der ursprüngliche Name war Postgres. Als 1995 SQL-Funktionalität
146 hinzukam, wurde der Name in Postgres95 geändert. Ende 1996 schließlich
147 entschied man sich für PostgreSQL.
149 PostgreSQL läuft auf Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD
150 und den meisten Unix-Systemen.
153 Administrador de Banco de Datos PostgreSQL (conocido anteriormente
154 como Postgres, y después como Postgres95). PostgreSQL es una
155 continuación mejorada del Sistema Administrador de Banco de Datos
156 POSTGRES, que era un prototipo de pesquisa para un SGBD de nueva
157 generación. Mientras PostgreSQL mantiene el potente modelo de datos y
158 los varios tipos de datos del POSTGRES, substituye el lenguaje de
159 consulta PostQuel por un subconjunto extendido de la SQL. PostgreSQL
160 es libre y tiene los fuentes disponibles. El desarrollo del PostgreSQL
161 se ejecutado por un equipo de estudiosos de Internet, todos suscritos
162 en la lista de desarrollo del PostgreSQL. El coordinador actual es
163 Marc G. Fournier (scrappy@postgreSQL.org). Este equipo es ahora
164 responsable por el desarrollo actual y futuro del PostgreSQL.
167 Système de gestion de bases de données PostgreSQL (D'abord nommé
168 Postgres, puis Postgres95).
170 PostgreSQL est une amélioration du système de gestion de bases de
171 données POSTGRES, un prototype de recherche de la génération suivant
172 DBMS. Tout en conservant le puissant modèle de donnée de et les types
173 de donée riches de Postgres, il remplace le langage de requêtes de
174 Postgres par un sous ensemble etendu de commandes SQL. PosrgreSQL est
175 libre, et ses sources sont disponibles.
177 Le développement de PostgreSQL est actuellement réalisé via internet
178 parune équipe de développeurs inscrits sur la mailing-list de
179 développement de PostgreSQL. Le coordinateur actuel est Marc G
180 Fournier (scrappy@postgreSQL.org). Cette équipe est responsable du
181 développemen actuel et à venir de PostgreSQL.
183 Les auteurs de PostgreSQL 1.01 étaient Andrew Yu et Jolly Chen.
184 Beaucoup d'autres ont contribué au portage, au test, au débogage et à
185 l'amélioration du code. Le code original de Postgres, duquel
186 PostgreSQL est dérivé, a été l'oeuvre d'étudiants de haut niveau, de
187 moins haut niveau, et de programmeurs travaillant sous la direction du
188 professeur Michael Stonebraker à l'université de Berkeley Californie.
190 Le nom original du logiciel était Postgres. Quand les fonctionnalitées
191 SQL furent ajoutées en 1995, son nom est devenu Postgres95. Il a été
192 rebaptisé PostgreSQL en 1996.
194 PostgreSQL tourne sur Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD,
195 et la plupart des Unix.
198 System Zarz±dzania Baz± Danych PostgreSQL (dawniej znany jako
199 Postgres, nastêpnie jako Postgres95).
201 PostgreSQL jest rozszerzeniem systemu zarz±dzania baz danych POSTGRES,
202 prototypu DBMS nastêpnej generacji. Co prawda PostgreSQL odziedziczy³
203 model danych oraz bogaty zbiór ró¿nych typów danych, to jednak jêzyk
204 zapytañ PostQuel zosta³ zast±piony rozszerzonym SQL-em. PostgreSQL
205 jest wolnym oprogramowaniem i kody ¼ród³owe tego oprogramowania s± w
208 System PostgreSQL jest tworzony przez zespó³ ludzi, którzy s± zapisani
209 na listê dyskusyjn± dotycz±c± PostgreSQL-a. Obecnym koordynatorem jest
210 Marc G. Fournier (scrappy@postgreSQL.org). Wymieniony wy¿ej zespó³
211 jest odpowiedzialny za aktualny i przysz³y rozwój systemu PostgreSQL.
213 Autorami PostgreSQL-a 1.01 byli Andrew Yu oraz Jolly Chen. Wielu
214 innych pomaga³o przenosz±c na ró¿ne platformy, testuj±c, analizuj±c i
215 rozszerzaj±c kod. Oryginalny kod Postgres-a, na podstawie którego
216 PostgreSQL powsta³, by³ wysi³kiem wielu absolwentów, studentów oraz
217 zespo³u programistów, którzy pracowali pod kierunkiem profesora
218 Michaela Stonebrakera z Uniwersytetu Kalifornii w Berkeley.
220 Nazwa oryginalna oprogramowania tworzonego w Berkeley brzmia³a
221 Postgres. W 1995 roku dodano jêzyk zapytañ SQL i nazwê zmieniono na
222 Postgres95. W koñcu roku 1996 nazwê ostatecznie zmieniono na
225 PostgreSQL mo¿e byæ uruchomiony pod nastêpuj±cymi systemami: Solaris,
226 SunOS, HPUX, AIX, Linux, Irix, FreeBSD i innymi systemami uniksowymi.
228 %description -l pt_BR
229 Gerenciador de Banco de Dados PostgreSQL (conhecido anteriormente como
230 Postgres, e depois como Postgres95).
232 O PostgreSQL é uma continuação melhorada do Sistema Gerenciador de
233 Banco de Dados POSTGRES, que era um protótipo de pesquisa para um SGBD
234 de nova geração. Enquanto o PostgreSQL mantém o poderoso modelo de
235 dados e os vários tipos de dados do POSTGRES, ele substitui a
236 linguagem de consulta PostQuel por um subconjunto estendido da SQL. O
237 PostgreSQL é livre e tem os fontes disponíveis.
239 O desenvolvimento do PostgreSQL está sendo executado por uma equipe de
240 desenvolvedores da Internet, todos subscritores da lista de
241 desenvolvimento do PostgreSQL. O coordenador atual é Marc G. Fournier
242 (scrappy@postgreSQL.org). Esta equipe é agora responsável pelo
243 desenvolvimento atual e futuro do PostgreSQL.
246 PostgreSQL - ÓÉÓÔÅÍÁ ÕÐÒÁ×ÌÅÎÉÑ ÂÁÚÁÍÉ ÄÁÎÎÙÈ (ÐÒÅÖÄÅ ÉÚ×ÅÓÔÎÁÑ ËÁË
247 Postgres, ÐÏÔÏÍ ËÁË Postgres95).
249 PostgreSQL - ÜÔÏ ÒÁÓÛÉÒÅÎÎÁÑ ×ÅÒÓÉÑ ÓÉÓÔÅÍÙ ÕÐÒÁ×ÌÅÎÉÑ ÂÁÚÁÍÉ ÄÁÎÎÙÈ
250 POSTGRES, ÉÓÓÌÅÄÏ×ÁÔÅÌØÓËÏÇÏ ÐÒÏÔÏÔÉÐÁ DBMS ÓÌÅÄÕÀÝÅÊ ÇÅÎÅÒÁÃÉÉ.
251 óÏÈÒÁÎÑÑ ÍÏÝÎÕÀ ÍÏÄÅÌØ ÄÁÎÎÙÈ É ÂÏÇÁÔÙÊ ÎÁÂÏÒ ÔÉÐÏ× ÄÁÎÎÙÈ POSTGRES,
252 ÏÎÁ ÚÁÍÅÎÑÅÔ ÑÚÙË ÚÁÐÒÏÓÏ× PostQuel ÒÁÓÛÉÒÅÎÎÙÍ ÎÁÂÏÒÏÍ SQL.
253 PostgreSQL ÂÅÓÐÌÁÔÅÎ É ÐÏÓÔÁ×ÌÑÅÔÓÑ × ×ÉÄÅ ÐÏÌÎÏÇÏ ËÏÍÐÌÅËÔÁ ÉÓÈÏÄÎÙÈ
256 PostgreSQL ÒÁÚÒÁÂÁÔÙ×ÁÌÓÑ ËÏÍÁÎÄÏÊ Internet-ÒÁÚÒÁÂÏÔÞÉËÏ×, ÐÏÄÐÉÓÁÎÎÙÈ
257 ÎÁ ÓÐÉÓÏË ÒÁÓÓÙÌËÉ, ÐÏÓ×ÑÝÅÎÎÙÊ ÒÁÚÒÁÂÏÔËÅ PostgreSQL. ÷ ÎÁÓÔÏÑÝÅÅ
258 ×ÒÅÍÑ ËÏÏÒÄÉÎÁÔÏÒÏÍ Ñ×ÌÑÅÔÓÑ Marc G. Fournier
259 (scrappy@postgreSQL.org). üÔÁ ËÏÍÁÎÄÁ × ÎÁÓÔÏÑÝÅÅ ×ÒÅÍÑ ÏÔ×ÅÞÁÅÔ ÚÁ
260 ×ÓÅ ÔÅËÕÝÉÅ É ÂÕÄÕÝÉÅ ÒÁÚÒÁÂÏÔËÉ PostgreSQL.
262 á×ÔÏÒÁÍÉ PostgreSQL 1.01 ÂÙÌÉ Andrew Yu É Jolly Chen. íÎÏÇÉÅ ×ÎÅÓÌÉ
263 Ó×ÏÊ ×ËÌÁÄ × ÐÏÒÔÉÒÏ×ÁÎÉÅ, ÔÅÓÔÉÒÏ×ÁÎÉÅ, ÏÔÌÁÄËÕ É ÕÌÕÞÛÅÎÉÅ ËÏÄÁ.
264 ïÒÉÇÉÎÁÌØÎÙÊ ËÏÄ Postgres, ÏÔ ËÏÔÏÒÏÇÏ ÐÒÏÉÚÏÛÅÌ PostgreSQL, ÂÙÌ
265 ÓÏÚÄÁÎ ÕÓÉÌÉÑÍÉ ÓÔÕÄÅÎÔÏ×, ÁÓÐÉÒÁÎÔÏ× É ÐÅÒÓÏÎÁÌÁ, ÒÁÂÏÔÁÀÝÅÇÏ ÐÏÄ
266 ÒÕËÏ×ÏÄÓÔ×ÏÍ ÐÒÏÆÅÓÓÏÒÁ Michael Stonebraker × University of
267 California, Berkeley.
269 ïÒÉÇÉÎÁÌØÎÏÅ ÎÁÚ×ÁÎÉÅ ðï × Berkeley ÂÙÌÏ Postgres. ëÏÇÄÁ × 1995 ÇÏÄÕ
270 ÂÙÌÁ ÄÏÂÁ×ÌÅÎÁ ÆÕÎËÃÉÏÎÁÌØÎÏÓÔØ SQL, ÎÁÚ×ÁÎÉÅ ÉÚÍÅÎÉÌÏÓØ ÎÁ
271 Postgres95. ÷ ËÏÎÃÅ 1996 ÇÏÄÁ ÏÎÏ ÅÝÅ ÒÁÚ ÉÚÍÅÎÉÌÏÓØ É ÔÅÐÅÒØ ÜÔÏ
274 PostgreSQL ÒÁÂÏÔÁÅÔ ÎÁ Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD
275 É ÂÏÌØÛÉÎÓÔ×Å ÄÒÕÇÉÈ ÒÁÚÎÏ×ÉÄÎÏÓÔÅÊ Unix.
278 PostgreSQL, POSTGRES'den türemiþ bir veri tabaný yönetim sistemidir
279 (DBMS). Güçlü veri modeli ve zengin POSTGRES veri tiplerini
280 desteklerken SQL'in geniþletilmiþ bir altkümesi yerine PostQuel
281 sorgulama dilini koyar.
284 PostgreSQL - ÓÉÓÔÅÍÁ ËÅÒÕ×ÁÎÎÑ ÂÁÚÁÍÉ ÄÁÎÉÈ (ÒÁÎ¦Û ×¦ÄÏÍÁ ÑË Postgres,
285 ÐÏÔ¦Í ÑË Postgres95).
287 PostgreSQL - ÃÅ ÒÏÚÛÉÒÅÎÁ ×ÅÒÓ¦Ñ ÓÉÓÔÅÍÉ ËÅÒÕ×ÁÎÎÑ ÂÁÚÁÍÉ ÄÁÎÉÈ
288 POSTGRES, ÄÏÓ̦ÄÎÉÃØËÏÇÏ ÐÒÏÔÏÔÉÐÕ DBMS ÎÁÓÔÕÐÎϧ ÇÅÎÅÒÁæ§.
289 úÂÅÒ¦ÇÁÀÞÉ ÐÏÔÕÖÎÕ ÍÏÄÅÌØ ÄÁÎÉÈ ÔÁ ÂÁÇÁÔÉÊ ÎÁÂ¦Ò ÔÉÐ¦× ÄÁÎÉÈ POSTGRES,
290 ×ÏÎÁ ÚÁͦÎÀ¤ ÍÏ×Õ ÚÁÐÉÔ¦× PostQuel ÒÏÚÛÉÒÅÎÉÍ ÎÁÂÏÒÏÍ SQL. PostgreSQL
291 ÂÅÚËÏÛÔÏ×ÎÁ ÔÁ ÐÏÓÔÁ×ÌѤÔØÓÑ Õ ×ÉÇÌÑĦ ÐÏ×ÎÏÇÏ ËÏÍÐÌÅËÔÕ ×ÉȦÄÎÉÈ
294 PostgreSQL ÒÏÚÒÏÂÌѤÔØÓÑ ËÏÍÁÎÄÏÀ Internet-ÐÒÏÇÒÁͦÓÔ¦×, ÕÞÁÓÎÉ˦×
295 ÓÐÉÓËÕ ÒÏÚÓÉÌËÉ, ÐÒÉÓ×ÑÞÅÎÏÇÏ ÒÏÚÒÏÂæ PostgreSQL. îÁÒÁÚ¦
296 ËÏÏÒÄÉÎÁÔÏÒÏÍ ¤ Marc G. Fournier (scrappy@postgreSQL.org). ãÑ ËÏÍÁÎÄÁ
297 צÄÐÏצÄÁ¤ ÚÁ ×Ó¦ ÐÏÔÏÞΦ ÔÁ ÍÁÊÂÕÔΦ ÒÏÚÒÏÂËÉ PostgreSQL.
299 á×ÔÏÒÁÍÉ PostgreSQL 1.01 ÂÕÌÉ Andrew Yu ÔÁ Jolly Chen. âÁÇÁÔÏ ÌÀÄÅÊ
300 ×ÎÅÓÌÉ Ó×¦Ê ×ÎÅÓÏË × ÐÏÒÔÕ×ÁÎÎÑ, ÔÅÓÔÕ×ÁÎÎÑ, צÄÌÁÄËÕ ÔÁ ÐÏËÒÁÝÅÎÎÑ
301 ËÏÄÕ. ïÒÉǦÎÁÌØÎÉÊ ËÏÄ Postgres, ×¦Ä ÑËÏÇÏ ÐÏÈÏÄÉÔØ PostgreSQL, ÂÕ×
302 ÓÔ×ÏÒÅÎÉÊ ÚÕÓÉÌÌÑÍÉ ÓÔÕÄÅÎÔ¦×, ÁÓЦÒÁÎÔ¦× ÔÁ ÐÅÒÓÏÎÁÌÕ, ÑËÉÊ ÐÒÁÃÀ×Á×
303 Ð¦Ä ËÅÒ¦×ÎÉÃÔ×ÏÍ ÐÒÏÆÅÓÏÒÁ Michael Stonebraker × University of
304 California, Berkeley.
306 ïÒÉǦÎÁÌØÎÁ ÎÁÚ×Á ÐÒÏÇÒÁÍÉ × Berkeley ÂÕÌÁ Postgres. ëÏÌÉ × 1995 ÒÏæ
307 ÂÕÌÏ ÄÏÄÁÎÏ ÆÕÎËæÏÎÁÌØΦÓÔØ SQL, ÎÁÚ×Á ÚͦÎÉÌÁÓÑ ÎÁ Postgres95. ÷
308 ˦Îæ 1996 ÒÏËÕ ×ÏÎÁ ÝÅ ÒÁÚ ÚͦÎÉÌÁÓØ ¦ ÚÁÒÁÚ ÃÅ PostgreSQL.
310 PostgreSQL ÐÒÁÃÀ¤ ÎÁ Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD
311 ÔÁ ¦ÌØÛÏÓÔ¦ ¦ÎÛÉÈ Ò¦ÚÎÏ×ÉÄ¦× Unix.
314 Summary: PostgreSQL development header files and libraries
315 Summary(de): PostgreSQL-Entwicklungs-Header-Dateien und Libraries
316 Summary(es): Archivos de inclusión y bibliotecas PostgreSQL
317 Summary(fr): En-têtes et bibliothèques de développement PostgreSQL
318 Summary(pl): PostgreSQL - pliki nag³ówkowe i biblioteki
319 Summary(pt_BR): Arquivos de inclusão e bibliotecas para desenvolvimento com o PostgreSQL
320 Summary(ru): PostgreSQL - ÈÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ ÒÁÚÒÁÂÏÔÞÉËÁ
321 Summary(tr): PostgreSQL baþlýk dosyalarý ve kitaplýklar
322 Summary(uk): PostgreSQL - ÈÅÄÅÒÉ ÔÁ ¦Â̦ÏÔÅËÉ ÐÒÏÇÒÁͦÓÔÁ
323 Group: Development/Libraries
324 Requires: %{name}-libs = %{postgresql_version}-%{postgresql_release}
327 This package contains header files and libraries required to compile
328 applications that are talking directly to the PostgreSQL backend
331 %description devel -l de
332 Dieses Paket enthält die Header-Dateien und Libraries, die zum
333 Kompilieren von Applikationen notwendig sind, die direkt mit dem
334 PostgreSQL-Backend-Server kommunizieren.
336 %description devel -l es
337 Este paquete contiene archivos de inclusión y bibliotecas requeridas
338 para compilación de aplicativos que se comunican directamente con el
339 servidor backend PostgreSQL.
341 %description devel -l fr
342 Ce package contient les fichiers d'en-tête et les bibliothéques
343 nécessaires pour compiler des applications ayant des échanges directs
344 avec le serveur du backend PostgreSQL.
346 %description devel -l pl
347 Pakiet zawiera nag³ówki oraz biblioteki wymagane do kompilacji
348 aplikacji ³±cz±cych siê bezpo¶rednio z serwerem PostgreSQL.
350 %description devel -l pt_BR
351 Este pacote contém arquivos de inclusão e bibliotecas requeridas para
352 compilação de aplicativos que se comunicam diretamente com o servidor
355 %description devel -l ru
356 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÈÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÓÂÏÒËÉ
357 ÐÒÉÌÏÖÅÎÉÊ, ÎÅÐÏÓÒÅÄÓÔ×ÅÎÎÏ ×ÚÁÉÍÏÄÅÊÓÔ×ÕÀÝÉÈ Ó ÓÅÒ×ÅÒÏÍ PostgreSQL.
359 %description devel -l tr
360 Bu paket, PostgreSQL sunucusuyla konuþacak yazýlýmlar geliþtirmek için
361 gereken baþlýk dosyalarýný ve kitaplýklarý içerir.
363 %description devel -l uk
364 ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ ÈÅÄÅÒÉ ÔÁ ¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ
365 ÐÒÏÇÒÁÍ, Ñ˦ ÂÅÚÐÏÓÅÒÅÄÎØÏ ×ÚÁ¤ÍÏĦÀÔØ Ú ÓÅÒ×ÅÒÏÍ PostgreSQL.
367 %package backend-devel
368 Summary: PostgreSQL backend development header files
369 Summary(pl): PostgreSQL - pliki nag³ówkowe dla backendu
370 Group: Development/Libraries
371 Requires: %{name}-libs = %{postgresql_version}-%{postgresql_release}
373 %description backend-devel
374 This package contains header files required to compile functions that
375 could be loaded directly by backend
377 %description backend-devel -l pl
378 Pakiet zawiera nag³ówki wymagane do kompilacji funkcji ktore moga byc
379 bezposrednio ladowane przez beckend serwera PostgreSQL.
382 Summary: Clients needed to access a PostgreSQL server
383 Summary(es): Clientes necesarios para acceder al servidor PostgreSQL
384 Summary(pl): Klienci wymagani do dostêpu do serwera PostgreSQL
385 Summary(pt_BR): Clientes necessários para acessar o servidor PostgreSQL
386 Summary(ru): ëÌÉÅÎÔÓËÉÅ ÐÒÏÇÒÁÍÍÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÄÏÓÔÕÐÁ Ë ÓÅÒ×ÅÒÕ PostgreSQL
387 Summary(uk): ë̦¤ÎÔÓØ˦ ÐÒÏÇÒÁÍÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÄÏÓÔÕÐÕ ÄÏ ÓÅÒ×ÅÒÁ PostgreSQL
388 Group: Applications/Databases
389 Requires: %{name}-libs = %{postgresql_version}-%{postgresql_release}
392 This package includes only the clients needed to access an PostgreSQL
393 server. The server is included in the main package. If all you need is
394 to connect to another PostgreSQL server, the this is the only package
395 you need to install. Clients include several command-line utilities
396 you can use to manage your databases on a remote PostgreSQL server.
398 %description clients -l es
399 Este paquete incluye solamente los clientes necesarios para acceder un
400 servidor PostgreSQL. El servidor está en el paquete principal.
402 %description clients -l pl
403 Pakiet zawiera programy klienckie potrzebne dla dostêpu do serwera
404 PostgreSQL oraz narzêdzia do zarz±dzania bazami dzia³aj±ce z linii
405 poleceñ. Serwer znajduje siê w g³ównym pakiecie.
407 %description clients -l pt_BR
408 Este pacote inclui somente os clientes necessários para acessar um
409 servidor PostgreSQL. O servidor está no pacote principal.
411 %description clients -l ru
412 üÔÏÔ ÐÁËÅÔ ×ËÌÀÞÁÅÔ ÔÏÌØËÏ ËÌÉÅÎÔÓËÉÅ ÐÒÏÇÒÁÍÍÙ É ÂÉÂÌÉÏÔÅËÉ,
413 ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÄÏÓÔÕÐÁ Ë ÓÅÒ×ÅÒÕ PostgreSQL. óÅÒ×ÅÒ ×ÈÏÄÉÔ × ÇÌÁ×ÎÙÊ
414 ÐÁËÅÔ. åÓÌÉ ×ÁÍ ÎÁÄÏ ÔÏÌØËÏ ÒÁÂÏÔÁÔØ Ó ÄÒÕÇÉÍ ÓÅÒ×ÅÒÏÍ PostgreSQL, ÜÔÏ
415 ÅÄÉÎÓÔ×ÅÎÎÙÊ ÐÁËÅÔ, ËÏÔÏÒÙÊ ×ÁÍ ÎÁÄÏ ÕÓÔÁÎÏ×ÉÔØ.
417 ôÅÐÅÒØ ÐÁËÅÔÙ Ó ÂÉÂÌÉÏÔÅËÁÍÉ ÄÌÑ ÒÁÚÎÙÈ ÑÚÙËÏ× ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ (C,
418 C++, Perl É Tcl) ÒÁÚÄÅÌÅÎÙ. üÔÏÔ ÐÁËÅÔ ×ËÌÀÞÁÅÔ ÔÏÌØËÏ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ
421 %description clients -l uk
422 ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ Ô¦ÌØËÉ Ë̦¤ÎÔÓØ˦ ÐÒÏÇÒÁÍÉ ÔÁ ¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ
423 ÄÌÑ ÄÏÓÔÕÐÕ ÄÏ ÓÅÒ×ÅÒÁ PostgreSQL. óÅÒ×ÅÒ Í¦ÓÔÉÔØÓÑ × ÇÏÌÏ×ÎÏÍÕ
424 ÐÁËÅÔ¦. ñËÝÏ ×ÁÍ ÐÏÔÒ¦ÂÎÏ ÐÒÁÃÀ×ÁÔÉ Ú ¦ÎÛÉÍ ÓÅÒ×ÅÒÏÍ PostgreSQL, ÃÅ
425 ¤ÄÉÎÉÊ ÐÁËÅÔ, ÑËÉÊ ×ÁÍ ÔÒÅÂÁ ×ÓÔÁÎÏ×ÉÔÉ.
427 ôÅÐÅÒ ÐÁËÅÔÉ Ú Â¦Â̦ÏÔÅËÁÍÉ ÄÌÑ Ò¦ÚÎÉÈ ÍÏ× ÐÒÏÇÒÁÍÕ×ÁÎÎÑ (C, C++, Perl
428 ¦ Tcl) ÒÏÚĦÌÅΦ. ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ Ô¦ÌØËÉ Â¦Â̦ÏÔÅËÉ ÄÌÑ ÍÏ×É C.
431 Summary: Documentation for PostgreSQL
432 Summary(pl): Dodatkowa dokumantacja dla PostgreSQL
433 Group: Applications/Databases
436 This package includes documentation and HOWTO for programmer, admin
437 etc., in HTML format.
439 %description doc -l pl
440 Pakiet ten zawiera dokumentacjê oraz HOWTO m.in. dla programistów,
441 administratorów w formacie HTML.
444 Summary: PostgreSQL libraries
445 Summary(es): Biblioteca compartida del PostgreSQL
446 Summary(pl): Biblioteki dzielone programu PostgreSQL
447 Summary(pt_BR): Biblioteca compartilhada do PostgreSQL
448 Summary(zh_CN): PostgreSQL ¿Í»§ËùÐèÒªµÄ¹²Ïí¿â
452 PostgreSQL shared libraries.
454 %description libs -l es
455 Este paquete contiene la biblioteca compartida para acceso al
458 %description libs -l pl
459 Biblioteki dzielone programu PostgreSQL.
461 %description libs -l pt_BR
462 Este pacote contém a biblioteca compartilhada para acesso ao
466 Summary: Embedded SQL in C interface
467 Summary(pl): Interfejs wbudowanego SQL-a w jêzyk C
469 Requires: %{name}-libs = %{postgresql_version}-%{postgresql_release}
472 Embedded SQL in C interface.
474 %description ecpg -l pl
475 Interfejs wbudowanego SQL-a w jêzyk C.
478 Summary: Embedded SQL in C interface files
479 Summary(pl): Pliki programistyczne interfejsu wbudowanego SQL-a w jêzyk C
480 Group: Development/Libraries
481 Requires: %{name}-devel = %{postgresql_version}-%{postgresql_release}
482 Requires: %{name}-ecpg = %{postgresql_version}-%{postgresql_release}
484 %description ecpg-devel
485 Embedded SQL in C interface files.
487 %description ecpg-devel -l pl
488 Pliki programistyczne interfejsu wbudowanego SQL-a w jêzyk C.
491 Summary: PostgreSQL static libraries
492 Summary(es): Bibliotecas estaticas PostgreSQL
493 Summary(pl): Biblioteki statyczne programu PostgreSQL
494 Summary(pt_BR): Bibliotecas estáticas PostgreSQL
495 Summary(ru): óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ Ó PostgreSQL
496 Summary(uk): óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ ÄÌÑ ÐÒÏÇÒÁÍÕ×ÁÎÎÑ Ú PostgreSQL
497 Group: Development/Libraries
498 Requires: %{name}-devel = %{postgresql_version}-%{postgresql_release}
501 PostgreSQL static libraries.
503 %description static -l es
504 Este paquete contiene bibliotecas estaticas requerida para compilación
505 de aplicativos que se comunican directamente con el servidor backend
508 %description static -l pl
509 Biblioteki statyczne programu PostgreSQL.
511 %description static -l pt_BR
512 Este pacote contém as bibliotecas estáticas requeridas para compilação
513 de aplicativos que se comunicam diretamente com o servidor backend
516 %description static -l ru
517 üÔÏ ÏÔÄÅÌØÎÙÊ ÐÁËÅÔ ÓÏ ÓÔÁÔÉÞÅÓËÉÍÉ ÂÉÂÌÉÏÔÅËÁÍÉ, ËÏÔÏÒÙÅ ÂÏÌØÛÅ ÎÅ
518 ×ÈÏÄÑÔ × %{name}-devel.
520 %description static -l uk
521 ãÅ ÏËÒÅÍÉÊ ÐÁËÅÔ Ú¦ ÓÔÁÔÉÞÎÉÍÉ Â¦Â̦ÏÔÅËÁÍÉ, Ñ˦ ¦ÌØÛ ÎÅ ×ÈÏÄÑÔØ ×
524 %package module-plpgsql
525 Summary: PL/pgSQL - PostgreSQL procedural language
526 Summary(pl): PL/pgSQL jêzyk proceduralny bazy danych PostgreSQL
527 Group: Applications/Databases
528 Requires: %{name} = %{postgresql_version}-%{postgresql_release}
530 %description module-plpgsql
531 From PostgreSQL documentation.
533 Postgres supports the definition of procedural languages. In the case
534 of a function or trigger procedure defined in a procedural language,
535 the database has no built-in knowledge about how to interpret the
536 function's source text. Instead, the task is passed to a handler that
537 knows the details of the language. The handler itself is a special
538 programming language function compiled into a shared object and loaded
541 To enable PL/pgSQL procedural language for your database you have to
542 run createlang command.
544 %description module-plpgsql -l pl
545 Z dokumentacji PostgreSQL.
547 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
548 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
549 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
550 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
551 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
552 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
555 Za pomoc± komendy createlang mo¿na dodaæ wsparcie dla jêzyka
556 proceduralnego PL/pgSQL dla swojej bazy danych.
558 %package module-plperl
559 Summary: PL/perl - PostgreSQL procedural language
560 Summary(pl): PL/perl jêzyk proceduralny bazy danych PostgreSQL
561 Group: Applications/Databases
562 Requires: %{name} = %{postgresql_version}-%{postgresql_release}
563 Requires: perl(DynaLoader) = %(%{__perl} -MDynaLoader -e 'print DynaLoader->VERSION')
565 %description module-plperl
566 From PostgreSQL documentation.
568 Postgres supports the definition of procedural languages. In the case
569 of a function or trigger procedure defined in a procedural language,
570 the database has no built-in knowledge about how to interpret the
571 function's source text. Instead, the task is passed to a handler that
572 knows the details of the language. The handler itself is a special
573 programming language function compiled into a shared object and loaded
576 To enable PL/Perl procedural language for your database you have to
577 run createlang command.
579 %description module-plperl -l pl
580 Z dokumentacji PostgreSQL.
582 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
583 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
584 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
585 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
586 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
587 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
590 Za pomoc± komendy createlang mo¿na dodaæ wsparcie dla jêzyka
591 proceduralnego PL/Perl dla swojej bazy danych.
593 %package module-plpython
594 Summary: PL/Python - PostgreSQL procedural language
595 Summary(pl): PL/Python jêzyk proceduralny bazy danych PostgreSQL
596 Group: Applications/Databases
597 Requires: %{name} = %{postgresql_version}-%{postgresql_release}
598 %pyrequires_eq python
600 %description module-plpython
601 From PostgreSQL documentation.
603 Postgres supports the definition of procedural languages. In the case
604 of a function or trigger procedure defined in a procedural language,
605 the database has no built-in knowledge about how to interpret the
606 function's source text. Instead, the task is passed to a handler that
607 knows the details of the language. The handler itself is a special
608 programming language function compiled into a shared object and loaded
611 To enable PL/Python procedural language for your database you have to
612 run createlang command.
614 %description module-plpython -l pl
615 Z dokumentacji PostgreSQL.
617 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
618 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
619 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
620 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
621 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
622 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
625 Za pomoc± komendy createlang mo¿na dodaæ wsparcie dla jêzyka
626 proceduralnego PL/Python dla swojej bazy danych.
628 %package module-pltcl
629 Summary: PL/Tcl - PostgreSQL procedural language
630 Summary(pl): PL/Tcl - jêzyk proceduralny bazy danych PostgreSQL
631 Group: Applications/Databases
632 Requires: %{name} = %{postgresql_version}-%{postgresql_release}
634 %description module-pltcl
635 From PostgreSQL documentation.
637 Postgres supports the definition of procedural languages. In the case
638 of a function or trigger procedure defined in a procedural language,
639 the database has no built-in knowledge about how to interpret the
640 function's source text. Instead, the task is passed to a handler that
641 knows the details of the language. The handler itself is a special
642 programming language function compiled into a shared object and loaded
645 To enable PL/Tcl procedural language for your database you have to run
648 %description module-pltcl -l pl
649 Z dokumentacji PostgreSQL.
651 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
652 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
653 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
654 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
655 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
656 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
659 Za pomoc± komendy createlang mo¿na dodaæ wsparcie dla jêzyka
660 proceduralnego PL/Tcl dla swojej bazy danych.
662 %package module-pgcrypto
663 Summary: Cryptographic functions for PostgreSQL
664 Summary(pl): Funkcje kryptograficzne dla PostgreSQL
665 Group: Applications/Databases
666 Requires: %{name} = %{postgresql_version}-%{postgresql_release}
668 %description module-pgcrypto
669 Cryptographic functions for PostgreSQL.
671 %description module-pgcrypto -l pl
672 Funkcje kryptograficzne dla PostgreSQL.
674 %package module-tsearch2
675 Summary: Full text extension for PostgreSQL
676 Summary(pl): Rozszerzenie pe³notekstowe dla PostgreSQL-a
677 Group: Applications/Databases
678 Requires: %{name} = %{postgresql_version}-%{postgresql_release}
680 %description module-tsearch2
681 Implementation of a new data type tsvector - a searchable data type
683 http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/
685 %description module-tsearch2 -l pl
686 Implementacja nowego typu danych tsvector - typu danych podlegaj±cego
687 przeszukiwaniu z dostêpem poprzez indeksy:
688 http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/
691 Summary: Slony-I - a "master to multiple slaves" replication system for PostgreSQL
692 Summary(pl): Slony-I - system replikacji dla PostgreSQL
693 Version: %{slony1_version}
694 Release: %{slony1_release}@%{postgresql_version}_%{postgresql_release}
695 URL: http://slony.info/
696 Group: Applications/Databases
697 Requires: %{name} = %{postgresql_version}-%{postgresql_release}
698 Requires: %{name}-libs = %{postgresql_version}-%{postgresql_release}
700 %description -n slony1
701 Slony-I is a "master to multiple slaves" replication system with
702 cascading and failover.
704 The big picture for the development of Slony-I is a master-slave
705 system that includes all features and capabilities needed to replicate
706 large databases to a reasonably limited number of slave systems.
708 Slony-I is a system for data centers and backup sites, where the
709 normal mode of operation is that all nodes are available.
711 %description -n slony1 -l pl
712 Slony-I jest systemem replikacji dla PostgreSQL. Pozwala na replikacjê
713 typu "jeden serwer g³owny, wiele serwerów pomocniczych".
715 G³ówn± zalet± Slony-I jest system "master-slave". Zawiera on wszelk±
716 funkcjonalno¶æ potrzebn± do replikowania du¿ych baz danych na
717 okre¶lon± ilo¶æ serwerów pomocniczych lub zastêpczych.
719 Slony-I jest przeznaczony dla systemów, gdzie normalny tryb pracy
720 wymaga aby zarówno serwer g³ówny jak i wszystkie serwery pomocnicze
721 by³y ca³y czas operacyjne.
726 %{?with_absolute_dbpaths:%patch1 -p1}
731 #patch6 -p1 needed for glibc2.3.4 + gcc4
733 tar xzf doc/man*.tar.gz
736 tar zxf doc/postgres.tar.gz -C doc/unpacked
739 #find contrib -type d -name CVS -exec rm -rf {} \;
742 %{__aclocal} -I config
745 CFLAGS="%{rpmcflags} -DNEED_REENTRANT_FUNCS" \
748 --enable-integer-datetimes \
749 %{?with_pgsql_locale:--enable-locale} \
750 %{?with_pgsql_multibyte:--enable-multibyte} \
754 --enable-thread-safety \
755 --enable-unicode-conversion \
757 %{?with_kerberos5:--with-krb5} \
760 %{?with_perl:--with-perl} \
761 %{?with_python:--with-python} \
762 %{?with_tcl:--with-tcl} \
767 %{__make} -C contrib/pg_autovacuum
768 %{__make} -C contrib/pgcrypto
769 %{__sed} -i 's:contrib/::g' contrib/tsearch2/tsearch.sql.in
770 %{__make} -C contrib/tsearch2
771 %{__make} -C src/tutorial \
773 %ifnarch sparc sparcv9 sparc64 alpha
774 %{?with_tests:%{__make} check}
778 cd slony1-%{slony1_version}
779 install /usr/share/automake/config.* config
781 --with-pgsourcetree=`pwd`/..
787 rm -rf $RPM_BUILD_ROOT
788 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{rc.d/init.d,sysconfig}} \
789 $RPM_BUILD_ROOT{/var/{lib/pgsql,log},%{_pgsqldir}} \
790 $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} \
791 $RPM_BUILD_ROOT%{_mandir} \
792 $RPM_BUILD_ROOT/home/services/postgres
794 install src/tutorial/*.sql $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
797 DESTDIR=$RPM_BUILD_ROOT
800 %{__make} install -C src/pl/plperl \
801 DESTDIR=$RPM_BUILD_ROOT
804 %{__make} -C contrib/pg_autovacuum install \
805 DESTDIR=$RPM_BUILD_ROOT
807 %{__make} -C contrib/pgcrypto install \
808 DESTDIR=$RPM_BUILD_ROOT
810 %{__make} -C contrib/tsearch2 install \
811 DESTDIR=$RPM_BUILD_ROOT
814 %{__make} install -C slony1-%{slony1_version} \
815 DESTDIR=$RPM_BUILD_ROOT
816 mkdir $RPM_BUILD_ROOT/home/services/slony1
817 install %{SOURCE7} $RPM_BUILD_ROOT/etc/sysconfig/slony1
818 install %{SOURCE6} $RPM_BUILD_ROOT/home/services/slony1/.pgpass
819 install %{SOURCE5} $RPM_BUILD_ROOT/etc/rc.d/init.d/slony1
822 touch $RPM_BUILD_ROOT/var/log/pgsql
824 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/postgresql
825 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/postgresql
832 %py_comp $RPM_BUILD_ROOT%{py_libdir}
833 %py_ocomp $RPM_BUILD_ROOT%{py_libdir}
836 for f in libpq pg_controldata pg_dump pg_resetxlog pgscripts postgres psql initdb pg_ctl pg_config; do
840 cat pgscripts.lang pg_resetxlog.lang postgres.lang pg_controldata.lang > main.lang
841 cat pg_dump.lang psql.lang initdb.lang pg_ctl.lang > clients.lang
843 # Remove Contrib documentation. We use macro %doc
844 rm -rf $RPM_BUILD_ROOT/contrib
847 rm -rf $RPM_BUILD_ROOT
851 if [ -f /etc/sysconfig/postgresql ]; then
852 . /etc/sysconfig/postgresql
853 if [ -z "$PG_DB_CLUSTERS" -a -n "$POSTGRES_DATA_DIR" ]; then
854 PG_DB_CLUSTERS="$POSTGRES_DATA_DIR"
858 for pgdir in $PG_DB_CLUSTERS; do
859 if [ -f $pgdir/PG_VERSION ]; then
860 if [ `cat $pgdir/PG_VERSION` != '8.0' ]; then
861 echo "Found database(s) in older, incompatible format in cluster $pgdir."
866 if [ "$foundold" = "1" ]; then
868 echo "Dump all data from clusters mentioned above (using pg_dump or pg_dumpall)"
869 echo "and clean (or rename) those directories; then upgrade postgresql and"
870 echo "restore all data (using pg_restore or psql)."
871 echo "Remember to stop the daemon before upgrading!"
873 echo "Warning for upgrade from version *before* 7.2."
874 echo "Please note, that postgresql module path changed from"
875 echo "/usr/lib/pgsql/module to /usr/lib/postgresql. Change the path"
876 echo "in dump file before restore."
878 echo "Warning for upgrade from version *before* 7.3."
879 echo "Reading following webpage is encouraged:"
880 echo "http://www.ca.postgresql.org/docs/momjian/upgrade_tips_7.3."
884 if [ -n "`/usr/bin/getgid postgres`" ]; then
885 if [ "`/usr/bin/getgid postgres`" != "88" ]; then
886 echo "Error: group postgres doesn't have gid=88. Correct this before installing postgresql." 1>&2
890 /usr/sbin/groupadd -g 88 -r postgres
892 if [ -n "`/bin/id -u postgres 2>/dev/null`" ]; then
893 if [ "`/bin/id -u postgres 2>/dev/null`" != "88" ]; then
894 echo "Error: user postgres doesn't have uid=88. Correct this before installing postgresql." 1>&2
897 /usr/sbin/usermod -d /home/services/postgres postgres
899 /usr/sbin/useradd -M -o -r -u 88 \
900 -d /home/services/postgres -s /bin/sh -g postgres \
901 -c "PostgreSQL Server" postgres
905 /sbin/chkconfig --add postgresql
906 if [ -f /var/lock/subsys/postgresql ]; then
907 /etc/rc.d/init.d/postgresql restart >&2 || :
909 echo "Run \"/etc/rc.d/init.d/postgresql start\" to start postgresql server."
913 if [ "$1" = "0" ]; then
914 if [ -f /var/lock/subsys/postgresql ]; then
915 /etc/rc.d/init.d/postgresql stop
917 /sbin/chkconfig --del postgresql
920 %post libs -p /sbin/ldconfig
921 %postun libs -p /sbin/ldconfig
923 %post ecpg -p /sbin/ldconfig
924 %postun ecpg -p /sbin/ldconfig
927 if [ -n "`/usr/bin/getgid slony1`" ]; then
928 if [ "`/usr/bin/getgid slony1`" != "131" ]; then
929 echo "Error: group slony1 doesn't have gid=131. Correct this before installing slony1." 1>&2
933 /usr/sbin/groupadd -g 131 -r slony1
935 if [ -n "`/bin/id -u slony1 2>/dev/null`" ]; then
936 if [ "`/bin/id -u slony1 2>/dev/null`" != "131" ]; then
937 echo "Error: user postgres doesn't have uid=131. Correct this before installing slony1." 1>&2
941 /usr/sbin/useradd -M -o -r -u 131 \
942 -d /home/services/slony1 -s /bin/sh -g slony1 \
943 -c "Slony-I Replicator" slony1
947 /sbin/chkconfig --add slony1
948 if [ -f /var/lock/subsys/slony1 ]; then
949 /etc/rc.d/init.d/slony1 restart >&2 || :
951 echo "Run \"/etc/rc.d/init.d/slony1 start\" to start slony1 replicator."
955 if [ "$1" = "0" ]; then
956 if [ -f /var/lock/subsys/slony1 ]; then
957 /etc/rc.d/init.d/slony1 stop
959 /sbin/chkconfig --del slony1
963 %defattr(644,root,root,755)
964 %doc COPYRIGHT README HISTORY doc/{FAQ*,README*,bug.template}
965 %doc contrib/pg_autovacuum/README*
966 %attr(754,root,root) /etc/rc.d/init.d/postgresql
967 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/postgresql
969 %attr(755,root,root) %{_bindir}/clusterdb
970 %attr(755,root,root) %{_bindir}/createdb
971 %attr(755,root,root) %{_bindir}/createlang
972 %attr(755,root,root) %{_bindir}/createuser
973 %attr(755,root,root) %{_bindir}/dropdb
974 %attr(755,root,root) %{_bindir}/droplang
975 %attr(755,root,root) %{_bindir}/dropuser
976 %attr(755,root,root) %{_bindir}/initdb
977 %attr(755,root,root) %{_bindir}/ipcclean
978 %attr(755,root,root) %{_bindir}/pg_autovacuum
979 %attr(755,root,root) %{_bindir}/pg_controldata
980 %attr(755,root,root) %{_bindir}/pg_ctl
981 %attr(755,root,root) %{_bindir}/pg_resetxlog
982 %attr(755,root,root) %{_bindir}/postgres
983 %attr(755,root,root) %{_bindir}/postmaster
985 %attr(755,root,root) %{_pgmoduledir}/ascii*
986 %attr(755,root,root) %{_pgmoduledir}/cyrillic*
987 %attr(755,root,root) %{_pgmoduledir}/euc*
988 %attr(755,root,root) %{_pgmoduledir}/latin*
989 %attr(755,root,root) %{_pgmoduledir}/utf*
992 %dir %{_datadir}/postgresql
993 %dir %{_datadir}/postgresql/timezone
994 %{_datadir}/postgresql/*.bki
995 %{_datadir}/postgresql/*.sample
996 %{_datadir}/postgresql/*.description
997 %{_datadir}/postgresql/*.sql
998 %{_datadir}/postgresql/*.txt
999 %{_datadir}/postgresql/timezone/*
1001 %attr(700,postgres,postgres) /home/services/postgres
1002 %attr(700,postgres,postgres) %dir /var/lib/pgsql
1003 %attr(640,postgres,postgres) %config(noreplace) %verify(not md5 mtime size) /var/log/pgsql
1005 %{_mandir}/man1/clusterdb.1*
1006 %{_mandir}/man1/createdb.1*
1007 %{_mandir}/man1/createlang.1*
1008 %{_mandir}/man1/createuser.1*
1009 %{_mandir}/man1/dropdb.1*
1010 %{_mandir}/man1/droplang.1*
1011 %{_mandir}/man1/dropuser.1*
1012 %{_mandir}/man1/initdb.1*
1013 %{_mandir}/man1/ipcclean.1*
1014 %{_mandir}/man1/pg_controldata.1*
1015 %{_mandir}/man1/pg_ctl.1*
1016 %{_mandir}/man1/pg_resetxlog.1*
1017 %{_mandir}/man1/postgres.1*
1018 %{_mandir}/man1/postmaster.1*
1021 %defattr(644,root,root,755)
1022 %doc doc/unpacked/* doc/src/FAQ howto
1023 %{_examplesdir}/%{name}-%{version}
1025 %files libs -f libpq.lang
1026 %defattr(644,root,root,755)
1027 %attr(755,root,root) %{_libdir}/libpq.so.*.*
1028 %dir %{_pgmoduledir}
1031 %defattr(644,root,root,755)
1032 %attr(755,root,root) %{_bindir}/ecpg
1033 %attr(755,root,root) %{_libdir}/libecpg.so.*.*
1034 %attr(755,root,root) %{_libdir}/libecpg_compat.so.*.*
1035 %attr(755,root,root) %{_libdir}/libpgtypes.so.*.*
1036 %{_mandir}/man1/ecpg.1*
1039 %defattr(644,root,root,755)
1040 %attr(755,root,root) %{_libdir}/libecpg.so
1041 %attr(755,root,root) %{_libdir}/libecpg_compat.so
1042 %attr(755,root,root) %{_libdir}/libpgtypes.so
1045 %files devel -f pg_config.lang
1046 %defattr(644,root,root,755)
1047 %attr(755,root,root) %{_bindir}/pg_config
1048 %attr(755,root,root) %{_libdir}/libpq.so
1049 %dir %{_includedir}/postgresql
1050 %{_includedir}/libpq-fe.h
1051 %{_includedir}/pg_config.h
1052 %{_includedir}/pg_config_manual.h
1053 %{_includedir}/pg_config_os.h
1054 %{_includedir}/postgres_ext.h
1055 %dir %{_includedir}/postgresql/internal
1056 %{_includedir}/postgresql/internal/c.h
1057 %{_includedir}/postgresql/internal/libpq-int.h
1058 %{_includedir}/postgresql/internal/port.h
1059 %{_includedir}/postgresql/internal/postgres_fe.h
1060 %{_includedir}/postgresql/internal/pqexpbuffer.h
1061 %{_includedir}/postgresql/internal/libpq
1062 %{_includedir}/libpq
1063 %{_mandir}/man1/pg_config.1*
1065 %files backend-devel
1066 %defattr(644,root,root,755)
1067 %{_includedir}/postgresql/server
1068 %dir %{_pgmoduledir}/pgxs
1069 %attr(755,root,root) %{_pgmoduledir}/pgxs/config
1070 %{_pgmoduledir}/pgxs/src
1073 %defattr(644,root,root,755)
1074 %{_libdir}/libecpg.a
1075 %{_libdir}/libecpg_compat.a
1077 %{_libdir}/libpgtypes.a
1078 %{_libdir}/libpgport.a
1080 %files clients -f clients.lang
1081 %defattr(644,root,root,755)
1082 %attr(755,root,root) %{_bindir}/pg_dump
1083 %attr(755,root,root) %{_bindir}/pg_dumpall
1084 %attr(755,root,root) %{_bindir}/pg_restore
1085 %attr(755,root,root) %{_bindir}/psql
1086 %attr(755,root,root) %{_bindir}/vacuumdb
1088 %{_mandir}/man1/pg_dump.1*
1089 %{_mandir}/man1/pg_dumpall.1*
1090 %{_mandir}/man1/pg_restore.1*
1091 %{_mandir}/man1/psql.1*
1092 %{_mandir}/man1/vacuumdb.1*
1093 %{_mandir}/man7/*.7*
1095 %files module-plpgsql
1096 %defattr(644,root,root,755)
1097 %attr(755,root,root) %{_pgmoduledir}/plpgsql.so
1100 %files module-plperl
1101 %defattr(644,root,root,755)
1102 %attr(755,root,root) %{_pgmoduledir}/plperl.so
1106 %files module-plpython
1107 %defattr(644,root,root,755)
1108 %attr(755,root,root) %{_pgmoduledir}/plpython.so
1113 %defattr(644,root,root,755)
1114 %attr(755,root,root) %{_bindir}/pltcl_*
1115 %attr(755,root,root) %{_pgmoduledir}/pltcl.so
1118 %files module-pgcrypto
1119 %defattr(644,root,root,755)
1120 %doc contrib/pgcrypto/README*
1121 %attr(755,root,root) %{_pgmoduledir}/pgcrypto.so
1122 %{_pgsqldir}/pgcrypto.sql
1124 %files module-tsearch2
1125 %defattr(644,root,root,755)
1126 %doc contrib/tsearch2/README*
1127 %attr(755,root,root) %{_pgmoduledir}/tsearch2.so
1128 %{_pgsqldir}/tsearch2.sql
1129 %{_pgsqldir}/untsearch2.sql
1134 %defattr(644,root,root,755)
1135 %doc slony1-%{slony1_version}/doc/howto/*
1136 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/slony1
1137 %attr(754,root,root) /etc/rc.d/init.d/slony1
1138 %attr(755,root,root) %{_bindir}/slon
1139 %attr(755,root,root) %{_bindir}/slonik
1140 %attr(750,slony1,slony1) %dir /home/services/slony1
1141 %attr(600,slony1,slony1) /home/services/slony1/.pgpass
1142 %attr(755,root,root) %{_pgmoduledir}/slony1_funcs.so
1143 %attr(755,root,root) %{_pgmoduledir}/xxid.so