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 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://ftp.postgresql.org/pub/source/v%{version}/%{name}-%{version}.tar.bz2
33 # Source0-md5: c0914a133ce6c1e0f1d8b93982d6e881
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
64 BuildRequires: python >= 1:2.3
65 BuildRequires: python-devel >= 1:2.3
67 BuildRequires: readline-devel >= 4.2
68 BuildRequires: rpmbuild(macros) >= 1.202
69 BuildRequires: sed >= 4.0
70 %{?with_tcl:BuildRequires: tcl-devel >= 8.4.3}
71 BuildRequires: zlib-devel
73 PreReq: %{name}-clients = %{version}-%{release}
74 PreReq: %{name}-libs = %{version}-%{release}
75 Requires(pre): /usr/bin/getgid
76 Requires(pre): /bin/id
77 Requires(pre): /usr/sbin/groupadd
78 Requires(pre): /usr/sbin/useradd
79 Requires(pre): /usr/sbin/usermod
80 Requires(post,preun): /sbin/chkconfig
81 Obsoletes: postgresql-server
82 Obsoletes: postgresql-test
83 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
85 %define _pgmoduledir %{_libdir}/postgresql
86 %define _pgsqldir %{_datadir}/postgresql/contrib
89 PostgreSQL Data Base Management System (formerly known as Postgres,
92 PostgreSQL is an enhancement of the POSTGRES database management
93 system, a next-generation DBMS research prototype. While PostgreSQL
94 retains the powerful data model and rich data types of POSTGRES, it
95 replaces the PostQuel query language with an extended subset of SQL.
96 PostgreSQL is free and the complete source is available.
98 PostgreSQL development is being performed by a team of Internet
99 developers who all subscribe to the PostgreSQL development mailing
100 list. The current coordinator is Marc G. Fournier
101 (scrappy@postgreSQL.org). This team is now responsible for all current
102 and future development of PostgreSQL.
104 The authors of PostgreSQL 1.01 were Andrew Yu and Jolly Chen. Many
105 others have contributed to the porting, testing, debugging and
106 enhancement of the code. The original Postgres code, from which
107 PostgreSQL is derived, was the effort of many graduate students,
108 undergraduate students, and staff programmers working under the
109 direction of Professor Michael Stonebraker at the University of
110 California, Berkeley.
112 The original name of the software at Berkeley was Postgres. When SQL
113 functionality was added in 1995, its name was changed to Postgres95.
114 The name was changed at the end of 1996 to PostgreSQL.
116 PostgreSQL runs on Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD,
117 and most flavours of Unix.
120 PostgreSQL Datenbank-Managementsystem (früher als Postgres, dann als
123 PostgreSQL ist eine Verbesserung des POSTGRES-DB-Managementsystems,
124 ein DBMS-Forschungsprototyp der nächsten Generation. Während es das
125 leistungsfähige Datenmodell und die reichhaltigen Datentypen von
126 POSTGRES beibehält, ersetzt es die PostQuel-Abfragesprache durch ein
127 Subset von SQL. PostgreSQL ist gratis, der gesamte Quellcode ist
130 Ein Team von Internet-Entwicklern befaßt sich mit PostgreSQL. Sie alle
131 sind auf der PostgreSQL-Entwickleradreßliste. Koordinator ist Marc G.
132 Fournier (scrappy@postgreSQL.org). Das Team ist verantwortlich für
133 alle aktuellen und künftigen Entwicklungen von PostgreSQL.
135 Die Autoren von PostgreSQL 1.01 waren Andrew Yu und Jolly Chen.
136 Zahlreiche andere haben zur Portierung, zum Testen, Debugging und zur
137 Verbesserung des Code beigetragen. Den Original-Postgres-Code, von dem
138 sich PostgreSQL ableitet, verdanken wir der Arbeit vieler Doktoranden,
139 Studenten und Programmierern unter der Leitung von Professor Michael
140 Stonebraker an der University of California, Berkeley.
142 Der ursprüngliche Name war Postgres. Als 1995 SQL-Funktionalität
143 hinzukam, wurde der Name in Postgres95 geändert. Ende 1996 schließlich
144 entschied man sich für PostgreSQL.
146 PostgreSQL läuft auf Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD
147 und den meisten Unix-Systemen.
150 Administrador de Banco de Datos PostgreSQL (conocido anteriormente
151 como Postgres, y después como Postgres95). PostgreSQL es una
152 continuación mejorada del Sistema Administrador de Banco de Datos
153 POSTGRES, que era un prototipo de pesquisa para un SGBD de nueva
154 generación. Mientras PostgreSQL mantiene el potente modelo de datos y
155 los varios tipos de datos del POSTGRES, substituye el lenguaje de
156 consulta PostQuel por un subconjunto extendido de la SQL. PostgreSQL
157 es libre y tiene los fuentes disponibles. El desarrollo del PostgreSQL
158 se ejecutado por un equipo de estudiosos de Internet, todos suscritos
159 en la lista de desarrollo del PostgreSQL. El coordinador actual es
160 Marc G. Fournier (scrappy@postgreSQL.org). Este equipo es ahora
161 responsable por el desarrollo actual y futuro del PostgreSQL.
164 Système de gestion de bases de données PostgreSQL (D'abord nommé
165 Postgres, puis Postgres95).
167 PostgreSQL est une amélioration du système de gestion de bases de
168 données POSTGRES, un prototype de recherche de la génération suivant
169 DBMS. Tout en conservant le puissant modèle de donnée de et les types
170 de donée riches de Postgres, il remplace le langage de requêtes de
171 Postgres par un sous ensemble etendu de commandes SQL. PosrgreSQL est
172 libre, et ses sources sont disponibles.
174 Le développement de PostgreSQL est actuellement réalisé via internet
175 parune équipe de développeurs inscrits sur la mailing-list de
176 développement de PostgreSQL. Le coordinateur actuel est Marc G
177 Fournier (scrappy@postgreSQL.org). Cette équipe est responsable du
178 développemen actuel et à venir de PostgreSQL.
180 Les auteurs de PostgreSQL 1.01 étaient Andrew Yu et Jolly Chen.
181 Beaucoup d'autres ont contribué au portage, au test, au débogage et à
182 l'amélioration du code. Le code original de Postgres, duquel
183 PostgreSQL est dérivé, a été l'oeuvre d'étudiants de haut niveau, de
184 moins haut niveau, et de programmeurs travaillant sous la direction du
185 professeur Michael Stonebraker à l'université de Berkeley Californie.
187 Le nom original du logiciel était Postgres. Quand les fonctionnalitées
188 SQL furent ajoutées en 1995, son nom est devenu Postgres95. Il a été
189 rebaptisé PostgreSQL en 1996.
191 PostgreSQL tourne sur Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD,
192 et la plupart des Unix.
195 System Zarz±dzania Baz± Danych PostgreSQL (dawniej znany jako
196 Postgres, nastêpnie jako Postgres95).
198 PostgreSQL jest rozszerzeniem systemu zarz±dzania baz danych POSTGRES,
199 prototypu DBMS nastêpnej generacji. Co prawda PostgreSQL odziedziczy³
200 model danych oraz bogaty zbiór ró¿nych typów danych, to jednak jêzyk
201 zapytañ PostQuel zosta³ zast±piony rozszerzonym SQL-em. PostgreSQL
202 jest wolnym oprogramowaniem i kody ¼ród³owe tego oprogramowania s± w
205 System PostgreSQL jest tworzony przez zespó³ ludzi, którzy s± zapisani
206 na listê dyskusyjn± dotycz±c± PostgreSQL-a. Obecnym koordynatorem jest
207 Marc G. Fournier (scrappy@postgreSQL.org). Wymieniony wy¿ej zespó³
208 jest odpowiedzialny za aktualny i przysz³y rozwój systemu PostgreSQL.
210 Autorami PostgreSQL-a 1.01 byli Andrew Yu oraz Jolly Chen. Wielu
211 innych pomaga³o przenosz±c na ró¿ne platformy, testuj±c, analizuj±c i
212 rozszerzaj±c kod. Oryginalny kod Postgres-a, na podstawie którego
213 PostgreSQL powsta³, by³ wysi³kiem wielu absolwentów, studentów oraz
214 zespo³u programistów, którzy pracowali pod kierunkiem profesora
215 Michaela Stonebrakera z Uniwersytetu Kalifornii w Berkeley.
217 Nazwa oryginalna oprogramowania tworzonego w Berkeley brzmia³a
218 Postgres. W 1995 roku dodano jêzyk zapytañ SQL i nazwê zmieniono na
219 Postgres95. W koñcu roku 1996 nazwê ostatecznie zmieniono na
222 PostgreSQL mo¿e byæ uruchomiony pod nastêpuj±cymi systemami: Solaris,
223 SunOS, HPUX, AIX, Linux, Irix, FreeBSD i innymi systemami uniksowymi.
225 %description -l pt_BR
226 Gerenciador de Banco de Dados PostgreSQL (conhecido anteriormente como
227 Postgres, e depois como Postgres95).
229 O PostgreSQL é uma continuação melhorada do Sistema Gerenciador de
230 Banco de Dados POSTGRES, que era um protótipo de pesquisa para um SGBD
231 de nova geração. Enquanto o PostgreSQL mantém o poderoso modelo de
232 dados e os vários tipos de dados do POSTGRES, ele substitui a
233 linguagem de consulta PostQuel por um subconjunto estendido da SQL. O
234 PostgreSQL é livre e tem os fontes disponíveis.
236 O desenvolvimento do PostgreSQL está sendo executado por uma equipe de
237 desenvolvedores da Internet, todos subscritores da lista de
238 desenvolvimento do PostgreSQL. O coordenador atual é Marc G. Fournier
239 (scrappy@postgreSQL.org). Esta equipe é agora responsável pelo
240 desenvolvimento atual e futuro do PostgreSQL.
243 PostgreSQL - ÓÉÓÔÅÍÁ ÕÐÒÁ×ÌÅÎÉÑ ÂÁÚÁÍÉ ÄÁÎÎÙÈ (ÐÒÅÖÄÅ ÉÚ×ÅÓÔÎÁÑ ËÁË
244 Postgres, ÐÏÔÏÍ ËÁË Postgres95).
246 PostgreSQL - ÜÔÏ ÒÁÓÛÉÒÅÎÎÁÑ ×ÅÒÓÉÑ ÓÉÓÔÅÍÙ ÕÐÒÁ×ÌÅÎÉÑ ÂÁÚÁÍÉ ÄÁÎÎÙÈ
247 POSTGRES, ÉÓÓÌÅÄÏ×ÁÔÅÌØÓËÏÇÏ ÐÒÏÔÏÔÉÐÁ DBMS ÓÌÅÄÕÀÝÅÊ ÇÅÎÅÒÁÃÉÉ.
248 óÏÈÒÁÎÑÑ ÍÏÝÎÕÀ ÍÏÄÅÌØ ÄÁÎÎÙÈ É ÂÏÇÁÔÙÊ ÎÁÂÏÒ ÔÉÐÏ× ÄÁÎÎÙÈ POSTGRES,
249 ÏÎÁ ÚÁÍÅÎÑÅÔ ÑÚÙË ÚÁÐÒÏÓÏ× PostQuel ÒÁÓÛÉÒÅÎÎÙÍ ÎÁÂÏÒÏÍ SQL.
250 PostgreSQL ÂÅÓÐÌÁÔÅÎ É ÐÏÓÔÁ×ÌÑÅÔÓÑ × ×ÉÄÅ ÐÏÌÎÏÇÏ ËÏÍÐÌÅËÔÁ ÉÓÈÏÄÎÙÈ
253 PostgreSQL ÒÁÚÒÁÂÁÔÙ×ÁÌÓÑ ËÏÍÁÎÄÏÊ Internet-ÒÁÚÒÁÂÏÔÞÉËÏ×, ÐÏÄÐÉÓÁÎÎÙÈ
254 ÎÁ ÓÐÉÓÏË ÒÁÓÓÙÌËÉ, ÐÏÓ×ÑÝÅÎÎÙÊ ÒÁÚÒÁÂÏÔËÅ PostgreSQL. ÷ ÎÁÓÔÏÑÝÅÅ
255 ×ÒÅÍÑ ËÏÏÒÄÉÎÁÔÏÒÏÍ Ñ×ÌÑÅÔÓÑ Marc G. Fournier
256 (scrappy@postgreSQL.org). üÔÁ ËÏÍÁÎÄÁ × ÎÁÓÔÏÑÝÅÅ ×ÒÅÍÑ ÏÔ×ÅÞÁÅÔ ÚÁ
257 ×ÓÅ ÔÅËÕÝÉÅ É ÂÕÄÕÝÉÅ ÒÁÚÒÁÂÏÔËÉ PostgreSQL.
259 á×ÔÏÒÁÍÉ PostgreSQL 1.01 ÂÙÌÉ Andrew Yu É Jolly Chen. íÎÏÇÉÅ ×ÎÅÓÌÉ
260 Ó×ÏÊ ×ËÌÁÄ × ÐÏÒÔÉÒÏ×ÁÎÉÅ, ÔÅÓÔÉÒÏ×ÁÎÉÅ, ÏÔÌÁÄËÕ É ÕÌÕÞÛÅÎÉÅ ËÏÄÁ.
261 ïÒÉÇÉÎÁÌØÎÙÊ ËÏÄ Postgres, ÏÔ ËÏÔÏÒÏÇÏ ÐÒÏÉÚÏÛÅÌ PostgreSQL, ÂÙÌ
262 ÓÏÚÄÁÎ ÕÓÉÌÉÑÍÉ ÓÔÕÄÅÎÔÏ×, ÁÓÐÉÒÁÎÔÏ× É ÐÅÒÓÏÎÁÌÁ, ÒÁÂÏÔÁÀÝÅÇÏ ÐÏÄ
263 ÒÕËÏ×ÏÄÓÔ×ÏÍ ÐÒÏÆÅÓÓÏÒÁ Michael Stonebraker × University of
264 California, Berkeley.
266 ïÒÉÇÉÎÁÌØÎÏÅ ÎÁÚ×ÁÎÉÅ ðï × Berkeley ÂÙÌÏ Postgres. ëÏÇÄÁ × 1995 ÇÏÄÕ
267 ÂÙÌÁ ÄÏÂÁ×ÌÅÎÁ ÆÕÎËÃÉÏÎÁÌØÎÏÓÔØ SQL, ÎÁÚ×ÁÎÉÅ ÉÚÍÅÎÉÌÏÓØ ÎÁ
268 Postgres95. ÷ ËÏÎÃÅ 1996 ÇÏÄÁ ÏÎÏ ÅÝÅ ÒÁÚ ÉÚÍÅÎÉÌÏÓØ É ÔÅÐÅÒØ ÜÔÏ
271 PostgreSQL ÒÁÂÏÔÁÅÔ ÎÁ Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD
272 É ÂÏÌØÛÉÎÓÔ×Å ÄÒÕÇÉÈ ÒÁÚÎÏ×ÉÄÎÏÓÔÅÊ Unix.
275 PostgreSQL, POSTGRES'den türemiþ bir veri tabaný yönetim sistemidir
276 (DBMS). Güçlü veri modeli ve zengin POSTGRES veri tiplerini
277 desteklerken SQL'in geniþletilmiþ bir altkümesi yerine PostQuel
278 sorgulama dilini koyar.
281 PostgreSQL - ÓÉÓÔÅÍÁ ËÅÒÕ×ÁÎÎÑ ÂÁÚÁÍÉ ÄÁÎÉÈ (ÒÁÎ¦Û ×¦ÄÏÍÁ ÑË Postgres,
282 ÐÏÔ¦Í ÑË Postgres95).
284 PostgreSQL - ÃÅ ÒÏÚÛÉÒÅÎÁ ×ÅÒÓ¦Ñ ÓÉÓÔÅÍÉ ËÅÒÕ×ÁÎÎÑ ÂÁÚÁÍÉ ÄÁÎÉÈ
285 POSTGRES, ÄÏÓ̦ÄÎÉÃØËÏÇÏ ÐÒÏÔÏÔÉÐÕ DBMS ÎÁÓÔÕÐÎϧ ÇÅÎÅÒÁæ§.
286 úÂÅÒ¦ÇÁÀÞÉ ÐÏÔÕÖÎÕ ÍÏÄÅÌØ ÄÁÎÉÈ ÔÁ ÂÁÇÁÔÉÊ ÎÁÂ¦Ò ÔÉÐ¦× ÄÁÎÉÈ POSTGRES,
287 ×ÏÎÁ ÚÁͦÎÀ¤ ÍÏ×Õ ÚÁÐÉÔ¦× PostQuel ÒÏÚÛÉÒÅÎÉÍ ÎÁÂÏÒÏÍ SQL. PostgreSQL
288 ÂÅÚËÏÛÔÏ×ÎÁ ÔÁ ÐÏÓÔÁ×ÌѤÔØÓÑ Õ ×ÉÇÌÑĦ ÐÏ×ÎÏÇÏ ËÏÍÐÌÅËÔÕ ×ÉȦÄÎÉÈ
291 PostgreSQL ÒÏÚÒÏÂÌѤÔØÓÑ ËÏÍÁÎÄÏÀ Internet-ÐÒÏÇÒÁͦÓÔ¦×, ÕÞÁÓÎÉ˦×
292 ÓÐÉÓËÕ ÒÏÚÓÉÌËÉ, ÐÒÉÓ×ÑÞÅÎÏÇÏ ÒÏÚÒÏÂæ PostgreSQL. îÁÒÁÚ¦
293 ËÏÏÒÄÉÎÁÔÏÒÏÍ ¤ Marc G. Fournier (scrappy@postgreSQL.org). ãÑ ËÏÍÁÎÄÁ
294 צÄÐÏצÄÁ¤ ÚÁ ×Ó¦ ÐÏÔÏÞΦ ÔÁ ÍÁÊÂÕÔΦ ÒÏÚÒÏÂËÉ PostgreSQL.
296 á×ÔÏÒÁÍÉ PostgreSQL 1.01 ÂÕÌÉ Andrew Yu ÔÁ Jolly Chen. âÁÇÁÔÏ ÌÀÄÅÊ
297 ×ÎÅÓÌÉ Ó×¦Ê ×ÎÅÓÏË × ÐÏÒÔÕ×ÁÎÎÑ, ÔÅÓÔÕ×ÁÎÎÑ, צÄÌÁÄËÕ ÔÁ ÐÏËÒÁÝÅÎÎÑ
298 ËÏÄÕ. ïÒÉǦÎÁÌØÎÉÊ ËÏÄ Postgres, ×¦Ä ÑËÏÇÏ ÐÏÈÏÄÉÔØ PostgreSQL, ÂÕ×
299 ÓÔ×ÏÒÅÎÉÊ ÚÕÓÉÌÌÑÍÉ ÓÔÕÄÅÎÔ¦×, ÁÓЦÒÁÎÔ¦× ÔÁ ÐÅÒÓÏÎÁÌÕ, ÑËÉÊ ÐÒÁÃÀ×Á×
300 Ð¦Ä ËÅÒ¦×ÎÉÃÔ×ÏÍ ÐÒÏÆÅÓÏÒÁ Michael Stonebraker × University of
301 California, Berkeley.
303 ïÒÉǦÎÁÌØÎÁ ÎÁÚ×Á ÐÒÏÇÒÁÍÉ × Berkeley ÂÕÌÁ Postgres. ëÏÌÉ × 1995 ÒÏæ
304 ÂÕÌÏ ÄÏÄÁÎÏ ÆÕÎËæÏÎÁÌØΦÓÔØ SQL, ÎÁÚ×Á ÚͦÎÉÌÁÓÑ ÎÁ Postgres95. ÷
305 ˦Îæ 1996 ÒÏËÕ ×ÏÎÁ ÝÅ ÒÁÚ ÚͦÎÉÌÁÓØ ¦ ÚÁÒÁÚ ÃÅ PostgreSQL.
307 PostgreSQL ÐÒÁÃÀ¤ ÎÁ Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD
308 ÔÁ ¦ÌØÛÏÓÔ¦ ¦ÎÛÉÈ Ò¦ÚÎÏ×ÉÄ¦× Unix.
311 Summary: PostgreSQL development header files and libraries
312 Summary(de): PostgreSQL-Entwicklungs-Header-Dateien und Libraries
313 Summary(es): Archivos de inclusión y bibliotecas PostgreSQL
314 Summary(fr): En-têtes et bibliothèques de développement PostgreSQL
315 Summary(pl): PostgreSQL - pliki nag³ówkowe i biblioteki
316 Summary(pt_BR): Arquivos de inclusão e bibliotecas para desenvolvimento com o PostgreSQL
317 Summary(ru): PostgreSQL - ÈÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ ÒÁÚÒÁÂÏÔÞÉËÁ
318 Summary(tr): PostgreSQL baþlýk dosyalarý ve kitaplýklar
319 Summary(uk): PostgreSQL - ÈÅÄÅÒÉ ÔÁ ¦Â̦ÏÔÅËÉ ÐÒÏÇÒÁͦÓÔÁ
320 Group: Development/Libraries
321 Requires: %{name}-libs = %{version}-%{release}
324 This package contains header files and libraries required to compile
325 applications that are talking directly to the PostgreSQL backend
328 %description devel -l de
329 Dieses Paket enthält die Header-Dateien und Libraries, die zum
330 Kompilieren von Applikationen notwendig sind, die direkt mit dem
331 PostgreSQL-Backend-Server kommunizieren.
333 %description devel -l es
334 Este paquete contiene archivos de inclusión y bibliotecas requeridas
335 para compilación de aplicativos que se comunican directamente con el
336 servidor backend PostgreSQL.
338 %description devel -l fr
339 Ce package contient les fichiers d'en-tête et les bibliothéques
340 nécessaires pour compiler des applications ayant des échanges directs
341 avec le serveur du backend PostgreSQL.
343 %description devel -l pl
344 Pakiet zawiera nag³ówki oraz biblioteki wymagane do kompilacji
345 aplikacji ³±cz±cych siê bezpo¶rednio z serwerem PostgreSQL.
347 %description devel -l pt_BR
348 Este pacote contém arquivos de inclusão e bibliotecas requeridas para
349 compilação de aplicativos que se comunicam diretamente com o servidor
352 %description devel -l ru
353 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÈÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÓÂÏÒËÉ
354 ÐÒÉÌÏÖÅÎÉÊ, ÎÅÐÏÓÒÅÄÓÔ×ÅÎÎÏ ×ÚÁÉÍÏÄÅÊÓÔ×ÕÀÝÉÈ Ó ÓÅÒ×ÅÒÏÍ PostgreSQL.
356 %description devel -l tr
357 Bu paket, PostgreSQL sunucusuyla konuþacak yazýlýmlar geliþtirmek için
358 gereken baþlýk dosyalarýný ve kitaplýklarý içerir.
360 %description devel -l uk
361 ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ ÈÅÄÅÒÉ ÔÁ ¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ
362 ÐÒÏÇÒÁÍ, Ñ˦ ÂÅÚÐÏÓÅÒÅÄÎØÏ ×ÚÁ¤ÍÏĦÀÔØ Ú ÓÅÒ×ÅÒÏÍ PostgreSQL.
364 %package backend-devel
365 Summary: PostgreSQL backend development header files
366 Summary(pl): PostgreSQL - pliki nag³ówkowe dla backendu
367 Group: Development/Libraries
368 Requires: %{name}-devel = %{version}-%{release}
369 Requires: %{name}-libs = %{version}-%{release}
371 %description backend-devel
372 This package contains header files required to compile functions that
373 could be loaded directly by backend
375 %description backend-devel -l pl
376 Pakiet zawiera nag³ówki wymagane do kompilacji funkcji ktore moga byc
377 bezposrednio ladowane przez beckend serwera PostgreSQL.
380 Summary: Clients needed to access a PostgreSQL server
381 Summary(es): Clientes necesarios para acceder al servidor PostgreSQL
382 Summary(pl): Klienci wymagani do dostêpu do serwera PostgreSQL
383 Summary(pt_BR): Clientes necessários para acessar o servidor PostgreSQL
384 Summary(ru): ëÌÉÅÎÔÓËÉÅ ÐÒÏÇÒÁÍÍÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÄÏÓÔÕÐÁ Ë ÓÅÒ×ÅÒÕ PostgreSQL
385 Summary(uk): ë̦¤ÎÔÓØ˦ ÐÒÏÇÒÁÍÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÄÏÓÔÕÐÕ ÄÏ ÓÅÒ×ÅÒÁ PostgreSQL
386 Group: Applications/Databases
387 Requires: %{name}-libs = %{version}-%{release}
390 This package includes only the clients needed to access an PostgreSQL
391 server. The server is included in the main package. If all you need is
392 to connect to another PostgreSQL server, the this is the only package
393 you need to install. Clients include several command-line utilities
394 you can use to manage your databases on a remote PostgreSQL server.
396 %description clients -l es
397 Este paquete incluye solamente los clientes necesarios para acceder un
398 servidor PostgreSQL. El servidor está en el paquete principal.
400 %description clients -l pl
401 Pakiet zawiera programy klienckie potrzebne dla dostêpu do serwera
402 PostgreSQL oraz narzêdzia do zarz±dzania bazami dzia³aj±ce z linii
403 poleceñ. Serwer znajduje siê w g³ównym pakiecie.
405 %description clients -l pt_BR
406 Este pacote inclui somente os clientes necessários para acessar um
407 servidor PostgreSQL. O servidor está no pacote principal.
409 %description clients -l ru
410 üÔÏÔ ÐÁËÅÔ ×ËÌÀÞÁÅÔ ÔÏÌØËÏ ËÌÉÅÎÔÓËÉÅ ÐÒÏÇÒÁÍÍÙ É ÂÉÂÌÉÏÔÅËÉ,
411 ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÄÏÓÔÕÐÁ Ë ÓÅÒ×ÅÒÕ PostgreSQL. óÅÒ×ÅÒ ×ÈÏÄÉÔ × ÇÌÁ×ÎÙÊ
412 ÐÁËÅÔ. åÓÌÉ ×ÁÍ ÎÁÄÏ ÔÏÌØËÏ ÒÁÂÏÔÁÔØ Ó ÄÒÕÇÉÍ ÓÅÒ×ÅÒÏÍ PostgreSQL, ÜÔÏ
413 ÅÄÉÎÓÔ×ÅÎÎÙÊ ÐÁËÅÔ, ËÏÔÏÒÙÊ ×ÁÍ ÎÁÄÏ ÕÓÔÁÎÏ×ÉÔØ.
415 ôÅÐÅÒØ ÐÁËÅÔÙ Ó ÂÉÂÌÉÏÔÅËÁÍÉ ÄÌÑ ÒÁÚÎÙÈ ÑÚÙËÏ× ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ (C,
416 C++, Perl É Tcl) ÒÁÚÄÅÌÅÎÙ. üÔÏÔ ÐÁËÅÔ ×ËÌÀÞÁÅÔ ÔÏÌØËÏ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ
419 %description clients -l uk
420 ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ Ô¦ÌØËÉ Ë̦¤ÎÔÓØ˦ ÐÒÏÇÒÁÍÉ ÔÁ ¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ
421 ÄÌÑ ÄÏÓÔÕÐÕ ÄÏ ÓÅÒ×ÅÒÁ PostgreSQL. óÅÒ×ÅÒ Í¦ÓÔÉÔØÓÑ × ÇÏÌÏ×ÎÏÍÕ
422 ÐÁËÅÔ¦. ñËÝÏ ×ÁÍ ÐÏÔÒ¦ÂÎÏ ÐÒÁÃÀ×ÁÔÉ Ú ¦ÎÛÉÍ ÓÅÒ×ÅÒÏÍ PostgreSQL, ÃÅ
423 ¤ÄÉÎÉÊ ÐÁËÅÔ, ÑËÉÊ ×ÁÍ ÔÒÅÂÁ ×ÓÔÁÎÏ×ÉÔÉ.
425 ôÅÐÅÒ ÐÁËÅÔÉ Ú Â¦Â̦ÏÔÅËÁÍÉ ÄÌÑ Ò¦ÚÎÉÈ ÍÏ× ÐÒÏÇÒÁÍÕ×ÁÎÎÑ (C, C++, Perl
426 ¦ Tcl) ÒÏÚĦÌÅΦ. ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ Ô¦ÌØËÉ Â¦Â̦ÏÔÅËÉ ÄÌÑ ÍÏ×É C.
429 Summary: Documentation for PostgreSQL
430 Summary(pl): Dodatkowa dokumantacja dla PostgreSQL
431 Group: Applications/Databases
434 This package includes documentation and HOWTO for programmer, admin
435 etc., in HTML format.
437 %description doc -l pl
438 Pakiet ten zawiera dokumentacjê oraz HOWTO m.in. dla programistów,
439 administratorów w formacie HTML.
442 Summary: PostgreSQL libraries
443 Summary(es): Biblioteca compartida del PostgreSQL
444 Summary(pl): Biblioteki dzielone programu PostgreSQL
445 Summary(pt_BR): Biblioteca compartilhada do PostgreSQL
446 Summary(zh_CN): PostgreSQL ¿Í»§ËùÐèÒªµÄ¹²Ïí¿â
450 PostgreSQL shared libraries.
452 %description libs -l es
453 Este paquete contiene la biblioteca compartida para acceso al
456 %description libs -l pl
457 Biblioteki dzielone programu PostgreSQL.
459 %description libs -l pt_BR
460 Este pacote contém a biblioteca compartilhada para acesso ao
464 Summary: Embedded SQL in C interface
465 Summary(pl): Interfejs wbudowanego SQL-a w jêzyk C
467 Requires: %{name}-libs = %{version}-%{release}
470 Embedded SQL in C interface.
472 %description ecpg -l pl
473 Interfejs wbudowanego SQL-a w jêzyk C.
476 Summary: Embedded SQL in C interface files
477 Summary(pl): Pliki programistyczne interfejsu wbudowanego SQL-a w jêzyk C
478 Group: Development/Libraries
479 Requires: %{name}-devel = %{version}-%{release}
480 Requires: %{name}-ecpg = %{version}-%{release}
482 %description ecpg-devel
483 Embedded SQL in C interface files.
485 %description ecpg-devel -l pl
486 Pliki programistyczne interfejsu wbudowanego SQL-a w jêzyk C.
489 Summary: PostgreSQL static libraries
490 Summary(es): Bibliotecas estaticas PostgreSQL
491 Summary(pl): Biblioteki statyczne programu PostgreSQL
492 Summary(pt_BR): Bibliotecas estáticas PostgreSQL
493 Summary(ru): óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ Ó PostgreSQL
494 Summary(uk): óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ ÄÌÑ ÐÒÏÇÒÁÍÕ×ÁÎÎÑ Ú PostgreSQL
495 Group: Development/Libraries
496 Requires: %{name}-devel = %{version}-%{release}
499 PostgreSQL static libraries.
501 %description static -l es
502 Este paquete contiene bibliotecas estaticas requerida para compilación
503 de aplicativos que se comunican directamente con el servidor backend
506 %description static -l pl
507 Biblioteki statyczne programu PostgreSQL.
509 %description static -l pt_BR
510 Este pacote contém as bibliotecas estáticas requeridas para compilação
511 de aplicativos que se comunicam diretamente com o servidor backend
514 %description static -l ru
515 üÔÏ ÏÔÄÅÌØÎÙÊ ÐÁËÅÔ ÓÏ ÓÔÁÔÉÞÅÓËÉÍÉ ÂÉÂÌÉÏÔÅËÁÍÉ, ËÏÔÏÒÙÅ ÂÏÌØÛÅ ÎÅ
516 ×ÈÏÄÑÔ × %{name}-devel.
518 %description static -l uk
519 ãÅ ÏËÒÅÍÉÊ ÐÁËÅÔ Ú¦ ÓÔÁÔÉÞÎÉÍÉ Â¦Â̦ÏÔÅËÁÍÉ, Ñ˦ ¦ÌØÛ ÎÅ ×ÈÏÄÑÔØ ×
522 %package module-plpgsql
523 Summary: PL/pgSQL - PostgreSQL procedural language
524 Summary(pl): PL/pgSQL - jêzyk proceduralny bazy danych PostgreSQL
525 Group: Applications/Databases
526 Requires: %{name} = %{version}-%{release}
528 %description module-plpgsql
529 From PostgreSQL documentation:
531 Postgres supports the definition of procedural languages. In the case
532 of a function or trigger procedure defined in a procedural language,
533 the database has no built-in knowledge about how to interpret the
534 function's source text. Instead, the task is passed to a handler that
535 knows the details of the language. The handler itself is a special
536 programming language function compiled into a shared object and loaded
539 To enable PL/pgSQL procedural language for your database you have to
540 run createlang command.
542 %description module-plpgsql -l pl
543 Z dokumentacji PostgreSQL:
545 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
546 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
547 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
548 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
549 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
550 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
553 Za pomoc± polecenia createlang mo¿na dodaæ obs³ugê jêzyka
554 proceduralnego PL/pgSQL dla swojej bazy danych.
556 %package module-plperl
557 Summary: PL/perl - PostgreSQL procedural language
558 Summary(pl): PL/perl - jêzyk proceduralny bazy danych PostgreSQL
559 Group: Applications/Databases
560 Requires: %{name} = %{version}-%{release}
561 Requires: perl(DynaLoader) = %(%{__perl} -MDynaLoader -e 'print DynaLoader->VERSION')
563 %description module-plperl
564 From PostgreSQL documentation:
566 Postgres supports the definition of procedural languages. In the case
567 of a function or trigger procedure defined in a procedural language,
568 the database has no built-in knowledge about how to interpret the
569 function's source text. Instead, the task is passed to a handler that
570 knows the details of the language. The handler itself is a special
571 programming language function compiled into a shared object and loaded
574 To enable PL/Perl procedural language for your database you have to
575 run createlang command.
577 %description module-plperl -l pl
578 Z dokumentacji PostgreSQL:
580 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
581 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
582 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
583 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
584 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
585 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
588 Za pomoc± polecenia createlang mo¿na dodaæ obs³ugê jêzyka
589 proceduralnego PL/Perl dla swojej bazy danych.
591 %package module-plphp
592 Summary: PL/PHP - PostgreSQL procedural language
593 Summary(pl): PL/PHP - jêzyk proceduralny bazy danych PostgreSQL
594 Group: Applications/Databases
595 Requires: %{name} = %{version}-%{release}
597 %description module-plphp
598 From PostgreSQL documentation:
600 Postgres supports the definition of procedural languages. In the case
601 of a function or trigger procedure defined in a procedural language,
602 the database has no built-in knowledge about how to interpret the
603 function's source text. Instead, the task is passed to a handler that
604 knows the details of the language. The handler itself is a special
605 programming language function compiled into a shared object and loaded
608 To enable PL/PHP procedural language for your database you have to
609 run createlang command.
611 %description module-plphp -l pl
612 Z dokumentacji PostgreSQL:
614 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
615 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
616 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
617 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
618 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
619 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
622 Za pomoc± polecenia createlang mo¿na dodaæ obs³ugê jêzyka
623 proceduralnego PL/PHP dla swojej bazy danych.
625 %package module-plpython
626 Summary: PL/Python - PostgreSQL procedural language
627 Summary(pl): PL/Python - jêzyk proceduralny bazy danych PostgreSQL
628 Group: Applications/Databases
629 Requires: %{name} = %{version}-%{release}
630 %pyrequires_eq python
632 %description module-plpython
633 From PostgreSQL documentation:
635 Postgres supports the definition of procedural languages. In the case
636 of a function or trigger procedure defined in a procedural language,
637 the database has no built-in knowledge about how to interpret the
638 function's source text. Instead, the task is passed to a handler that
639 knows the details of the language. The handler itself is a special
640 programming language function compiled into a shared object and loaded
643 To enable PL/Python procedural language for your database you have to
644 run createlang command.
646 %description module-plpython -l pl
647 Z dokumentacji PostgreSQL:
649 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
650 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
651 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
652 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
653 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
654 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
657 Za pomoc± polecenia createlang mo¿na dodaæ obs³ugê jêzyka
658 proceduralnego PL/Python dla swojej bazy danych.
660 %package module-pltcl
661 Summary: PL/Tcl - PostgreSQL procedural language
662 Summary(pl): PL/Tcl - jêzyk proceduralny bazy danych PostgreSQL
663 Group: Applications/Databases
664 Requires: %{name} = %{version}-%{release}
666 %description module-pltcl
667 From PostgreSQL documentation:
669 Postgres supports the definition of procedural languages. In the case
670 of a function or trigger procedure defined in a procedural language,
671 the database has no built-in knowledge about how to interpret the
672 function's source text. Instead, the task is passed to a handler that
673 knows the details of the language. The handler itself is a special
674 programming language function compiled into a shared object and loaded
677 To enable PL/Tcl procedural language for your database you have to run
680 %description module-pltcl -l pl
681 Z dokumentacji PostgreSQL:
683 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
684 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
685 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
686 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
687 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
688 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
691 Za pomoc± polecenia createlang mo¿na dodaæ obs³ugê jêzyka
692 proceduralnego PL/Tcl dla swojej bazy danych.
695 Summary: Large Objects module for PostgreSQL
696 Summary(pl): Modu³ Large Objects dla PostgreSQL-a
697 Group: Applications/Databases
698 Requires: %{name} = %{version}-%{release}
700 %description module-lo
701 Large Objects module for PostgreSQL adds a new data type 'lo', some
702 support functions and a trigger which handles the orphaning problem.
704 %description module-lo -l pl
705 Modu³ Large Objects dla PostgreSQL-a dodaje nowy typ danych 'lo',
706 kilka funkcji pomocniczych i wyzwalacz rozwi±zuj±cy problem
707 osieroconych obiektów.
709 %package module-pgcrypto
710 Summary: Cryptographic functions for PostgreSQL
711 Summary(pl): Funkcje kryptograficzne dla PostgreSQL-a
712 Group: Applications/Databases
713 Requires: %{name} = %{version}-%{release}
715 %description module-pgcrypto
716 Cryptographic functions for PostgreSQL.
718 %description module-pgcrypto -l pl
719 Funkcje kryptograficzne dla PostgreSQL.
721 %package module-tsearch2
722 Summary: Full text extension for PostgreSQL
723 Summary(pl): Rozszerzenie pe³notekstowe dla PostgreSQL-a
724 Group: Applications/Databases
725 Requires: %{name} = %{version}-%{release}
727 %description module-tsearch2
728 Implementation of a new data type tsvector - a searchable data type
730 http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/
732 %description module-tsearch2 -l pl
733 Implementacja nowego typu danych tsvector - typu danych podlegaj±cego
734 przeszukiwaniu z dostêpem poprzez indeksy:
735 http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/
740 %{?with_absolute_dbpaths:%patch1 -p1}
744 #patch5 -p1 needed for glibc2.3.4 + gcc4
747 patch -p1 < plphp.patch
750 tar xzf doc/man*.tar.gz
753 tar zxf doc/postgres.tar.gz -C doc/unpacked
756 #find contrib -type d -name CVS -exec rm -rf {} \;
759 %{__aclocal} -I config
762 CFLAGS="%{rpmcflags} -DNEED_REENTRANT_FUNCS" \
765 --enable-integer-datetimes \
766 %{?with_pgsql_locale:--enable-locale} \
767 %{?with_pgsql_multibyte:--enable-multibyte} \
771 --enable-thread-safety \
772 --enable-unicode-conversion \
774 %{?with_kerberos5:--with-krb5} \
777 %{?with_perl:--with-perl} \
778 %{?with_php:--with-php=/usr/include/php} \
779 %{?with_python:--with-python} \
780 %{?with_tcl:--with-tcl} \
785 %{__make} -C contrib/lo
786 %{__make} -C contrib/pg_autovacuum
787 %{__make} -C contrib/pgcrypto
788 %{__sed} -i 's:contrib/::g' contrib/tsearch2/tsearch.sql.in
789 %{__make} -C contrib/tsearch2
790 %{__make} -C src/tutorial \
793 %ifnarch sparc sparcv9 sparc64 alpha
794 %{?with_tests:%{__make} check}
804 rm -rf $RPM_BUILD_ROOT
805 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{rc.d/init.d,sysconfig}} \
806 $RPM_BUILD_ROOT{/var/{lib/pgsql,log},%{_pgsqldir}} \
807 $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} \
808 $RPM_BUILD_ROOT%{_mandir} \
809 $RPM_BUILD_ROOT/home/services/postgres
811 install src/tutorial/*.sql $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
814 DESTDIR=$RPM_BUILD_ROOT
816 %{__cc} -shared -Wl,-soname,libpq.so.3 -o $RPM_BUILD_ROOT%{_libdir}/libpq.so.3.0.0 -L$RPM_BUILD_ROOT%{_libdir} -lpq
819 %{__make} install -C src/pl/plperl \
820 DESTDIR=$RPM_BUILD_ROOT
823 %{__make} -C contrib/lo install \
824 DESTDIR=$RPM_BUILD_ROOT
826 %{__make} -C contrib/pg_autovacuum install \
827 DESTDIR=$RPM_BUILD_ROOT
829 %{__make} -C contrib/pgcrypto install \
830 DESTDIR=$RPM_BUILD_ROOT
832 %{__make} -C contrib/tsearch2 install \
833 DESTDIR=$RPM_BUILD_ROOT
838 DESTDIR=$RPM_BUILD_ROOT
842 touch $RPM_BUILD_ROOT/var/log/pgsql
844 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/postgresql
845 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/postgresql
848 tar zxf %{SOURCE2} -C howto
850 %py_comp $RPM_BUILD_ROOT%{py_libdir}
851 %py_ocomp $RPM_BUILD_ROOT%{py_libdir}
854 for f in libpq pg_controldata pg_dump pg_resetxlog pgscripts postgres psql initdb pg_ctl pg_config; do
858 cat pgscripts.lang pg_resetxlog.lang postgres.lang pg_controldata.lang > main.lang
859 cat pg_dump.lang psql.lang initdb.lang pg_ctl.lang > clients.lang
861 # Remove Contrib documentation. We use macro %doc
862 rm -rf $RPM_BUILD_ROOT/contrib
865 rm -rf $RPM_BUILD_ROOT
869 if [ -f /etc/sysconfig/postgresql ]; then
870 . /etc/sysconfig/postgresql
871 if [ -z "$PG_DB_CLUSTERS" -a -n "$POSTGRES_DATA_DIR" ]; then
872 PG_DB_CLUSTERS="$POSTGRES_DATA_DIR"
876 for pgdir in $PG_DB_CLUSTERS; do
877 if [ -f $pgdir/PG_VERSION ]; then
878 if [ `cat $pgdir/PG_VERSION` != '8.0' ]; then
879 echo "Found database(s) in older, incompatible format in cluster $pgdir."
884 if [ "$foundold" = "1" ]; then
886 echo "Dump all data from clusters mentioned above (using pg_dump or pg_dumpall)"
887 echo "and clean (or rename) those directories; then upgrade postgresql and"
888 echo "restore all data (using pg_restore or psql)."
889 echo "Remember to stop the daemon before upgrading!"
891 echo "Warning for upgrade from version *before* 7.2."
892 echo "Please note, that postgresql module path changed from"
893 echo "/usr/lib/pgsql/module to /usr/lib/postgresql. Change the path"
894 echo "in dump file before restore."
896 echo "Warning for upgrade from version *before* 7.3."
897 echo "Reading following webpage is encouraged:"
898 echo "http://www.ca.postgresql.org/docs/momjian/upgrade_tips_7.3."
902 %groupadd -g 88 -r postgres
903 %useradd -M -o -r -u 88 -d /home/services/postgres -s /bin/sh -g postgres -c "PostgreSQL Server" postgres
905 # TODO: move this to trigger!
906 if [ -n "`/bin/id -u postgres 2>/dev/null`" ]; then
907 /usr/sbin/usermod -d /home/services/postgres postgres
911 /sbin/chkconfig --add postgresql
912 if [ -f /var/lock/subsys/postgresql ]; then
913 /etc/rc.d/init.d/postgresql restart >&2 || :
915 echo "Run \"/etc/rc.d/init.d/postgresql start\" to start postgresql server."
919 if [ "$1" = "0" ]; then
920 if [ -f /var/lock/subsys/postgresql ]; then
921 /etc/rc.d/init.d/postgresql stop
923 /sbin/chkconfig --del postgresql
926 %post libs -p /sbin/ldconfig
927 %postun libs -p /sbin/ldconfig
929 %post ecpg -p /sbin/ldconfig
930 %postun ecpg -p /sbin/ldconfig
933 %defattr(644,root,root,755)
934 %doc COPYRIGHT README HISTORY doc/{FAQ*,README*,bug.template}
935 %doc contrib/pg_autovacuum/README*
936 %attr(754,root,root) /etc/rc.d/init.d/postgresql
937 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/postgresql
939 %attr(755,root,root) %{_bindir}/initdb
940 %attr(755,root,root) %{_bindir}/ipcclean
941 %attr(755,root,root) %{_bindir}/pg_autovacuum
942 %attr(755,root,root) %{_bindir}/pg_controldata
943 %attr(755,root,root) %{_bindir}/pg_ctl
944 %attr(755,root,root) %{_bindir}/pg_resetxlog
945 %attr(755,root,root) %{_bindir}/postgres
946 %attr(755,root,root) %{_bindir}/postmaster
948 %attr(755,root,root) %{_pgmoduledir}/ascii*
949 %attr(755,root,root) %{_pgmoduledir}/cyrillic*
950 %attr(755,root,root) %{_pgmoduledir}/euc*
951 %attr(755,root,root) %{_pgmoduledir}/latin*
952 %attr(755,root,root) %{_pgmoduledir}/utf*
955 %dir %{_datadir}/postgresql
956 %dir %{_datadir}/postgresql/timezone
957 %{_datadir}/postgresql/*.bki
958 %{_datadir}/postgresql/*.sample
959 %{_datadir}/postgresql/*.description
960 %{_datadir}/postgresql/*.sql
961 %{_datadir}/postgresql/*.txt
962 %{_datadir}/postgresql/timezone/*
964 %attr(700,postgres,postgres) /home/services/postgres
965 %attr(700,postgres,postgres) %dir /var/lib/pgsql
966 %attr(640,postgres,postgres) %config(noreplace) %verify(not md5 mtime size) /var/log/pgsql
968 %{_mandir}/man1/initdb.1*
969 %{_mandir}/man1/ipcclean.1*
970 %{_mandir}/man1/pg_controldata.1*
971 %{_mandir}/man1/pg_ctl.1*
972 %{_mandir}/man1/pg_resetxlog.1*
973 %{_mandir}/man1/postgres.1*
974 %{_mandir}/man1/postmaster.1*
977 %defattr(644,root,root,755)
978 %doc doc/unpacked/* doc/src/FAQ howto
979 %{_examplesdir}/%{name}-%{version}
981 %files libs -f libpq.lang
982 %defattr(644,root,root,755)
983 %attr(755,root,root) %{_libdir}/libpq.so.*
987 %defattr(644,root,root,755)
988 %attr(755,root,root) %{_bindir}/ecpg
989 %attr(755,root,root) %{_libdir}/libecpg.so.*.*
990 %attr(755,root,root) %{_libdir}/libecpg_compat.so.*.*
991 %attr(755,root,root) %{_libdir}/libpgtypes.so.*.*
992 %{_mandir}/man1/ecpg.1*
995 %defattr(644,root,root,755)
996 %attr(755,root,root) %{_libdir}/libecpg.so
997 %attr(755,root,root) %{_libdir}/libecpg_compat.so
998 %attr(755,root,root) %{_libdir}/libpgtypes.so
1001 %files devel -f pg_config.lang
1002 %defattr(644,root,root,755)
1003 %attr(755,root,root) %{_bindir}/pg_config
1004 %attr(755,root,root) %{_libdir}/libpq.so
1005 %dir %{_includedir}/postgresql
1006 %{_includedir}/libpq-fe.h
1007 %{_includedir}/pg_config.h
1008 %{_includedir}/pg_config_manual.h
1009 %{_includedir}/pg_config_os.h
1010 %{_includedir}/postgres_ext.h
1011 %dir %{_includedir}/postgresql/internal
1012 %{_includedir}/postgresql/internal/c.h
1013 %{_includedir}/postgresql/internal/libpq-int.h
1014 %{_includedir}/postgresql/internal/port.h
1015 %{_includedir}/postgresql/internal/postgres_fe.h
1016 %{_includedir}/postgresql/internal/pqexpbuffer.h
1017 %{_includedir}/postgresql/internal/libpq
1018 %{_includedir}/libpq
1019 %{_mandir}/man1/pg_config.1*
1021 %files backend-devel
1022 %defattr(644,root,root,755)
1023 %{_includedir}/postgresql/server
1024 %dir %{_pgmoduledir}/pgxs
1025 %attr(755,root,root) %{_pgmoduledir}/pgxs/config
1026 %{_pgmoduledir}/pgxs/src
1029 %defattr(644,root,root,755)
1030 %{_libdir}/libecpg.a
1031 %{_libdir}/libecpg_compat.a
1033 %{_libdir}/libpgtypes.a
1034 %{_libdir}/libpgport.a
1036 %files clients -f clients.lang
1037 %defattr(644,root,root,755)
1038 %attr(755,root,root) %{_bindir}/clusterdb
1039 %attr(755,root,root) %{_bindir}/createdb
1040 %attr(755,root,root) %{_bindir}/createlang
1041 %attr(755,root,root) %{_bindir}/createuser
1042 %attr(755,root,root) %{_bindir}/dropdb
1043 %attr(755,root,root) %{_bindir}/droplang
1044 %attr(755,root,root) %{_bindir}/dropuser
1045 %attr(755,root,root) %{_bindir}/pg_dump
1046 %attr(755,root,root) %{_bindir}/pg_dumpall
1047 %attr(755,root,root) %{_bindir}/pg_restore
1048 %attr(755,root,root) %{_bindir}/psql
1049 %attr(755,root,root) %{_bindir}/vacuumdb
1051 %{_mandir}/man1/clusterdb.1*
1052 %{_mandir}/man1/createdb.1*
1053 %{_mandir}/man1/createlang.1*
1054 %{_mandir}/man1/createuser.1*
1055 %{_mandir}/man1/dropdb.1*
1056 %{_mandir}/man1/droplang.1*
1057 %{_mandir}/man1/dropuser.1*
1058 %{_mandir}/man1/pg_dump.1*
1059 %{_mandir}/man1/pg_dumpall.1*
1060 %{_mandir}/man1/pg_restore.1*
1061 %{_mandir}/man1/psql.1*
1062 %{_mandir}/man1/vacuumdb.1*
1063 %{_mandir}/man7/*.7*
1065 %files module-plpgsql
1066 %defattr(644,root,root,755)
1067 %attr(755,root,root) %{_pgmoduledir}/plpgsql.so
1070 %files module-plperl
1071 %defattr(644,root,root,755)
1072 %attr(755,root,root) %{_pgmoduledir}/plperl.so
1076 %files module-plpython
1077 %defattr(644,root,root,755)
1078 %attr(755,root,root) %{_pgmoduledir}/plpython.so
1083 %defattr(644,root,root,755)
1084 %attr(755,root,root) %{_bindir}/pltcl_*
1085 %attr(755,root,root) %{_pgmoduledir}/pltcl.so
1089 %defattr(644,root,root,755)
1090 %doc contrib/lo/README.lo
1091 %attr(755,root,root) %{_pgmoduledir}/lo.so
1092 %{_pgsqldir}/lo*.sql
1094 %files module-pgcrypto
1095 %defattr(644,root,root,755)
1096 %doc contrib/pgcrypto/README*
1097 %attr(755,root,root) %{_pgmoduledir}/pgcrypto.so
1098 %{_pgsqldir}/pgcrypto.sql
1100 %files module-tsearch2
1101 %defattr(644,root,root,755)
1102 %doc contrib/tsearch2/README*
1103 %attr(755,root,root) %{_pgmoduledir}/tsearch2.so
1104 %{_pgsqldir}/tsearch2.sql
1105 %{_pgsqldir}/untsearch2.sql