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: 12d54a11bc3a414477d37ef338bec161
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
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.202
71 BuildRequires: sed >= 4.0
72 %{?with_tcl:BuildRequires: tcl-devel >= 8.4.3}
73 BuildRequires: zlib-devel
75 PreReq: %{name}-clients = %{version}-%{release}
76 PreReq: %{name}-libs = %{version}-%{release}
77 Requires(pre): /usr/bin/getgid
78 Requires(pre): /bin/id
79 Requires(pre): /usr/sbin/groupadd
80 Requires(pre): /usr/sbin/useradd
81 Requires(pre): /usr/sbin/usermod
82 Requires(post,preun): /sbin/chkconfig
83 Obsoletes: postgresql-server
84 Obsoletes: postgresql-test
85 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
87 %define _pgmoduledir %{_libdir}/postgresql
88 %define _pgsqldir %{_datadir}/postgresql/contrib
91 PostgreSQL Data Base Management System (formerly known as Postgres,
94 PostgreSQL is an enhancement of the POSTGRES database management
95 system, a next-generation DBMS research prototype. While PostgreSQL
96 retains the powerful data model and rich data types of POSTGRES, it
97 replaces the PostQuel query language with an extended subset of SQL.
98 PostgreSQL is free and the complete source is available.
100 PostgreSQL development is being performed by a team of Internet
101 developers who all subscribe to the PostgreSQL development mailing
102 list. The current coordinator is Marc G. Fournier
103 (scrappy@postgreSQL.org). This team is now responsible for all current
104 and future development of PostgreSQL.
106 The authors of PostgreSQL 1.01 were Andrew Yu and Jolly Chen. Many
107 others have contributed to the porting, testing, debugging and
108 enhancement of the code. The original Postgres code, from which
109 PostgreSQL is derived, was the effort of many graduate students,
110 undergraduate students, and staff programmers working under the
111 direction of Professor Michael Stonebraker at the University of
112 California, Berkeley.
114 The original name of the software at Berkeley was Postgres. When SQL
115 functionality was added in 1995, its name was changed to Postgres95.
116 The name was changed at the end of 1996 to PostgreSQL.
118 PostgreSQL runs on Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD,
119 and most flavours of Unix.
122 PostgreSQL Datenbank-Managementsystem (früher als Postgres, dann als
125 PostgreSQL ist eine Verbesserung des POSTGRES-DB-Managementsystems,
126 ein DBMS-Forschungsprototyp der nächsten Generation. Während es das
127 leistungsfähige Datenmodell und die reichhaltigen Datentypen von
128 POSTGRES beibehält, ersetzt es die PostQuel-Abfragesprache durch ein
129 Subset von SQL. PostgreSQL ist gratis, der gesamte Quellcode ist
132 Ein Team von Internet-Entwicklern befaßt sich mit PostgreSQL. Sie alle
133 sind auf der PostgreSQL-Entwickleradreßliste. Koordinator ist Marc G.
134 Fournier (scrappy@postgreSQL.org). Das Team ist verantwortlich für
135 alle aktuellen und künftigen Entwicklungen von PostgreSQL.
137 Die Autoren von PostgreSQL 1.01 waren Andrew Yu und Jolly Chen.
138 Zahlreiche andere haben zur Portierung, zum Testen, Debugging und zur
139 Verbesserung des Code beigetragen. Den Original-Postgres-Code, von dem
140 sich PostgreSQL ableitet, verdanken wir der Arbeit vieler Doktoranden,
141 Studenten und Programmierern unter der Leitung von Professor Michael
142 Stonebraker an der University of California, Berkeley.
144 Der ursprüngliche Name war Postgres. Als 1995 SQL-Funktionalität
145 hinzukam, wurde der Name in Postgres95 geändert. Ende 1996 schließlich
146 entschied man sich für PostgreSQL.
148 PostgreSQL läuft auf Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD
149 und den meisten Unix-Systemen.
152 Administrador de Banco de Datos PostgreSQL (conocido anteriormente
153 como Postgres, y después como Postgres95). PostgreSQL es una
154 continuación mejorada del Sistema Administrador de Banco de Datos
155 POSTGRES, que era un prototipo de pesquisa para un SGBD de nueva
156 generación. Mientras PostgreSQL mantiene el potente modelo de datos y
157 los varios tipos de datos del POSTGRES, substituye el lenguaje de
158 consulta PostQuel por un subconjunto extendido de la SQL. PostgreSQL
159 es libre y tiene los fuentes disponibles. El desarrollo del PostgreSQL
160 se ejecutado por un equipo de estudiosos de Internet, todos suscritos
161 en la lista de desarrollo del PostgreSQL. El coordinador actual es
162 Marc G. Fournier (scrappy@postgreSQL.org). Este equipo es ahora
163 responsable por el desarrollo actual y futuro del PostgreSQL.
166 Système de gestion de bases de données PostgreSQL (D'abord nommé
167 Postgres, puis Postgres95).
169 PostgreSQL est une amélioration du système de gestion de bases de
170 données POSTGRES, un prototype de recherche de la génération suivant
171 DBMS. Tout en conservant le puissant modèle de donnée de et les types
172 de donée riches de Postgres, il remplace le langage de requêtes de
173 Postgres par un sous ensemble etendu de commandes SQL. PosrgreSQL est
174 libre, et ses sources sont disponibles.
176 Le développement de PostgreSQL est actuellement réalisé via internet
177 parune équipe de développeurs inscrits sur la mailing-list de
178 développement de PostgreSQL. Le coordinateur actuel est Marc G
179 Fournier (scrappy@postgreSQL.org). Cette équipe est responsable du
180 développemen actuel et à venir de PostgreSQL.
182 Les auteurs de PostgreSQL 1.01 étaient Andrew Yu et Jolly Chen.
183 Beaucoup d'autres ont contribué au portage, au test, au débogage et à
184 l'amélioration du code. Le code original de Postgres, duquel
185 PostgreSQL est dérivé, a été l'oeuvre d'étudiants de haut niveau, de
186 moins haut niveau, et de programmeurs travaillant sous la direction du
187 professeur Michael Stonebraker à l'université de Berkeley Californie.
189 Le nom original du logiciel était Postgres. Quand les fonctionnalitées
190 SQL furent ajoutées en 1995, son nom est devenu Postgres95. Il a été
191 rebaptisé PostgreSQL en 1996.
193 PostgreSQL tourne sur Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD,
194 et la plupart des Unix.
197 System Zarz±dzania Baz± Danych PostgreSQL (dawniej znany jako
198 Postgres, nastêpnie jako Postgres95).
200 PostgreSQL jest rozszerzeniem systemu zarz±dzania baz danych POSTGRES,
201 prototypu DBMS nastêpnej generacji. Co prawda PostgreSQL odziedziczy³
202 model danych oraz bogaty zbiór ró¿nych typów danych, to jednak jêzyk
203 zapytañ PostQuel zosta³ zast±piony rozszerzonym SQL-em. PostgreSQL
204 jest wolnym oprogramowaniem i kody ¼ród³owe tego oprogramowania s± w
207 System PostgreSQL jest tworzony przez zespó³ ludzi, którzy s± zapisani
208 na listê dyskusyjn± dotycz±c± PostgreSQL-a. Obecnym koordynatorem jest
209 Marc G. Fournier (scrappy@postgreSQL.org). Wymieniony wy¿ej zespó³
210 jest odpowiedzialny za aktualny i przysz³y rozwój systemu PostgreSQL.
212 Autorami PostgreSQL-a 1.01 byli Andrew Yu oraz Jolly Chen. Wielu
213 innych pomaga³o przenosz±c na ró¿ne platformy, testuj±c, analizuj±c i
214 rozszerzaj±c kod. Oryginalny kod Postgres-a, na podstawie którego
215 PostgreSQL powsta³, by³ wysi³kiem wielu absolwentów, studentów oraz
216 zespo³u programistów, którzy pracowali pod kierunkiem profesora
217 Michaela Stonebrakera z Uniwersytetu Kalifornii w Berkeley.
219 Nazwa oryginalna oprogramowania tworzonego w Berkeley brzmia³a
220 Postgres. W 1995 roku dodano jêzyk zapytañ SQL i nazwê zmieniono na
221 Postgres95. W koñcu roku 1996 nazwê ostatecznie zmieniono na
224 PostgreSQL mo¿e byæ uruchomiony pod nastêpuj±cymi systemami: Solaris,
225 SunOS, HPUX, AIX, Linux, Irix, FreeBSD i innymi systemami uniksowymi.
227 %description -l pt_BR
228 Gerenciador de Banco de Dados PostgreSQL (conhecido anteriormente como
229 Postgres, e depois como Postgres95).
231 O PostgreSQL é uma continuação melhorada do Sistema Gerenciador de
232 Banco de Dados POSTGRES, que era um protótipo de pesquisa para um SGBD
233 de nova geração. Enquanto o PostgreSQL mantém o poderoso modelo de
234 dados e os vários tipos de dados do POSTGRES, ele substitui a
235 linguagem de consulta PostQuel por um subconjunto estendido da SQL. O
236 PostgreSQL é livre e tem os fontes disponíveis.
238 O desenvolvimento do PostgreSQL está sendo executado por uma equipe de
239 desenvolvedores da Internet, todos subscritores da lista de
240 desenvolvimento do PostgreSQL. O coordenador atual é Marc G. Fournier
241 (scrappy@postgreSQL.org). Esta equipe é agora responsável pelo
242 desenvolvimento atual e futuro do PostgreSQL.
245 PostgreSQL - ÓÉÓÔÅÍÁ ÕÐÒÁ×ÌÅÎÉÑ ÂÁÚÁÍÉ ÄÁÎÎÙÈ (ÐÒÅÖÄÅ ÉÚ×ÅÓÔÎÁÑ ËÁË
246 Postgres, ÐÏÔÏÍ ËÁË Postgres95).
248 PostgreSQL - ÜÔÏ ÒÁÓÛÉÒÅÎÎÁÑ ×ÅÒÓÉÑ ÓÉÓÔÅÍÙ ÕÐÒÁ×ÌÅÎÉÑ ÂÁÚÁÍÉ ÄÁÎÎÙÈ
249 POSTGRES, ÉÓÓÌÅÄÏ×ÁÔÅÌØÓËÏÇÏ ÐÒÏÔÏÔÉÐÁ DBMS ÓÌÅÄÕÀÝÅÊ ÇÅÎÅÒÁÃÉÉ.
250 óÏÈÒÁÎÑÑ ÍÏÝÎÕÀ ÍÏÄÅÌØ ÄÁÎÎÙÈ É ÂÏÇÁÔÙÊ ÎÁÂÏÒ ÔÉÐÏ× ÄÁÎÎÙÈ POSTGRES,
251 ÏÎÁ ÚÁÍÅÎÑÅÔ ÑÚÙË ÚÁÐÒÏÓÏ× PostQuel ÒÁÓÛÉÒÅÎÎÙÍ ÎÁÂÏÒÏÍ SQL.
252 PostgreSQL ÂÅÓÐÌÁÔÅÎ É ÐÏÓÔÁ×ÌÑÅÔÓÑ × ×ÉÄÅ ÐÏÌÎÏÇÏ ËÏÍÐÌÅËÔÁ ÉÓÈÏÄÎÙÈ
255 PostgreSQL ÒÁÚÒÁÂÁÔÙ×ÁÌÓÑ ËÏÍÁÎÄÏÊ Internet-ÒÁÚÒÁÂÏÔÞÉËÏ×, ÐÏÄÐÉÓÁÎÎÙÈ
256 ÎÁ ÓÐÉÓÏË ÒÁÓÓÙÌËÉ, ÐÏÓ×ÑÝÅÎÎÙÊ ÒÁÚÒÁÂÏÔËÅ PostgreSQL. ÷ ÎÁÓÔÏÑÝÅÅ
257 ×ÒÅÍÑ ËÏÏÒÄÉÎÁÔÏÒÏÍ Ñ×ÌÑÅÔÓÑ Marc G. Fournier
258 (scrappy@postgreSQL.org). üÔÁ ËÏÍÁÎÄÁ × ÎÁÓÔÏÑÝÅÅ ×ÒÅÍÑ ÏÔ×ÅÞÁÅÔ ÚÁ
259 ×ÓÅ ÔÅËÕÝÉÅ É ÂÕÄÕÝÉÅ ÒÁÚÒÁÂÏÔËÉ PostgreSQL.
261 á×ÔÏÒÁÍÉ PostgreSQL 1.01 ÂÙÌÉ Andrew Yu É Jolly Chen. íÎÏÇÉÅ ×ÎÅÓÌÉ
262 Ó×ÏÊ ×ËÌÁÄ × ÐÏÒÔÉÒÏ×ÁÎÉÅ, ÔÅÓÔÉÒÏ×ÁÎÉÅ, ÏÔÌÁÄËÕ É ÕÌÕÞÛÅÎÉÅ ËÏÄÁ.
263 ïÒÉÇÉÎÁÌØÎÙÊ ËÏÄ Postgres, ÏÔ ËÏÔÏÒÏÇÏ ÐÒÏÉÚÏÛÅÌ PostgreSQL, ÂÙÌ
264 ÓÏÚÄÁÎ ÕÓÉÌÉÑÍÉ ÓÔÕÄÅÎÔÏ×, ÁÓÐÉÒÁÎÔÏ× É ÐÅÒÓÏÎÁÌÁ, ÒÁÂÏÔÁÀÝÅÇÏ ÐÏÄ
265 ÒÕËÏ×ÏÄÓÔ×ÏÍ ÐÒÏÆÅÓÓÏÒÁ Michael Stonebraker × University of
266 California, Berkeley.
268 ïÒÉÇÉÎÁÌØÎÏÅ ÎÁÚ×ÁÎÉÅ ðï × Berkeley ÂÙÌÏ Postgres. ëÏÇÄÁ × 1995 ÇÏÄÕ
269 ÂÙÌÁ ÄÏÂÁ×ÌÅÎÁ ÆÕÎËÃÉÏÎÁÌØÎÏÓÔØ SQL, ÎÁÚ×ÁÎÉÅ ÉÚÍÅÎÉÌÏÓØ ÎÁ
270 Postgres95. ÷ ËÏÎÃÅ 1996 ÇÏÄÁ ÏÎÏ ÅÝÅ ÒÁÚ ÉÚÍÅÎÉÌÏÓØ É ÔÅÐÅÒØ ÜÔÏ
273 PostgreSQL ÒÁÂÏÔÁÅÔ ÎÁ Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD
274 É ÂÏÌØÛÉÎÓÔ×Å ÄÒÕÇÉÈ ÒÁÚÎÏ×ÉÄÎÏÓÔÅÊ Unix.
277 PostgreSQL, POSTGRES'den türemiþ bir veri tabaný yönetim sistemidir
278 (DBMS). Güçlü veri modeli ve zengin POSTGRES veri tiplerini
279 desteklerken SQL'in geniþletilmiþ bir altkümesi yerine PostQuel
280 sorgulama dilini koyar.
283 PostgreSQL - ÓÉÓÔÅÍÁ ËÅÒÕ×ÁÎÎÑ ÂÁÚÁÍÉ ÄÁÎÉÈ (ÒÁÎ¦Û ×¦ÄÏÍÁ ÑË Postgres,
284 ÐÏÔ¦Í ÑË Postgres95).
286 PostgreSQL - ÃÅ ÒÏÚÛÉÒÅÎÁ ×ÅÒÓ¦Ñ ÓÉÓÔÅÍÉ ËÅÒÕ×ÁÎÎÑ ÂÁÚÁÍÉ ÄÁÎÉÈ
287 POSTGRES, ÄÏÓ̦ÄÎÉÃØËÏÇÏ ÐÒÏÔÏÔÉÐÕ DBMS ÎÁÓÔÕÐÎϧ ÇÅÎÅÒÁæ§.
288 úÂÅÒ¦ÇÁÀÞÉ ÐÏÔÕÖÎÕ ÍÏÄÅÌØ ÄÁÎÉÈ ÔÁ ÂÁÇÁÔÉÊ ÎÁÂ¦Ò ÔÉÐ¦× ÄÁÎÉÈ POSTGRES,
289 ×ÏÎÁ ÚÁͦÎÀ¤ ÍÏ×Õ ÚÁÐÉÔ¦× PostQuel ÒÏÚÛÉÒÅÎÉÍ ÎÁÂÏÒÏÍ SQL. PostgreSQL
290 ÂÅÚËÏÛÔÏ×ÎÁ ÔÁ ÐÏÓÔÁ×ÌѤÔØÓÑ Õ ×ÉÇÌÑĦ ÐÏ×ÎÏÇÏ ËÏÍÐÌÅËÔÕ ×ÉȦÄÎÉÈ
293 PostgreSQL ÒÏÚÒÏÂÌѤÔØÓÑ ËÏÍÁÎÄÏÀ Internet-ÐÒÏÇÒÁͦÓÔ¦×, ÕÞÁÓÎÉ˦×
294 ÓÐÉÓËÕ ÒÏÚÓÉÌËÉ, ÐÒÉÓ×ÑÞÅÎÏÇÏ ÒÏÚÒÏÂæ PostgreSQL. îÁÒÁÚ¦
295 ËÏÏÒÄÉÎÁÔÏÒÏÍ ¤ Marc G. Fournier (scrappy@postgreSQL.org). ãÑ ËÏÍÁÎÄÁ
296 צÄÐÏצÄÁ¤ ÚÁ ×Ó¦ ÐÏÔÏÞΦ ÔÁ ÍÁÊÂÕÔΦ ÒÏÚÒÏÂËÉ PostgreSQL.
298 á×ÔÏÒÁÍÉ PostgreSQL 1.01 ÂÕÌÉ Andrew Yu ÔÁ Jolly Chen. âÁÇÁÔÏ ÌÀÄÅÊ
299 ×ÎÅÓÌÉ Ó×¦Ê ×ÎÅÓÏË × ÐÏÒÔÕ×ÁÎÎÑ, ÔÅÓÔÕ×ÁÎÎÑ, צÄÌÁÄËÕ ÔÁ ÐÏËÒÁÝÅÎÎÑ
300 ËÏÄÕ. ïÒÉǦÎÁÌØÎÉÊ ËÏÄ Postgres, ×¦Ä ÑËÏÇÏ ÐÏÈÏÄÉÔØ PostgreSQL, ÂÕ×
301 ÓÔ×ÏÒÅÎÉÊ ÚÕÓÉÌÌÑÍÉ ÓÔÕÄÅÎÔ¦×, ÁÓЦÒÁÎÔ¦× ÔÁ ÐÅÒÓÏÎÁÌÕ, ÑËÉÊ ÐÒÁÃÀ×Á×
302 Ð¦Ä ËÅÒ¦×ÎÉÃÔ×ÏÍ ÐÒÏÆÅÓÏÒÁ Michael Stonebraker × University of
303 California, Berkeley.
305 ïÒÉǦÎÁÌØÎÁ ÎÁÚ×Á ÐÒÏÇÒÁÍÉ × Berkeley ÂÕÌÁ Postgres. ëÏÌÉ × 1995 ÒÏæ
306 ÂÕÌÏ ÄÏÄÁÎÏ ÆÕÎËæÏÎÁÌØΦÓÔØ SQL, ÎÁÚ×Á ÚͦÎÉÌÁÓÑ ÎÁ Postgres95. ÷
307 ˦Îæ 1996 ÒÏËÕ ×ÏÎÁ ÝÅ ÒÁÚ ÚͦÎÉÌÁÓØ ¦ ÚÁÒÁÚ ÃÅ PostgreSQL.
309 PostgreSQL ÐÒÁÃÀ¤ ÎÁ Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD
310 ÔÁ ¦ÌØÛÏÓÔ¦ ¦ÎÛÉÈ Ò¦ÚÎÏ×ÉÄ¦× Unix.
313 Summary: PostgreSQL development header files and libraries
314 Summary(de): PostgreSQL-Entwicklungs-Header-Dateien und Libraries
315 Summary(es): Archivos de inclusión y bibliotecas PostgreSQL
316 Summary(fr): En-têtes et bibliothèques de développement PostgreSQL
317 Summary(pl): PostgreSQL - pliki nag³ówkowe i biblioteki
318 Summary(pt_BR): Arquivos de inclusão e bibliotecas para desenvolvimento com o PostgreSQL
319 Summary(ru): PostgreSQL - ÈÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ ÒÁÚÒÁÂÏÔÞÉËÁ
320 Summary(tr): PostgreSQL baþlýk dosyalarý ve kitaplýklar
321 Summary(uk): PostgreSQL - ÈÅÄÅÒÉ ÔÁ ¦Â̦ÏÔÅËÉ ÐÒÏÇÒÁͦÓÔÁ
322 Group: Development/Libraries
323 Requires: %{name}-libs = %{version}-%{release}
326 This package contains header files and libraries required to compile
327 applications that are talking directly to the PostgreSQL backend
330 %description devel -l de
331 Dieses Paket enthält die Header-Dateien und Libraries, die zum
332 Kompilieren von Applikationen notwendig sind, die direkt mit dem
333 PostgreSQL-Backend-Server kommunizieren.
335 %description devel -l es
336 Este paquete contiene archivos de inclusión y bibliotecas requeridas
337 para compilación de aplicativos que se comunican directamente con el
338 servidor backend PostgreSQL.
340 %description devel -l fr
341 Ce package contient les fichiers d'en-tête et les bibliothéques
342 nécessaires pour compiler des applications ayant des échanges directs
343 avec le serveur du backend PostgreSQL.
345 %description devel -l pl
346 Pakiet zawiera nag³ówki oraz biblioteki wymagane do kompilacji
347 aplikacji ³±cz±cych siê bezpo¶rednio z serwerem PostgreSQL.
349 %description devel -l pt_BR
350 Este pacote contém arquivos de inclusão e bibliotecas requeridas para
351 compilação de aplicativos que se comunicam diretamente com o servidor
354 %description devel -l ru
355 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÈÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÓÂÏÒËÉ
356 ÐÒÉÌÏÖÅÎÉÊ, ÎÅÐÏÓÒÅÄÓÔ×ÅÎÎÏ ×ÚÁÉÍÏÄÅÊÓÔ×ÕÀÝÉÈ Ó ÓÅÒ×ÅÒÏÍ PostgreSQL.
358 %description devel -l tr
359 Bu paket, PostgreSQL sunucusuyla konuþacak yazýlýmlar geliþtirmek için
360 gereken baþlýk dosyalarýný ve kitaplýklarý içerir.
362 %description devel -l uk
363 ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ ÈÅÄÅÒÉ ÔÁ ¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ
364 ÐÒÏÇÒÁÍ, Ñ˦ ÂÅÚÐÏÓÅÒÅÄÎØÏ ×ÚÁ¤ÍÏĦÀÔØ Ú ÓÅÒ×ÅÒÏÍ PostgreSQL.
366 %package backend-devel
367 Summary: PostgreSQL backend development header files
368 Summary(pl): PostgreSQL - pliki nag³ówkowe dla backendu
369 Group: Development/Libraries
370 Requires: %{name}-devel = %{version}-%{release}
371 Requires: %{name}-libs = %{version}-%{release}
373 %description backend-devel
374 This package contains header files required to compile functions that
375 could be loaded directly by backend
377 %description backend-devel -l pl
378 Pakiet zawiera nag³ówki wymagane do kompilacji funkcji ktore moga byc
379 bezposrednio ladowane przez beckend serwera PostgreSQL.
382 Summary: Clients needed to access a PostgreSQL server
383 Summary(es): Clientes necesarios para acceder al servidor PostgreSQL
384 Summary(pl): Klienci wymagani do dostêpu do serwera PostgreSQL
385 Summary(pt_BR): Clientes necessários para acessar o servidor PostgreSQL
386 Summary(ru): ëÌÉÅÎÔÓËÉÅ ÐÒÏÇÒÁÍÍÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÄÏÓÔÕÐÁ Ë ÓÅÒ×ÅÒÕ PostgreSQL
387 Summary(uk): ë̦¤ÎÔÓØ˦ ÐÒÏÇÒÁÍÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÄÏÓÔÕÐÕ ÄÏ ÓÅÒ×ÅÒÁ PostgreSQL
388 Group: Applications/Databases
389 Requires: %{name}-libs = %{version}-%{release}
392 This package includes only the clients needed to access an PostgreSQL
393 server. The server is included in the main package. If all you need is
394 to connect to another PostgreSQL server, the this is the only package
395 you need to install. Clients include several command-line utilities
396 you can use to manage your databases on a remote PostgreSQL server.
398 %description clients -l es
399 Este paquete incluye solamente los clientes necesarios para acceder un
400 servidor PostgreSQL. El servidor está en el paquete principal.
402 %description clients -l pl
403 Pakiet zawiera programy klienckie potrzebne dla dostêpu do serwera
404 PostgreSQL oraz narzêdzia do zarz±dzania bazami dzia³aj±ce z linii
405 poleceñ. Serwer znajduje siê w g³ównym pakiecie.
407 %description clients -l pt_BR
408 Este pacote inclui somente os clientes necessários para acessar um
409 servidor PostgreSQL. O servidor está no pacote principal.
411 %description clients -l ru
412 üÔÏÔ ÐÁËÅÔ ×ËÌÀÞÁÅÔ ÔÏÌØËÏ ËÌÉÅÎÔÓËÉÅ ÐÒÏÇÒÁÍÍÙ É ÂÉÂÌÉÏÔÅËÉ,
413 ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÄÏÓÔÕÐÁ Ë ÓÅÒ×ÅÒÕ PostgreSQL. óÅÒ×ÅÒ ×ÈÏÄÉÔ × ÇÌÁ×ÎÙÊ
414 ÐÁËÅÔ. åÓÌÉ ×ÁÍ ÎÁÄÏ ÔÏÌØËÏ ÒÁÂÏÔÁÔØ Ó ÄÒÕÇÉÍ ÓÅÒ×ÅÒÏÍ PostgreSQL, ÜÔÏ
415 ÅÄÉÎÓÔ×ÅÎÎÙÊ ÐÁËÅÔ, ËÏÔÏÒÙÊ ×ÁÍ ÎÁÄÏ ÕÓÔÁÎÏ×ÉÔØ.
417 ôÅÐÅÒØ ÐÁËÅÔÙ Ó ÂÉÂÌÉÏÔÅËÁÍÉ ÄÌÑ ÒÁÚÎÙÈ ÑÚÙËÏ× ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ (C,
418 C++, Perl É Tcl) ÒÁÚÄÅÌÅÎÙ. üÔÏÔ ÐÁËÅÔ ×ËÌÀÞÁÅÔ ÔÏÌØËÏ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ
421 %description clients -l uk
422 ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ Ô¦ÌØËÉ Ë̦¤ÎÔÓØ˦ ÐÒÏÇÒÁÍÉ ÔÁ ¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ
423 ÄÌÑ ÄÏÓÔÕÐÕ ÄÏ ÓÅÒ×ÅÒÁ PostgreSQL. óÅÒ×ÅÒ Í¦ÓÔÉÔØÓÑ × ÇÏÌÏ×ÎÏÍÕ
424 ÐÁËÅÔ¦. ñËÝÏ ×ÁÍ ÐÏÔÒ¦ÂÎÏ ÐÒÁÃÀ×ÁÔÉ Ú ¦ÎÛÉÍ ÓÅÒ×ÅÒÏÍ PostgreSQL, ÃÅ
425 ¤ÄÉÎÉÊ ÐÁËÅÔ, ÑËÉÊ ×ÁÍ ÔÒÅÂÁ ×ÓÔÁÎÏ×ÉÔÉ.
427 ôÅÐÅÒ ÐÁËÅÔÉ Ú Â¦Â̦ÏÔÅËÁÍÉ ÄÌÑ Ò¦ÚÎÉÈ ÍÏ× ÐÒÏÇÒÁÍÕ×ÁÎÎÑ (C, C++, Perl
428 ¦ Tcl) ÒÏÚĦÌÅΦ. ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ Ô¦ÌØËÉ Â¦Â̦ÏÔÅËÉ ÄÌÑ ÍÏ×É C.
431 Summary: Documentation for PostgreSQL
432 Summary(pl): Dodatkowa dokumantacja dla PostgreSQL
433 Group: Applications/Databases
436 This package includes documentation and HOWTO for programmer, admin
437 etc., in HTML format.
439 %description doc -l pl
440 Pakiet ten zawiera dokumentacjê oraz HOWTO m.in. dla programistów,
441 administratorów w formacie HTML.
444 Summary: PostgreSQL libraries
445 Summary(es): Biblioteca compartida del PostgreSQL
446 Summary(pl): Biblioteki dzielone programu PostgreSQL
447 Summary(pt_BR): Biblioteca compartilhada do PostgreSQL
448 Summary(zh_CN): PostgreSQL ¿Í»§ËùÐèÒªµÄ¹²Ïí¿â
452 PostgreSQL shared libraries.
454 %description libs -l es
455 Este paquete contiene la biblioteca compartida para acceso al
458 %description libs -l pl
459 Biblioteki dzielone programu PostgreSQL.
461 %description libs -l pt_BR
462 Este pacote contém a biblioteca compartilhada para acesso ao
466 Summary: Embedded SQL in C interface
467 Summary(pl): Interfejs wbudowanego SQL-a w jêzyk C
469 Requires: %{name}-libs = %{version}-%{release}
472 Embedded SQL in C interface.
474 %description ecpg -l pl
475 Interfejs wbudowanego SQL-a w jêzyk C.
478 Summary: Embedded SQL in C interface files
479 Summary(pl): Pliki programistyczne interfejsu wbudowanego SQL-a w jêzyk C
480 Group: Development/Libraries
481 Requires: %{name}-devel = %{version}-%{release}
482 Requires: %{name}-ecpg = %{version}-%{release}
484 %description ecpg-devel
485 Embedded SQL in C interface files.
487 %description ecpg-devel -l pl
488 Pliki programistyczne interfejsu wbudowanego SQL-a w jêzyk C.
491 Summary: PostgreSQL static libraries
492 Summary(es): Bibliotecas estaticas PostgreSQL
493 Summary(pl): Biblioteki statyczne programu PostgreSQL
494 Summary(pt_BR): Bibliotecas estáticas PostgreSQL
495 Summary(ru): óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ Ó PostgreSQL
496 Summary(uk): óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ ÄÌÑ ÐÒÏÇÒÁÍÕ×ÁÎÎÑ Ú PostgreSQL
497 Group: Development/Libraries
498 Requires: %{name}-devel = %{version}-%{release}
501 PostgreSQL static libraries.
503 %description static -l es
504 Este paquete contiene bibliotecas estaticas requerida para compilación
505 de aplicativos que se comunican directamente con el servidor backend
508 %description static -l pl
509 Biblioteki statyczne programu PostgreSQL.
511 %description static -l pt_BR
512 Este pacote contém as bibliotecas estáticas requeridas para compilação
513 de aplicativos que se comunicam diretamente com o servidor backend
516 %description static -l ru
517 üÔÏ ÏÔÄÅÌØÎÙÊ ÐÁËÅÔ ÓÏ ÓÔÁÔÉÞÅÓËÉÍÉ ÂÉÂÌÉÏÔÅËÁÍÉ, ËÏÔÏÒÙÅ ÂÏÌØÛÅ ÎÅ
518 ×ÈÏÄÑÔ × %{name}-devel.
520 %description static -l uk
521 ãÅ ÏËÒÅÍÉÊ ÐÁËÅÔ Ú¦ ÓÔÁÔÉÞÎÉÍÉ Â¦Â̦ÏÔÅËÁÍÉ, Ñ˦ ¦ÌØÛ ÎÅ ×ÈÏÄÑÔØ ×
524 %package module-plpgsql
525 Summary: PL/pgSQL - PostgreSQL procedural language
526 Summary(pl): PL/pgSQL - jêzyk proceduralny bazy danych PostgreSQL
527 Group: Applications/Databases
528 Requires: %{name} = %{version}-%{release}
530 %description module-plpgsql
531 From PostgreSQL documentation:
533 Postgres supports the definition of procedural languages. In the case
534 of a function or trigger procedure defined in a procedural language,
535 the database has no built-in knowledge about how to interpret the
536 function's source text. Instead, the task is passed to a handler that
537 knows the details of the language. The handler itself is a special
538 programming language function compiled into a shared object and loaded
541 To enable PL/pgSQL procedural language for your database you have to
542 run createlang command.
544 %description module-plpgsql -l pl
545 Z dokumentacji PostgreSQL:
547 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
548 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
549 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
550 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
551 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
552 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
555 Za pomoc± polecenia createlang mo¿na dodaæ obs³ugê jêzyka
556 proceduralnego PL/pgSQL dla swojej bazy danych.
558 %package module-plperl
559 Summary: PL/perl - PostgreSQL procedural language
560 Summary(pl): PL/perl - jêzyk proceduralny bazy danych PostgreSQL
561 Group: Applications/Databases
562 Requires: %{name} = %{version}-%{release}
563 Requires: perl(DynaLoader) = %(%{__perl} -MDynaLoader -e 'print DynaLoader->VERSION')
565 %description module-plperl
566 From PostgreSQL documentation:
568 Postgres supports the definition of procedural languages. In the case
569 of a function or trigger procedure defined in a procedural language,
570 the database has no built-in knowledge about how to interpret the
571 function's source text. Instead, the task is passed to a handler that
572 knows the details of the language. The handler itself is a special
573 programming language function compiled into a shared object and loaded
576 To enable PL/Perl procedural language for your database you have to
577 run createlang command.
579 %description module-plperl -l pl
580 Z dokumentacji PostgreSQL:
582 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
583 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
584 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
585 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
586 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
587 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
590 Za pomoc± polecenia createlang mo¿na dodaæ obs³ugê jêzyka
591 proceduralnego PL/Perl dla swojej bazy danych.
593 %package module-plphp
594 Summary: PL/PHP - PostgreSQL procedural language
595 Summary(pl): PL/PHP - jêzyk proceduralny bazy danych PostgreSQL
596 Group: Applications/Databases
597 Requires: %{name} = %{version}-%{release}
598 %{?requires_php_extension}
600 %description module-plphp
601 From PostgreSQL documentation:
603 Postgres supports the definition of procedural languages. In the case
604 of a function or trigger procedure defined in a procedural language,
605 the database has no built-in knowledge about how to interpret the
606 function's source text. Instead, the task is passed to a handler that
607 knows the details of the language. The handler itself is a special
608 programming language function compiled into a shared object and loaded
611 To enable PL/PHP procedural language for your database you have to
612 run createlang command.
614 %description module-plphp -l pl
615 Z dokumentacji PostgreSQL:
617 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
618 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
619 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
620 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
621 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
622 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
625 Za pomoc± polecenia createlang mo¿na dodaæ obs³ugê jêzyka
626 proceduralnego PL/PHP dla swojej bazy danych.
628 %package module-plpython
629 Summary: PL/Python - PostgreSQL procedural language
630 Summary(pl): PL/Python - jêzyk proceduralny bazy danych PostgreSQL
631 Group: Applications/Databases
632 Requires: %{name} = %{version}-%{release}
633 %pyrequires_eq python
635 %description module-plpython
636 From PostgreSQL documentation:
638 Postgres supports the definition of procedural languages. In the case
639 of a function or trigger procedure defined in a procedural language,
640 the database has no built-in knowledge about how to interpret the
641 function's source text. Instead, the task is passed to a handler that
642 knows the details of the language. The handler itself is a special
643 programming language function compiled into a shared object and loaded
646 To enable PL/Python procedural language for your database you have to
647 run createlang command.
649 %description module-plpython -l pl
650 Z dokumentacji PostgreSQL:
652 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
653 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
654 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
655 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
656 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
657 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
660 Za pomoc± polecenia createlang mo¿na dodaæ obs³ugê jêzyka
661 proceduralnego PL/Python dla swojej bazy danych.
663 %package module-pltcl
664 Summary: PL/Tcl - PostgreSQL procedural language
665 Summary(pl): PL/Tcl - jêzyk proceduralny bazy danych PostgreSQL
666 Group: Applications/Databases
667 Requires: %{name} = %{version}-%{release}
669 %description module-pltcl
670 From PostgreSQL documentation:
672 Postgres supports the definition of procedural languages. In the case
673 of a function or trigger procedure defined in a procedural language,
674 the database has no built-in knowledge about how to interpret the
675 function's source text. Instead, the task is passed to a handler that
676 knows the details of the language. The handler itself is a special
677 programming language function compiled into a shared object and loaded
680 To enable PL/Tcl procedural language for your database you have to run
683 %description module-pltcl -l pl
684 Z dokumentacji PostgreSQL:
686 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
687 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
688 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
689 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
690 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
691 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
694 Za pomoc± polecenia createlang mo¿na dodaæ obs³ugê jêzyka
695 proceduralnego PL/Tcl dla swojej bazy danych.
698 Summary: Large Objects module for PostgreSQL
699 Summary(pl): Modu³ Large Objects dla PostgreSQL-a
700 Group: Applications/Databases
701 Requires: %{name} = %{version}-%{release}
703 %description module-lo
704 Large Objects module for PostgreSQL adds a new data type 'lo', some
705 support functions and a trigger which handles the orphaning problem.
707 %description module-lo -l pl
708 Modu³ Large Objects dla PostgreSQL-a dodaje nowy typ danych 'lo',
709 kilka funkcji pomocniczych i wyzwalacz rozwi±zuj±cy problem
710 osieroconych obiektów.
712 %package module-pgcrypto
713 Summary: Cryptographic functions for PostgreSQL
714 Summary(pl): Funkcje kryptograficzne dla PostgreSQL-a
715 Group: Applications/Databases
716 Requires: %{name} = %{version}-%{release}
718 %description module-pgcrypto
719 Cryptographic functions for PostgreSQL.
721 %description module-pgcrypto -l pl
722 Funkcje kryptograficzne dla PostgreSQL.
724 %package module-tsearch2
725 Summary: Full text extension for PostgreSQL
726 Summary(pl): Rozszerzenie pe³notekstowe dla PostgreSQL-a
727 Group: Applications/Databases
728 Requires: %{name} = %{version}-%{release}
730 %description module-tsearch2
731 Implementation of a new data type tsvector - a searchable data type
733 http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/
735 %description module-tsearch2 -l pl
736 Implementacja nowego typu danych tsvector - typu danych podlegaj±cego
737 przeszukiwaniu z dostêpem poprzez indeksy:
738 http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/
743 %{?with_absolute_dbpaths:%patch1 -p1}
747 #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 %{__sed} -i 's:contrib/::g' contrib/tsearch2/tsearch.sql.in
791 %{__make} -C contrib/tsearch2
792 %{__make} -C src/tutorial \
795 %ifnarch sparc sparcv9 sparc64 alpha
796 %{?with_tests:%{__make} check}
806 rm -rf $RPM_BUILD_ROOT
807 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{rc.d/init.d,sysconfig}} \
808 $RPM_BUILD_ROOT{/var/{lib/pgsql,log},%{_pgsqldir}} \
809 $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} \
810 $RPM_BUILD_ROOT%{_mandir} \
811 $RPM_BUILD_ROOT/home/services/postgres
813 install src/tutorial/*.sql $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
816 DESTDIR=$RPM_BUILD_ROOT
818 %{__cc} -shared -Wl,-soname,libpq.so.3 -o $RPM_BUILD_ROOT%{_libdir}/libpq.so.3.0.0 -L$RPM_BUILD_ROOT%{_libdir} -lpq
821 %{__make} install -C src/pl/plperl \
822 DESTDIR=$RPM_BUILD_ROOT
825 %{__make} -C contrib/lo install \
826 DESTDIR=$RPM_BUILD_ROOT
828 %{__make} -C contrib/pgcrypto install \
829 DESTDIR=$RPM_BUILD_ROOT
831 %{__make} -C contrib/tsearch2 install \
832 DESTDIR=$RPM_BUILD_ROOT
837 DESTDIR=$RPM_BUILD_ROOT
841 touch $RPM_BUILD_ROOT/var/log/pgsql
843 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/postgresql
844 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/postgresql
847 tar zxf %{SOURCE2} -C howto
849 %py_comp $RPM_BUILD_ROOT%{py_libdir}
850 %py_ocomp $RPM_BUILD_ROOT%{py_libdir}
853 for f in libpq pg_controldata pg_dump pg_resetxlog pgscripts postgres psql initdb pg_ctl pg_config; do
857 cat pgscripts.lang pg_resetxlog.lang postgres.lang pg_controldata.lang > main.lang
858 cat pg_dump.lang psql.lang initdb.lang pg_ctl.lang > clients.lang
860 # Remove Contrib documentation. We use macro %doc
861 rm -rf $RPM_BUILD_ROOT/contrib
864 rm -rf $RPM_BUILD_ROOT
868 if [ -f /etc/sysconfig/postgresql ]; then
869 . /etc/sysconfig/postgresql
870 if [ -z "$PG_DB_CLUSTERS" -a -n "$POSTGRES_DATA_DIR" ]; then
871 PG_DB_CLUSTERS="$POSTGRES_DATA_DIR"
875 for pgdir in $PG_DB_CLUSTERS; do
876 if [ -f $pgdir/PG_VERSION ]; then
877 if [ `cat $pgdir/PG_VERSION` != '8.1' ]; then
878 echo "Found database(s) in older, incompatible format in cluster $pgdir."
883 if [ "$foundold" = "1" ]; then
885 echo "Dump all data from clusters mentioned above (using pg_dump or pg_dumpall)"
886 echo "and clean (or rename) those directories; then upgrade postgresql and"
887 echo "restore all data (using pg_restore or psql)."
888 echo "Remember to stop the daemon before upgrading!"
890 echo "Warning for upgrade from version *before* 7.2."
891 echo "Please note, that postgresql module path changed from"
892 echo "/usr/lib/pgsql/module to /usr/lib/postgresql. Change the path"
893 echo "in dump file before restore."
895 echo "Warning for upgrade from version *before* 7.3."
896 echo "Reading following webpage is encouraged:"
897 echo "http://www.ca.postgresql.org/docs/momjian/upgrade_tips_7.3"
901 %groupadd -g 88 -r postgres
902 %useradd -M -o -r -u 88 -d /home/services/postgres -s /bin/sh -g postgres -c "PostgreSQL Server" postgres
904 if [ -n "`/bin/id -u postgres 2>/dev/null`" ]; then
905 /usr/sbin/usermod -d /home/services/postgres postgres
909 /sbin/chkconfig --add postgresql
910 if [ -f /var/lock/subsys/postgresql ]; then
911 /etc/rc.d/init.d/postgresql restart >&2 || :
913 echo "Run \"/etc/rc.d/init.d/postgresql start\" to start postgresql server."
917 if [ "$1" = "0" ]; then
918 if [ -f /var/lock/subsys/postgresql ]; then
919 /etc/rc.d/init.d/postgresql stop
921 /sbin/chkconfig --del postgresql
924 %post libs -p /sbin/ldconfig
925 %postun libs -p /sbin/ldconfig
927 %post ecpg -p /sbin/ldconfig
928 %postun ecpg -p /sbin/ldconfig
931 %defattr(644,root,root,755)
932 %doc COPYRIGHT README HISTORY doc/{FAQ*,README*,bug.template}
933 %attr(754,root,root) /etc/rc.d/init.d/postgresql
934 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/postgresql
936 %attr(755,root,root) %{_bindir}/initdb
937 %attr(755,root,root) %{_bindir}/ipcclean
938 %attr(755,root,root) %{_bindir}/pg_controldata
939 %attr(755,root,root) %{_bindir}/pg_ctl
940 %attr(755,root,root) %{_bindir}/pg_resetxlog
941 %attr(755,root,root) %{_bindir}/postgres
942 %attr(755,root,root) %{_bindir}/postmaster
944 %attr(755,root,root) %{_pgmoduledir}/ascii*
945 %attr(755,root,root) %{_pgmoduledir}/cyrillic*
946 %attr(755,root,root) %{_pgmoduledir}/euc*
947 %attr(755,root,root) %{_pgmoduledir}/latin*
948 %attr(755,root,root) %{_pgmoduledir}/utf*
951 %dir %{_datadir}/postgresql
952 %dir %{_datadir}/postgresql/timezone
953 %{_datadir}/postgresql/*.bki
954 %{_datadir}/postgresql/*.sample
955 %{_datadir}/postgresql/*.description
956 %{_datadir}/postgresql/*.sql
957 %{_datadir}/postgresql/*.txt
958 %{_datadir}/postgresql/timezone/*
960 %attr(700,postgres,postgres) /home/services/postgres
961 %attr(700,postgres,postgres) %dir /var/lib/pgsql
962 %attr(640,postgres,postgres) %config(noreplace) %verify(not md5 mtime size) /var/log/pgsql
964 %{_mandir}/man1/initdb.1*
965 %{_mandir}/man1/ipcclean.1*
966 %{_mandir}/man1/pg_controldata.1*
967 %{_mandir}/man1/pg_ctl.1*
968 %{_mandir}/man1/pg_resetxlog.1*
969 %{_mandir}/man1/postgres.1*
970 %{_mandir}/man1/postmaster.1*
973 %defattr(644,root,root,755)
974 %doc doc/unpacked/* doc/src/FAQ howto
975 %{_examplesdir}/%{name}-%{version}
977 %files libs -f libpq.lang
978 %defattr(644,root,root,755)
979 %attr(755,root,root) %{_libdir}/libpq.so.*
983 %defattr(644,root,root,755)
984 %attr(755,root,root) %{_bindir}/ecpg
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.*.*
988 %{_mandir}/man1/ecpg.1*
991 %defattr(644,root,root,755)
992 %attr(755,root,root) %{_libdir}/libecpg.so
993 %attr(755,root,root) %{_libdir}/libecpg_compat.so
994 %attr(755,root,root) %{_libdir}/libpgtypes.so
997 %files devel -f pg_config.lang
998 %defattr(644,root,root,755)
999 %attr(755,root,root) %{_bindir}/pg_config
1000 %attr(755,root,root) %{_libdir}/libpq.so
1001 %dir %{_includedir}/postgresql
1002 %{_includedir}/libpq-fe.h
1003 %{_includedir}/pg_config.h
1004 %{_includedir}/pg_config_manual.h
1005 %{_includedir}/pg_config_os.h
1006 %{_includedir}/postgres_ext.h
1007 %dir %{_includedir}/postgresql/internal
1008 %{_includedir}/postgresql/internal/c.h
1009 %{_includedir}/postgresql/internal/libpq-int.h
1010 %{_includedir}/postgresql/internal/port.h
1011 %{_includedir}/postgresql/internal/postgres_fe.h
1012 %{_includedir}/postgresql/internal/pqexpbuffer.h
1013 %{_includedir}/postgresql/internal/libpq
1014 %{_includedir}/libpq
1015 %{_mandir}/man1/pg_config.1*
1017 %files backend-devel
1018 %defattr(644,root,root,755)
1019 %{_includedir}/postgresql/server
1020 %dir %{_pgmoduledir}/pgxs
1021 %attr(755,root,root) %{_pgmoduledir}/pgxs/config
1022 %{_pgmoduledir}/pgxs/src
1025 %defattr(644,root,root,755)
1026 %{_libdir}/libecpg.a
1027 %{_libdir}/libecpg_compat.a
1029 %{_libdir}/libpgtypes.a
1030 %{_libdir}/libpgport.a
1032 %files clients -f clients.lang
1033 %defattr(644,root,root,755)
1034 %attr(755,root,root) %{_bindir}/clusterdb
1035 %attr(755,root,root) %{_bindir}/createdb
1036 %attr(755,root,root) %{_bindir}/createlang
1037 %attr(755,root,root) %{_bindir}/createuser
1038 %attr(755,root,root) %{_bindir}/dropdb
1039 %attr(755,root,root) %{_bindir}/droplang
1040 %attr(755,root,root) %{_bindir}/dropuser
1041 %attr(755,root,root) %{_bindir}/pg_dump
1042 %attr(755,root,root) %{_bindir}/pg_dumpall
1043 %attr(755,root,root) %{_bindir}/pg_restore
1044 %attr(755,root,root) %{_bindir}/psql
1045 %attr(755,root,root) %{_bindir}/reindexdb
1046 %attr(755,root,root) %{_bindir}/vacuumdb
1048 %{_mandir}/man1/clusterdb.1*
1049 %{_mandir}/man1/createdb.1*
1050 %{_mandir}/man1/createlang.1*
1051 %{_mandir}/man1/createuser.1*
1052 %{_mandir}/man1/dropdb.1*
1053 %{_mandir}/man1/droplang.1*
1054 %{_mandir}/man1/dropuser.1*
1055 %{_mandir}/man1/pg_dump.1*
1056 %{_mandir}/man1/pg_dumpall.1*
1057 %{_mandir}/man1/pg_restore.1*
1058 %{_mandir}/man1/psql.1*
1059 %{_mandir}/man1/reindexdb.1*
1060 %{_mandir}/man1/vacuumdb.1*
1061 %{_mandir}/man7/*.7*
1063 %files module-plpgsql
1064 %defattr(644,root,root,755)
1065 %attr(755,root,root) %{_pgmoduledir}/plpgsql.so
1068 %files module-plperl
1069 %defattr(644,root,root,755)
1070 %attr(755,root,root) %{_pgmoduledir}/plperl.so
1074 %files module-plpython
1075 %defattr(644,root,root,755)
1076 %attr(755,root,root) %{_pgmoduledir}/plpython.so
1081 %defattr(644,root,root,755)
1082 %attr(755,root,root) %{_bindir}/pltcl_*
1083 %attr(755,root,root) %{_pgmoduledir}/pltcl.so
1087 %defattr(644,root,root,755)
1088 %doc contrib/lo/README.lo
1089 %attr(755,root,root) %{_pgmoduledir}/lo.so
1090 %{_pgsqldir}/lo*.sql
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