3 # - pg_autovacuum init support? look at its readme file, please
4 # - fix tutorial building
7 %bcond_without tests # disable testing
8 %bcond_without tcl # disables Tcl support
9 %bcond_without kerberos5 # disable kerberos5 support
10 %bcond_without perl # disable Perl support
11 %bcond_without pgsql_locale # disable PostgreSQL locale
12 %bcond_without pgsql_multibyte # disable PostgreSQL multibyte
13 %bcond_without python # disable Python support
14 %bcond_with absolute_dbpaths # enable absolute paths to create database
15 # (disabled by default because it is a security risk)
16 %bcond_without slony1 # disable Slony-I replication system
18 %define postgresql_version 8.0.1
19 %define postgresql_release 0.1
20 %define slony1_version 1.0.5
21 %define slony1_release 1
23 Summary: PostgreSQL Data Base Management System
24 Summary(de): PostgreSQL Datenbankverwaltungssystem
25 Summary(es): Gestor de Banco de Datos PostgreSQL
26 Summary(fr): Sysème de gestion de base de données PostgreSQL
27 Summary(pl): PostgreSQL - system bazodanowy
28 Summary(pt_BR): Gerenciador de Banco de Dados PostgreSQL
29 Summary(ru): PostgreSQL - ÓÉÓÔÅÍÁ ÕÐÒÁ×ÌÅÎÉÑ ÂÁÚÁÍÉ ÄÁÎÎÙÈ
30 Summary(tr): Veri Tabaný Yönetim Sistemi
31 Summary(uk): PostgreSQL - ÓÉÓÔÅÍÁ ËÅÒÕ×ÁÎÎÑ ÂÁÚÁÍÉ ÄÁÎÉÈ
32 Summary(zh_CN): PostgreSQL ¿Í»§¶Ë³ÌÐòºÍ¿âÎļþ
34 Version: %{postgresql_version}
35 Release: %{postgresql_release}
37 Group: Applications/Databases
38 Source0: ftp://ftp.postgresql.org/pub/source/v%{postgresql_version}/%{name}-%{postgresql_version}.tar.bz2
39 # Source0-md5: 075ac81c865b0af865459260bf1ca890
40 ##Source0: ftp://ftp.postgresql.org/pub/source/v%{version}beta/%{name}-%{version}%{beta}.tar.bz2
42 Source2: pgsql-Database-HOWTO-html.tar.gz
43 # Source2-md5: 5b656ddf1db41965761f85204a14398e
44 Source3: %{name}.sysconfig
45 Source4: http://developer.postgresql.org/~wieck/slony1/download/slony1-%{slony1_version}.tar.gz
46 # Source4-md5: 66fcc0f53028101e4e0f969e5f47fe43
48 Source6: slony1.pgpass
49 Source7: slony1.sysconfig
50 Patch0: %{name}-conf.patch
51 Patch1: %{name}-absolute_dbpaths.patch
52 Patch2: %{name}-link.patch
53 Patch3: %{name}-ecpg_link.patch
54 Patch4: %{name}-ecpg-includedir.patch
56 URL: http://www.postgresql.org/
57 BuildRequires: autoconf
58 BuildRequires: automake
59 #BuildRequires: bison >= 1.875 not needed for releases
61 BuildRequires: gettext-devel
62 %{?with_kerberos5:BuildRequires: heimdal-devel}
63 BuildRequires: libtool
64 BuildRequires: ncurses-devel >= 5.0
65 BuildRequires: openssl-devel >= 0.9.7d
66 BuildRequires: pam-devel
67 %{?with_perl:BuildRequires: perl-devel}
68 %{?with_python:BuildRequires: python-devel >= 1:2.3}
69 BuildRequires: readline-devel >= 4.2
70 BuildRequires: rpm-pythonprov
71 %{?with_tcl:BuildRequires: tcl-devel >= 8.4.3}
72 BuildRequires: zlib-devel
74 PreReq: %{name}-clients = %{postgresql_version}-%{postgresql_release}
75 PreReq: %{name}-libs = %{postgresql_version}-%{postgresql_release}
76 Requires(pre): /usr/bin/getgid
77 Requires(pre): /bin/id
78 Requires(pre): /usr/sbin/groupadd
79 Requires(pre): /usr/sbin/useradd
80 Requires(pre): /usr/sbin/usermod
81 Requires(post,preun): /sbin/chkconfig
82 Obsoletes: postgresql-server
83 Obsoletes: postgresql-test
84 BuildRoot: %{tmpdir}/%{name}-%{postgresql_version}-root-%(id -u -n)
86 %define _pgmoduledir %{_libdir}/postgresql
87 %define _pgsqldir %{_datadir}/postgresql/contrib
90 PostgreSQL Data Base Management System (formerly known as Postgres,
93 PostgreSQL is an enhancement of the POSTGRES database management
94 system, a next-generation DBMS research prototype. While PostgreSQL
95 retains the powerful data model and rich data types of POSTGRES, it
96 replaces the PostQuel query language with an extended subset of SQL.
97 PostgreSQL is free and the complete source is available.
99 PostgreSQL development is being performed by a team of Internet
100 developers who all subscribe to the PostgreSQL development mailing
101 list. The current coordinator is Marc G. Fournier
102 (scrappy@postgreSQL.org). This team is now responsible for all current
103 and future development of PostgreSQL.
105 The authors of PostgreSQL 1.01 were Andrew Yu and Jolly Chen. Many
106 others have contributed to the porting, testing, debugging and
107 enhancement of the code. The original Postgres code, from which
108 PostgreSQL is derived, was the effort of many graduate students,
109 undergraduate students, and staff programmers working under the
110 direction of Professor Michael Stonebraker at the University of
111 California, Berkeley.
113 The original name of the software at Berkeley was Postgres. When SQL
114 functionality was added in 1995, its name was changed to Postgres95.
115 The name was changed at the end of 1996 to PostgreSQL.
117 PostgreSQL runs on Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD,
118 and most flavours of Unix.
121 PostgreSQL Datenbank-Managementsystem (früher als Postgres, dann als
124 PostgreSQL ist eine Verbesserung des POSTGRES-DB-Managementsystems,
125 ein DBMS-Forschungsprototyp der nächsten Generation. Während es das
126 leistungsfähige Datenmodell und die reichhaltigen Datentypen von
127 POSTGRES beibehält, ersetzt es die PostQuel-Abfragesprache durch ein
128 Subset von SQL. PostgreSQL ist gratis, der gesamte Quellcode ist
131 Ein Team von Internet-Entwicklern befaßt sich mit PostgreSQL. Sie alle
132 sind auf der PostgreSQL-Entwickleradreßliste. Koordinator ist Marc G.
133 Fournier (scrappy@postgreSQL.org). Das Team ist verantwortlich für
134 alle aktuellen und künftigen Entwicklungen von PostgreSQL.
136 Die Autoren von PostgreSQL 1.01 waren Andrew Yu und Jolly Chen.
137 Zahlreiche andere haben zur Portierung, zum Testen, Debugging und zur
138 Verbesserung des Code beigetragen. Den Original-Postgres-Code, von dem
139 sich PostgreSQL ableitet, verdanken wir der Arbeit vieler Doktoranden,
140 Studenten und Programmierern unter der Leitung von Professor Michael
141 Stonebraker an der University of California, Berkeley.
143 Der ursprüngliche Name war Postgres. Als 1995 SQL-Funktionalität
144 hinzukam, wurde der Name in Postgres95 geändert. Ende 1996 schließlich
145 entschied man sich für PostgreSQL.
147 PostgreSQL läuft auf Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD
148 und den meisten Unix-Systemen.
151 Administrador de Banco de Datos PostgreSQL (conocido anteriormente
152 como Postgres, y después como Postgres95). PostgreSQL es una
153 continuación mejorada del Sistema Administrador de Banco de Datos
154 POSTGRES, que era un prototipo de pesquisa para un SGBD de nueva
155 generación. Mientras PostgreSQL mantiene el potente modelo de datos y
156 los varios tipos de datos del POSTGRES, substituye el lenguaje de
157 consulta PostQuel por un subconjunto extendido de la SQL. PostgreSQL
158 es libre y tiene los fuentes disponibles. El desarrollo del PostgreSQL
159 se ejecutado por un equipo de estudiosos de Internet, todos suscritos
160 en la lista de desarrollo del PostgreSQL. El coordinador actual es
161 Marc G. Fournier (scrappy@postgreSQL.org). Este equipo es ahora
162 responsable por el desarrollo actual y futuro del PostgreSQL.
165 Système de gestion de bases de données PostgreSQL (D'abord nommé
166 Postgres, puis Postgres95).
168 PostgreSQL est une amélioration du système de gestion de bases de
169 données POSTGRES, un prototype de recherche de la génération suivant
170 DBMS. Tout en conservant le puissant modèle de donnée de et les types
171 de donée riches de Postgres, il remplace le langage de requêtes de
172 Postgres par un sous ensemble etendu de commandes SQL. PosrgreSQL est
173 libre, et ses sources sont disponibles.
175 Le développement de PostgreSQL est actuellement réalisé via internet
176 parune équipe de développeurs inscrits sur la mailing-list de
177 développement de PostgreSQL. Le coordinateur actuel est Marc G
178 Fournier (scrappy@postgreSQL.org). Cette équipe est responsable du
179 développemen actuel et à venir de PostgreSQL.
181 Les auteurs de PostgreSQL 1.01 étaient Andrew Yu et Jolly Chen.
182 Beaucoup d'autres ont contribué au portage, au test, au débogage et à
183 l'amélioration du code. Le code original de Postgres, duquel
184 PostgreSQL est dérivé, a été l'oeuvre d'étudiants de haut niveau, de
185 moins haut niveau, et de programmeurs travaillant sous la direction du
186 professeur Michael Stonebraker à l'université de Berkeley Californie.
188 Le nom original du logiciel était Postgres. Quand les fonctionnalitées
189 SQL furent ajoutées en 1995, son nom est devenu Postgres95. Il a été
190 rebaptisé PostgreSQL en 1996.
192 PostgreSQL tourne sur Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD,
193 et la plupart des Unix.
196 System Zarz±dzania Baz± Danych PostgreSQL (dawniej znany jako
197 Postgres, nastêpnie jako Postgres95).
199 PostgreSQL jest rozszerzeniem systemu zarz±dzania baz danych POSTGRES,
200 prototypu DBMS nastêpnej generacji. Co prawda PostgreSQL odziedziczy³
201 model danych oraz bogaty zbiór ró¿nych typów danych, to jednak jêzyk
202 zapytañ PostQuel zosta³ zast±piony rozszerzonym SQL-em. PostgreSQL
203 jest wolnym oprogramowaniem i kody ¼ród³owe tego oprogramowania s± w
206 System PostgreSQL jest tworzony przez zespó³ ludzi, którzy s± zapisani
207 na listê dyskusyjn± dotycz±c± PostgreSQL-a. Obecnym koordynatorem jest
208 Marc G. Fournier (scrappy@postgreSQL.org). Wymieniony wy¿ej zespó³
209 jest odpowiedzialny za aktualny i przysz³y rozwój systemu PostgreSQL.
211 Autorami PostgreSQL-a 1.01 byli Andrew Yu oraz Jolly Chen. Wielu
212 innych pomaga³o przenosz±c na ró¿ne platformy, testuj±c, analizuj±c i
213 rozszerzaj±c kod. Oryginalny kod Postgres-a, na podstawie którego
214 PostgreSQL powsta³, by³ wysi³kiem wielu absolwentów, studentów oraz
215 zespo³u programistów, którzy pracowali pod kierunkiem profesora
216 Michaela Stonebrakera z Uniwersytetu Kalifornii w Berkeley.
218 Nazwa oryginalna oprogramowania tworzonego w Berkeley brzmia³a
219 Postgres. W 1995 roku dodano jêzyk zapytañ SQL i nazwê zmieniono na
220 Postgres95. W koñcu roku 1996 nazwê ostatecznie zmieniono na
223 PostgreSQL mo¿e byæ uruchomiony pod nastêpuj±cymi systemami: Solaris,
224 SunOS, HPUX, AIX, Linux, Irix, FreeBSD i innymi systemami uniksowymi.
226 %description -l pt_BR
227 Gerenciador de Banco de Dados PostgreSQL (conhecido anteriormente como
228 Postgres, e depois como Postgres95).
230 O PostgreSQL é uma continuação melhorada do Sistema Gerenciador de
231 Banco de Dados POSTGRES, que era um protótipo de pesquisa para um SGBD
232 de nova geração. Enquanto o PostgreSQL mantém o poderoso modelo de
233 dados e os vários tipos de dados do POSTGRES, ele substitui a
234 linguagem de consulta PostQuel por um subconjunto estendido da SQL. O
235 PostgreSQL é livre e tem os fontes disponíveis.
237 O desenvolvimento do PostgreSQL está sendo executado por uma equipe de
238 desenvolvedores da Internet, todos subscritores da lista de
239 desenvolvimento do PostgreSQL. O coordenador atual é Marc G. Fournier
240 (scrappy@postgreSQL.org). Esta equipe é agora responsável pelo
241 desenvolvimento atual e futuro do PostgreSQL.
244 PostgreSQL - ÓÉÓÔÅÍÁ ÕÐÒÁ×ÌÅÎÉÑ ÂÁÚÁÍÉ ÄÁÎÎÙÈ (ÐÒÅÖÄÅ ÉÚ×ÅÓÔÎÁÑ ËÁË
245 Postgres, ÐÏÔÏÍ ËÁË Postgres95).
247 PostgreSQL - ÜÔÏ ÒÁÓÛÉÒÅÎÎÁÑ ×ÅÒÓÉÑ ÓÉÓÔÅÍÙ ÕÐÒÁ×ÌÅÎÉÑ ÂÁÚÁÍÉ ÄÁÎÎÙÈ
248 POSTGRES, ÉÓÓÌÅÄÏ×ÁÔÅÌØÓËÏÇÏ ÐÒÏÔÏÔÉÐÁ DBMS ÓÌÅÄÕÀÝÅÊ ÇÅÎÅÒÁÃÉÉ.
249 óÏÈÒÁÎÑÑ ÍÏÝÎÕÀ ÍÏÄÅÌØ ÄÁÎÎÙÈ É ÂÏÇÁÔÙÊ ÎÁÂÏÒ ÔÉÐÏ× ÄÁÎÎÙÈ POSTGRES,
250 ÏÎÁ ÚÁÍÅÎÑÅÔ ÑÚÙË ÚÁÐÒÏÓÏ× PostQuel ÒÁÓÛÉÒÅÎÎÙÍ ÎÁÂÏÒÏÍ SQL.
251 PostgreSQL ÂÅÓÐÌÁÔÅÎ É ÐÏÓÔÁ×ÌÑÅÔÓÑ × ×ÉÄÅ ÐÏÌÎÏÇÏ ËÏÍÐÌÅËÔÁ ÉÓÈÏÄÎÙÈ
254 PostgreSQL ÒÁÚÒÁÂÁÔÙ×ÁÌÓÑ ËÏÍÁÎÄÏÊ Internet-ÒÁÚÒÁÂÏÔÞÉËÏ×, ÐÏÄÐÉÓÁÎÎÙÈ
255 ÎÁ ÓÐÉÓÏË ÒÁÓÓÙÌËÉ, ÐÏÓ×ÑÝÅÎÎÙÊ ÒÁÚÒÁÂÏÔËÅ PostgreSQL. ÷ ÎÁÓÔÏÑÝÅÅ
256 ×ÒÅÍÑ ËÏÏÒÄÉÎÁÔÏÒÏÍ Ñ×ÌÑÅÔÓÑ Marc G. Fournier
257 (scrappy@postgreSQL.org). üÔÁ ËÏÍÁÎÄÁ × ÎÁÓÔÏÑÝÅÅ ×ÒÅÍÑ ÏÔ×ÅÞÁÅÔ ÚÁ
258 ×ÓÅ ÔÅËÕÝÉÅ É ÂÕÄÕÝÉÅ ÒÁÚÒÁÂÏÔËÉ PostgreSQL.
260 á×ÔÏÒÁÍÉ PostgreSQL 1.01 ÂÙÌÉ Andrew Yu É Jolly Chen. íÎÏÇÉÅ ×ÎÅÓÌÉ
261 Ó×ÏÊ ×ËÌÁÄ × ÐÏÒÔÉÒÏ×ÁÎÉÅ, ÔÅÓÔÉÒÏ×ÁÎÉÅ, ÏÔÌÁÄËÕ É ÕÌÕÞÛÅÎÉÅ ËÏÄÁ.
262 ïÒÉÇÉÎÁÌØÎÙÊ ËÏÄ Postgres, ÏÔ ËÏÔÏÒÏÇÏ ÐÒÏÉÚÏÛÅÌ PostgreSQL, ÂÙÌ
263 ÓÏÚÄÁÎ ÕÓÉÌÉÑÍÉ ÓÔÕÄÅÎÔÏ×, ÁÓÐÉÒÁÎÔÏ× É ÐÅÒÓÏÎÁÌÁ, ÒÁÂÏÔÁÀÝÅÇÏ ÐÏÄ
264 ÒÕËÏ×ÏÄÓÔ×ÏÍ ÐÒÏÆÅÓÓÏÒÁ Michael Stonebraker × University of
265 California, Berkeley.
267 ïÒÉÇÉÎÁÌØÎÏÅ ÎÁÚ×ÁÎÉÅ ðï × Berkeley ÂÙÌÏ Postgres. ëÏÇÄÁ × 1995 ÇÏÄÕ
268 ÂÙÌÁ ÄÏÂÁ×ÌÅÎÁ ÆÕÎËÃÉÏÎÁÌØÎÏÓÔØ SQL, ÎÁÚ×ÁÎÉÅ ÉÚÍÅÎÉÌÏÓØ ÎÁ
269 Postgres95. ÷ ËÏÎÃÅ 1996 ÇÏÄÁ ÏÎÏ ÅÝÅ ÒÁÚ ÉÚÍÅÎÉÌÏÓØ É ÔÅÐÅÒØ ÜÔÏ
272 PostgreSQL ÒÁÂÏÔÁÅÔ ÎÁ Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD
273 É ÂÏÌØÛÉÎÓÔ×Å ÄÒÕÇÉÈ ÒÁÚÎÏ×ÉÄÎÏÓÔÅÊ Unix.
276 PostgreSQL, POSTGRES'den türemiþ bir veri tabaný yönetim sistemidir
277 (DBMS). Güçlü veri modeli ve zengin POSTGRES veri tiplerini
278 desteklerken SQL'in geniþletilmiþ bir altkümesi yerine PostQuel
279 sorgulama dilini koyar.
282 PostgreSQL - ÓÉÓÔÅÍÁ ËÅÒÕ×ÁÎÎÑ ÂÁÚÁÍÉ ÄÁÎÉÈ (ÒÁÎ¦Û ×¦ÄÏÍÁ ÑË Postgres,
283 ÐÏÔ¦Í ÑË Postgres95).
285 PostgreSQL - ÃÅ ÒÏÚÛÉÒÅÎÁ ×ÅÒÓ¦Ñ ÓÉÓÔÅÍÉ ËÅÒÕ×ÁÎÎÑ ÂÁÚÁÍÉ ÄÁÎÉÈ
286 POSTGRES, ÄÏÓ̦ÄÎÉÃØËÏÇÏ ÐÒÏÔÏÔÉÐÕ DBMS ÎÁÓÔÕÐÎϧ ÇÅÎÅÒÁæ§.
287 úÂÅÒ¦ÇÁÀÞÉ ÐÏÔÕÖÎÕ ÍÏÄÅÌØ ÄÁÎÉÈ ÔÁ ÂÁÇÁÔÉÊ ÎÁÂ¦Ò ÔÉÐ¦× ÄÁÎÉÈ POSTGRES,
288 ×ÏÎÁ ÚÁͦÎÀ¤ ÍÏ×Õ ÚÁÐÉÔ¦× PostQuel ÒÏÚÛÉÒÅÎÉÍ ÎÁÂÏÒÏÍ SQL. PostgreSQL
289 ÂÅÚËÏÛÔÏ×ÎÁ ÔÁ ÐÏÓÔÁ×ÌѤÔØÓÑ Õ ×ÉÇÌÑĦ ÐÏ×ÎÏÇÏ ËÏÍÐÌÅËÔÕ ×ÉȦÄÎÉÈ
292 PostgreSQL ÒÏÚÒÏÂÌѤÔØÓÑ ËÏÍÁÎÄÏÀ Internet-ÐÒÏÇÒÁͦÓÔ¦×, ÕÞÁÓÎÉ˦×
293 ÓÐÉÓËÕ ÒÏÚÓÉÌËÉ, ÐÒÉÓ×ÑÞÅÎÏÇÏ ÒÏÚÒÏÂæ PostgreSQL. îÁÒÁÚ¦
294 ËÏÏÒÄÉÎÁÔÏÒÏÍ ¤ Marc G. Fournier (scrappy@postgreSQL.org). ãÑ ËÏÍÁÎÄÁ
295 צÄÐÏצÄÁ¤ ÚÁ ×Ó¦ ÐÏÔÏÞΦ ÔÁ ÍÁÊÂÕÔΦ ÒÏÚÒÏÂËÉ PostgreSQL.
297 á×ÔÏÒÁÍÉ PostgreSQL 1.01 ÂÕÌÉ Andrew Yu ÔÁ Jolly Chen. âÁÇÁÔÏ ÌÀÄÅÊ
298 ×ÎÅÓÌÉ Ó×¦Ê ×ÎÅÓÏË × ÐÏÒÔÕ×ÁÎÎÑ, ÔÅÓÔÕ×ÁÎÎÑ, צÄÌÁÄËÕ ÔÁ ÐÏËÒÁÝÅÎÎÑ
299 ËÏÄÕ. ïÒÉǦÎÁÌØÎÉÊ ËÏÄ Postgres, ×¦Ä ÑËÏÇÏ ÐÏÈÏÄÉÔØ PostgreSQL, ÂÕ×
300 ÓÔ×ÏÒÅÎÉÊ ÚÕÓÉÌÌÑÍÉ ÓÔÕÄÅÎÔ¦×, ÁÓЦÒÁÎÔ¦× ÔÁ ÐÅÒÓÏÎÁÌÕ, ÑËÉÊ ÐÒÁÃÀ×Á×
301 Ð¦Ä ËÅÒ¦×ÎÉÃÔ×ÏÍ ÐÒÏÆÅÓÏÒÁ Michael Stonebraker × University of
302 California, Berkeley.
304 ïÒÉǦÎÁÌØÎÁ ÎÁÚ×Á ÐÒÏÇÒÁÍÉ × Berkeley ÂÕÌÁ Postgres. ëÏÌÉ × 1995 ÒÏæ
305 ÂÕÌÏ ÄÏÄÁÎÏ ÆÕÎËæÏÎÁÌØΦÓÔØ SQL, ÎÁÚ×Á ÚͦÎÉÌÁÓÑ ÎÁ Postgres95. ÷
306 ˦Îæ 1996 ÒÏËÕ ×ÏÎÁ ÝÅ ÒÁÚ ÚͦÎÉÌÁÓØ ¦ ÚÁÒÁÚ ÃÅ PostgreSQL.
308 PostgreSQL ÐÒÁÃÀ¤ ÎÁ Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD
309 ÔÁ ¦ÌØÛÏÓÔ¦ ¦ÎÛÉÈ Ò¦ÚÎÏ×ÉÄ¦× Unix.
312 Summary: PostgreSQL development header files and libraries
313 Summary(de): PostgreSQL-Entwicklungs-Header-Dateien und Libraries
314 Summary(es): Archivos de inclusión y bibliotecas PostgreSQL
315 Summary(fr): En-têtes et bibliothèques de développement PostgreSQL
316 Summary(pl): PostgreSQL - pliki nag³ówkowe i biblioteki
317 Summary(pt_BR): Arquivos de inclusão e bibliotecas para desenvolvimento com o PostgreSQL
318 Summary(ru): PostgreSQL - ÈÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ ÒÁÚÒÁÂÏÔÞÉËÁ
319 Summary(tr): PostgreSQL baþlýk dosyalarý ve kitaplýklar
320 Summary(uk): PostgreSQL - ÈÅÄÅÒÉ ÔÁ ¦Â̦ÏÔÅËÉ ÐÒÏÇÒÁͦÓÔÁ
321 Group: Development/Libraries
322 Requires: %{name}-libs = %{postgresql_version}-%{postgresql_release}
325 This package contains header files and libraries required to compile
326 applications that are talking directly to the PostgreSQL backend
329 %description devel -l de
330 Dieses Paket enthält die Header-Dateien und Libraries, die zum
331 Kompilieren von Applikationen notwendig sind, die direkt mit dem
332 PostgreSQL-Backend-Server kommunizieren.
334 %description devel -l es
335 Este paquete contiene archivos de inclusión y bibliotecas requeridas
336 para compilación de aplicativos que se comunican directamente con el
337 servidor backend PostgreSQL.
339 %description devel -l fr
340 Ce package contient les fichiers d'en-tête et les bibliothéques
341 nécessaires pour compiler des applications ayant des échanges directs
342 avec le serveur du backend PostgreSQL.
344 %description devel -l pl
345 Pakiet zawiera nag³ówki oraz biblioteki wymagane do kompilacji
346 aplikacji ³±cz±cych siê bezpo¶rednio z serwerem PostgreSQL.
348 %description devel -l pt_BR
349 Este pacote contém arquivos de inclusão e bibliotecas requeridas para
350 compilação de aplicativos que se comunicam diretamente com o servidor
353 %description devel -l ru
354 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÈÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÓÂÏÒËÉ
355 ÐÒÉÌÏÖÅÎÉÊ, ÎÅÐÏÓÒÅÄÓÔ×ÅÎÎÏ ×ÚÁÉÍÏÄÅÊÓÔ×ÕÀÝÉÈ Ó ÓÅÒ×ÅÒÏÍ PostgreSQL.
357 %description devel -l tr
358 Bu paket, PostgreSQL sunucusuyla konuþacak yazýlýmlar geliþtirmek için
359 gereken baþlýk dosyalarýný ve kitaplýklarý içerir.
361 %description devel -l uk
362 ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ ÈÅÄÅÒÉ ÔÁ ¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ
363 ÐÒÏÇÒÁÍ, Ñ˦ ÂÅÚÐÏÓÅÒÅÄÎØÏ ×ÚÁ¤ÍÏĦÀÔØ Ú ÓÅÒ×ÅÒÏÍ PostgreSQL.
365 %package backend-devel
366 Summary: PostgreSQL backend development header files
367 Summary(pl): PostgreSQL - pliki nag³ówkowe dla backendu
368 Group: Development/Libraries
369 Requires: %{name}-libs = %{postgresql_version}-%{postgresql_release}
371 %description backend-devel
372 This package contains header files required to compile functions that
373 could be loaded directly by backend
375 %description backend-devel -l pl
376 Pakiet zawiera nag³ówki wymagane do kompilacji funkcji ktore moga byc
377 bezposrednio ladowane przez beckend serwera PostgreSQL.
380 Summary: Clients needed to access a PostgreSQL server
381 Summary(es): Clientes necesarios para acceder al servidor PostgreSQL
382 Summary(pl): Klienci wymagani do dostêpu do serwera PostgreSQL
383 Summary(pt_BR): Clientes necessários para acessar o servidor PostgreSQL
384 Summary(ru): ëÌÉÅÎÔÓËÉÅ ÐÒÏÇÒÁÍÍÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÄÏÓÔÕÐÁ Ë ÓÅÒ×ÅÒÕ PostgreSQL
385 Summary(uk): ë̦¤ÎÔÓØ˦ ÐÒÏÇÒÁÍÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÄÏÓÔÕÐÕ ÄÏ ÓÅÒ×ÅÒÁ PostgreSQL
386 Group: Applications/Databases
387 Requires: %{name}-libs = %{postgresql_version}-%{postgresql_release}
390 This package includes only the clients needed to access an PostgreSQL
391 server. The server is included in the main package. If all you need is
392 to connect to another PostgreSQL server, the this is the only package
393 you need to install. Clients include several command-line utilities
394 you can use to manage your databases on a remote PostgreSQL server.
396 %description clients -l es
397 Este paquete incluye solamente los clientes necesarios para acceder un
398 servidor PostgreSQL. El servidor está en el paquete principal.
400 %description clients -l pl
401 Pakiet zawiera programy klienckie potrzebne dla dostêpu do serwera
402 PostgreSQL oraz narzêdzia do zarz±dzania bazami dzia³aj±ce z linii
403 poleceñ. Serwer znajduje siê w g³ównym pakiecie.
405 %description clients -l pt_BR
406 Este pacote inclui somente os clientes necessários para acessar um
407 servidor PostgreSQL. O servidor está no pacote principal.
409 %description clients -l ru
410 üÔÏÔ ÐÁËÅÔ ×ËÌÀÞÁÅÔ ÔÏÌØËÏ ËÌÉÅÎÔÓËÉÅ ÐÒÏÇÒÁÍÍÙ É ÂÉÂÌÉÏÔÅËÉ,
411 ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÄÏÓÔÕÐÁ Ë ÓÅÒ×ÅÒÕ PostgreSQL. óÅÒ×ÅÒ ×ÈÏÄÉÔ × ÇÌÁ×ÎÙÊ
412 ÐÁËÅÔ. åÓÌÉ ×ÁÍ ÎÁÄÏ ÔÏÌØËÏ ÒÁÂÏÔÁÔØ Ó ÄÒÕÇÉÍ ÓÅÒ×ÅÒÏÍ PostgreSQL, ÜÔÏ
413 ÅÄÉÎÓÔ×ÅÎÎÙÊ ÐÁËÅÔ, ËÏÔÏÒÙÊ ×ÁÍ ÎÁÄÏ ÕÓÔÁÎÏ×ÉÔØ.
415 ôÅÐÅÒØ ÐÁËÅÔÙ Ó ÂÉÂÌÉÏÔÅËÁÍÉ ÄÌÑ ÒÁÚÎÙÈ ÑÚÙËÏ× ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ (C,
416 C++, Perl É Tcl) ÒÁÚÄÅÌÅÎÙ. üÔÏÔ ÐÁËÅÔ ×ËÌÀÞÁÅÔ ÔÏÌØËÏ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ
419 %description clients -l uk
420 ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ Ô¦ÌØËÉ Ë̦¤ÎÔÓØ˦ ÐÒÏÇÒÁÍÉ ÔÁ ¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ
421 ÄÌÑ ÄÏÓÔÕÐÕ ÄÏ ÓÅÒ×ÅÒÁ PostgreSQL. óÅÒ×ÅÒ Í¦ÓÔÉÔØÓÑ × ÇÏÌÏ×ÎÏÍÕ
422 ÐÁËÅÔ¦. ñËÝÏ ×ÁÍ ÐÏÔÒ¦ÂÎÏ ÐÒÁÃÀ×ÁÔÉ Ú ¦ÎÛÉÍ ÓÅÒ×ÅÒÏÍ PostgreSQL, ÃÅ
423 ¤ÄÉÎÉÊ ÐÁËÅÔ, ÑËÉÊ ×ÁÍ ÔÒÅÂÁ ×ÓÔÁÎÏ×ÉÔÉ.
425 ôÅÐÅÒ ÐÁËÅÔÉ Ú Â¦Â̦ÏÔÅËÁÍÉ ÄÌÑ Ò¦ÚÎÉÈ ÍÏ× ÐÒÏÇÒÁÍÕ×ÁÎÎÑ (C, C++, Perl
426 ¦ Tcl) ÒÏÚĦÌÅΦ. ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ Ô¦ÌØËÉ Â¦Â̦ÏÔÅËÉ ÄÌÑ ÍÏ×É C.
429 Summary: Documentation for PostgreSQL
430 Summary(pl): Dodatkowa dokumantacja dla PostgreSQL
431 Group: Applications/Databases
434 This package includes documentation and HOWTO for programmer, admin
435 etc., in HTML format.
437 %description doc -l pl
438 Pakiet ten zawiera dokumentacjê oraz HOWTO m.in. dla programistów,
439 administratorów w formacie HTML.
442 Summary: PostgreSQL libraries
443 Summary(es): Biblioteca compartida del PostgreSQL
444 Summary(pl): Biblioteki dzielone programu PostgreSQL
445 Summary(pt_BR): Biblioteca compartilhada do PostgreSQL
446 Summary(zh_CN): PostgreSQL ¿Í»§ËùÐèÒªµÄ¹²Ïí¿â
450 PostgreSQL shared libraries.
452 %description libs -l es
453 Este paquete contiene la biblioteca compartida para acceso al
456 %description libs -l pl
457 Biblioteki dzielone programu PostgreSQL.
459 %description libs -l pt_BR
460 Este pacote contém a biblioteca compartilhada para acesso ao
464 Summary: Embedded SQL in C interface
465 Summary(pl): Interfejs wbudowanego SQL-a w jêzyk C
467 Requires: %{name}-libs = %{postgresql_version}-%{postgresql_release}
470 Embedded SQL in C interface.
472 %description ecpg -l pl
473 Interfejs wbudowanego SQL-a w jêzyk C.
476 Summary: Embedded SQL in C interface files
477 Summary(pl): Pliki programistyczne interfejsu wbudowanego SQL-a w jêzyk C
478 Group: Development/Libraries
479 Requires: %{name}-devel = %{postgresql_version}-%{postgresql_release}
480 Requires: %{name}-ecpg = %{postgresql_version}-%{postgresql_release}
482 %description ecpg-devel
483 Embedded SQL in C interface files.
485 %description ecpg-devel -l pl
486 Pliki programistyczne interfejsu wbudowanego SQL-a w jêzyk C.
489 Summary: PostgreSQL static libraries
490 Summary(es): Bibliotecas estaticas PostgreSQL
491 Summary(pl): Biblioteki statyczne programu PostgreSQL
492 Summary(pt_BR): Bibliotecas estáticas PostgreSQL
493 Summary(ru): óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ Ó PostgreSQL
494 Summary(uk): óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ ÄÌÑ ÐÒÏÇÒÁÍÕ×ÁÎÎÑ Ú PostgreSQL
495 Group: Development/Libraries
496 Requires: %{name}-devel = %{postgresql_version}-%{postgresql_release}
499 PostgreSQL static libraries.
501 %description static -l es
502 Este paquete contiene bibliotecas estaticas requerida para compilación
503 de aplicativos que se comunican directamente con el servidor backend
506 %description static -l pl
507 Biblioteki statyczne programu PostgreSQL.
509 %description static -l pt_BR
510 Este pacote contém as bibliotecas estáticas requeridas para compilação
511 de aplicativos que se comunicam diretamente com o servidor backend
514 %description static -l ru
515 üÔÏ ÏÔÄÅÌØÎÙÊ ÐÁËÅÔ ÓÏ ÓÔÁÔÉÞÅÓËÉÍÉ ÂÉÂÌÉÏÔÅËÁÍÉ, ËÏÔÏÒÙÅ ÂÏÌØÛÅ ÎÅ
516 ×ÈÏÄÑÔ × %{name}-devel.
518 %description static -l uk
519 ãÅ ÏËÒÅÍÉÊ ÐÁËÅÔ Ú¦ ÓÔÁÔÉÞÎÉÍÉ Â¦Â̦ÏÔÅËÁÍÉ, Ñ˦ ¦ÌØÛ ÎÅ ×ÈÏÄÑÔØ ×
522 %package module-plpgsql
523 Summary: PL/pgSQL - PostgreSQL procedural language
524 Summary(pl): PL/pgSQL jêzyk proceduralny bazy danych PostgreSQL
525 Group: Applications/Databases
526 Requires: %{name} = %{postgresql_version}-%{postgresql_release}
528 %description module-plpgsql
529 From PostgreSQL documentation.
531 Postgres supports the definition of procedural languages. In the case
532 of a function or trigger procedure defined in a procedural language,
533 the database has no built-in knowledge about how to interpret the
534 function's source text. Instead, the task is passed to a handler that
535 knows the details of the language. The handler itself is a special
536 programming language function compiled into a shared object and loaded
539 To enable PL/pgSQL procedural language for your database you have to
540 run createlang command.
542 %description module-plpgsql -l pl
543 Z dokumentacji PostgreSQL.
545 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
546 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
547 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
548 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
549 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
550 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
553 Za pomoc± komendy createlang mo¿na dodaæ wsparcie dla jêzyka
554 proceduralnego PL/pgSQL dla swojej bazy danych.
556 %package module-plperl
557 Summary: PL/perl - PostgreSQL procedural language
558 Summary(pl): PL/perl jêzyk proceduralny bazy danych PostgreSQL
559 Group: Applications/Databases
560 Requires: %{name} = %{postgresql_version}-%{postgresql_release}
561 Requires: perl(DynaLoader) = %(%{__perl} -MDynaLoader -e 'print DynaLoader->VERSION')
563 %description module-plperl
564 From PostgreSQL documentation.
566 Postgres supports the definition of procedural languages. In the case
567 of a function or trigger procedure defined in a procedural language,
568 the database has no built-in knowledge about how to interpret the
569 function's source text. Instead, the task is passed to a handler that
570 knows the details of the language. The handler itself is a special
571 programming language function compiled into a shared object and loaded
574 To enable PL/Perl procedural language for your database you have to
575 run createlang command.
577 %description module-plperl -l pl
578 Z dokumentacji PostgreSQL.
580 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
581 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
582 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
583 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
584 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
585 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
588 Za pomoc± komendy createlang mo¿na dodaæ wsparcie dla jêzyka
589 proceduralnego PL/Perl dla swojej bazy danych.
591 %package module-plpython
592 Summary: PL/Python - PostgreSQL procedural language
593 Summary(pl): PL/Python jêzyk proceduralny bazy danych PostgreSQL
594 Group: Applications/Databases
595 Requires: %{name} = %{postgresql_version}-%{postgresql_release}
596 %pyrequires_eq python
598 %description module-plpython
599 From PostgreSQL documentation.
601 Postgres supports the definition of procedural languages. In the case
602 of a function or trigger procedure defined in a procedural language,
603 the database has no built-in knowledge about how to interpret the
604 function's source text. Instead, the task is passed to a handler that
605 knows the details of the language. The handler itself is a special
606 programming language function compiled into a shared object and loaded
609 To enable PL/Python procedural language for your database you have to
610 run createlang command.
612 %description module-plpython -l pl
613 Z dokumentacji PostgreSQL.
615 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
616 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
617 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
618 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
619 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
620 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
623 Za pomoc± komendy createlang mo¿na dodaæ wsparcie dla jêzyka
624 proceduralnego PL/Python dla swojej bazy danych.
626 %package module-pltcl
627 Summary: PL/Tcl - PostgreSQL procedural language
628 Summary(pl): PL/Tcl - jêzyk proceduralny bazy danych PostgreSQL
629 Group: Applications/Databases
630 Requires: %{name} = %{postgresql_version}-%{postgresql_release}
632 %description module-pltcl
633 From PostgreSQL documentation.
635 Postgres supports the definition of procedural languages. In the case
636 of a function or trigger procedure defined in a procedural language,
637 the database has no built-in knowledge about how to interpret the
638 function's source text. Instead, the task is passed to a handler that
639 knows the details of the language. The handler itself is a special
640 programming language function compiled into a shared object and loaded
643 To enable PL/Tcl procedural language for your database you have to run
646 %description module-pltcl -l pl
647 Z dokumentacji PostgreSQL.
649 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
650 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
651 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
652 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
653 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
654 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
657 Za pomoc± komendy createlang mo¿na dodaæ wsparcie dla jêzyka
658 proceduralnego PL/Tcl dla swojej bazy danych.
660 %package module-pgcrypto
661 Summary: Cryptographic functions for PostgreSQL
662 Summary(pl): Funkcje kryptograficzne dla PostgreSQL
663 Group: Applications/Databases
664 Requires: %{name} = %{postgresql_version}-%{postgresql_release}
666 %description module-pgcrypto
667 Cryptographic functions for PostgreSQL.
669 %description module-pgcrypto -l pl
670 Funkcje kryptograficzne dla PostgreSQL.
672 %package module-tsearch2
673 Summary: Full text extension for PostgreSQL
674 Summary(pl): Rozszerzenie pe³notekstowe dla PostgreSQL-a
675 Group: Applications/Databases
676 Requires: %{name} = %{postgresql_version}-%{postgresql_release}
678 %description module-tsearch2
679 Implementation of a new data type tsvector - a searchable data type
681 http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/
683 %description module-tsearch2 -l pl
684 Implementacja nowego typu danych tsvector - typu danych podlegaj±cego
685 przeszukiwaniu z dostêpem poprzez indeksy:
686 http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/
689 Summary: Slony-I - a "master to multiple slaves" replication system for PostgreSQL
690 Summary(pl): Slony-I - system replikacji dla PostgreSQL
691 Version: %{slony1_version}
692 Release: %{slony1_release}@%{postgresql_version}_%{postgresql_release}
693 URL: http://slony.info/
694 Group: Applications/Databases
695 Requires: %{name} = %{postgresql_version}-%{postgresql_release}
696 Requires: %{name}-libs = %{postgresql_version}-%{postgresql_release}
698 %description -n slony1
699 Slony-I is a "master to multiple slaves" replication system with
700 cascading and failover.
702 The big picture for the development of Slony-I is a master-slave
703 system that includes all features and capabilities needed to replicate
704 large databases to a reasonably limited number of slave systems.
706 Slony-I is a system for data centers and backup sites, where the
707 normal mode of operation is that all nodes are available.
709 %description -n slony1 -l pl
710 Slony-I jest systemem replikacji dla PostgreSQL. Pozwala na replikacjê
711 typu "jeden serwer g³owny, wiele serwerów pomocniczych".
713 G³ówn± zalet± Slony-I jest system "master-slave". Zawiera on wszelk±
714 funkcjonalno¶æ potrzebn± do replikowania du¿ych baz danych na
715 okre¶lon± ilo¶æ serwerów pomocniczych lub zastêpczych.
717 Slony-I jest przeznaczony dla systemów, gdzie normalny tryb pracy
718 wymaga aby zarówno serwer g³ówny jak i wszystkie serwery pomocnicze
719 by³y ca³y czas operacyjne.
723 #%setup -q -n %{name}-%{version}%{beta}
725 %{?with_absolute_dbpaths:%patch1 -p1}
730 tar xzf doc/man*.tar.gz
733 tar zxf doc/postgres.tar.gz -C doc/unpacked
736 #find contrib -type d -name CVS -exec rm -rf {} \;
739 #rm -f config/libtool.m4
740 #install /usr/share/automake/config.* config
741 %{__aclocal} -I config
744 CFLAGS="%{rpmcflags} -DNEED_REENTRANT_FUNCS" \
745 %{?with_pgsql_locale:--enable-locale} \
746 %{?with_pgsql_multibyte:--enable-multibyte} \
749 --enable-thread-safety \
750 --enable-integer-datetimes \
755 --enable-unicode-conversion \
757 %{?with_tcl:--with-tcl} \
758 %{?with_perl:--with-perl} \
759 %{?with_python:--with-python} \
760 %{?with_kerberos5:--with-krb5} \
766 %{__make} -C contrib/pg_autovacuum
767 %{__make} -C contrib/pgcrypto
768 %{__make} -C contrib/tsearch2
769 #%{__make} -C src/tutorial
770 %ifnarch sparc sparcv9 sparc64 alpha
771 %{?with_tests:%{__make} check}
775 cd slony1-%{slony1_version}
776 install /usr/share/automake/config.* config
778 --with-pgsourcetree=`pwd`/..
785 rm -rf $RPM_BUILD_ROOT
786 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{rc.d/init.d,sysconfig}} \
787 $RPM_BUILD_ROOT{/var/{lib/pgsql,log},%{_pgsqldir}} \
788 $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} \
789 $RPM_BUILD_ROOT%{_mandir} \
790 $RPM_BUILD_ROOT/home/services/postgres
792 #install src/tutorial/*.sql $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
795 DESTDIR=$RPM_BUILD_ROOT
798 %{__make} install -C src/pl/plperl \
799 DESTDIR=$RPM_BUILD_ROOT
802 %{__make} -C contrib/pg_autovacuum install \
803 DESTDIR=$RPM_BUILD_ROOT
805 %{__make} -C contrib/pgcrypto install \
806 DESTDIR=$RPM_BUILD_ROOT
808 %{__make} -C contrib/tsearch2 install \
809 DESTDIR=$RPM_BUILD_ROOT
812 %{__make} install -C slony1-%{slony1_version} \
813 DESTDIR=$RPM_BUILD_ROOT
814 mkdir $RPM_BUILD_ROOT/home/services/slony1
815 install %{SOURCE7} $RPM_BUILD_ROOT/etc/sysconfig/slony1
816 install %{SOURCE6} $RPM_BUILD_ROOT/home/services/slony1/.pgpass
817 install %{SOURCE5} $RPM_BUILD_ROOT/etc/rc.d/init.d/slony1
820 touch $RPM_BUILD_ROOT/var/log/pgsql
822 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/postgresql
823 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/postgresql
830 %py_comp $RPM_BUILD_ROOT%{py_libdir}
831 %py_ocomp $RPM_BUILD_ROOT%{py_libdir}
834 for f in libpq pg_controldata pg_dump pg_resetxlog pgscripts postgres psql initdb pg_ctl; do
838 cat pgscripts.lang pg_resetxlog.lang postgres.lang pg_controldata.lang > main.lang
839 cat pg_dump.lang psql.lang initdb.lang pg_ctl.lang > clients.lang
841 # Remove Contrib documentation. We use macro %doc
842 rm -rf $RPM_BUILD_ROOT/contrib
845 rm -rf $RPM_BUILD_ROOT
849 if [ -f /etc/sysconfig/postgresql ]; then
850 . /etc/sysconfig/postgresql
851 if [ -z "$PG_DB_CLUSTERS" -a -n "$POSTGRES_DATA_DIR" ]; then
852 PG_DB_CLUSTERS="$POSTGRES_DATA_DIR"
856 for pgdir in $PG_DB_CLUSTERS; do
857 if [ -f $pgdir/PG_VERSION ]; then
858 if [ `cat $pgdir/PG_VERSION` != '8.0' ]; then
859 echo "Found database(s) in older, incompatible format in cluster $pgdir."
864 if [ "$foundold" = "1" ]; then
866 echo "Dump all data from clusters mentioned above (using pg_dump or pg_dumpall)"
867 echo "and clean (or rename) those directories; then upgrade postgresql and"
868 echo "restore all data (using pg_restore or psql)."
869 echo "Remember to stop the daemon before upgrading!"
871 echo "Warning for upgrade from version *before* 7.2."
872 echo "Please note, that postgresql module path changed from"
873 echo "/usr/lib/pgsql/module to /usr/lib/postgresql. Change the path"
874 echo "in dump file before restore."
876 echo "Warning for upgrade from version *before* 7.3."
877 echo "Reading following webpage is encouraged:"
878 echo "http://www.ca.postgresql.org/docs/momjian/upgrade_tips_7.3."
882 getgid postgres >/dev/null 2>&1 || /usr/sbin/groupadd -g 88 -r postgres
883 if id postgres >/dev/null 2>&1 ; then
884 /usr/sbin/usermod -d /home/services/postgres postgres
886 /usr/sbin/useradd -M -o -r -u 88 \
887 -d /home/services/postgres -s /bin/sh -g postgres \
888 -c "PostgreSQL Server" postgres
892 /sbin/chkconfig --add postgresql
893 if [ -f /var/lock/subsys/postgresql ]; then
894 /etc/rc.d/init.d/postgresql restart >&2 || :
896 echo "Run \"/etc/rc.d/init.d/postgresql start\" to start postgresql server."
900 if [ "$1" = "0" ]; then
901 if [ -f /var/lock/subsys/postgresql ]; then
902 /etc/rc.d/init.d/postgresql stop
904 /sbin/chkconfig --del postgresql
907 %post libs -p /sbin/ldconfig
908 %postun libs -p /sbin/ldconfig
910 %post ecpg -p /sbin/ldconfig
911 %postun ecpg -p /sbin/ldconfig
914 getgid slony1 >/dev/null 2>&1 || /usr/sbin/groupadd -g 131 -r slony1
915 if id slony1 >/dev/null 2>&1 ; then
916 /usr/sbin/usermod -d /home/services/slony1 slony1
918 /usr/sbin/useradd -M -o -r -u 131 \
919 -d /home/services/slony1 -s /bin/sh -g slony1 \
920 -c "Slony-I Replicator" slony1
924 /sbin/chkconfig --add slony1
925 if [ -f /var/lock/subsys/slony1 ]; then
926 /etc/rc.d/init.d/slony1 restart >&2 || :
928 echo "Run \"/etc/rc.d/init.d/slony1 start\" to start slony1 replicator."
932 if [ "$1" = "0" ]; then
933 if [ -f /var/lock/subsys/slony1 ]; then
934 /etc/rc.d/init.d/slony1 stop
936 /sbin/chkconfig --del slony1
940 %defattr(644,root,root,755)
941 %doc COPYRIGHT README HISTORY doc/{FAQ*,README*,bug.template}
942 %doc contrib/pg_autovacuum/README*
943 %attr(754,root,root) /etc/rc.d/init.d/postgresql
944 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/postgresql
946 %attr(755,root,root) %{_bindir}/clusterdb
947 %attr(755,root,root) %{_bindir}/createdb
948 %attr(755,root,root) %{_bindir}/createlang
949 %attr(755,root,root) %{_bindir}/createuser
950 %attr(755,root,root) %{_bindir}/dropdb
951 %attr(755,root,root) %{_bindir}/droplang
952 %attr(755,root,root) %{_bindir}/dropuser
953 %attr(755,root,root) %{_bindir}/initdb
954 %attr(755,root,root) %{_bindir}/ipcclean
955 %attr(755,root,root) %{_bindir}/pg_autovacuum
956 %attr(755,root,root) %{_bindir}/pg_controldata
957 %attr(755,root,root) %{_bindir}/pg_ctl
958 %attr(755,root,root) %{_bindir}/pg_resetxlog
959 %attr(755,root,root) %{_bindir}/postgres
960 %attr(755,root,root) %{_bindir}/postmaster
962 %attr(755,root,root) %{_pgmoduledir}/ascii*
963 %attr(755,root,root) %{_pgmoduledir}/cyrillic*
964 %attr(755,root,root) %{_pgmoduledir}/euc*
965 %attr(755,root,root) %{_pgmoduledir}/latin*
966 %attr(755,root,root) %{_pgmoduledir}/utf*
970 %dir %{_datadir}/postgresql
971 %dir %{_datadir}/postgresql/timezone
972 %{_datadir}/postgresql/*.bki
973 %{_datadir}/postgresql/*.sample
974 %{_datadir}/postgresql/*.description
975 %{_datadir}/postgresql/*.sql
976 %{_datadir}/postgresql/*.txt
977 %{_datadir}/postgresql/timezone/*
979 %attr(700,postgres,postgres) /home/services/postgres
980 %attr(700,postgres,postgres) %dir /var/lib/pgsql
981 %attr(640,postgres,postgres) %config(noreplace) %verify(not md5 mtime size) /var/log/pgsql
983 %{_mandir}/man1/clusterdb.1*
984 %{_mandir}/man1/createdb.1*
985 %{_mandir}/man1/createlang.1*
986 %{_mandir}/man1/createuser.1*
987 %{_mandir}/man1/dropdb.1*
988 %{_mandir}/man1/droplang.1*
989 %{_mandir}/man1/dropuser.1*
990 %{_mandir}/man1/initdb.1*
991 %{_mandir}/man1/ipcclean.1*
992 %{_mandir}/man1/pg_controldata.1*
993 %{_mandir}/man1/pg_ctl.1*
994 %{_mandir}/man1/pg_resetxlog.1*
995 %{_mandir}/man1/postgres.1*
996 %{_mandir}/man1/postmaster.1*
999 %defattr(644,root,root,755)
1000 %doc doc/unpacked/* doc/src/FAQ howto
1001 %{_examplesdir}/%{name}-%{version}
1003 %files libs -f libpq.lang
1004 %defattr(644,root,root,755)
1005 %attr(755,root,root) %{_libdir}/libpq.so.*.*
1008 %defattr(644,root,root,755)
1009 %attr(755,root,root) %{_bindir}/ecpg
1010 %attr(755,root,root) %{_libdir}/libecpg.so.*.*
1011 %attr(755,root,root) %{_libdir}/libecpg_compat.so.*.*
1012 %attr(755,root,root) %{_libdir}/libpgtypes.so.*.*
1013 %{_mandir}/man1/ecpg.1*
1016 %defattr(644,root,root,755)
1017 %attr(755,root,root) %{_libdir}/libecpg.so
1018 %attr(755,root,root) %{_libdir}/libecpg_compat.so
1019 %attr(755,root,root) %{_libdir}/libpgtypes.so
1023 %defattr(644,root,root,755)
1024 %attr(755,root,root) %{_bindir}/pg_config
1025 %attr(755,root,root) %{_libdir}/libpq.so
1026 %dir %{_includedir}/postgresql
1027 %{_includedir}/libpq-fe.h
1028 %{_includedir}/pg_config.h
1029 %{_includedir}/pg_config_manual.h
1030 %{_includedir}/pg_config_os.h
1031 %{_includedir}/postgres_ext.h
1032 %dir %{_includedir}/postgresql/internal
1033 %{_includedir}/postgresql/internal/c.h
1034 %{_includedir}/postgresql/internal/libpq-int.h
1035 %{_includedir}/postgresql/internal/port.h
1036 %{_includedir}/postgresql/internal/postgres_fe.h
1037 %{_includedir}/postgresql/internal/pqexpbuffer.h
1038 %{_includedir}/postgresql/internal/libpq
1039 %{_includedir}/libpq
1040 %{_mandir}/man1/pg_config.1*
1042 %files backend-devel
1043 %defattr(644,root,root,755)
1044 %{_includedir}/postgresql/server
1047 %defattr(644,root,root,755)
1048 %{_libdir}/libecpg.a
1049 %{_libdir}/libecpg_compat.a
1051 %{_libdir}/libpgtypes.a
1052 %{_libdir}/libpgport.a
1054 %files clients -f clients.lang
1055 %defattr(644,root,root,755)
1056 %attr(755,root,root) %{_bindir}/pg_dump
1057 %attr(755,root,root) %{_bindir}/pg_dumpall
1058 %attr(755,root,root) %{_bindir}/pg_restore
1059 %attr(755,root,root) %{_bindir}/psql
1060 %attr(755,root,root) %{_bindir}/vacuumdb
1062 %{_mandir}/man1/pg_dump.1*
1063 %{_mandir}/man1/pg_dumpall.1*
1064 %{_mandir}/man1/pg_restore.1*
1065 %{_mandir}/man1/psql.1*
1066 %{_mandir}/man1/vacuumdb.1*
1067 %{_mandir}/man7/*.7*
1069 %files module-plpgsql
1070 %defattr(644,root,root,755)
1071 %attr(755,root,root) %{_pgmoduledir}/plpgsql.so
1074 %files module-plperl
1075 %defattr(644,root,root,755)
1076 %attr(755,root,root) %{_pgmoduledir}/plperl.so
1080 %files module-plpython
1081 %defattr(644,root,root,755)
1082 %attr(755,root,root) %{_pgmoduledir}/plpython.so
1087 %defattr(644,root,root,755)
1088 %attr(755,root,root) %{_bindir}/pltcl_*
1089 %attr(755,root,root) %{_pgmoduledir}/pltcl.so
1092 %files module-pgcrypto
1093 %defattr(644,root,root,755)
1094 %doc contrib/pgcrypto/README*
1095 %attr(755,root,root) %{_pgmoduledir}/pgcrypto.so
1096 %{_pgsqldir}/pgcrypto.sql
1098 %files module-tsearch2
1099 %defattr(644,root,root,755)
1100 %doc contrib/tsearch2/README*
1101 %attr(755,root,root) %{_pgmoduledir}/tsearch2.so
1102 %{_pgsqldir}/tsearch2.sql
1103 %{_pgsqldir}/untsearch2.sql
1108 %defattr(644,root,root,755)
1109 %doc slony1-%{slony1_version}/doc/howto/*
1110 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/slony1
1111 %attr(754,root,root) /etc/rc.d/init.d/slony1
1112 %attr(755,root,root) %{_bindir}/slon
1113 %attr(755,root,root) %{_bindir}/slonik
1114 %attr(750,slony1,slony1) %dir /home/services/slony1
1115 %attr(600,slony1,slony1) /home/services/slony1/.pgpass
1116 %attr(755,root,root) %{_pgmoduledir}/slony1_funcs.so
1117 %attr(755,root,root) %{_pgmoduledir}/xxid.so