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 2
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}
70 BuildRequires: python >= 1:2.3
71 BuildRequires: python-devel >= 1:2.3
73 BuildRequires: readline-devel >= 4.2
74 BuildRequires: sed >= 4.0
75 %{?with_tcl:BuildRequires: tcl-devel >= 8.4.3}
76 BuildRequires: zlib-devel
78 PreReq: %{name}-clients = %{postgresql_version}-%{postgresql_release}
79 PreReq: %{name}-libs = %{postgresql_version}-%{postgresql_release}
80 Requires(pre): /usr/bin/getgid
81 Requires(pre): /bin/id
82 Requires(pre): /usr/sbin/groupadd
83 Requires(pre): /usr/sbin/useradd
84 Requires(pre): /usr/sbin/usermod
85 Requires(post,preun): /sbin/chkconfig
86 Obsoletes: postgresql-server
87 Obsoletes: postgresql-test
88 BuildRoot: %{tmpdir}/%{name}-%{postgresql_version}-root-%(id -u -n)
90 %define _pgmoduledir %{_libdir}/postgresql
91 %define _pgsqldir %{_datadir}/postgresql/contrib
94 PostgreSQL Data Base Management System (formerly known as Postgres,
97 PostgreSQL is an enhancement of the POSTGRES database management
98 system, a next-generation DBMS research prototype. While PostgreSQL
99 retains the powerful data model and rich data types of POSTGRES, it
100 replaces the PostQuel query language with an extended subset of SQL.
101 PostgreSQL is free and the complete source is available.
103 PostgreSQL development is being performed by a team of Internet
104 developers who all subscribe to the PostgreSQL development mailing
105 list. The current coordinator is Marc G. Fournier
106 (scrappy@postgreSQL.org). This team is now responsible for all current
107 and future development of PostgreSQL.
109 The authors of PostgreSQL 1.01 were Andrew Yu and Jolly Chen. Many
110 others have contributed to the porting, testing, debugging and
111 enhancement of the code. The original Postgres code, from which
112 PostgreSQL is derived, was the effort of many graduate students,
113 undergraduate students, and staff programmers working under the
114 direction of Professor Michael Stonebraker at the University of
115 California, Berkeley.
117 The original name of the software at Berkeley was Postgres. When SQL
118 functionality was added in 1995, its name was changed to Postgres95.
119 The name was changed at the end of 1996 to PostgreSQL.
121 PostgreSQL runs on Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD,
122 and most flavours of Unix.
125 PostgreSQL Datenbank-Managementsystem (früher als Postgres, dann als
128 PostgreSQL ist eine Verbesserung des POSTGRES-DB-Managementsystems,
129 ein DBMS-Forschungsprototyp der nächsten Generation. Während es das
130 leistungsfähige Datenmodell und die reichhaltigen Datentypen von
131 POSTGRES beibehält, ersetzt es die PostQuel-Abfragesprache durch ein
132 Subset von SQL. PostgreSQL ist gratis, der gesamte Quellcode ist
135 Ein Team von Internet-Entwicklern befaßt sich mit PostgreSQL. Sie alle
136 sind auf der PostgreSQL-Entwickleradreßliste. Koordinator ist Marc G.
137 Fournier (scrappy@postgreSQL.org). Das Team ist verantwortlich für
138 alle aktuellen und künftigen Entwicklungen von PostgreSQL.
140 Die Autoren von PostgreSQL 1.01 waren Andrew Yu und Jolly Chen.
141 Zahlreiche andere haben zur Portierung, zum Testen, Debugging und zur
142 Verbesserung des Code beigetragen. Den Original-Postgres-Code, von dem
143 sich PostgreSQL ableitet, verdanken wir der Arbeit vieler Doktoranden,
144 Studenten und Programmierern unter der Leitung von Professor Michael
145 Stonebraker an der University of California, Berkeley.
147 Der ursprüngliche Name war Postgres. Als 1995 SQL-Funktionalität
148 hinzukam, wurde der Name in Postgres95 geändert. Ende 1996 schließlich
149 entschied man sich für PostgreSQL.
151 PostgreSQL läuft auf Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD
152 und den meisten Unix-Systemen.
155 Administrador de Banco de Datos PostgreSQL (conocido anteriormente
156 como Postgres, y después como Postgres95). PostgreSQL es una
157 continuación mejorada del Sistema Administrador de Banco de Datos
158 POSTGRES, que era un prototipo de pesquisa para un SGBD de nueva
159 generación. Mientras PostgreSQL mantiene el potente modelo de datos y
160 los varios tipos de datos del POSTGRES, substituye el lenguaje de
161 consulta PostQuel por un subconjunto extendido de la SQL. PostgreSQL
162 es libre y tiene los fuentes disponibles. El desarrollo del PostgreSQL
163 se ejecutado por un equipo de estudiosos de Internet, todos suscritos
164 en la lista de desarrollo del PostgreSQL. El coordinador actual es
165 Marc G. Fournier (scrappy@postgreSQL.org). Este equipo es ahora
166 responsable por el desarrollo actual y futuro del PostgreSQL.
169 Système de gestion de bases de données PostgreSQL (D'abord nommé
170 Postgres, puis Postgres95).
172 PostgreSQL est une amélioration du système de gestion de bases de
173 données POSTGRES, un prototype de recherche de la génération suivant
174 DBMS. Tout en conservant le puissant modèle de donnée de et les types
175 de donée riches de Postgres, il remplace le langage de requêtes de
176 Postgres par un sous ensemble etendu de commandes SQL. PosrgreSQL est
177 libre, et ses sources sont disponibles.
179 Le développement de PostgreSQL est actuellement réalisé via internet
180 parune équipe de développeurs inscrits sur la mailing-list de
181 développement de PostgreSQL. Le coordinateur actuel est Marc G
182 Fournier (scrappy@postgreSQL.org). Cette équipe est responsable du
183 développemen actuel et à venir de PostgreSQL.
185 Les auteurs de PostgreSQL 1.01 étaient Andrew Yu et Jolly Chen.
186 Beaucoup d'autres ont contribué au portage, au test, au débogage et à
187 l'amélioration du code. Le code original de Postgres, duquel
188 PostgreSQL est dérivé, a été l'oeuvre d'étudiants de haut niveau, de
189 moins haut niveau, et de programmeurs travaillant sous la direction du
190 professeur Michael Stonebraker à l'université de Berkeley Californie.
192 Le nom original du logiciel était Postgres. Quand les fonctionnalitées
193 SQL furent ajoutées en 1995, son nom est devenu Postgres95. Il a été
194 rebaptisé PostgreSQL en 1996.
196 PostgreSQL tourne sur Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD,
197 et la plupart des Unix.
200 System Zarz±dzania Baz± Danych PostgreSQL (dawniej znany jako
201 Postgres, nastêpnie jako Postgres95).
203 PostgreSQL jest rozszerzeniem systemu zarz±dzania baz danych POSTGRES,
204 prototypu DBMS nastêpnej generacji. Co prawda PostgreSQL odziedziczy³
205 model danych oraz bogaty zbiór ró¿nych typów danych, to jednak jêzyk
206 zapytañ PostQuel zosta³ zast±piony rozszerzonym SQL-em. PostgreSQL
207 jest wolnym oprogramowaniem i kody ¼ród³owe tego oprogramowania s± w
210 System PostgreSQL jest tworzony przez zespó³ ludzi, którzy s± zapisani
211 na listê dyskusyjn± dotycz±c± PostgreSQL-a. Obecnym koordynatorem jest
212 Marc G. Fournier (scrappy@postgreSQL.org). Wymieniony wy¿ej zespó³
213 jest odpowiedzialny za aktualny i przysz³y rozwój systemu PostgreSQL.
215 Autorami PostgreSQL-a 1.01 byli Andrew Yu oraz Jolly Chen. Wielu
216 innych pomaga³o przenosz±c na ró¿ne platformy, testuj±c, analizuj±c i
217 rozszerzaj±c kod. Oryginalny kod Postgres-a, na podstawie którego
218 PostgreSQL powsta³, by³ wysi³kiem wielu absolwentów, studentów oraz
219 zespo³u programistów, którzy pracowali pod kierunkiem profesora
220 Michaela Stonebrakera z Uniwersytetu Kalifornii w Berkeley.
222 Nazwa oryginalna oprogramowania tworzonego w Berkeley brzmia³a
223 Postgres. W 1995 roku dodano jêzyk zapytañ SQL i nazwê zmieniono na
224 Postgres95. W koñcu roku 1996 nazwê ostatecznie zmieniono na
227 PostgreSQL mo¿e byæ uruchomiony pod nastêpuj±cymi systemami: Solaris,
228 SunOS, HPUX, AIX, Linux, Irix, FreeBSD i innymi systemami uniksowymi.
230 %description -l pt_BR
231 Gerenciador de Banco de Dados PostgreSQL (conhecido anteriormente como
232 Postgres, e depois como Postgres95).
234 O PostgreSQL é uma continuação melhorada do Sistema Gerenciador de
235 Banco de Dados POSTGRES, que era um protótipo de pesquisa para um SGBD
236 de nova geração. Enquanto o PostgreSQL mantém o poderoso modelo de
237 dados e os vários tipos de dados do POSTGRES, ele substitui a
238 linguagem de consulta PostQuel por um subconjunto estendido da SQL. O
239 PostgreSQL é livre e tem os fontes disponíveis.
241 O desenvolvimento do PostgreSQL está sendo executado por uma equipe de
242 desenvolvedores da Internet, todos subscritores da lista de
243 desenvolvimento do PostgreSQL. O coordenador atual é Marc G. Fournier
244 (scrappy@postgreSQL.org). Esta equipe é agora responsável pelo
245 desenvolvimento atual e futuro do PostgreSQL.
248 PostgreSQL - ÓÉÓÔÅÍÁ ÕÐÒÁ×ÌÅÎÉÑ ÂÁÚÁÍÉ ÄÁÎÎÙÈ (ÐÒÅÖÄÅ ÉÚ×ÅÓÔÎÁÑ ËÁË
249 Postgres, ÐÏÔÏÍ ËÁË Postgres95).
251 PostgreSQL - ÜÔÏ ÒÁÓÛÉÒÅÎÎÁÑ ×ÅÒÓÉÑ ÓÉÓÔÅÍÙ ÕÐÒÁ×ÌÅÎÉÑ ÂÁÚÁÍÉ ÄÁÎÎÙÈ
252 POSTGRES, ÉÓÓÌÅÄÏ×ÁÔÅÌØÓËÏÇÏ ÐÒÏÔÏÔÉÐÁ DBMS ÓÌÅÄÕÀÝÅÊ ÇÅÎÅÒÁÃÉÉ.
253 óÏÈÒÁÎÑÑ ÍÏÝÎÕÀ ÍÏÄÅÌØ ÄÁÎÎÙÈ É ÂÏÇÁÔÙÊ ÎÁÂÏÒ ÔÉÐÏ× ÄÁÎÎÙÈ POSTGRES,
254 ÏÎÁ ÚÁÍÅÎÑÅÔ ÑÚÙË ÚÁÐÒÏÓÏ× PostQuel ÒÁÓÛÉÒÅÎÎÙÍ ÎÁÂÏÒÏÍ SQL.
255 PostgreSQL ÂÅÓÐÌÁÔÅÎ É ÐÏÓÔÁ×ÌÑÅÔÓÑ × ×ÉÄÅ ÐÏÌÎÏÇÏ ËÏÍÐÌÅËÔÁ ÉÓÈÏÄÎÙÈ
258 PostgreSQL ÒÁÚÒÁÂÁÔÙ×ÁÌÓÑ ËÏÍÁÎÄÏÊ Internet-ÒÁÚÒÁÂÏÔÞÉËÏ×, ÐÏÄÐÉÓÁÎÎÙÈ
259 ÎÁ ÓÐÉÓÏË ÒÁÓÓÙÌËÉ, ÐÏÓ×ÑÝÅÎÎÙÊ ÒÁÚÒÁÂÏÔËÅ PostgreSQL. ÷ ÎÁÓÔÏÑÝÅÅ
260 ×ÒÅÍÑ ËÏÏÒÄÉÎÁÔÏÒÏÍ Ñ×ÌÑÅÔÓÑ Marc G. Fournier
261 (scrappy@postgreSQL.org). üÔÁ ËÏÍÁÎÄÁ × ÎÁÓÔÏÑÝÅÅ ×ÒÅÍÑ ÏÔ×ÅÞÁÅÔ ÚÁ
262 ×ÓÅ ÔÅËÕÝÉÅ É ÂÕÄÕÝÉÅ ÒÁÚÒÁÂÏÔËÉ PostgreSQL.
264 á×ÔÏÒÁÍÉ PostgreSQL 1.01 ÂÙÌÉ Andrew Yu É Jolly Chen. íÎÏÇÉÅ ×ÎÅÓÌÉ
265 Ó×ÏÊ ×ËÌÁÄ × ÐÏÒÔÉÒÏ×ÁÎÉÅ, ÔÅÓÔÉÒÏ×ÁÎÉÅ, ÏÔÌÁÄËÕ É ÕÌÕÞÛÅÎÉÅ ËÏÄÁ.
266 ïÒÉÇÉÎÁÌØÎÙÊ ËÏÄ Postgres, ÏÔ ËÏÔÏÒÏÇÏ ÐÒÏÉÚÏÛÅÌ PostgreSQL, ÂÙÌ
267 ÓÏÚÄÁÎ ÕÓÉÌÉÑÍÉ ÓÔÕÄÅÎÔÏ×, ÁÓÐÉÒÁÎÔÏ× É ÐÅÒÓÏÎÁÌÁ, ÒÁÂÏÔÁÀÝÅÇÏ ÐÏÄ
268 ÒÕËÏ×ÏÄÓÔ×ÏÍ ÐÒÏÆÅÓÓÏÒÁ Michael Stonebraker × University of
269 California, Berkeley.
271 ïÒÉÇÉÎÁÌØÎÏÅ ÎÁÚ×ÁÎÉÅ ðï × Berkeley ÂÙÌÏ Postgres. ëÏÇÄÁ × 1995 ÇÏÄÕ
272 ÂÙÌÁ ÄÏÂÁ×ÌÅÎÁ ÆÕÎËÃÉÏÎÁÌØÎÏÓÔØ SQL, ÎÁÚ×ÁÎÉÅ ÉÚÍÅÎÉÌÏÓØ ÎÁ
273 Postgres95. ÷ ËÏÎÃÅ 1996 ÇÏÄÁ ÏÎÏ ÅÝÅ ÒÁÚ ÉÚÍÅÎÉÌÏÓØ É ÔÅÐÅÒØ ÜÔÏ
276 PostgreSQL ÒÁÂÏÔÁÅÔ ÎÁ Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD
277 É ÂÏÌØÛÉÎÓÔ×Å ÄÒÕÇÉÈ ÒÁÚÎÏ×ÉÄÎÏÓÔÅÊ Unix.
280 PostgreSQL, POSTGRES'den türemiþ bir veri tabaný yönetim sistemidir
281 (DBMS). Güçlü veri modeli ve zengin POSTGRES veri tiplerini
282 desteklerken SQL'in geniþletilmiþ bir altkümesi yerine PostQuel
283 sorgulama dilini koyar.
286 PostgreSQL - ÓÉÓÔÅÍÁ ËÅÒÕ×ÁÎÎÑ ÂÁÚÁÍÉ ÄÁÎÉÈ (ÒÁÎ¦Û ×¦ÄÏÍÁ ÑË Postgres,
287 ÐÏÔ¦Í ÑË Postgres95).
289 PostgreSQL - ÃÅ ÒÏÚÛÉÒÅÎÁ ×ÅÒÓ¦Ñ ÓÉÓÔÅÍÉ ËÅÒÕ×ÁÎÎÑ ÂÁÚÁÍÉ ÄÁÎÉÈ
290 POSTGRES, ÄÏÓ̦ÄÎÉÃØËÏÇÏ ÐÒÏÔÏÔÉÐÕ DBMS ÎÁÓÔÕÐÎϧ ÇÅÎÅÒÁæ§.
291 úÂÅÒ¦ÇÁÀÞÉ ÐÏÔÕÖÎÕ ÍÏÄÅÌØ ÄÁÎÉÈ ÔÁ ÂÁÇÁÔÉÊ ÎÁÂ¦Ò ÔÉÐ¦× ÄÁÎÉÈ POSTGRES,
292 ×ÏÎÁ ÚÁͦÎÀ¤ ÍÏ×Õ ÚÁÐÉÔ¦× PostQuel ÒÏÚÛÉÒÅÎÉÍ ÎÁÂÏÒÏÍ SQL. PostgreSQL
293 ÂÅÚËÏÛÔÏ×ÎÁ ÔÁ ÐÏÓÔÁ×ÌѤÔØÓÑ Õ ×ÉÇÌÑĦ ÐÏ×ÎÏÇÏ ËÏÍÐÌÅËÔÕ ×ÉȦÄÎÉÈ
296 PostgreSQL ÒÏÚÒÏÂÌѤÔØÓÑ ËÏÍÁÎÄÏÀ Internet-ÐÒÏÇÒÁͦÓÔ¦×, ÕÞÁÓÎÉ˦×
297 ÓÐÉÓËÕ ÒÏÚÓÉÌËÉ, ÐÒÉÓ×ÑÞÅÎÏÇÏ ÒÏÚÒÏÂæ PostgreSQL. îÁÒÁÚ¦
298 ËÏÏÒÄÉÎÁÔÏÒÏÍ ¤ Marc G. Fournier (scrappy@postgreSQL.org). ãÑ ËÏÍÁÎÄÁ
299 צÄÐÏצÄÁ¤ ÚÁ ×Ó¦ ÐÏÔÏÞΦ ÔÁ ÍÁÊÂÕÔΦ ÒÏÚÒÏÂËÉ PostgreSQL.
301 á×ÔÏÒÁÍÉ PostgreSQL 1.01 ÂÕÌÉ Andrew Yu ÔÁ Jolly Chen. âÁÇÁÔÏ ÌÀÄÅÊ
302 ×ÎÅÓÌÉ Ó×¦Ê ×ÎÅÓÏË × ÐÏÒÔÕ×ÁÎÎÑ, ÔÅÓÔÕ×ÁÎÎÑ, צÄÌÁÄËÕ ÔÁ ÐÏËÒÁÝÅÎÎÑ
303 ËÏÄÕ. ïÒÉǦÎÁÌØÎÉÊ ËÏÄ Postgres, ×¦Ä ÑËÏÇÏ ÐÏÈÏÄÉÔØ PostgreSQL, ÂÕ×
304 ÓÔ×ÏÒÅÎÉÊ ÚÕÓÉÌÌÑÍÉ ÓÔÕÄÅÎÔ¦×, ÁÓЦÒÁÎÔ¦× ÔÁ ÐÅÒÓÏÎÁÌÕ, ÑËÉÊ ÐÒÁÃÀ×Á×
305 Ð¦Ä ËÅÒ¦×ÎÉÃÔ×ÏÍ ÐÒÏÆÅÓÏÒÁ Michael Stonebraker × University of
306 California, Berkeley.
308 ïÒÉǦÎÁÌØÎÁ ÎÁÚ×Á ÐÒÏÇÒÁÍÉ × Berkeley ÂÕÌÁ Postgres. ëÏÌÉ × 1995 ÒÏæ
309 ÂÕÌÏ ÄÏÄÁÎÏ ÆÕÎËæÏÎÁÌØΦÓÔØ SQL, ÎÁÚ×Á ÚͦÎÉÌÁÓÑ ÎÁ Postgres95. ÷
310 ˦Îæ 1996 ÒÏËÕ ×ÏÎÁ ÝÅ ÒÁÚ ÚͦÎÉÌÁÓØ ¦ ÚÁÒÁÚ ÃÅ PostgreSQL.
312 PostgreSQL ÐÒÁÃÀ¤ ÎÁ Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD
313 ÔÁ ¦ÌØÛÏÓÔ¦ ¦ÎÛÉÈ Ò¦ÚÎÏ×ÉÄ¦× Unix.
316 Summary: PostgreSQL development header files and libraries
317 Summary(de): PostgreSQL-Entwicklungs-Header-Dateien und Libraries
318 Summary(es): Archivos de inclusión y bibliotecas PostgreSQL
319 Summary(fr): En-têtes et bibliothèques de développement PostgreSQL
320 Summary(pl): PostgreSQL - pliki nag³ówkowe i biblioteki
321 Summary(pt_BR): Arquivos de inclusão e bibliotecas para desenvolvimento com o PostgreSQL
322 Summary(ru): PostgreSQL - ÈÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ ÒÁÚÒÁÂÏÔÞÉËÁ
323 Summary(tr): PostgreSQL baþlýk dosyalarý ve kitaplýklar
324 Summary(uk): PostgreSQL - ÈÅÄÅÒÉ ÔÁ ¦Â̦ÏÔÅËÉ ÐÒÏÇÒÁͦÓÔÁ
325 Group: Development/Libraries
326 Requires: %{name}-libs = %{postgresql_version}-%{postgresql_release}
329 This package contains header files and libraries required to compile
330 applications that are talking directly to the PostgreSQL backend
333 %description devel -l de
334 Dieses Paket enthält die Header-Dateien und Libraries, die zum
335 Kompilieren von Applikationen notwendig sind, die direkt mit dem
336 PostgreSQL-Backend-Server kommunizieren.
338 %description devel -l es
339 Este paquete contiene archivos de inclusión y bibliotecas requeridas
340 para compilación de aplicativos que se comunican directamente con el
341 servidor backend PostgreSQL.
343 %description devel -l fr
344 Ce package contient les fichiers d'en-tête et les bibliothéques
345 nécessaires pour compiler des applications ayant des échanges directs
346 avec le serveur du backend PostgreSQL.
348 %description devel -l pl
349 Pakiet zawiera nag³ówki oraz biblioteki wymagane do kompilacji
350 aplikacji ³±cz±cych siê bezpo¶rednio z serwerem PostgreSQL.
352 %description devel -l pt_BR
353 Este pacote contém arquivos de inclusão e bibliotecas requeridas para
354 compilação de aplicativos que se comunicam diretamente com o servidor
357 %description devel -l ru
358 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÈÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÓÂÏÒËÉ
359 ÐÒÉÌÏÖÅÎÉÊ, ÎÅÐÏÓÒÅÄÓÔ×ÅÎÎÏ ×ÚÁÉÍÏÄÅÊÓÔ×ÕÀÝÉÈ Ó ÓÅÒ×ÅÒÏÍ PostgreSQL.
361 %description devel -l tr
362 Bu paket, PostgreSQL sunucusuyla konuþacak yazýlýmlar geliþtirmek için
363 gereken baþlýk dosyalarýný ve kitaplýklarý içerir.
365 %description devel -l uk
366 ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ ÈÅÄÅÒÉ ÔÁ ¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ
367 ÐÒÏÇÒÁÍ, Ñ˦ ÂÅÚÐÏÓÅÒÅÄÎØÏ ×ÚÁ¤ÍÏĦÀÔØ Ú ÓÅÒ×ÅÒÏÍ PostgreSQL.
369 %package backend-devel
370 Summary: PostgreSQL backend development header files
371 Summary(pl): PostgreSQL - pliki nag³ówkowe dla backendu
372 Group: Development/Libraries
373 Requires: %{name}-libs = %{postgresql_version}-%{postgresql_release}
375 %description backend-devel
376 This package contains header files required to compile functions that
377 could be loaded directly by backend
379 %description backend-devel -l pl
380 Pakiet zawiera nag³ówki wymagane do kompilacji funkcji ktore moga byc
381 bezposrednio ladowane przez beckend serwera PostgreSQL.
384 Summary: Clients needed to access a PostgreSQL server
385 Summary(es): Clientes necesarios para acceder al servidor PostgreSQL
386 Summary(pl): Klienci wymagani do dostêpu do serwera PostgreSQL
387 Summary(pt_BR): Clientes necessários para acessar o servidor PostgreSQL
388 Summary(ru): ëÌÉÅÎÔÓËÉÅ ÐÒÏÇÒÁÍÍÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÄÏÓÔÕÐÁ Ë ÓÅÒ×ÅÒÕ PostgreSQL
389 Summary(uk): ë̦¤ÎÔÓØ˦ ÐÒÏÇÒÁÍÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÄÏÓÔÕÐÕ ÄÏ ÓÅÒ×ÅÒÁ PostgreSQL
390 Group: Applications/Databases
391 Requires: %{name}-libs = %{postgresql_version}-%{postgresql_release}
394 This package includes only the clients needed to access an PostgreSQL
395 server. The server is included in the main package. If all you need is
396 to connect to another PostgreSQL server, the this is the only package
397 you need to install. Clients include several command-line utilities
398 you can use to manage your databases on a remote PostgreSQL server.
400 %description clients -l es
401 Este paquete incluye solamente los clientes necesarios para acceder un
402 servidor PostgreSQL. El servidor está en el paquete principal.
404 %description clients -l pl
405 Pakiet zawiera programy klienckie potrzebne dla dostêpu do serwera
406 PostgreSQL oraz narzêdzia do zarz±dzania bazami dzia³aj±ce z linii
407 poleceñ. Serwer znajduje siê w g³ównym pakiecie.
409 %description clients -l pt_BR
410 Este pacote inclui somente os clientes necessários para acessar um
411 servidor PostgreSQL. O servidor está no pacote principal.
413 %description clients -l ru
414 üÔÏÔ ÐÁËÅÔ ×ËÌÀÞÁÅÔ ÔÏÌØËÏ ËÌÉÅÎÔÓËÉÅ ÐÒÏÇÒÁÍÍÙ É ÂÉÂÌÉÏÔÅËÉ,
415 ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÄÏÓÔÕÐÁ Ë ÓÅÒ×ÅÒÕ PostgreSQL. óÅÒ×ÅÒ ×ÈÏÄÉÔ × ÇÌÁ×ÎÙÊ
416 ÐÁËÅÔ. åÓÌÉ ×ÁÍ ÎÁÄÏ ÔÏÌØËÏ ÒÁÂÏÔÁÔØ Ó ÄÒÕÇÉÍ ÓÅÒ×ÅÒÏÍ PostgreSQL, ÜÔÏ
417 ÅÄÉÎÓÔ×ÅÎÎÙÊ ÐÁËÅÔ, ËÏÔÏÒÙÊ ×ÁÍ ÎÁÄÏ ÕÓÔÁÎÏ×ÉÔØ.
419 ôÅÐÅÒØ ÐÁËÅÔÙ Ó ÂÉÂÌÉÏÔÅËÁÍÉ ÄÌÑ ÒÁÚÎÙÈ ÑÚÙËÏ× ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ (C,
420 C++, Perl É Tcl) ÒÁÚÄÅÌÅÎÙ. üÔÏÔ ÐÁËÅÔ ×ËÌÀÞÁÅÔ ÔÏÌØËÏ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ
423 %description clients -l uk
424 ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ Ô¦ÌØËÉ Ë̦¤ÎÔÓØ˦ ÐÒÏÇÒÁÍÉ ÔÁ ¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ
425 ÄÌÑ ÄÏÓÔÕÐÕ ÄÏ ÓÅÒ×ÅÒÁ PostgreSQL. óÅÒ×ÅÒ Í¦ÓÔÉÔØÓÑ × ÇÏÌÏ×ÎÏÍÕ
426 ÐÁËÅÔ¦. ñËÝÏ ×ÁÍ ÐÏÔÒ¦ÂÎÏ ÐÒÁÃÀ×ÁÔÉ Ú ¦ÎÛÉÍ ÓÅÒ×ÅÒÏÍ PostgreSQL, ÃÅ
427 ¤ÄÉÎÉÊ ÐÁËÅÔ, ÑËÉÊ ×ÁÍ ÔÒÅÂÁ ×ÓÔÁÎÏ×ÉÔÉ.
429 ôÅÐÅÒ ÐÁËÅÔÉ Ú Â¦Â̦ÏÔÅËÁÍÉ ÄÌÑ Ò¦ÚÎÉÈ ÍÏ× ÐÒÏÇÒÁÍÕ×ÁÎÎÑ (C, C++, Perl
430 ¦ Tcl) ÒÏÚĦÌÅΦ. ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ Ô¦ÌØËÉ Â¦Â̦ÏÔÅËÉ ÄÌÑ ÍÏ×É C.
433 Summary: Documentation for PostgreSQL
434 Summary(pl): Dodatkowa dokumantacja dla PostgreSQL
435 Group: Applications/Databases
438 This package includes documentation and HOWTO for programmer, admin
439 etc., in HTML format.
441 %description doc -l pl
442 Pakiet ten zawiera dokumentacjê oraz HOWTO m.in. dla programistów,
443 administratorów w formacie HTML.
446 Summary: PostgreSQL libraries
447 Summary(es): Biblioteca compartida del PostgreSQL
448 Summary(pl): Biblioteki dzielone programu PostgreSQL
449 Summary(pt_BR): Biblioteca compartilhada do PostgreSQL
450 Summary(zh_CN): PostgreSQL ¿Í»§ËùÐèÒªµÄ¹²Ïí¿â
454 PostgreSQL shared libraries.
456 %description libs -l es
457 Este paquete contiene la biblioteca compartida para acceso al
460 %description libs -l pl
461 Biblioteki dzielone programu PostgreSQL.
463 %description libs -l pt_BR
464 Este pacote contém a biblioteca compartilhada para acesso ao
468 Summary: Embedded SQL in C interface
469 Summary(pl): Interfejs wbudowanego SQL-a w jêzyk C
471 Requires: %{name}-libs = %{postgresql_version}-%{postgresql_release}
474 Embedded SQL in C interface.
476 %description ecpg -l pl
477 Interfejs wbudowanego SQL-a w jêzyk C.
480 Summary: Embedded SQL in C interface files
481 Summary(pl): Pliki programistyczne interfejsu wbudowanego SQL-a w jêzyk C
482 Group: Development/Libraries
483 Requires: %{name}-devel = %{postgresql_version}-%{postgresql_release}
484 Requires: %{name}-ecpg = %{postgresql_version}-%{postgresql_release}
486 %description ecpg-devel
487 Embedded SQL in C interface files.
489 %description ecpg-devel -l pl
490 Pliki programistyczne interfejsu wbudowanego SQL-a w jêzyk C.
493 Summary: PostgreSQL static libraries
494 Summary(es): Bibliotecas estaticas PostgreSQL
495 Summary(pl): Biblioteki statyczne programu PostgreSQL
496 Summary(pt_BR): Bibliotecas estáticas PostgreSQL
497 Summary(ru): óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ Ó PostgreSQL
498 Summary(uk): óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ ÄÌÑ ÐÒÏÇÒÁÍÕ×ÁÎÎÑ Ú PostgreSQL
499 Group: Development/Libraries
500 Requires: %{name}-devel = %{postgresql_version}-%{postgresql_release}
503 PostgreSQL static libraries.
505 %description static -l es
506 Este paquete contiene bibliotecas estaticas requerida para compilación
507 de aplicativos que se comunican directamente con el servidor backend
510 %description static -l pl
511 Biblioteki statyczne programu PostgreSQL.
513 %description static -l pt_BR
514 Este pacote contém as bibliotecas estáticas requeridas para compilação
515 de aplicativos que se comunicam diretamente com o servidor backend
518 %description static -l ru
519 üÔÏ ÏÔÄÅÌØÎÙÊ ÐÁËÅÔ ÓÏ ÓÔÁÔÉÞÅÓËÉÍÉ ÂÉÂÌÉÏÔÅËÁÍÉ, ËÏÔÏÒÙÅ ÂÏÌØÛÅ ÎÅ
520 ×ÈÏÄÑÔ × %{name}-devel.
522 %description static -l uk
523 ãÅ ÏËÒÅÍÉÊ ÐÁËÅÔ Ú¦ ÓÔÁÔÉÞÎÉÍÉ Â¦Â̦ÏÔÅËÁÍÉ, Ñ˦ ¦ÌØÛ ÎÅ ×ÈÏÄÑÔØ ×
526 %package module-plpgsql
527 Summary: PL/pgSQL - PostgreSQL procedural language
528 Summary(pl): PL/pgSQL jêzyk proceduralny bazy danych PostgreSQL
529 Group: Applications/Databases
530 Requires: %{name} = %{postgresql_version}-%{postgresql_release}
532 %description module-plpgsql
533 From PostgreSQL documentation.
535 Postgres supports the definition of procedural languages. In the case
536 of a function or trigger procedure defined in a procedural language,
537 the database has no built-in knowledge about how to interpret the
538 function's source text. Instead, the task is passed to a handler that
539 knows the details of the language. The handler itself is a special
540 programming language function compiled into a shared object and loaded
543 To enable PL/pgSQL procedural language for your database you have to
544 run createlang command.
546 %description module-plpgsql -l pl
547 Z dokumentacji PostgreSQL.
549 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
550 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
551 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
552 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
553 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
554 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
557 Za pomoc± komendy createlang mo¿na dodaæ wsparcie dla jêzyka
558 proceduralnego PL/pgSQL dla swojej bazy danych.
560 %package module-plperl
561 Summary: PL/perl - PostgreSQL procedural language
562 Summary(pl): PL/perl jêzyk proceduralny bazy danych PostgreSQL
563 Group: Applications/Databases
564 Requires: %{name} = %{postgresql_version}-%{postgresql_release}
565 Requires: perl(DynaLoader) = %(%{__perl} -MDynaLoader -e 'print DynaLoader->VERSION')
567 %description module-plperl
568 From PostgreSQL documentation.
570 Postgres supports the definition of procedural languages. In the case
571 of a function or trigger procedure defined in a procedural language,
572 the database has no built-in knowledge about how to interpret the
573 function's source text. Instead, the task is passed to a handler that
574 knows the details of the language. The handler itself is a special
575 programming language function compiled into a shared object and loaded
578 To enable PL/Perl procedural language for your database you have to
579 run createlang command.
581 %description module-plperl -l pl
582 Z dokumentacji PostgreSQL.
584 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
585 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
586 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
587 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
588 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
589 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
592 Za pomoc± komendy createlang mo¿na dodaæ wsparcie dla jêzyka
593 proceduralnego PL/Perl dla swojej bazy danych.
595 %package module-plpython
596 Summary: PL/Python - PostgreSQL procedural language
597 Summary(pl): PL/Python jêzyk proceduralny bazy danych PostgreSQL
598 Group: Applications/Databases
599 Requires: %{name} = %{postgresql_version}-%{postgresql_release}
600 %pyrequires_eq python
602 %description module-plpython
603 From PostgreSQL documentation.
605 Postgres supports the definition of procedural languages. In the case
606 of a function or trigger procedure defined in a procedural language,
607 the database has no built-in knowledge about how to interpret the
608 function's source text. Instead, the task is passed to a handler that
609 knows the details of the language. The handler itself is a special
610 programming language function compiled into a shared object and loaded
613 To enable PL/Python procedural language for your database you have to
614 run createlang command.
616 %description module-plpython -l pl
617 Z dokumentacji PostgreSQL.
619 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
620 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
621 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
622 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
623 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
624 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
627 Za pomoc± komendy createlang mo¿na dodaæ wsparcie dla jêzyka
628 proceduralnego PL/Python dla swojej bazy danych.
630 %package module-pltcl
631 Summary: PL/Tcl - PostgreSQL procedural language
632 Summary(pl): PL/Tcl - jêzyk proceduralny bazy danych PostgreSQL
633 Group: Applications/Databases
634 Requires: %{name} = %{postgresql_version}-%{postgresql_release}
636 %description module-pltcl
637 From PostgreSQL documentation.
639 Postgres supports the definition of procedural languages. In the case
640 of a function or trigger procedure defined in a procedural language,
641 the database has no built-in knowledge about how to interpret the
642 function's source text. Instead, the task is passed to a handler that
643 knows the details of the language. The handler itself is a special
644 programming language function compiled into a shared object and loaded
647 To enable PL/Tcl procedural language for your database you have to run
650 %description module-pltcl -l pl
651 Z dokumentacji PostgreSQL.
653 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
654 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
655 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
656 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
657 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
658 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
661 Za pomoc± komendy createlang mo¿na dodaæ wsparcie dla jêzyka
662 proceduralnego PL/Tcl dla swojej bazy danych.
664 %package module-pgcrypto
665 Summary: Cryptographic functions for PostgreSQL
666 Summary(pl): Funkcje kryptograficzne dla PostgreSQL
667 Group: Applications/Databases
668 Requires: %{name} = %{postgresql_version}-%{postgresql_release}
670 %description module-pgcrypto
671 Cryptographic functions for PostgreSQL.
673 %description module-pgcrypto -l pl
674 Funkcje kryptograficzne dla PostgreSQL.
676 %package module-tsearch2
677 Summary: Full text extension for PostgreSQL
678 Summary(pl): Rozszerzenie pe³notekstowe dla PostgreSQL-a
679 Group: Applications/Databases
680 Requires: %{name} = %{postgresql_version}-%{postgresql_release}
682 %description module-tsearch2
683 Implementation of a new data type tsvector - a searchable data type
685 http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/
687 %description module-tsearch2 -l pl
688 Implementacja nowego typu danych tsvector - typu danych podlegaj±cego
689 przeszukiwaniu z dostêpem poprzez indeksy:
690 http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/
693 Summary: Slony-I - a "master to multiple slaves" replication system for PostgreSQL
694 Summary(pl): Slony-I - system replikacji dla PostgreSQL
695 Version: %{slony1_version}
696 Release: %{slony1_release}@%{postgresql_version}_%{postgresql_release}
697 URL: http://slony.info/
698 Group: Applications/Databases
699 Requires: %{name} = %{postgresql_version}-%{postgresql_release}
700 Requires: %{name}-libs = %{postgresql_version}-%{postgresql_release}
702 %description -n slony1
703 Slony-I is a "master to multiple slaves" replication system with
704 cascading and failover.
706 The big picture for the development of Slony-I is a master-slave
707 system that includes all features and capabilities needed to replicate
708 large databases to a reasonably limited number of slave systems.
710 Slony-I is a system for data centers and backup sites, where the
711 normal mode of operation is that all nodes are available.
713 %description -n slony1 -l pl
714 Slony-I jest systemem replikacji dla PostgreSQL. Pozwala na replikacjê
715 typu "jeden serwer g³owny, wiele serwerów pomocniczych".
717 G³ówn± zalet± Slony-I jest system "master-slave". Zawiera on wszelk±
718 funkcjonalno¶æ potrzebn± do replikowania du¿ych baz danych na
719 okre¶lon± ilo¶æ serwerów pomocniczych lub zastêpczych.
721 Slony-I jest przeznaczony dla systemów, gdzie normalny tryb pracy
722 wymaga aby zarówno serwer g³ówny jak i wszystkie serwery pomocnicze
723 by³y ca³y czas operacyjne.
728 %{?with_absolute_dbpaths:%patch1 -p1}
733 #patch6 -p1 needed for glibc2.3.4 + gcc4
735 tar xzf doc/man*.tar.gz
738 tar zxf doc/postgres.tar.gz -C doc/unpacked
741 #find contrib -type d -name CVS -exec rm -rf {} \;
744 %{__aclocal} -I config
747 CFLAGS="%{rpmcflags} -DNEED_REENTRANT_FUNCS" \
750 --enable-integer-datetimes \
751 %{?with_pgsql_locale:--enable-locale} \
752 %{?with_pgsql_multibyte:--enable-multibyte} \
756 --enable-thread-safety \
757 --enable-unicode-conversion \
759 %{?with_kerberos5:--with-krb5} \
762 %{?with_perl:--with-perl} \
763 %{?with_python:--with-python} \
764 %{?with_tcl:--with-tcl} \
769 %{__make} -C contrib/pg_autovacuum
770 %{__make} -C contrib/pgcrypto
771 %{__sed} -i 's:contrib/::g' contrib/tsearch2/tsearch.sql.in
772 %{__make} -C contrib/tsearch2
773 %{__make} -C src/tutorial \
775 %ifnarch sparc sparcv9 sparc64 alpha
776 %{?with_tests:%{__make} check}
780 cd slony1-%{slony1_version}
781 install /usr/share/automake/config.* config
783 --with-pgsourcetree=`pwd`/..
789 rm -rf $RPM_BUILD_ROOT
790 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{rc.d/init.d,sysconfig}} \
791 $RPM_BUILD_ROOT{/var/{lib/pgsql,log},%{_pgsqldir}} \
792 $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} \
793 $RPM_BUILD_ROOT%{_mandir} \
794 $RPM_BUILD_ROOT/home/services/postgres
796 install src/tutorial/*.sql $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
799 DESTDIR=$RPM_BUILD_ROOT
802 %{__make} install -C src/pl/plperl \
803 DESTDIR=$RPM_BUILD_ROOT
806 %{__make} -C contrib/pg_autovacuum install \
807 DESTDIR=$RPM_BUILD_ROOT
809 %{__make} -C contrib/pgcrypto install \
810 DESTDIR=$RPM_BUILD_ROOT
812 %{__make} -C contrib/tsearch2 install \
813 DESTDIR=$RPM_BUILD_ROOT
816 %{__make} install -C slony1-%{slony1_version} \
817 DESTDIR=$RPM_BUILD_ROOT
818 mkdir $RPM_BUILD_ROOT/home/services/slony1
819 install %{SOURCE7} $RPM_BUILD_ROOT/etc/sysconfig/slony1
820 install %{SOURCE6} $RPM_BUILD_ROOT/home/services/slony1/.pgpass
821 install %{SOURCE5} $RPM_BUILD_ROOT/etc/rc.d/init.d/slony1
824 touch $RPM_BUILD_ROOT/var/log/pgsql
826 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/postgresql
827 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/postgresql
834 %py_comp $RPM_BUILD_ROOT%{py_libdir}
835 %py_ocomp $RPM_BUILD_ROOT%{py_libdir}
838 for f in libpq pg_controldata pg_dump pg_resetxlog pgscripts postgres psql initdb pg_ctl pg_config; do
842 cat pgscripts.lang pg_resetxlog.lang postgres.lang pg_controldata.lang > main.lang
843 cat pg_dump.lang psql.lang initdb.lang pg_ctl.lang > clients.lang
845 # Remove Contrib documentation. We use macro %doc
846 rm -rf $RPM_BUILD_ROOT/contrib
849 rm -rf $RPM_BUILD_ROOT
853 if [ -f /etc/sysconfig/postgresql ]; then
854 . /etc/sysconfig/postgresql
855 if [ -z "$PG_DB_CLUSTERS" -a -n "$POSTGRES_DATA_DIR" ]; then
856 PG_DB_CLUSTERS="$POSTGRES_DATA_DIR"
860 for pgdir in $PG_DB_CLUSTERS; do
861 if [ -f $pgdir/PG_VERSION ]; then
862 if [ `cat $pgdir/PG_VERSION` != '8.0' ]; then
863 echo "Found database(s) in older, incompatible format in cluster $pgdir."
868 if [ "$foundold" = "1" ]; then
870 echo "Dump all data from clusters mentioned above (using pg_dump or pg_dumpall)"
871 echo "and clean (or rename) those directories; then upgrade postgresql and"
872 echo "restore all data (using pg_restore or psql)."
873 echo "Remember to stop the daemon before upgrading!"
875 echo "Warning for upgrade from version *before* 7.2."
876 echo "Please note, that postgresql module path changed from"
877 echo "/usr/lib/pgsql/module to /usr/lib/postgresql. Change the path"
878 echo "in dump file before restore."
880 echo "Warning for upgrade from version *before* 7.3."
881 echo "Reading following webpage is encouraged:"
882 echo "http://www.ca.postgresql.org/docs/momjian/upgrade_tips_7.3."
886 if [ -n "`/usr/bin/getgid postgres`" ]; then
887 if [ "`/usr/bin/getgid postgres`" != "88" ]; then
888 echo "Error: group postgres doesn't have gid=88. Correct this before installing postgresql." 1>&2
892 /usr/sbin/groupadd -g 88 -r postgres
894 if [ -n "`/bin/id -u postgres 2>/dev/null`" ]; then
895 if [ "`/bin/id -u postgres 2>/dev/null`" != "88" ]; then
896 echo "Error: user postgres doesn't have uid=88. Correct this before installing postgresql." 1>&2
899 /usr/sbin/usermod -d /home/services/postgres postgres
901 /usr/sbin/useradd -M -o -r -u 88 \
902 -d /home/services/postgres -s /bin/sh -g postgres \
903 -c "PostgreSQL Server" postgres
907 /sbin/chkconfig --add postgresql
908 if [ -f /var/lock/subsys/postgresql ]; then
909 /etc/rc.d/init.d/postgresql restart >&2 || :
911 echo "Run \"/etc/rc.d/init.d/postgresql start\" to start postgresql server."
915 if [ "$1" = "0" ]; then
916 if [ -f /var/lock/subsys/postgresql ]; then
917 /etc/rc.d/init.d/postgresql stop
919 /sbin/chkconfig --del postgresql
922 %post libs -p /sbin/ldconfig
923 %postun libs -p /sbin/ldconfig
925 %post ecpg -p /sbin/ldconfig
926 %postun ecpg -p /sbin/ldconfig
929 if [ -n "`/usr/bin/getgid slony1`" ]; then
930 if [ "`/usr/bin/getgid slony1`" != "131" ]; then
931 echo "Error: group slony1 doesn't have gid=131. Correct this before installing slony1." 1>&2
935 /usr/sbin/groupadd -g 131 -r slony1
937 if [ -n "`/bin/id -u slony1 2>/dev/null`" ]; then
938 if [ "`/bin/id -u slony1 2>/dev/null`" != "131" ]; then
939 echo "Error: user postgres doesn't have uid=131. Correct this before installing slony1." 1>&2
943 /usr/sbin/useradd -M -o -r -u 131 \
944 -d /home/services/slony1 -s /bin/sh -g slony1 \
945 -c "Slony-I Replicator" slony1
949 /sbin/chkconfig --add slony1
950 if [ -f /var/lock/subsys/slony1 ]; then
951 /etc/rc.d/init.d/slony1 restart >&2 || :
953 echo "Run \"/etc/rc.d/init.d/slony1 start\" to start slony1 replicator."
957 if [ "$1" = "0" ]; then
958 if [ -f /var/lock/subsys/slony1 ]; then
959 /etc/rc.d/init.d/slony1 stop
961 /sbin/chkconfig --del slony1
965 %defattr(644,root,root,755)
966 %doc COPYRIGHT README HISTORY doc/{FAQ*,README*,bug.template}
967 %doc contrib/pg_autovacuum/README*
968 %attr(754,root,root) /etc/rc.d/init.d/postgresql
969 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/postgresql
971 %attr(755,root,root) %{_bindir}/initdb
972 %attr(755,root,root) %{_bindir}/ipcclean
973 %attr(755,root,root) %{_bindir}/pg_autovacuum
974 %attr(755,root,root) %{_bindir}/pg_controldata
975 %attr(755,root,root) %{_bindir}/pg_ctl
976 %attr(755,root,root) %{_bindir}/pg_resetxlog
977 %attr(755,root,root) %{_bindir}/postgres
978 %attr(755,root,root) %{_bindir}/postmaster
980 %attr(755,root,root) %{_pgmoduledir}/ascii*
981 %attr(755,root,root) %{_pgmoduledir}/cyrillic*
982 %attr(755,root,root) %{_pgmoduledir}/euc*
983 %attr(755,root,root) %{_pgmoduledir}/latin*
984 %attr(755,root,root) %{_pgmoduledir}/utf*
987 %dir %{_datadir}/postgresql
988 %dir %{_datadir}/postgresql/timezone
989 %{_datadir}/postgresql/*.bki
990 %{_datadir}/postgresql/*.sample
991 %{_datadir}/postgresql/*.description
992 %{_datadir}/postgresql/*.sql
993 %{_datadir}/postgresql/*.txt
994 %{_datadir}/postgresql/timezone/*
996 %attr(700,postgres,postgres) /home/services/postgres
997 %attr(700,postgres,postgres) %dir /var/lib/pgsql
998 %attr(640,postgres,postgres) %config(noreplace) %verify(not md5 mtime size) /var/log/pgsql
1000 %{_mandir}/man1/initdb.1*
1001 %{_mandir}/man1/ipcclean.1*
1002 %{_mandir}/man1/pg_controldata.1*
1003 %{_mandir}/man1/pg_ctl.1*
1004 %{_mandir}/man1/pg_resetxlog.1*
1005 %{_mandir}/man1/postgres.1*
1006 %{_mandir}/man1/postmaster.1*
1009 %defattr(644,root,root,755)
1010 %doc doc/unpacked/* doc/src/FAQ howto
1011 %{_examplesdir}/%{name}-%{version}
1013 %files libs -f libpq.lang
1014 %defattr(644,root,root,755)
1015 %attr(755,root,root) %{_libdir}/libpq.so.*.*
1016 %dir %{_pgmoduledir}
1019 %defattr(644,root,root,755)
1020 %attr(755,root,root) %{_bindir}/ecpg
1021 %attr(755,root,root) %{_libdir}/libecpg.so.*.*
1022 %attr(755,root,root) %{_libdir}/libecpg_compat.so.*.*
1023 %attr(755,root,root) %{_libdir}/libpgtypes.so.*.*
1024 %{_mandir}/man1/ecpg.1*
1027 %defattr(644,root,root,755)
1028 %attr(755,root,root) %{_libdir}/libecpg.so
1029 %attr(755,root,root) %{_libdir}/libecpg_compat.so
1030 %attr(755,root,root) %{_libdir}/libpgtypes.so
1033 %files devel -f pg_config.lang
1034 %defattr(644,root,root,755)
1035 %attr(755,root,root) %{_bindir}/pg_config
1036 %attr(755,root,root) %{_libdir}/libpq.so
1037 %dir %{_includedir}/postgresql
1038 %{_includedir}/libpq-fe.h
1039 %{_includedir}/pg_config.h
1040 %{_includedir}/pg_config_manual.h
1041 %{_includedir}/pg_config_os.h
1042 %{_includedir}/postgres_ext.h
1043 %dir %{_includedir}/postgresql/internal
1044 %{_includedir}/postgresql/internal/c.h
1045 %{_includedir}/postgresql/internal/libpq-int.h
1046 %{_includedir}/postgresql/internal/port.h
1047 %{_includedir}/postgresql/internal/postgres_fe.h
1048 %{_includedir}/postgresql/internal/pqexpbuffer.h
1049 %{_includedir}/postgresql/internal/libpq
1050 %{_includedir}/libpq
1051 %{_mandir}/man1/pg_config.1*
1053 %files backend-devel
1054 %defattr(644,root,root,755)
1055 %{_includedir}/postgresql/server
1056 %dir %{_pgmoduledir}/pgxs
1057 %attr(755,root,root) %{_pgmoduledir}/pgxs/config
1058 %{_pgmoduledir}/pgxs/src
1061 %defattr(644,root,root,755)
1062 %{_libdir}/libecpg.a
1063 %{_libdir}/libecpg_compat.a
1065 %{_libdir}/libpgtypes.a
1066 %{_libdir}/libpgport.a
1068 %files clients -f clients.lang
1069 %defattr(644,root,root,755)
1070 %attr(755,root,root) %{_bindir}/clusterdb
1071 %attr(755,root,root) %{_bindir}/createdb
1072 %attr(755,root,root) %{_bindir}/createlang
1073 %attr(755,root,root) %{_bindir}/createuser
1074 %attr(755,root,root) %{_bindir}/dropdb
1075 %attr(755,root,root) %{_bindir}/droplang
1076 %attr(755,root,root) %{_bindir}/dropuser
1077 %attr(755,root,root) %{_bindir}/pg_dump
1078 %attr(755,root,root) %{_bindir}/pg_dumpall
1079 %attr(755,root,root) %{_bindir}/pg_restore
1080 %attr(755,root,root) %{_bindir}/psql
1081 %attr(755,root,root) %{_bindir}/vacuumdb
1083 %{_mandir}/man1/clusterdb.1*
1084 %{_mandir}/man1/createdb.1*
1085 %{_mandir}/man1/createlang.1*
1086 %{_mandir}/man1/createuser.1*
1087 %{_mandir}/man1/dropdb.1*
1088 %{_mandir}/man1/droplang.1*
1089 %{_mandir}/man1/dropuser.1*
1090 %{_mandir}/man1/pg_dump.1*
1091 %{_mandir}/man1/pg_dumpall.1*
1092 %{_mandir}/man1/pg_restore.1*
1093 %{_mandir}/man1/psql.1*
1094 %{_mandir}/man1/vacuumdb.1*
1095 %{_mandir}/man7/*.7*
1097 %files module-plpgsql
1098 %defattr(644,root,root,755)
1099 %attr(755,root,root) %{_pgmoduledir}/plpgsql.so
1102 %files module-plperl
1103 %defattr(644,root,root,755)
1104 %attr(755,root,root) %{_pgmoduledir}/plperl.so
1108 %files module-plpython
1109 %defattr(644,root,root,755)
1110 %attr(755,root,root) %{_pgmoduledir}/plpython.so
1115 %defattr(644,root,root,755)
1116 %attr(755,root,root) %{_bindir}/pltcl_*
1117 %attr(755,root,root) %{_pgmoduledir}/pltcl.so
1120 %files module-pgcrypto
1121 %defattr(644,root,root,755)
1122 %doc contrib/pgcrypto/README*
1123 %attr(755,root,root) %{_pgmoduledir}/pgcrypto.so
1124 %{_pgsqldir}/pgcrypto.sql
1126 %files module-tsearch2
1127 %defattr(644,root,root,755)
1128 %doc contrib/tsearch2/README*
1129 %attr(755,root,root) %{_pgmoduledir}/tsearch2.so
1130 %{_pgsqldir}/tsearch2.sql
1131 %{_pgsqldir}/untsearch2.sql
1136 %defattr(644,root,root,755)
1137 %doc slony1-%{slony1_version}/doc/howto/*
1138 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/slony1
1139 %attr(754,root,root) /etc/rc.d/init.d/slony1
1140 %attr(755,root,root) %{_bindir}/slon
1141 %attr(755,root,root) %{_bindir}/slonik
1142 %attr(750,slony1,slony1) %dir /home/services/slony1
1143 %attr(600,slony1,slony1) /home/services/slony1/.pgpass
1144 %attr(755,root,root) %{_pgmoduledir}/slony1_funcs.so
1145 %attr(755,root,root) %{_pgmoduledir}/xxid.so