3 # - plphp has no files section
5 # - pg_autovacuum init support? <- no need for it,
6 # integrated with main server in 8.1
9 %bcond_without tests # disable testing
10 %bcond_without tcl # disables Tcl support
11 %bcond_without kerberos5 # disable kerberos5 support
12 %bcond_without perl # disable Perl support
13 %bcond_without pgsql_locale # disable PostgreSQL locale
14 %bcond_without pgsql_multibyte # disable PostgreSQL multibyte
15 %bcond_without python # disable Python support
16 %bcond_with php # enable PHP support
17 %bcond_with absolute_dbpaths # enable absolute paths to create database
18 # (disabled by default because it is a security risk)
20 Summary: PostgreSQL Data Base Management System
21 Summary(de): PostgreSQL Datenbankverwaltungssystem
22 Summary(es): Gestor de Banco de Datos PostgreSQL
23 Summary(fr): Sysème de gestion de base de données PostgreSQL
24 Summary(pl): PostgreSQL - system bazodanowy
25 Summary(pt_BR): Gerenciador de Banco de Dados PostgreSQL
26 Summary(ru): PostgreSQL - ÓÉÓÔÅÍÁ ÕÐÒÁ×ÌÅÎÉÑ ÂÁÚÁÍÉ ÄÁÎÎÙÈ
27 Summary(tr): Veri Tabaný Yönetim Sistemi
28 Summary(uk): PostgreSQL - ÓÉÓÔÅÍÁ ËÅÒÕ×ÁÎÎÑ ÂÁÚÁÍÉ ÄÁÎÉÈ
29 Summary(zh_CN): PostgreSQL ¿Í»§¶Ë³ÌÐòºÍ¿âÎļþ
34 Group: Applications/Databases
35 Source0: ftp://ftp.postgresql.org/pub/source/v%{version}/%{name}-%{version}.tar.bz2
36 # Source0-md5: f507f41297ca6ef7fff271a3ccc68158
37 ##Source0: ftp://ftp.postgresql.org/pub/source/v%{version}beta/%{name}-%{version}%{beta}.tar.bz2
39 Source2: pgsql-Database-HOWTO-html.tar.gz
40 # Source2-md5: 5b656ddf1db41965761f85204a14398e
41 Source3: %{name}.sysconfig
42 Source8: http://www.commandprompt.com/files/plphp-8.x.tar.bz2
43 # Source8-md5: d307e4ab8cb6900a1c290a5dde1bdeee
44 Patch0: %{name}-conf.patch
45 Patch1: %{name}-absolute_dbpaths.patch
46 Patch2: %{name}-link.patch
47 Patch3: %{name}-ecpg_link.patch
48 Patch4: %{name}-ecpg-includedir.patch
49 Patch5: %{name}-ac.patch
51 URL: http://www.postgresql.org/
52 BuildRequires: autoconf
53 BuildRequires: automake
54 #BuildRequires: bison >= 1.875 not needed for releases
56 BuildRequires: gettext-devel
57 %{?with_kerberos5:BuildRequires: heimdal-devel >= 0.7}
58 BuildRequires: libtool
59 BuildRequires: ncurses-devel >= 5.0
60 BuildRequires: openssl-devel >= 0.9.7d
61 BuildRequires: pam-devel
62 %{?with_perl:BuildRequires: perl-devel}
64 BuildRequires: php-devel >= 3:5.0.0
65 BuildRequires: rpmbuild(macros) >= 1.238
68 BuildRequires: python >= 1:2.3
69 BuildRequires: python-devel >= 1:2.3
70 BuildRequires: python-modules >= 1:2.3
72 BuildRequires: readline-devel >= 4.2
73 BuildRequires: rpmbuild(macros) >= 1.202
74 BuildRequires: sed >= 4.0
75 %{?with_tcl:BuildRequires: tcl-devel >= 8.4.3}
76 BuildRequires: zlib-devel
78 PreReq: %{name}-clients = %{version}-%{release}
79 PreReq: %{name}-libs = %{version}-%{release}
80 Requires(pre): /usr/bin/getgid
81 Requires(pre): /bin/id
82 Requires(pre): /usr/sbin/groupadd
83 Requires(pre): /usr/sbin/useradd
84 Requires(pre): /usr/sbin/usermod
85 Requires(post,preun): /sbin/chkconfig
86 Obsoletes: postgresql-server
87 Obsoletes: postgresql-test
88 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
90 %define _pgmoduledir %{_libdir}/postgresql
91 %define _pgsqldir %{_datadir}/postgresql/contrib
94 PostgreSQL Data Base Management System (formerly known as Postgres,
97 PostgreSQL is an enhancement of the POSTGRES database management
98 system, a next-generation DBMS research prototype. While PostgreSQL
99 retains the powerful data model and rich data types of POSTGRES, it
100 replaces the PostQuel query language with an extended subset of SQL.
101 PostgreSQL is free and the complete source is available.
103 PostgreSQL development is being performed by a team of Internet
104 developers who all subscribe to the PostgreSQL development mailing
105 list. The current coordinator is Marc G. Fournier
106 (scrappy@postgreSQL.org). This team is now responsible for all current
107 and future development of PostgreSQL.
109 The authors of PostgreSQL 1.01 were Andrew Yu and Jolly Chen. Many
110 others have contributed to the porting, testing, debugging and
111 enhancement of the code. The original Postgres code, from which
112 PostgreSQL is derived, was the effort of many graduate students,
113 undergraduate students, and staff programmers working under the
114 direction of Professor Michael Stonebraker at the University of
115 California, Berkeley.
117 The original name of the software at Berkeley was Postgres. When SQL
118 functionality was added in 1995, its name was changed to Postgres95.
119 The name was changed at the end of 1996 to PostgreSQL.
121 PostgreSQL runs on Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD,
122 and most flavours of Unix.
125 PostgreSQL Datenbank-Managementsystem (früher als Postgres, dann als
128 PostgreSQL ist eine Verbesserung des POSTGRES-DB-Managementsystems,
129 ein DBMS-Forschungsprototyp der nächsten Generation. Während es das
130 leistungsfähige Datenmodell und die reichhaltigen Datentypen von
131 POSTGRES beibehält, ersetzt es die PostQuel-Abfragesprache durch ein
132 Subset von SQL. PostgreSQL ist gratis, der gesamte Quellcode ist
135 Ein Team von Internet-Entwicklern befaßt sich mit PostgreSQL. Sie alle
136 sind auf der PostgreSQL-Entwickleradreßliste. Koordinator ist Marc G.
137 Fournier (scrappy@postgreSQL.org). Das Team ist verantwortlich für
138 alle aktuellen und künftigen Entwicklungen von PostgreSQL.
140 Die Autoren von PostgreSQL 1.01 waren Andrew Yu und Jolly Chen.
141 Zahlreiche andere haben zur Portierung, zum Testen, Debugging und zur
142 Verbesserung des Code beigetragen. Den Original-Postgres-Code, von dem
143 sich PostgreSQL ableitet, verdanken wir der Arbeit vieler Doktoranden,
144 Studenten und Programmierern unter der Leitung von Professor Michael
145 Stonebraker an der University of California, Berkeley.
147 Der ursprüngliche Name war Postgres. Als 1995 SQL-Funktionalität
148 hinzukam, wurde der Name in Postgres95 geändert. Ende 1996 schließlich
149 entschied man sich für PostgreSQL.
151 PostgreSQL läuft auf Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD
152 und den meisten Unix-Systemen.
155 Administrador de Banco de Datos PostgreSQL (conocido anteriormente
156 como Postgres, y después como Postgres95). PostgreSQL es una
157 continuación mejorada del Sistema Administrador de Banco de Datos
158 POSTGRES, que era un prototipo de pesquisa para un SGBD de nueva
159 generación. Mientras PostgreSQL mantiene el potente modelo de datos y
160 los varios tipos de datos del POSTGRES, substituye el lenguaje de
161 consulta PostQuel por un subconjunto extendido de la SQL. PostgreSQL
162 es libre y tiene los fuentes disponibles. El desarrollo del PostgreSQL
163 se ejecutado por un equipo de estudiosos de Internet, todos suscritos
164 en la lista de desarrollo del PostgreSQL. El coordinador actual es
165 Marc G. Fournier (scrappy@postgreSQL.org). Este equipo es ahora
166 responsable por el desarrollo actual y futuro del PostgreSQL.
169 Système de gestion de bases de données PostgreSQL (D'abord nommé
170 Postgres, puis Postgres95).
172 PostgreSQL est une amélioration du système de gestion de bases de
173 données POSTGRES, un prototype de recherche de la génération suivant
174 DBMS. Tout en conservant le puissant modèle de donnée de et les types
175 de donée riches de Postgres, il remplace le langage de requêtes de
176 Postgres par un sous ensemble etendu de commandes SQL. PosrgreSQL est
177 libre, et ses sources sont disponibles.
179 Le développement de PostgreSQL est actuellement réalisé via internet
180 parune équipe de développeurs inscrits sur la mailing-list de
181 développement de PostgreSQL. Le coordinateur actuel est Marc G
182 Fournier (scrappy@postgreSQL.org). Cette équipe est responsable du
183 développemen actuel et à venir de PostgreSQL.
185 Les auteurs de PostgreSQL 1.01 étaient Andrew Yu et Jolly Chen.
186 Beaucoup d'autres ont contribué au portage, au test, au débogage et à
187 l'amélioration du code. Le code original de Postgres, duquel
188 PostgreSQL est dérivé, a été l'oeuvre d'étudiants de haut niveau, de
189 moins haut niveau, et de programmeurs travaillant sous la direction du
190 professeur Michael Stonebraker à l'université de Berkeley Californie.
192 Le nom original du logiciel était Postgres. Quand les fonctionnalitées
193 SQL furent ajoutées en 1995, son nom est devenu Postgres95. Il a été
194 rebaptisé PostgreSQL en 1996.
196 PostgreSQL tourne sur Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD,
197 et la plupart des Unix.
200 System Zarz±dzania Baz± Danych PostgreSQL (dawniej znany jako
201 Postgres, nastêpnie jako Postgres95).
203 PostgreSQL jest rozszerzeniem systemu zarz±dzania baz danych POSTGRES,
204 prototypu DBMS nastêpnej generacji. Co prawda PostgreSQL odziedziczy³
205 model danych oraz bogaty zbiór ró¿nych typów danych, to jednak jêzyk
206 zapytañ PostQuel zosta³ zast±piony rozszerzonym SQL-em. PostgreSQL
207 jest wolnym oprogramowaniem i kody ¼ród³owe tego oprogramowania s± w
210 System PostgreSQL jest tworzony przez zespó³ ludzi, którzy s± zapisani
211 na listê dyskusyjn± dotycz±c± PostgreSQL-a. Obecnym koordynatorem jest
212 Marc G. Fournier (scrappy@postgreSQL.org). Wymieniony wy¿ej zespó³
213 jest odpowiedzialny za aktualny i przysz³y rozwój systemu PostgreSQL.
215 Autorami PostgreSQL-a 1.01 byli Andrew Yu oraz Jolly Chen. Wielu
216 innych pomaga³o przenosz±c na ró¿ne platformy, testuj±c, analizuj±c i
217 rozszerzaj±c kod. Oryginalny kod Postgres-a, na podstawie którego
218 PostgreSQL powsta³, by³ wysi³kiem wielu absolwentów, studentów oraz
219 zespo³u programistów, którzy pracowali pod kierunkiem profesora
220 Michaela Stonebrakera z Uniwersytetu Kalifornii w Berkeley.
222 Nazwa oryginalna oprogramowania tworzonego w Berkeley brzmia³a
223 Postgres. W 1995 roku dodano jêzyk zapytañ SQL i nazwê zmieniono na
224 Postgres95. W koñcu roku 1996 nazwê ostatecznie zmieniono na
227 PostgreSQL mo¿e byæ uruchomiony pod nastêpuj±cymi systemami: Solaris,
228 SunOS, HPUX, AIX, Linux, Irix, FreeBSD i innymi systemami uniksowymi.
230 %description -l pt_BR
231 Gerenciador de Banco de Dados PostgreSQL (conhecido anteriormente como
232 Postgres, e depois como Postgres95).
234 O PostgreSQL é uma continuação melhorada do Sistema Gerenciador de
235 Banco de Dados POSTGRES, que era um protótipo de pesquisa para um SGBD
236 de nova geração. Enquanto o PostgreSQL mantém o poderoso modelo de
237 dados e os vários tipos de dados do POSTGRES, ele substitui a
238 linguagem de consulta PostQuel por um subconjunto estendido da SQL. O
239 PostgreSQL é livre e tem os fontes disponíveis.
241 O desenvolvimento do PostgreSQL está sendo executado por uma equipe de
242 desenvolvedores da Internet, todos subscritores da lista de
243 desenvolvimento do PostgreSQL. O coordenador atual é Marc G. Fournier
244 (scrappy@postgreSQL.org). Esta equipe é agora responsável pelo
245 desenvolvimento atual e futuro do PostgreSQL.
248 PostgreSQL - ÓÉÓÔÅÍÁ ÕÐÒÁ×ÌÅÎÉÑ ÂÁÚÁÍÉ ÄÁÎÎÙÈ (ÐÒÅÖÄÅ ÉÚ×ÅÓÔÎÁÑ ËÁË
249 Postgres, ÐÏÔÏÍ ËÁË Postgres95).
251 PostgreSQL - ÜÔÏ ÒÁÓÛÉÒÅÎÎÁÑ ×ÅÒÓÉÑ ÓÉÓÔÅÍÙ ÕÐÒÁ×ÌÅÎÉÑ ÂÁÚÁÍÉ ÄÁÎÎÙÈ
252 POSTGRES, ÉÓÓÌÅÄÏ×ÁÔÅÌØÓËÏÇÏ ÐÒÏÔÏÔÉÐÁ DBMS ÓÌÅÄÕÀÝÅÊ ÇÅÎÅÒÁÃÉÉ.
253 óÏÈÒÁÎÑÑ ÍÏÝÎÕÀ ÍÏÄÅÌØ ÄÁÎÎÙÈ É ÂÏÇÁÔÙÊ ÎÁÂÏÒ ÔÉÐÏ× ÄÁÎÎÙÈ POSTGRES,
254 ÏÎÁ ÚÁÍÅÎÑÅÔ ÑÚÙË ÚÁÐÒÏÓÏ× PostQuel ÒÁÓÛÉÒÅÎÎÙÍ ÎÁÂÏÒÏÍ SQL.
255 PostgreSQL ÂÅÓÐÌÁÔÅÎ É ÐÏÓÔÁ×ÌÑÅÔÓÑ × ×ÉÄÅ ÐÏÌÎÏÇÏ ËÏÍÐÌÅËÔÁ ÉÓÈÏÄÎÙÈ
258 PostgreSQL ÒÁÚÒÁÂÁÔÙ×ÁÌÓÑ ËÏÍÁÎÄÏÊ Internet-ÒÁÚÒÁÂÏÔÞÉËÏ×, ÐÏÄÐÉÓÁÎÎÙÈ
259 ÎÁ ÓÐÉÓÏË ÒÁÓÓÙÌËÉ, ÐÏÓ×ÑÝÅÎÎÙÊ ÒÁÚÒÁÂÏÔËÅ PostgreSQL. ÷ ÎÁÓÔÏÑÝÅÅ
260 ×ÒÅÍÑ ËÏÏÒÄÉÎÁÔÏÒÏÍ Ñ×ÌÑÅÔÓÑ Marc G. Fournier
261 (scrappy@postgreSQL.org). üÔÁ ËÏÍÁÎÄÁ × ÎÁÓÔÏÑÝÅÅ ×ÒÅÍÑ ÏÔ×ÅÞÁÅÔ ÚÁ
262 ×ÓÅ ÔÅËÕÝÉÅ É ÂÕÄÕÝÉÅ ÒÁÚÒÁÂÏÔËÉ PostgreSQL.
264 á×ÔÏÒÁÍÉ PostgreSQL 1.01 ÂÙÌÉ Andrew Yu É Jolly Chen. íÎÏÇÉÅ ×ÎÅÓÌÉ
265 Ó×ÏÊ ×ËÌÁÄ × ÐÏÒÔÉÒÏ×ÁÎÉÅ, ÔÅÓÔÉÒÏ×ÁÎÉÅ, ÏÔÌÁÄËÕ É ÕÌÕÞÛÅÎÉÅ ËÏÄÁ.
266 ïÒÉÇÉÎÁÌØÎÙÊ ËÏÄ Postgres, ÏÔ ËÏÔÏÒÏÇÏ ÐÒÏÉÚÏÛÅÌ PostgreSQL, ÂÙÌ
267 ÓÏÚÄÁÎ ÕÓÉÌÉÑÍÉ ÓÔÕÄÅÎÔÏ×, ÁÓÐÉÒÁÎÔÏ× É ÐÅÒÓÏÎÁÌÁ, ÒÁÂÏÔÁÀÝÅÇÏ ÐÏÄ
268 ÒÕËÏ×ÏÄÓÔ×ÏÍ ÐÒÏÆÅÓÓÏÒÁ Michael Stonebraker × University of
269 California, Berkeley.
271 ïÒÉÇÉÎÁÌØÎÏÅ ÎÁÚ×ÁÎÉÅ ðï × Berkeley ÂÙÌÏ Postgres. ëÏÇÄÁ × 1995 ÇÏÄÕ
272 ÂÙÌÁ ÄÏÂÁ×ÌÅÎÁ ÆÕÎËÃÉÏÎÁÌØÎÏÓÔØ SQL, ÎÁÚ×ÁÎÉÅ ÉÚÍÅÎÉÌÏÓØ ÎÁ
273 Postgres95. ÷ ËÏÎÃÅ 1996 ÇÏÄÁ ÏÎÏ ÅÝÅ ÒÁÚ ÉÚÍÅÎÉÌÏÓØ É ÔÅÐÅÒØ ÜÔÏ
276 PostgreSQL ÒÁÂÏÔÁÅÔ ÎÁ Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD
277 É ÂÏÌØÛÉÎÓÔ×Å ÄÒÕÇÉÈ ÒÁÚÎÏ×ÉÄÎÏÓÔÅÊ Unix.
280 PostgreSQL, POSTGRES'den türemiþ bir veri tabaný yönetim sistemidir
281 (DBMS). Güçlü veri modeli ve zengin POSTGRES veri tiplerini
282 desteklerken SQL'in geniþletilmiþ bir altkümesi yerine PostQuel
283 sorgulama dilini koyar.
286 PostgreSQL - ÓÉÓÔÅÍÁ ËÅÒÕ×ÁÎÎÑ ÂÁÚÁÍÉ ÄÁÎÉÈ (ÒÁÎ¦Û ×¦ÄÏÍÁ ÑË Postgres,
287 ÐÏÔ¦Í ÑË Postgres95).
289 PostgreSQL - ÃÅ ÒÏÚÛÉÒÅÎÁ ×ÅÒÓ¦Ñ ÓÉÓÔÅÍÉ ËÅÒÕ×ÁÎÎÑ ÂÁÚÁÍÉ ÄÁÎÉÈ
290 POSTGRES, ÄÏÓ̦ÄÎÉÃØËÏÇÏ ÐÒÏÔÏÔÉÐÕ DBMS ÎÁÓÔÕÐÎϧ ÇÅÎÅÒÁæ§.
291 úÂÅÒ¦ÇÁÀÞÉ ÐÏÔÕÖÎÕ ÍÏÄÅÌØ ÄÁÎÉÈ ÔÁ ÂÁÇÁÔÉÊ ÎÁÂ¦Ò ÔÉÐ¦× ÄÁÎÉÈ POSTGRES,
292 ×ÏÎÁ ÚÁͦÎÀ¤ ÍÏ×Õ ÚÁÐÉÔ¦× PostQuel ÒÏÚÛÉÒÅÎÉÍ ÎÁÂÏÒÏÍ SQL. PostgreSQL
293 ÂÅÚËÏÛÔÏ×ÎÁ ÔÁ ÐÏÓÔÁ×ÌѤÔØÓÑ Õ ×ÉÇÌÑĦ ÐÏ×ÎÏÇÏ ËÏÍÐÌÅËÔÕ ×ÉȦÄÎÉÈ
296 PostgreSQL ÒÏÚÒÏÂÌѤÔØÓÑ ËÏÍÁÎÄÏÀ Internet-ÐÒÏÇÒÁͦÓÔ¦×, ÕÞÁÓÎÉ˦×
297 ÓÐÉÓËÕ ÒÏÚÓÉÌËÉ, ÐÒÉÓ×ÑÞÅÎÏÇÏ ÒÏÚÒÏÂæ PostgreSQL. îÁÒÁÚ¦
298 ËÏÏÒÄÉÎÁÔÏÒÏÍ ¤ Marc G. Fournier (scrappy@postgreSQL.org). ãÑ ËÏÍÁÎÄÁ
299 צÄÐÏצÄÁ¤ ÚÁ ×Ó¦ ÐÏÔÏÞΦ ÔÁ ÍÁÊÂÕÔΦ ÒÏÚÒÏÂËÉ PostgreSQL.
301 á×ÔÏÒÁÍÉ PostgreSQL 1.01 ÂÕÌÉ Andrew Yu ÔÁ Jolly Chen. âÁÇÁÔÏ ÌÀÄÅÊ
302 ×ÎÅÓÌÉ Ó×¦Ê ×ÎÅÓÏË × ÐÏÒÔÕ×ÁÎÎÑ, ÔÅÓÔÕ×ÁÎÎÑ, צÄÌÁÄËÕ ÔÁ ÐÏËÒÁÝÅÎÎÑ
303 ËÏÄÕ. ïÒÉǦÎÁÌØÎÉÊ ËÏÄ Postgres, ×¦Ä ÑËÏÇÏ ÐÏÈÏÄÉÔØ PostgreSQL, ÂÕ×
304 ÓÔ×ÏÒÅÎÉÊ ÚÕÓÉÌÌÑÍÉ ÓÔÕÄÅÎÔ¦×, ÁÓЦÒÁÎÔ¦× ÔÁ ÐÅÒÓÏÎÁÌÕ, ÑËÉÊ ÐÒÁÃÀ×Á×
305 Ð¦Ä ËÅÒ¦×ÎÉÃÔ×ÏÍ ÐÒÏÆÅÓÏÒÁ Michael Stonebraker × University of
306 California, Berkeley.
308 ïÒÉǦÎÁÌØÎÁ ÎÁÚ×Á ÐÒÏÇÒÁÍÉ × Berkeley ÂÕÌÁ Postgres. ëÏÌÉ × 1995 ÒÏæ
309 ÂÕÌÏ ÄÏÄÁÎÏ ÆÕÎËæÏÎÁÌØΦÓÔØ SQL, ÎÁÚ×Á ÚͦÎÉÌÁÓÑ ÎÁ Postgres95. ÷
310 ˦Îæ 1996 ÒÏËÕ ×ÏÎÁ ÝÅ ÒÁÚ ÚͦÎÉÌÁÓØ ¦ ÚÁÒÁÚ ÃÅ PostgreSQL.
312 PostgreSQL ÐÒÁÃÀ¤ ÎÁ Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD
313 ÔÁ ¦ÌØÛÏÓÔ¦ ¦ÎÛÉÈ Ò¦ÚÎÏ×ÉÄ¦× Unix.
316 Summary: PostgreSQL development header files and libraries
317 Summary(de): PostgreSQL-Entwicklungs-Header-Dateien und Libraries
318 Summary(es): Archivos de inclusión y bibliotecas PostgreSQL
319 Summary(fr): En-têtes et bibliothèques de développement PostgreSQL
320 Summary(pl): PostgreSQL - pliki nag³ówkowe i biblioteki
321 Summary(pt_BR): Arquivos de inclusão e bibliotecas para desenvolvimento com o PostgreSQL
322 Summary(ru): PostgreSQL - ÈÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ ÒÁÚÒÁÂÏÔÞÉËÁ
323 Summary(tr): PostgreSQL baþlýk dosyalarý ve kitaplýklar
324 Summary(uk): PostgreSQL - ÈÅÄÅÒÉ ÔÁ ¦Â̦ÏÔÅËÉ ÐÒÏÇÒÁͦÓÔÁ
325 Group: Development/Libraries
326 Requires: %{name}-libs = %{version}-%{release}
329 This package contains header files and libraries required to compile
330 applications that are talking directly to the PostgreSQL backend
333 %description devel -l de
334 Dieses Paket enthält die Header-Dateien und Libraries, die zum
335 Kompilieren von Applikationen notwendig sind, die direkt mit dem
336 PostgreSQL-Backend-Server kommunizieren.
338 %description devel -l es
339 Este paquete contiene archivos de inclusión y bibliotecas requeridas
340 para compilación de aplicativos que se comunican directamente con el
341 servidor backend PostgreSQL.
343 %description devel -l fr
344 Ce package contient les fichiers d'en-tête et les bibliothéques
345 nécessaires pour compiler des applications ayant des échanges directs
346 avec le serveur du backend PostgreSQL.
348 %description devel -l pl
349 Pakiet zawiera nag³ówki oraz biblioteki wymagane do kompilacji
350 aplikacji ³±cz±cych siê bezpo¶rednio z serwerem PostgreSQL.
352 %description devel -l pt_BR
353 Este pacote contém arquivos de inclusão e bibliotecas requeridas para
354 compilação de aplicativos que se comunicam diretamente com o servidor
357 %description devel -l ru
358 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÈÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÓÂÏÒËÉ
359 ÐÒÉÌÏÖÅÎÉÊ, ÎÅÐÏÓÒÅÄÓÔ×ÅÎÎÏ ×ÚÁÉÍÏÄÅÊÓÔ×ÕÀÝÉÈ Ó ÓÅÒ×ÅÒÏÍ PostgreSQL.
361 %description devel -l tr
362 Bu paket, PostgreSQL sunucusuyla konuþacak yazýlýmlar geliþtirmek için
363 gereken baþlýk dosyalarýný ve kitaplýklarý içerir.
365 %description devel -l uk
366 ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ ÈÅÄÅÒÉ ÔÁ ¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ
367 ÐÒÏÇÒÁÍ, Ñ˦ ÂÅÚÐÏÓÅÒÅÄÎØÏ ×ÚÁ¤ÍÏĦÀÔØ Ú ÓÅÒ×ÅÒÏÍ PostgreSQL.
369 %package backend-devel
370 Summary: PostgreSQL backend development header files
371 Summary(pl): PostgreSQL - pliki nag³ówkowe dla backendu
372 Group: Development/Libraries
373 Requires: %{name}-devel = %{version}-%{release}
374 Requires: %{name}-libs = %{version}-%{release}
376 %description backend-devel
377 This package contains header files required to compile functions that
378 could be loaded directly by backend
380 %description backend-devel -l pl
381 Pakiet zawiera nag³ówki wymagane do kompilacji funkcji ktore moga byc
382 bezposrednio ladowane przez beckend serwera PostgreSQL.
385 Summary: Clients needed to access a PostgreSQL server
386 Summary(es): Clientes necesarios para acceder al servidor PostgreSQL
387 Summary(pl): Klienci wymagani do dostêpu do serwera PostgreSQL
388 Summary(pt_BR): Clientes necessários para acessar o servidor PostgreSQL
389 Summary(ru): ëÌÉÅÎÔÓËÉÅ ÐÒÏÇÒÁÍÍÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÄÏÓÔÕÐÁ Ë ÓÅÒ×ÅÒÕ PostgreSQL
390 Summary(uk): ë̦¤ÎÔÓØ˦ ÐÒÏÇÒÁÍÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÄÏÓÔÕÐÕ ÄÏ ÓÅÒ×ÅÒÁ PostgreSQL
391 Group: Applications/Databases
392 Requires: %{name}-libs = %{version}-%{release}
395 This package includes only the clients needed to access an PostgreSQL
396 server. The server is included in the main package. If all you need is
397 to connect to another PostgreSQL server, the this is the only package
398 you need to install. Clients include several command-line utilities
399 you can use to manage your databases on a remote PostgreSQL server.
401 %description clients -l es
402 Este paquete incluye solamente los clientes necesarios para acceder un
403 servidor PostgreSQL. El servidor está en el paquete principal.
405 %description clients -l pl
406 Pakiet zawiera programy klienckie potrzebne dla dostêpu do serwera
407 PostgreSQL oraz narzêdzia do zarz±dzania bazami dzia³aj±ce z linii
408 poleceñ. Serwer znajduje siê w g³ównym pakiecie.
410 %description clients -l pt_BR
411 Este pacote inclui somente os clientes necessários para acessar um
412 servidor PostgreSQL. O servidor está no pacote principal.
414 %description clients -l ru
415 üÔÏÔ ÐÁËÅÔ ×ËÌÀÞÁÅÔ ÔÏÌØËÏ ËÌÉÅÎÔÓËÉÅ ÐÒÏÇÒÁÍÍÙ É ÂÉÂÌÉÏÔÅËÉ,
416 ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÄÏÓÔÕÐÁ Ë ÓÅÒ×ÅÒÕ PostgreSQL. óÅÒ×ÅÒ ×ÈÏÄÉÔ × ÇÌÁ×ÎÙÊ
417 ÐÁËÅÔ. åÓÌÉ ×ÁÍ ÎÁÄÏ ÔÏÌØËÏ ÒÁÂÏÔÁÔØ Ó ÄÒÕÇÉÍ ÓÅÒ×ÅÒÏÍ PostgreSQL, ÜÔÏ
418 ÅÄÉÎÓÔ×ÅÎÎÙÊ ÐÁËÅÔ, ËÏÔÏÒÙÊ ×ÁÍ ÎÁÄÏ ÕÓÔÁÎÏ×ÉÔØ.
420 ôÅÐÅÒØ ÐÁËÅÔÙ Ó ÂÉÂÌÉÏÔÅËÁÍÉ ÄÌÑ ÒÁÚÎÙÈ ÑÚÙËÏ× ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ (C,
421 C++, Perl É Tcl) ÒÁÚÄÅÌÅÎÙ. üÔÏÔ ÐÁËÅÔ ×ËÌÀÞÁÅÔ ÔÏÌØËÏ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ
424 %description clients -l uk
425 ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ Ô¦ÌØËÉ Ë̦¤ÎÔÓØ˦ ÐÒÏÇÒÁÍÉ ÔÁ ¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ
426 ÄÌÑ ÄÏÓÔÕÐÕ ÄÏ ÓÅÒ×ÅÒÁ PostgreSQL. óÅÒ×ÅÒ Í¦ÓÔÉÔØÓÑ × ÇÏÌÏ×ÎÏÍÕ
427 ÐÁËÅÔ¦. ñËÝÏ ×ÁÍ ÐÏÔÒ¦ÂÎÏ ÐÒÁÃÀ×ÁÔÉ Ú ¦ÎÛÉÍ ÓÅÒ×ÅÒÏÍ PostgreSQL, ÃÅ
428 ¤ÄÉÎÉÊ ÐÁËÅÔ, ÑËÉÊ ×ÁÍ ÔÒÅÂÁ ×ÓÔÁÎÏ×ÉÔÉ.
430 ôÅÐÅÒ ÐÁËÅÔÉ Ú Â¦Â̦ÏÔÅËÁÍÉ ÄÌÑ Ò¦ÚÎÉÈ ÍÏ× ÐÒÏÇÒÁÍÕ×ÁÎÎÑ (C, C++, Perl
431 ¦ Tcl) ÒÏÚĦÌÅΦ. ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ Ô¦ÌØËÉ Â¦Â̦ÏÔÅËÉ ÄÌÑ ÍÏ×É C.
434 Summary: Documentation for PostgreSQL
435 Summary(pl): Dodatkowa dokumantacja dla PostgreSQL
436 Group: Applications/Databases
439 This package includes documentation and HOWTO for programmer, admin
440 etc., in HTML format.
442 %description doc -l pl
443 Pakiet ten zawiera dokumentacjê oraz HOWTO m.in. dla programistów,
444 administratorów w formacie HTML.
447 Summary: PostgreSQL libraries
448 Summary(es): Biblioteca compartida del PostgreSQL
449 Summary(pl): Biblioteki dzielone programu PostgreSQL
450 Summary(pt_BR): Biblioteca compartilhada do PostgreSQL
451 Summary(zh_CN): PostgreSQL ¿Í»§ËùÐèÒªµÄ¹²Ïí¿â
455 PostgreSQL shared libraries.
457 %description libs -l es
458 Este paquete contiene la biblioteca compartida para acceso al
461 %description libs -l pl
462 Biblioteki dzielone programu PostgreSQL.
464 %description libs -l pt_BR
465 Este pacote contém a biblioteca compartilhada para acesso ao
469 Summary: Embedded SQL in C interface
470 Summary(pl): Interfejs wbudowanego SQL-a w jêzyk C
472 Requires: %{name}-libs = %{version}-%{release}
475 Embedded SQL in C interface.
477 %description ecpg -l pl
478 Interfejs wbudowanego SQL-a w jêzyk C.
481 Summary: Embedded SQL in C interface files
482 Summary(pl): Pliki programistyczne interfejsu wbudowanego SQL-a w jêzyk C
483 Group: Development/Libraries
484 Requires: %{name}-devel = %{version}-%{release}
485 Requires: %{name}-ecpg = %{version}-%{release}
487 %description ecpg-devel
488 Embedded SQL in C interface files.
490 %description ecpg-devel -l pl
491 Pliki programistyczne interfejsu wbudowanego SQL-a w jêzyk C.
494 Summary: PostgreSQL static libraries
495 Summary(es): Bibliotecas estaticas PostgreSQL
496 Summary(pl): Biblioteki statyczne programu PostgreSQL
497 Summary(pt_BR): Bibliotecas estáticas PostgreSQL
498 Summary(ru): óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ Ó PostgreSQL
499 Summary(uk): óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ ÄÌÑ ÐÒÏÇÒÁÍÕ×ÁÎÎÑ Ú PostgreSQL
500 Group: Development/Libraries
501 Requires: %{name}-devel = %{version}-%{release}
504 PostgreSQL static libraries.
506 %description static -l es
507 Este paquete contiene bibliotecas estaticas requerida para compilación
508 de aplicativos que se comunican directamente con el servidor backend
511 %description static -l pl
512 Biblioteki statyczne programu PostgreSQL.
514 %description static -l pt_BR
515 Este pacote contém as bibliotecas estáticas requeridas para compilação
516 de aplicativos que se comunicam diretamente com o servidor backend
519 %description static -l ru
520 üÔÏ ÏÔÄÅÌØÎÙÊ ÐÁËÅÔ ÓÏ ÓÔÁÔÉÞÅÓËÉÍÉ ÂÉÂÌÉÏÔÅËÁÍÉ, ËÏÔÏÒÙÅ ÂÏÌØÛÅ ÎÅ
521 ×ÈÏÄÑÔ × %{name}-devel.
523 %description static -l uk
524 ãÅ ÏËÒÅÍÉÊ ÐÁËÅÔ Ú¦ ÓÔÁÔÉÞÎÉÍÉ Â¦Â̦ÏÔÅËÁÍÉ, Ñ˦ ¦ÌØÛ ÎÅ ×ÈÏÄÑÔØ ×
527 %package module-plpgsql
528 Summary: PL/pgSQL - PostgreSQL procedural language
529 Summary(pl): PL/pgSQL - jêzyk proceduralny bazy danych PostgreSQL
530 Group: Applications/Databases
531 Requires: %{name} = %{version}-%{release}
533 %description module-plpgsql
534 From PostgreSQL documentation:
536 Postgres supports the definition of procedural languages. In the case
537 of a function or trigger procedure defined in a procedural language,
538 the database has no built-in knowledge about how to interpret the
539 function's source text. Instead, the task is passed to a handler that
540 knows the details of the language. The handler itself is a special
541 programming language function compiled into a shared object and loaded
544 To enable PL/pgSQL procedural language for your database you have to
545 run createlang command.
547 %description module-plpgsql -l pl
548 Z dokumentacji PostgreSQL:
550 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
551 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
552 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
553 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
554 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
555 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
558 Za pomoc± polecenia createlang mo¿na dodaæ obs³ugê jêzyka
559 proceduralnego PL/pgSQL dla swojej bazy danych.
561 %package module-plperl
562 Summary: PL/perl - PostgreSQL procedural language
563 Summary(pl): PL/perl - jêzyk proceduralny bazy danych PostgreSQL
564 Group: Applications/Databases
565 Requires: %{name} = %{version}-%{release}
566 Requires: perl(DynaLoader) = %(%{__perl} -MDynaLoader -e 'print DynaLoader->VERSION')
568 %description module-plperl
569 From PostgreSQL documentation:
571 Postgres supports the definition of procedural languages. In the case
572 of a function or trigger procedure defined in a procedural language,
573 the database has no built-in knowledge about how to interpret the
574 function's source text. Instead, the task is passed to a handler that
575 knows the details of the language. The handler itself is a special
576 programming language function compiled into a shared object and loaded
579 To enable PL/Perl procedural language for your database you have to
580 run createlang command.
582 %description module-plperl -l pl
583 Z dokumentacji PostgreSQL:
585 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
586 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
587 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
588 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
589 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
590 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
593 Za pomoc± polecenia createlang mo¿na dodaæ obs³ugê jêzyka
594 proceduralnego PL/Perl dla swojej bazy danych.
596 %package module-plphp
597 Summary: PL/PHP - PostgreSQL procedural language
598 Summary(pl): PL/PHP - jêzyk proceduralny bazy danych PostgreSQL
599 Group: Applications/Databases
600 Requires: %{name} = %{version}-%{release}
601 %{?requires_php_extension}
603 %description module-plphp
604 From PostgreSQL documentation:
606 Postgres supports the definition of procedural languages. In the case
607 of a function or trigger procedure defined in a procedural language,
608 the database has no built-in knowledge about how to interpret the
609 function's source text. Instead, the task is passed to a handler that
610 knows the details of the language. The handler itself is a special
611 programming language function compiled into a shared object and loaded
614 To enable PL/PHP procedural language for your database you have to
615 run createlang command.
617 %description module-plphp -l pl
618 Z dokumentacji PostgreSQL:
620 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
621 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
622 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
623 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
624 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
625 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
628 Za pomoc± polecenia createlang mo¿na dodaæ obs³ugê jêzyka
629 proceduralnego PL/PHP dla swojej bazy danych.
631 %package module-plpython
632 Summary: PL/Python - PostgreSQL procedural language
633 Summary(pl): PL/Python - jêzyk proceduralny bazy danych PostgreSQL
634 Group: Applications/Databases
635 Requires: %{name} = %{version}-%{release}
636 %pyrequires_eq python
638 %description module-plpython
639 From PostgreSQL documentation:
641 Postgres supports the definition of procedural languages. In the case
642 of a function or trigger procedure defined in a procedural language,
643 the database has no built-in knowledge about how to interpret the
644 function's source text. Instead, the task is passed to a handler that
645 knows the details of the language. The handler itself is a special
646 programming language function compiled into a shared object and loaded
649 To enable PL/Python procedural language for your database you have to
650 run createlang command.
652 %description module-plpython -l pl
653 Z dokumentacji PostgreSQL:
655 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
656 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
657 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
658 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
659 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
660 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
663 Za pomoc± polecenia createlang mo¿na dodaæ obs³ugê jêzyka
664 proceduralnego PL/Python dla swojej bazy danych.
666 %package module-pltcl
667 Summary: PL/Tcl - PostgreSQL procedural language
668 Summary(pl): PL/Tcl - jêzyk proceduralny bazy danych PostgreSQL
669 Group: Applications/Databases
670 Requires: %{name} = %{version}-%{release}
672 %description module-pltcl
673 From PostgreSQL documentation:
675 Postgres supports the definition of procedural languages. In the case
676 of a function or trigger procedure defined in a procedural language,
677 the database has no built-in knowledge about how to interpret the
678 function's source text. Instead, the task is passed to a handler that
679 knows the details of the language. The handler itself is a special
680 programming language function compiled into a shared object and loaded
683 To enable PL/Tcl procedural language for your database you have to run
686 %description module-pltcl -l pl
687 Z dokumentacji PostgreSQL:
689 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
690 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
691 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
692 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
693 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
694 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
697 Za pomoc± polecenia createlang mo¿na dodaæ obs³ugê jêzyka
698 proceduralnego PL/Tcl dla swojej bazy danych.
701 Summary: Large Objects module for PostgreSQL
702 Summary(pl): Modu³ Large Objects dla PostgreSQL-a
703 Group: Applications/Databases
704 Requires: %{name} = %{version}-%{release}
706 %description module-lo
707 Large Objects module for PostgreSQL adds a new data type 'lo', some
708 support functions and a trigger which handles the orphaning problem.
710 %description module-lo -l pl
711 Modu³ Large Objects dla PostgreSQL-a dodaje nowy typ danych 'lo',
712 kilka funkcji pomocniczych i wyzwalacz rozwi±zuj±cy problem
713 osieroconych obiektów.
715 %package module-pgcrypto
716 Summary: Cryptographic functions for PostgreSQL
717 Summary(pl): Funkcje kryptograficzne dla PostgreSQL-a
718 Group: Applications/Databases
719 Requires: %{name} = %{version}-%{release}
721 %description module-pgcrypto
722 Cryptographic functions for PostgreSQL.
724 %description module-pgcrypto -l pl
725 Funkcje kryptograficzne dla PostgreSQL.
727 %package module-tsearch2
728 Summary: Full text extension for PostgreSQL
729 Summary(pl): Rozszerzenie pe³notekstowe dla PostgreSQL-a
730 Group: Applications/Databases
731 Requires: %{name} = %{version}-%{release}
733 %description module-tsearch2
734 Implementation of a new data type tsvector - a searchable data type
736 http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/
738 %description module-tsearch2 -l pl
739 Implementacja nowego typu danych tsvector - typu danych podlegaj±cego
740 przeszukiwaniu z dostêpem poprzez indeksy:
741 http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/
746 %{?with_absolute_dbpaths:%patch1 -p1}
750 #patch5 -p1 needed for glibc2.3.4 + gcc4
753 patch -p1 < plphp.patch
756 tar xzf doc/man*.tar.gz
759 tar zxf doc/postgres.tar.gz -C doc/unpacked
762 #find contrib -type d -name CVS -exec rm -rf {} \;
765 %{__aclocal} -I config
768 CFLAGS="%{rpmcflags} -DNEED_REENTRANT_FUNCS" \
771 --enable-integer-datetimes \
772 %{?with_pgsql_locale:--enable-locale} \
773 %{?with_pgsql_multibyte:--enable-multibyte} \
777 --enable-thread-safety \
778 --enable-unicode-conversion \
780 %{?with_kerberos5:--with-krb5} \
783 %{?with_perl:--with-perl} \
784 %{?with_php:--with-php=/usr/include/php} \
785 %{?with_python:--with-python} \
786 %{?with_tcl:--with-tcl} \
791 %{__make} -C contrib/lo
792 %{__make} -C contrib/pg_autovacuum
793 %{__make} -C contrib/pgcrypto
794 %{__sed} -i 's:contrib/::g' contrib/tsearch2/tsearch.sql.in
795 %{__make} -C contrib/tsearch2
796 %{__make} -C src/tutorial \
799 %ifnarch sparc sparcv9 sparc64 alpha
800 %{?with_tests:%{__make} check}
810 rm -rf $RPM_BUILD_ROOT
811 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{rc.d/init.d,sysconfig}} \
812 $RPM_BUILD_ROOT{/var/{lib/pgsql,log},%{_pgsqldir}} \
813 $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} \
814 $RPM_BUILD_ROOT%{_mandir} \
815 $RPM_BUILD_ROOT/home/services/postgres
817 install src/tutorial/*.sql $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
820 DESTDIR=$RPM_BUILD_ROOT
822 %{__cc} -shared -Wl,-soname,libpq.so.3 -o $RPM_BUILD_ROOT%{_libdir}/libpq.so.3.0.0 -L$RPM_BUILD_ROOT%{_libdir} -lpq
825 %{__make} install -C src/pl/plperl \
826 DESTDIR=$RPM_BUILD_ROOT
829 %{__make} -C contrib/lo install \
830 DESTDIR=$RPM_BUILD_ROOT
832 %{__make} -C contrib/pg_autovacuum install \
833 DESTDIR=$RPM_BUILD_ROOT
835 %{__make} -C contrib/pgcrypto install \
836 DESTDIR=$RPM_BUILD_ROOT
838 %{__make} -C contrib/tsearch2 install \
839 DESTDIR=$RPM_BUILD_ROOT
844 DESTDIR=$RPM_BUILD_ROOT
848 touch $RPM_BUILD_ROOT/var/log/pgsql
850 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/postgresql
851 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/postgresql
854 tar zxf %{SOURCE2} -C howto
856 %py_comp $RPM_BUILD_ROOT%{py_libdir}
857 %py_ocomp $RPM_BUILD_ROOT%{py_libdir}
860 for f in libpq pg_controldata pg_dump pg_resetxlog pgscripts postgres psql initdb pg_ctl pg_config; do
864 cat pgscripts.lang pg_resetxlog.lang postgres.lang pg_controldata.lang > main.lang
865 cat pg_dump.lang psql.lang initdb.lang pg_ctl.lang > clients.lang
867 # Remove Contrib documentation. We use macro %doc
868 rm -rf $RPM_BUILD_ROOT/contrib
871 rm -rf $RPM_BUILD_ROOT
875 if [ -f /etc/sysconfig/postgresql ]; then
876 . /etc/sysconfig/postgresql
877 if [ -z "$PG_DB_CLUSTERS" -a -n "$POSTGRES_DATA_DIR" ]; then
878 PG_DB_CLUSTERS="$POSTGRES_DATA_DIR"
882 for pgdir in $PG_DB_CLUSTERS; do
883 if [ -f $pgdir/PG_VERSION ]; then
884 if [ `cat $pgdir/PG_VERSION` != '8.0' ]; then
885 echo "Found database(s) in older, incompatible format in cluster $pgdir."
890 if [ "$foundold" = "1" ]; then
892 echo "Dump all data from clusters mentioned above (using pg_dump or pg_dumpall)"
893 echo "and clean (or rename) those directories; then upgrade postgresql and"
894 echo "restore all data (using pg_restore or psql)."
895 echo "Remember to stop the daemon before upgrading!"
897 echo "Warning for upgrade from version *before* 7.2."
898 echo "Please note, that postgresql module path changed from"
899 echo "/usr/lib/pgsql/module to /usr/lib/postgresql. Change the path"
900 echo "in dump file before restore."
902 echo "Warning for upgrade from version *before* 7.3."
903 echo "Reading following webpage is encouraged:"
904 echo "http://www.ca.postgresql.org/docs/momjian/upgrade_tips_7.3."
908 %groupadd -g 88 -r postgres
909 %useradd -M -o -r -u 88 -d /home/services/postgres -s /bin/sh -g postgres -c "PostgreSQL Server" postgres
911 # TODO: move this to trigger!
912 if [ -n "`/bin/id -u postgres 2>/dev/null`" ]; then
913 /usr/sbin/usermod -d /home/services/postgres postgres
917 /sbin/chkconfig --add postgresql
918 if [ -f /var/lock/subsys/postgresql ]; then
919 /etc/rc.d/init.d/postgresql restart >&2 || :
921 echo "Run \"/etc/rc.d/init.d/postgresql start\" to start postgresql server."
925 if [ "$1" = "0" ]; then
926 if [ -f /var/lock/subsys/postgresql ]; then
927 /etc/rc.d/init.d/postgresql stop
929 /sbin/chkconfig --del postgresql
932 %post libs -p /sbin/ldconfig
933 %postun libs -p /sbin/ldconfig
935 %post ecpg -p /sbin/ldconfig
936 %postun ecpg -p /sbin/ldconfig
939 %defattr(644,root,root,755)
940 %doc COPYRIGHT README HISTORY doc/{FAQ*,README*,bug.template}
941 %doc contrib/pg_autovacuum/README*
942 %attr(754,root,root) /etc/rc.d/init.d/postgresql
943 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/postgresql
945 %attr(755,root,root) %{_bindir}/initdb
946 %attr(755,root,root) %{_bindir}/ipcclean
947 %attr(755,root,root) %{_bindir}/pg_autovacuum
948 %attr(755,root,root) %{_bindir}/pg_controldata
949 %attr(755,root,root) %{_bindir}/pg_ctl
950 %attr(755,root,root) %{_bindir}/pg_resetxlog
951 %attr(755,root,root) %{_bindir}/postgres
952 %attr(755,root,root) %{_bindir}/postmaster
954 %attr(755,root,root) %{_pgmoduledir}/ascii*
955 %attr(755,root,root) %{_pgmoduledir}/cyrillic*
956 %attr(755,root,root) %{_pgmoduledir}/euc*
957 %attr(755,root,root) %{_pgmoduledir}/latin*
958 %attr(755,root,root) %{_pgmoduledir}/utf*
961 %dir %{_datadir}/postgresql
962 %dir %{_datadir}/postgresql/timezone
963 %{_datadir}/postgresql/*.bki
964 %{_datadir}/postgresql/*.sample
965 %{_datadir}/postgresql/*.description
966 %{_datadir}/postgresql/*.sql
967 %{_datadir}/postgresql/*.txt
968 %{_datadir}/postgresql/timezone/*
970 %attr(700,postgres,postgres) /home/services/postgres
971 %attr(700,postgres,postgres) %dir /var/lib/pgsql
972 %attr(640,postgres,postgres) %config(noreplace) %verify(not md5 mtime size) /var/log/pgsql
974 %{_mandir}/man1/initdb.1*
975 %{_mandir}/man1/ipcclean.1*
976 %{_mandir}/man1/pg_controldata.1*
977 %{_mandir}/man1/pg_ctl.1*
978 %{_mandir}/man1/pg_resetxlog.1*
979 %{_mandir}/man1/postgres.1*
980 %{_mandir}/man1/postmaster.1*
983 %defattr(644,root,root,755)
984 %doc doc/unpacked/* doc/src/FAQ howto
985 %{_examplesdir}/%{name}-%{version}
987 %files libs -f libpq.lang
988 %defattr(644,root,root,755)
989 %attr(755,root,root) %{_libdir}/libpq.so.*
993 %defattr(644,root,root,755)
994 %attr(755,root,root) %{_bindir}/ecpg
995 %attr(755,root,root) %{_libdir}/libecpg.so.*.*
996 %attr(755,root,root) %{_libdir}/libecpg_compat.so.*.*
997 %attr(755,root,root) %{_libdir}/libpgtypes.so.*.*
998 %{_mandir}/man1/ecpg.1*
1001 %defattr(644,root,root,755)
1002 %attr(755,root,root) %{_libdir}/libecpg.so
1003 %attr(755,root,root) %{_libdir}/libecpg_compat.so
1004 %attr(755,root,root) %{_libdir}/libpgtypes.so
1007 %files devel -f pg_config.lang
1008 %defattr(644,root,root,755)
1009 %attr(755,root,root) %{_bindir}/pg_config
1010 %attr(755,root,root) %{_libdir}/libpq.so
1011 %dir %{_includedir}/postgresql
1012 %{_includedir}/libpq-fe.h
1013 %{_includedir}/pg_config.h
1014 %{_includedir}/pg_config_manual.h
1015 %{_includedir}/pg_config_os.h
1016 %{_includedir}/postgres_ext.h
1017 %dir %{_includedir}/postgresql/internal
1018 %{_includedir}/postgresql/internal/c.h
1019 %{_includedir}/postgresql/internal/libpq-int.h
1020 %{_includedir}/postgresql/internal/port.h
1021 %{_includedir}/postgresql/internal/postgres_fe.h
1022 %{_includedir}/postgresql/internal/pqexpbuffer.h
1023 %{_includedir}/postgresql/internal/libpq
1024 %{_includedir}/libpq
1025 %{_mandir}/man1/pg_config.1*
1027 %files backend-devel
1028 %defattr(644,root,root,755)
1029 %{_includedir}/postgresql/server
1030 %dir %{_pgmoduledir}/pgxs
1031 %attr(755,root,root) %{_pgmoduledir}/pgxs/config
1032 %{_pgmoduledir}/pgxs/src
1035 %defattr(644,root,root,755)
1036 %{_libdir}/libecpg.a
1037 %{_libdir}/libecpg_compat.a
1039 %{_libdir}/libpgtypes.a
1040 %{_libdir}/libpgport.a
1042 %files clients -f clients.lang
1043 %defattr(644,root,root,755)
1044 %attr(755,root,root) %{_bindir}/clusterdb
1045 %attr(755,root,root) %{_bindir}/createdb
1046 %attr(755,root,root) %{_bindir}/createlang
1047 %attr(755,root,root) %{_bindir}/createuser
1048 %attr(755,root,root) %{_bindir}/dropdb
1049 %attr(755,root,root) %{_bindir}/droplang
1050 %attr(755,root,root) %{_bindir}/dropuser
1051 %attr(755,root,root) %{_bindir}/pg_dump
1052 %attr(755,root,root) %{_bindir}/pg_dumpall
1053 %attr(755,root,root) %{_bindir}/pg_restore
1054 %attr(755,root,root) %{_bindir}/psql
1055 %attr(755,root,root) %{_bindir}/vacuumdb
1057 %{_mandir}/man1/clusterdb.1*
1058 %{_mandir}/man1/createdb.1*
1059 %{_mandir}/man1/createlang.1*
1060 %{_mandir}/man1/createuser.1*
1061 %{_mandir}/man1/dropdb.1*
1062 %{_mandir}/man1/droplang.1*
1063 %{_mandir}/man1/dropuser.1*
1064 %{_mandir}/man1/pg_dump.1*
1065 %{_mandir}/man1/pg_dumpall.1*
1066 %{_mandir}/man1/pg_restore.1*
1067 %{_mandir}/man1/psql.1*
1068 %{_mandir}/man1/vacuumdb.1*
1069 %{_mandir}/man7/*.7*
1071 %files module-plpgsql
1072 %defattr(644,root,root,755)
1073 %attr(755,root,root) %{_pgmoduledir}/plpgsql.so
1076 %files module-plperl
1077 %defattr(644,root,root,755)
1078 %attr(755,root,root) %{_pgmoduledir}/plperl.so
1082 %files module-plpython
1083 %defattr(644,root,root,755)
1084 %attr(755,root,root) %{_pgmoduledir}/plpython.so
1089 %defattr(644,root,root,755)
1090 %attr(755,root,root) %{_bindir}/pltcl_*
1091 %attr(755,root,root) %{_pgmoduledir}/pltcl.so
1095 %defattr(644,root,root,755)
1096 %doc contrib/lo/README.lo
1097 %attr(755,root,root) %{_pgmoduledir}/lo.so
1098 %{_pgsqldir}/lo*.sql
1100 %files module-pgcrypto
1101 %defattr(644,root,root,755)
1102 %doc contrib/pgcrypto/README*
1103 %attr(755,root,root) %{_pgmoduledir}/pgcrypto.so
1104 %{_pgsqldir}/pgcrypto.sql
1106 %files module-tsearch2
1107 %defattr(644,root,root,755)
1108 %doc contrib/tsearch2/README*
1109 %attr(755,root,root) %{_pgmoduledir}/tsearch2.so
1110 %{_pgsqldir}/tsearch2.sql
1111 %{_pgsqldir}/untsearch2.sql