3 # - plphp has no files section
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 php # enable PHP support
14 %bcond_with absolute_dbpaths # enable absolute paths to create database
15 # (disabled by default because it is a security risk)
17 Summary: PostgreSQL Data Base Management System
18 Summary(de): PostgreSQL Datenbankverwaltungssystem
19 Summary(es): Gestor de Banco de Datos PostgreSQL
20 Summary(fr): Sysème de gestion de base de données PostgreSQL
21 Summary(pl): PostgreSQL - system bazodanowy
22 Summary(pt_BR): Gerenciador de Banco de Dados PostgreSQL
23 Summary(ru): PostgreSQL - ÓÉÓÔÅÍÁ ÕÐÒÁ×ÌÅÎÉÑ ÂÁÚÁÍÉ ÄÁÎÎÙÈ
24 Summary(tr): Veri Tabaný Yönetim Sistemi
25 Summary(uk): PostgreSQL - ÓÉÓÔÅÍÁ ËÅÒÕ×ÁÎÎÑ ÂÁÚÁÍÉ ÄÁÎÉÈ
26 Summary(zh_CN): PostgreSQL ¿Í»§¶Ë³ÌÐòºÍ¿âÎļþ
31 Group: Applications/Databases
32 Source0: ftp://ftp6.pl.postgresql.org/pub/postgresql/source/v%{version}/%{name}-%{version}.tar.bz2
33 # Source0-md5: a65bdc5d833169d28bf6fbaaa8d57fcf
34 ##Source0: ftp://ftp.postgresql.org/pub/source/v%{version}beta/%{name}-%{version}%{beta}.tar.bz2
36 Source2: pgsql-Database-HOWTO-html.tar.gz
37 # Source2-md5: 5b656ddf1db41965761f85204a14398e
38 Source3: %{name}.sysconfig
39 Source8: http://www.commandprompt.com/files/plphp-8.x.tar.bz2
40 # Source8-md5: d307e4ab8cb6900a1c290a5dde1bdeee
41 Patch0: %{name}-conf.patch
42 Patch1: %{name}-absolute_dbpaths.patch
43 Patch2: %{name}-link.patch
44 Patch3: %{name}-ecpg_link.patch
45 Patch4: %{name}-ecpg-includedir.patch
46 Patch5: %{name}-ac.patch
47 Patch6: %{name}-pg_ctl-fix.patch
48 URL: http://www.postgresql.org/
49 BuildRequires: autoconf
50 BuildRequires: automake
51 #BuildRequires: bison >= 1.875 not needed for releases
53 BuildRequires: gettext-devel
54 %{?with_kerberos5:BuildRequires: heimdal-devel >= 0.7}
55 BuildRequires: libtool
56 BuildRequires: ncurses-devel >= 5.0
57 BuildRequires: openssl-devel >= 0.9.7d
58 BuildRequires: pam-devel
59 %{?with_perl:BuildRequires: perl-devel}
61 BuildRequires: php-devel >= 3:5.0.0
62 BuildRequires: rpmbuild(macros) >= 1.238
65 BuildRequires: python >= 1:2.3
66 BuildRequires: python-devel >= 1:2.3
67 BuildRequires: python-modules >= 1:2.3
69 BuildRequires: readline-devel >= 4.2
70 BuildRequires: rpmbuild(macros) >= 1.268
71 %{?with_tcl:BuildRequires: tcl-devel >= 8.4.3}
72 BuildRequires: zlib-devel
73 Requires(post,preun): /sbin/chkconfig
74 Requires(pre): /bin/id
75 Requires(pre): /usr/bin/getgid
76 Requires(pre): /usr/sbin/groupadd
77 Requires(pre): /usr/sbin/useradd
78 Requires(pre): /usr/sbin/usermod
79 Requires: %{name}-clients = %{version}-%{release}
80 Requires: %{name}-libs = %{version}-%{release}
82 Obsoletes: postgresql-server
83 Obsoletes: postgresql-test
84 BuildRoot: %{tmpdir}/%{name}-%{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 = %{version}-%{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}-devel = %{version}-%{release}
370 Requires: %{name}-libs = %{version}-%{release}
372 %description backend-devel
373 This package contains header files required to compile functions that
374 could be loaded directly by backend
376 %description backend-devel -l pl
377 Pakiet zawiera nag³ówki wymagane do kompilacji funkcji ktore moga byc
378 bezposrednio ladowane przez beckend serwera PostgreSQL.
381 Summary: Clients needed to access a PostgreSQL server
382 Summary(es): Clientes necesarios para acceder al servidor PostgreSQL
383 Summary(pl): Klienci wymagani do dostêpu do serwera PostgreSQL
384 Summary(pt_BR): Clientes necessários para acessar o servidor PostgreSQL
385 Summary(ru): ëÌÉÅÎÔÓËÉÅ ÐÒÏÇÒÁÍÍÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÄÏÓÔÕÐÁ Ë ÓÅÒ×ÅÒÕ PostgreSQL
386 Summary(uk): ë̦¤ÎÔÓØ˦ ÐÒÏÇÒÁÍÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÄÏÓÔÕÐÕ ÄÏ ÓÅÒ×ÅÒÁ PostgreSQL
387 Group: Applications/Databases
388 Requires: %{name}-libs = %{version}-%{release}
391 This package includes only the clients needed to access an PostgreSQL
392 server. The server is included in the main package. If all you need is
393 to connect to another PostgreSQL server, the this is the only package
394 you need to install. Clients include several command-line utilities
395 you can use to manage your databases on a remote PostgreSQL server.
397 %description clients -l es
398 Este paquete incluye solamente los clientes necesarios para acceder un
399 servidor PostgreSQL. El servidor está en el paquete principal.
401 %description clients -l pl
402 Pakiet zawiera programy klienckie potrzebne dla dostêpu do serwera
403 PostgreSQL oraz narzêdzia do zarz±dzania bazami dzia³aj±ce z linii
404 poleceñ. Serwer znajduje siê w g³ównym pakiecie.
406 %description clients -l pt_BR
407 Este pacote inclui somente os clientes necessários para acessar um
408 servidor PostgreSQL. O servidor está no pacote principal.
410 %description clients -l ru
411 üÔÏÔ ÐÁËÅÔ ×ËÌÀÞÁÅÔ ÔÏÌØËÏ ËÌÉÅÎÔÓËÉÅ ÐÒÏÇÒÁÍÍÙ É ÂÉÂÌÉÏÔÅËÉ,
412 ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÄÏÓÔÕÐÁ Ë ÓÅÒ×ÅÒÕ PostgreSQL. óÅÒ×ÅÒ ×ÈÏÄÉÔ × ÇÌÁ×ÎÙÊ
413 ÐÁËÅÔ. åÓÌÉ ×ÁÍ ÎÁÄÏ ÔÏÌØËÏ ÒÁÂÏÔÁÔØ Ó ÄÒÕÇÉÍ ÓÅÒ×ÅÒÏÍ PostgreSQL, ÜÔÏ
414 ÅÄÉÎÓÔ×ÅÎÎÙÊ ÐÁËÅÔ, ËÏÔÏÒÙÊ ×ÁÍ ÎÁÄÏ ÕÓÔÁÎÏ×ÉÔØ.
416 ôÅÐÅÒØ ÐÁËÅÔÙ Ó ÂÉÂÌÉÏÔÅËÁÍÉ ÄÌÑ ÒÁÚÎÙÈ ÑÚÙËÏ× ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ (C,
417 C++, Perl É Tcl) ÒÁÚÄÅÌÅÎÙ. üÔÏÔ ÐÁËÅÔ ×ËÌÀÞÁÅÔ ÔÏÌØËÏ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ
420 %description clients -l uk
421 ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ Ô¦ÌØËÉ Ë̦¤ÎÔÓØ˦ ÐÒÏÇÒÁÍÉ ÔÁ ¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ
422 ÄÌÑ ÄÏÓÔÕÐÕ ÄÏ ÓÅÒ×ÅÒÁ PostgreSQL. óÅÒ×ÅÒ Í¦ÓÔÉÔØÓÑ × ÇÏÌÏ×ÎÏÍÕ
423 ÐÁËÅÔ¦. ñËÝÏ ×ÁÍ ÐÏÔÒ¦ÂÎÏ ÐÒÁÃÀ×ÁÔÉ Ú ¦ÎÛÉÍ ÓÅÒ×ÅÒÏÍ PostgreSQL, ÃÅ
424 ¤ÄÉÎÉÊ ÐÁËÅÔ, ÑËÉÊ ×ÁÍ ÔÒÅÂÁ ×ÓÔÁÎÏ×ÉÔÉ.
426 ôÅÐÅÒ ÐÁËÅÔÉ Ú Â¦Â̦ÏÔÅËÁÍÉ ÄÌÑ Ò¦ÚÎÉÈ ÍÏ× ÐÒÏÇÒÁÍÕ×ÁÎÎÑ (C, C++, Perl
427 ¦ Tcl) ÒÏÚĦÌÅΦ. ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ Ô¦ÌØËÉ Â¦Â̦ÏÔÅËÉ ÄÌÑ ÍÏ×É C.
430 Summary: Documentation for PostgreSQL
431 Summary(pl): Dodatkowa dokumantacja dla PostgreSQL
432 Group: Applications/Databases
435 This package includes documentation and HOWTO for programmer, admin
436 etc., in HTML format.
438 %description doc -l pl
439 Pakiet ten zawiera dokumentacjê oraz HOWTO m.in. dla programistów,
440 administratorów w formacie HTML.
443 Summary: PostgreSQL libraries
444 Summary(es): Biblioteca compartida del PostgreSQL
445 Summary(pl): Biblioteki dzielone programu PostgreSQL
446 Summary(pt_BR): Biblioteca compartilhada do PostgreSQL
447 Summary(zh_CN): PostgreSQL ¿Í»§ËùÐèÒªµÄ¹²Ïí¿â
451 PostgreSQL shared libraries.
453 %description libs -l es
454 Este paquete contiene la biblioteca compartida para acceso al
457 %description libs -l pl
458 Biblioteki dzielone programu PostgreSQL.
460 %description libs -l pt_BR
461 Este pacote contém a biblioteca compartilhada para acesso ao
465 Summary: Embedded SQL in C interface
466 Summary(pl): Interfejs wbudowanego SQL-a w jêzyk C
468 Requires: %{name}-libs = %{version}-%{release}
471 Embedded SQL in C interface.
473 %description ecpg -l pl
474 Interfejs wbudowanego SQL-a w jêzyk C.
477 Summary: Embedded SQL in C interface files
478 Summary(pl): Pliki programistyczne interfejsu wbudowanego SQL-a w jêzyk C
479 Group: Development/Libraries
480 Requires: %{name}-devel = %{version}-%{release}
481 Requires: %{name}-ecpg = %{version}-%{release}
483 %description ecpg-devel
484 Embedded SQL in C interface files.
486 %description ecpg-devel -l pl
487 Pliki programistyczne interfejsu wbudowanego SQL-a w jêzyk C.
490 Summary: PostgreSQL static libraries
491 Summary(es): Bibliotecas estaticas PostgreSQL
492 Summary(pl): Biblioteki statyczne programu PostgreSQL
493 Summary(pt_BR): Bibliotecas estáticas PostgreSQL
494 Summary(ru): óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ Ó PostgreSQL
495 Summary(uk): óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ ÄÌÑ ÐÒÏÇÒÁÍÕ×ÁÎÎÑ Ú PostgreSQL
496 Group: Development/Libraries
497 Requires: %{name}-devel = %{version}-%{release}
500 PostgreSQL static libraries.
502 %description static -l es
503 Este paquete contiene bibliotecas estaticas requerida para compilación
504 de aplicativos que se comunican directamente con el servidor backend
507 %description static -l pl
508 Biblioteki statyczne programu PostgreSQL.
510 %description static -l pt_BR
511 Este pacote contém as bibliotecas estáticas requeridas para compilação
512 de aplicativos que se comunicam diretamente com o servidor backend
515 %description static -l ru
516 üÔÏ ÏÔÄÅÌØÎÙÊ ÐÁËÅÔ ÓÏ ÓÔÁÔÉÞÅÓËÉÍÉ ÂÉÂÌÉÏÔÅËÁÍÉ, ËÏÔÏÒÙÅ ÂÏÌØÛÅ ÎÅ
517 ×ÈÏÄÑÔ × %{name}-devel.
519 %description static -l uk
520 ãÅ ÏËÒÅÍÉÊ ÐÁËÅÔ Ú¦ ÓÔÁÔÉÞÎÉÍÉ Â¦Â̦ÏÔÅËÁÍÉ, Ñ˦ ¦ÌØÛ ÎÅ ×ÈÏÄÑÔØ ×
523 %package module-plpgsql
524 Summary: PL/pgSQL - PostgreSQL procedural language
525 Summary(pl): PL/pgSQL - jêzyk proceduralny bazy danych PostgreSQL
526 Group: Applications/Databases
527 Requires: %{name} = %{version}-%{release}
529 %description module-plpgsql
530 From PostgreSQL documentation:
532 Postgres supports the definition of procedural languages. In the case
533 of a function or trigger procedure defined in a procedural language,
534 the database has no built-in knowledge about how to interpret the
535 function's source text. Instead, the task is passed to a handler that
536 knows the details of the language. The handler itself is a special
537 programming language function compiled into a shared object and loaded
540 To enable PL/pgSQL procedural language for your database you have to
541 run createlang command.
543 %description module-plpgsql -l pl
544 Z dokumentacji PostgreSQL:
546 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
547 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
548 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
549 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
550 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
551 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
554 Za pomoc± polecenia createlang mo¿na dodaæ obs³ugê jêzyka
555 proceduralnego PL/pgSQL dla swojej bazy danych.
557 %package module-plperl
558 Summary: PL/perl - PostgreSQL procedural language
559 Summary(pl): PL/perl - jêzyk proceduralny bazy danych PostgreSQL
560 Group: Applications/Databases
561 Requires: %{name} = %{version}-%{release}
562 Requires: perl(DynaLoader) = %(%{__perl} -MDynaLoader -e 'print DynaLoader->VERSION')
564 %description module-plperl
565 From PostgreSQL documentation:
567 Postgres supports the definition of procedural languages. In the case
568 of a function or trigger procedure defined in a procedural language,
569 the database has no built-in knowledge about how to interpret the
570 function's source text. Instead, the task is passed to a handler that
571 knows the details of the language. The handler itself is a special
572 programming language function compiled into a shared object and loaded
575 To enable PL/Perl procedural language for your database you have to
576 run createlang command.
578 %description module-plperl -l pl
579 Z dokumentacji PostgreSQL:
581 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
582 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
583 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
584 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
585 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
586 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
589 Za pomoc± polecenia createlang mo¿na dodaæ obs³ugê jêzyka
590 proceduralnego PL/Perl dla swojej bazy danych.
592 %package module-plphp
593 Summary: PL/PHP - PostgreSQL procedural language
594 Summary(pl): PL/PHP - jêzyk proceduralny bazy danych PostgreSQL
595 Group: Applications/Databases
596 Requires: %{name} = %{version}-%{release}
597 %{?requires_php_extension}
599 %description module-plphp
600 From PostgreSQL documentation:
602 Postgres supports the definition of procedural languages. In the case
603 of a function or trigger procedure defined in a procedural language,
604 the database has no built-in knowledge about how to interpret the
605 function's source text. Instead, the task is passed to a handler that
606 knows the details of the language. The handler itself is a special
607 programming language function compiled into a shared object and loaded
610 To enable PL/PHP procedural language for your database you have to
611 run createlang command.
613 %description module-plphp -l pl
614 Z dokumentacji PostgreSQL:
616 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
617 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
618 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
619 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
620 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
621 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
624 Za pomoc± polecenia createlang mo¿na dodaæ obs³ugê jêzyka
625 proceduralnego PL/PHP dla swojej bazy danych.
627 %package module-plpython
628 Summary: PL/Python - PostgreSQL procedural language
629 Summary(pl): PL/Python - jêzyk proceduralny bazy danych PostgreSQL
630 Group: Applications/Databases
631 Requires: %{name} = %{version}-%{release}
632 %pyrequires_eq python
634 %description module-plpython
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/Python procedural language for your database you have to
646 run createlang command.
648 %description module-plpython -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± polecenia createlang mo¿na dodaæ obs³ugê jêzyka
660 proceduralnego PL/Python dla swojej bazy danych.
662 %package module-pltcl
663 Summary: PL/Tcl - PostgreSQL procedural language
664 Summary(pl): PL/Tcl - jêzyk proceduralny bazy danych PostgreSQL
665 Group: Applications/Databases
666 Requires: %{name} = %{version}-%{release}
668 %description module-pltcl
669 From PostgreSQL documentation:
671 Postgres supports the definition of procedural languages. In the case
672 of a function or trigger procedure defined in a procedural language,
673 the database has no built-in knowledge about how to interpret the
674 function's source text. Instead, the task is passed to a handler that
675 knows the details of the language. The handler itself is a special
676 programming language function compiled into a shared object and loaded
679 To enable PL/Tcl procedural language for your database you have to run
682 %description module-pltcl -l pl
683 Z dokumentacji PostgreSQL:
685 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
686 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
687 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
688 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
689 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
690 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
693 Za pomoc± polecenia createlang mo¿na dodaæ obs³ugê jêzyka
694 proceduralnego PL/Tcl dla swojej bazy danych.
697 Summary: Large Objects module for PostgreSQL
698 Summary(pl): Modu³ Large Objects dla PostgreSQL-a
699 Group: Applications/Databases
700 Requires: %{name} = %{version}-%{release}
702 %description module-lo
703 Large Objects module for PostgreSQL adds a new data type 'lo', some
704 support functions and a trigger which handles the orphaning problem.
706 %description module-lo -l pl
707 Modu³ Large Objects dla PostgreSQL-a dodaje nowy typ danych 'lo',
708 kilka funkcji pomocniczych i wyzwalacz rozwi±zuj±cy problem
709 osieroconych obiektów.
711 %package module-pgcrypto
712 Summary: Cryptographic functions for PostgreSQL
713 Summary(pl): Funkcje kryptograficzne dla PostgreSQL-a
714 Group: Applications/Databases
715 Requires: %{name} = %{version}-%{release}
717 %description module-pgcrypto
718 Cryptographic functions for PostgreSQL.
720 %description module-pgcrypto -l pl
721 Funkcje kryptograficzne dla PostgreSQL.
723 %package module-tsearch2
724 Summary: Full text extension for PostgreSQL
725 Summary(pl): Rozszerzenie pe³notekstowe dla PostgreSQL-a
726 Group: Applications/Databases
727 Requires: %{name} = %{version}-%{release}
729 %description module-tsearch2
730 Implementation of a new data type tsvector - a searchable data type
732 http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/
734 %description module-tsearch2 -l pl
735 Implementacja nowego typu danych tsvector - typu danych podlegaj±cego
736 przeszukiwaniu z dostêpem poprzez indeksy:
737 http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/
742 %{?with_absolute_dbpaths:%patch1 -p1}
746 #patch5 -p1 needed for glibc2.3.4 + gcc4
750 patch -p1 < plphp.patch
753 tar xzf doc/man*.tar.gz
756 tar zxf doc/postgres.tar.gz -C doc/unpacked
759 #find contrib -type d -name CVS -exec rm -rf {} \;
762 %{__aclocal} -I config
765 CFLAGS="%{rpmcflags} -DNEED_REENTRANT_FUNCS" \
768 --enable-integer-datetimes \
769 %{?with_pgsql_locale:--enable-locale} \
770 %{?with_pgsql_multibyte:--enable-multibyte} \
774 --enable-thread-safety \
775 --enable-unicode-conversion \
777 %{?with_kerberos5:--with-krb5} \
780 %{?with_perl:--with-perl} \
781 %{?with_php:--with-php=/usr/include/php} \
782 %{?with_python:--with-python} \
783 %{?with_tcl:--with-tcl} \
788 %{__make} -C contrib/lo
789 %{__make} -C contrib/pgcrypto
790 %{__make} -C contrib/tsearch2
791 %{__make} -C src/tutorial \
794 %ifnarch sparc sparcv9 sparc64 alpha
795 %{?with_tests:%{__make} check}
805 rm -rf $RPM_BUILD_ROOT
806 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{rc.d/init.d,sysconfig}} \
807 $RPM_BUILD_ROOT{/var/{lib/pgsql,log},%{_pgsqldir}} \
808 $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} \
809 $RPM_BUILD_ROOT%{_mandir} \
810 $RPM_BUILD_ROOT/home/services/postgres
812 install src/tutorial/*.sql $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
815 DESTDIR=$RPM_BUILD_ROOT
817 %{__cc} -shared -Wl,-soname,libpq.so.3 -o $RPM_BUILD_ROOT%{_libdir}/libpq.so.3.0.0 -L$RPM_BUILD_ROOT%{_libdir} -lpq
820 %{__make} install -C src/pl/plperl \
821 DESTDIR=$RPM_BUILD_ROOT
824 %{__make} -C contrib/lo install \
825 DESTDIR=$RPM_BUILD_ROOT
827 %{__make} -C contrib/pgcrypto install \
828 DESTDIR=$RPM_BUILD_ROOT
830 %{__make} -C contrib/tsearch2 install \
831 DESTDIR=$RPM_BUILD_ROOT
836 DESTDIR=$RPM_BUILD_ROOT
840 touch $RPM_BUILD_ROOT/var/log/pgsql
842 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/postgresql
843 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/postgresql
846 tar zxf %{SOURCE2} -C howto
848 %py_comp $RPM_BUILD_ROOT%{py_libdir}
849 %py_ocomp $RPM_BUILD_ROOT%{py_libdir}
852 for f in libpq pg_controldata pg_dump pg_resetxlog pgscripts postgres psql initdb pg_ctl pg_config; do
856 cat pgscripts.lang pg_resetxlog.lang postgres.lang pg_controldata.lang > main.lang
857 cat pg_dump.lang psql.lang initdb.lang pg_ctl.lang > clients.lang
859 # Remove Contrib documentation. We use macro %doc
860 rm -rf $RPM_BUILD_ROOT/contrib
863 rm -rf $RPM_BUILD_ROOT
867 if [ -f /etc/sysconfig/postgresql ]; then
868 . /etc/sysconfig/postgresql
869 if [ -z "$PG_DB_CLUSTERS" -a -n "$POSTGRES_DATA_DIR" ]; then
870 PG_DB_CLUSTERS="$POSTGRES_DATA_DIR"
874 for pgdir in $PG_DB_CLUSTERS; do
875 if [ -f $pgdir/PG_VERSION ]; then
876 if [ `cat $pgdir/PG_VERSION` != '8.1' ]; then
877 echo "Found database(s) in older, incompatible format in cluster $pgdir."
882 if [ "$foundold" = "1" ]; then
884 echo "Dump all data from clusters mentioned above (using pg_dump or pg_dumpall)"
885 echo "and clean (or rename) those directories; then upgrade postgresql and"
886 echo "restore all data (using pg_restore or psql)."
887 echo "Remember to stop the daemon before upgrading!"
889 echo "Warning for upgrade from version *before* 7.2."
890 echo "Please note, that postgresql module path changed from"
891 echo "/usr/lib/pgsql/module to /usr/lib/postgresql. Change the path"
892 echo "in dump file before restore."
894 echo "Warning for upgrade from version *before* 7.3."
895 echo "Reading following webpage is encouraged:"
896 echo "http://www.ca.postgresql.org/docs/momjian/upgrade_tips_7.3"
900 %groupadd -g 88 -r postgres
901 %useradd -M -o -r -u 88 -d /home/services/postgres -s /bin/sh -g postgres -c "PostgreSQL Server" postgres
903 if [ -n "`/bin/id -u postgres 2>/dev/null`" ]; then
904 /usr/sbin/usermod -d /home/services/postgres postgres
908 /sbin/chkconfig --add postgresql
909 %service postgresql restart "postgresql server"
912 if [ "$1" = "0" ]; then
913 %service postgresql stop
914 /sbin/chkconfig --del postgresql
917 %post libs -p /sbin/ldconfig
918 %postun libs -p /sbin/ldconfig
920 %post ecpg -p /sbin/ldconfig
921 %postun ecpg -p /sbin/ldconfig
924 %defattr(644,root,root,755)
925 %doc COPYRIGHT README HISTORY doc/{FAQ*,README*,bug.template}
926 %attr(754,root,root) /etc/rc.d/init.d/postgresql
927 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/postgresql
929 %attr(755,root,root) %{_bindir}/initdb
930 %attr(755,root,root) %{_bindir}/ipcclean
931 %attr(755,root,root) %{_bindir}/pg_controldata
932 %attr(755,root,root) %{_bindir}/pg_ctl
933 %attr(755,root,root) %{_bindir}/pg_resetxlog
934 %attr(755,root,root) %{_bindir}/postgres
935 %attr(755,root,root) %{_bindir}/postmaster
937 %attr(755,root,root) %{_pgmoduledir}/ascii*
938 %attr(755,root,root) %{_pgmoduledir}/cyrillic*
939 %attr(755,root,root) %{_pgmoduledir}/euc*
940 %attr(755,root,root) %{_pgmoduledir}/latin*
941 %attr(755,root,root) %{_pgmoduledir}/utf*
944 %dir %{_datadir}/postgresql
945 %dir %{_datadir}/postgresql/timezone
946 %{_datadir}/postgresql/*.bki
947 %{_datadir}/postgresql/*.sample
948 %{_datadir}/postgresql/*.description
949 %{_datadir}/postgresql/*.sql
950 %{_datadir}/postgresql/*.txt
951 %{_datadir}/postgresql/timezone/*
953 %attr(700,postgres,postgres) /home/services/postgres
954 %attr(700,postgres,postgres) %dir /var/lib/pgsql
955 %attr(640,postgres,postgres) %config(noreplace) %verify(not md5 mtime size) /var/log/pgsql
957 %{_mandir}/man1/initdb.1*
958 %{_mandir}/man1/ipcclean.1*
959 %{_mandir}/man1/pg_controldata.1*
960 %{_mandir}/man1/pg_ctl.1*
961 %{_mandir}/man1/pg_resetxlog.1*
962 %{_mandir}/man1/postgres.1*
963 %{_mandir}/man1/postmaster.1*
966 %defattr(644,root,root,755)
967 %doc doc/unpacked/* doc/src/FAQ howto
968 %{_examplesdir}/%{name}-%{version}
970 %files libs -f libpq.lang
971 %defattr(644,root,root,755)
972 %attr(755,root,root) %{_libdir}/libpq.so.*
976 %defattr(644,root,root,755)
977 %attr(755,root,root) %{_bindir}/ecpg
978 %attr(755,root,root) %{_libdir}/libecpg.so.*.*
979 %attr(755,root,root) %{_libdir}/libecpg_compat.so.*.*
980 %attr(755,root,root) %{_libdir}/libpgtypes.so.*.*
981 %{_mandir}/man1/ecpg.1*
984 %defattr(644,root,root,755)
985 %attr(755,root,root) %{_libdir}/libecpg.so
986 %attr(755,root,root) %{_libdir}/libecpg_compat.so
987 %attr(755,root,root) %{_libdir}/libpgtypes.so
990 %files devel -f pg_config.lang
991 %defattr(644,root,root,755)
992 %attr(755,root,root) %{_bindir}/pg_config
993 %attr(755,root,root) %{_libdir}/libpq.so
994 %dir %{_includedir}/postgresql
995 %{_includedir}/libpq-fe.h
996 %{_includedir}/pg_config.h
997 %{_includedir}/pg_config_manual.h
998 %{_includedir}/pg_config_os.h
999 %{_includedir}/postgres_ext.h
1000 %dir %{_includedir}/postgresql/internal
1001 %{_includedir}/postgresql/internal/c.h
1002 %{_includedir}/postgresql/internal/libpq-int.h
1003 %{_includedir}/postgresql/internal/port.h
1004 %{_includedir}/postgresql/internal/postgres_fe.h
1005 %{_includedir}/postgresql/internal/pqexpbuffer.h
1006 %{_includedir}/postgresql/internal/libpq
1007 %{_includedir}/libpq
1008 %{_mandir}/man1/pg_config.1*
1010 %files backend-devel
1011 %defattr(644,root,root,755)
1012 %{_includedir}/postgresql/server
1013 %dir %{_pgmoduledir}/pgxs
1014 %attr(755,root,root) %{_pgmoduledir}/pgxs/config
1015 %{_pgmoduledir}/pgxs/src
1018 %defattr(644,root,root,755)
1019 %{_libdir}/libecpg.a
1020 %{_libdir}/libecpg_compat.a
1022 %{_libdir}/libpgtypes.a
1023 %{_libdir}/libpgport.a
1025 %files clients -f clients.lang
1026 %defattr(644,root,root,755)
1027 %attr(755,root,root) %{_bindir}/clusterdb
1028 %attr(755,root,root) %{_bindir}/createdb
1029 %attr(755,root,root) %{_bindir}/createlang
1030 %attr(755,root,root) %{_bindir}/createuser
1031 %attr(755,root,root) %{_bindir}/dropdb
1032 %attr(755,root,root) %{_bindir}/droplang
1033 %attr(755,root,root) %{_bindir}/dropuser
1034 %attr(755,root,root) %{_bindir}/pg_dump
1035 %attr(755,root,root) %{_bindir}/pg_dumpall
1036 %attr(755,root,root) %{_bindir}/pg_restore
1037 %attr(755,root,root) %{_bindir}/psql
1038 %attr(755,root,root) %{_bindir}/reindexdb
1039 %attr(755,root,root) %{_bindir}/vacuumdb
1041 %{_mandir}/man1/clusterdb.1*
1042 %{_mandir}/man1/createdb.1*
1043 %{_mandir}/man1/createlang.1*
1044 %{_mandir}/man1/createuser.1*
1045 %{_mandir}/man1/dropdb.1*
1046 %{_mandir}/man1/droplang.1*
1047 %{_mandir}/man1/dropuser.1*
1048 %{_mandir}/man1/pg_dump.1*
1049 %{_mandir}/man1/pg_dumpall.1*
1050 %{_mandir}/man1/pg_restore.1*
1051 %{_mandir}/man1/psql.1*
1052 %{_mandir}/man1/reindexdb.1*
1053 %{_mandir}/man1/vacuumdb.1*
1054 %{_mandir}/man7/*.7*
1056 %files module-plpgsql
1057 %defattr(644,root,root,755)
1058 %attr(755,root,root) %{_pgmoduledir}/plpgsql.so
1061 %files module-plperl
1062 %defattr(644,root,root,755)
1063 %attr(755,root,root) %{_pgmoduledir}/plperl.so
1067 %files module-plpython
1068 %defattr(644,root,root,755)
1069 %attr(755,root,root) %{_pgmoduledir}/plpython.so
1074 %defattr(644,root,root,755)
1075 %attr(755,root,root) %{_bindir}/pltcl_*
1076 %attr(755,root,root) %{_pgmoduledir}/pltcl.so
1080 %defattr(644,root,root,755)
1081 %doc contrib/lo/README.lo
1082 %attr(755,root,root) %{_pgmoduledir}/lo.so
1083 %{_pgsqldir}/lo*.sql
1085 %files module-pgcrypto
1086 %defattr(644,root,root,755)
1087 %doc contrib/pgcrypto/README*
1088 %attr(755,root,root) %{_pgmoduledir}/pgcrypto.so
1089 %{_pgsqldir}/pgcrypto.sql
1091 %files module-tsearch2
1092 %defattr(644,root,root,755)
1093 %doc contrib/tsearch2/README*
1094 %attr(755,root,root) %{_pgmoduledir}/tsearch2.so
1095 %{_pgsqldir}/tsearch2.sql
1096 %{_pgsqldir}/untsearch2.sql