3 %bcond_without tests # disable testing
4 %bcond_without tcl # disables Tcl support
5 %bcond_without kerberos5 # disable kerberos5 support
6 %bcond_without perl # disable Perl support
7 %bcond_without python # disable Python support
8 %bcond_with php # enable PHP support
9 %bcond_with absolute_dbpaths # enable absolute paths to create database
10 # (disabled by default because it is a security risk)
12 Summary: PostgreSQL Data Base Management System
13 Summary(de): PostgreSQL Datenbankverwaltungssystem
14 Summary(es): Gestor de Banco de Datos PostgreSQL
15 Summary(fr): Sysème de gestion de base de données PostgreSQL
16 Summary(pl): PostgreSQL - system bazodanowy
17 Summary(pt_BR): Gerenciador de Banco de Dados PostgreSQL
18 Summary(ru): PostgreSQL - ÓÉÓÔÅÍÁ ÕÐÒÁ×ÌÅÎÉÑ ÂÁÚÁÍÉ ÄÁÎÎÙÈ
19 Summary(tr): Veri Tabaný Yönetim Sistemi
20 Summary(uk): PostgreSQL - ÓÉÓÔÅÍÁ ËÅÒÕ×ÁÎÎÑ ÂÁÚÁÍÉ ÄÁÎÉÈ
21 Summary(zh_CN): PostgreSQL ¿Í»§¶Ë³ÌÐòºÍ¿âÎļþ
26 Group: Applications/Databases
27 Source0: ftp://ftp.postgresql.org/pub/source/v%{version}/%{name}-%{version}.tar.bz2
28 # Source0-md5: 490cb3a614545cbd3ce9b1c75c1d2b2e
30 Source2: pgsql-Database-HOWTO-html.tar.gz
31 # Source2-md5: 5b656ddf1db41965761f85204a14398e
32 Source3: %{name}.sysconfig
33 Source8: http://www.commandprompt.com/files/plphp-8.x.tar.bz2
34 # Source8-md5: d307e4ab8cb6900a1c290a5dde1bdeee
35 Patch0: %{name}-conf.patch
36 Patch1: %{name}-absolute_dbpaths.patch
37 Patch2: %{name}-version.patch
38 Patch3: %{name}-ecpg_link.patch
39 Patch4: %{name}-ecpg-includedir.patch
40 Patch5: %{name}-pg_ctl-fix.patch
41 URL: http://www.postgresql.org/
42 BuildRequires: autoconf
43 BuildRequires: automake
44 #BuildRequires: bison >= 1.875 not needed for releases
46 BuildRequires: gettext-devel
47 %{?with_kerberos5:BuildRequires: heimdal-devel >= 0.7}
48 BuildRequires: libtool
49 BuildRequires: libxml2-devel
50 BuildRequires: libxslt-devel
51 BuildRequires: ncurses-devel >= 5.0
52 BuildRequires: openssl-devel >= 0.9.7d
53 BuildRequires: pam-devel
54 %{?with_perl:BuildRequires: perl-devel}
56 BuildRequires: php-devel >= 3:5.0.0
57 BuildRequires: rpmbuild(macros) >= 1.322
60 BuildRequires: python >= 1:2.3
61 BuildRequires: python-devel >= 1:2.3
62 BuildRequires: python-modules >= 1:2.3
64 BuildRequires: readline-devel >= 4.2
65 BuildRequires: rpmbuild(macros) >= 1.268
66 %{?with_tcl:BuildRequires: tcl-devel >= 8.4.3}
67 BuildRequires: zlib-devel
68 Requires(post,preun): /sbin/chkconfig
69 Requires(pre): /bin/id
70 Requires(pre): /usr/bin/getgid
71 Requires(pre): /usr/sbin/groupadd
72 Requires(pre): /usr/sbin/useradd
73 Requires(pre): /usr/sbin/usermod
74 Requires: %{name}-clients = %{version}-%{release}
75 Requires: %{name}-libs = %{version}-%{release}
77 Obsoletes: postgresql-server
78 Obsoletes: postgresql-test
79 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
81 %define _pgmoduledir %{_libdir}/postgresql
82 %define _pgsqldir %{_datadir}/postgresql/contrib
84 %define _ulibdir /usr/lib
87 PostgreSQL Data Base Management System (formerly known as Postgres,
90 PostgreSQL is an enhancement of the POSTGRES database management
91 system, a next-generation DBMS research prototype. While PostgreSQL
92 retains the powerful data model and rich data types of POSTGRES, it
93 replaces the PostQuel query language with an extended subset of SQL.
94 PostgreSQL is free and the complete source is available.
96 PostgreSQL development is being performed by a team of Internet
97 developers who all subscribe to the PostgreSQL development mailing
98 list. The current coordinator is Marc G. Fournier
99 (scrappy@postgreSQL.org). This team is now responsible for all current
100 and future development of PostgreSQL.
102 The authors of PostgreSQL 1.01 were Andrew Yu and Jolly Chen. Many
103 others have contributed to the porting, testing, debugging and
104 enhancement of the code. The original Postgres code, from which
105 PostgreSQL is derived, was the effort of many graduate students,
106 undergraduate students, and staff programmers working under the
107 direction of Professor Michael Stonebraker at the University of
108 California, Berkeley.
110 The original name of the software at Berkeley was Postgres. When SQL
111 functionality was added in 1995, its name was changed to Postgres95.
112 The name was changed at the end of 1996 to PostgreSQL.
114 PostgreSQL runs on Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD,
115 and most flavours of Unix.
118 PostgreSQL Datenbank-Managementsystem (früher als Postgres, dann als
121 PostgreSQL ist eine Verbesserung des POSTGRES-DB-Managementsystems,
122 ein DBMS-Forschungsprototyp der nächsten Generation. Während es das
123 leistungsfähige Datenmodell und die reichhaltigen Datentypen von
124 POSTGRES beibehält, ersetzt es die PostQuel-Abfragesprache durch ein
125 Subset von SQL. PostgreSQL ist gratis, der gesamte Quellcode ist
128 Ein Team von Internet-Entwicklern befaßt sich mit PostgreSQL. Sie alle
129 sind auf der PostgreSQL-Entwickleradreßliste. Koordinator ist Marc G.
130 Fournier (scrappy@postgreSQL.org). Das Team ist verantwortlich für
131 alle aktuellen und künftigen Entwicklungen von PostgreSQL.
133 Die Autoren von PostgreSQL 1.01 waren Andrew Yu und Jolly Chen.
134 Zahlreiche andere haben zur Portierung, zum Testen, Debugging und zur
135 Verbesserung des Code beigetragen. Den Original-Postgres-Code, von dem
136 sich PostgreSQL ableitet, verdanken wir der Arbeit vieler Doktoranden,
137 Studenten und Programmierern unter der Leitung von Professor Michael
138 Stonebraker an der University of California, Berkeley.
140 Der ursprüngliche Name war Postgres. Als 1995 SQL-Funktionalität
141 hinzukam, wurde der Name in Postgres95 geändert. Ende 1996 schließlich
142 entschied man sich für PostgreSQL.
144 PostgreSQL läuft auf Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD
145 und den meisten Unix-Systemen.
148 Administrador de Banco de Datos PostgreSQL (conocido anteriormente
149 como Postgres, y después como Postgres95). PostgreSQL es una
150 continuación mejorada del Sistema Administrador de Banco de Datos
151 POSTGRES, que era un prototipo de pesquisa para un SGBD de nueva
152 generación. Mientras PostgreSQL mantiene el potente modelo de datos y
153 los varios tipos de datos del POSTGRES, substituye el lenguaje de
154 consulta PostQuel por un subconjunto extendido de la SQL. PostgreSQL
155 es libre y tiene los fuentes disponibles. El desarrollo del PostgreSQL
156 se ejecutado por un equipo de estudiosos de Internet, todos suscritos
157 en la lista de desarrollo del PostgreSQL. El coordinador actual es
158 Marc G. Fournier (scrappy@postgreSQL.org). Este equipo es ahora
159 responsable por el desarrollo actual y futuro del PostgreSQL.
162 Système de gestion de bases de données PostgreSQL (D'abord nommé
163 Postgres, puis Postgres95).
165 PostgreSQL est une amélioration du système de gestion de bases de
166 données POSTGRES, un prototype de recherche de la génération suivant
167 DBMS. Tout en conservant le puissant modèle de donnée de et les types
168 de donée riches de Postgres, il remplace le langage de requêtes de
169 Postgres par un sous ensemble etendu de commandes SQL. PosrgreSQL est
170 libre, et ses sources sont disponibles.
172 Le développement de PostgreSQL est actuellement réalisé via internet
173 parune équipe de développeurs inscrits sur la mailing-list de
174 développement de PostgreSQL. Le coordinateur actuel est Marc G
175 Fournier (scrappy@postgreSQL.org). Cette équipe est responsable du
176 développemen actuel et à venir de PostgreSQL.
178 Les auteurs de PostgreSQL 1.01 étaient Andrew Yu et Jolly Chen.
179 Beaucoup d'autres ont contribué au portage, au test, au débogage et à
180 l'amélioration du code. Le code original de Postgres, duquel
181 PostgreSQL est dérivé, a été l'oeuvre d'étudiants de haut niveau, de
182 moins haut niveau, et de programmeurs travaillant sous la direction du
183 professeur Michael Stonebraker à l'université de Berkeley Californie.
185 Le nom original du logiciel était Postgres. Quand les fonctionnalitées
186 SQL furent ajoutées en 1995, son nom est devenu Postgres95. Il a été
187 rebaptisé PostgreSQL en 1996.
189 PostgreSQL tourne sur Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD,
190 et la plupart des Unix.
193 System Zarz±dzania Baz± Danych PostgreSQL (dawniej znany jako
194 Postgres, nastêpnie jako Postgres95).
196 PostgreSQL jest rozszerzeniem systemu zarz±dzania baz danych POSTGRES,
197 prototypu DBMS nastêpnej generacji. Co prawda PostgreSQL odziedziczy³
198 model danych oraz bogaty zbiór ró¿nych typów danych, to jednak jêzyk
199 zapytañ PostQuel zosta³ zast±piony rozszerzonym SQL-em. PostgreSQL
200 jest wolnym oprogramowaniem i kody ¼ród³owe tego oprogramowania s± w
203 System PostgreSQL jest tworzony przez zespó³ ludzi, którzy s± zapisani
204 na listê dyskusyjn± dotycz±c± PostgreSQL-a. Obecnym koordynatorem jest
205 Marc G. Fournier (scrappy@postgreSQL.org). Wymieniony wy¿ej zespó³
206 jest odpowiedzialny za aktualny i przysz³y rozwój systemu PostgreSQL.
208 Autorami PostgreSQL-a 1.01 byli Andrew Yu oraz Jolly Chen. Wielu
209 innych pomaga³o przenosz±c na ró¿ne platformy, testuj±c, analizuj±c i
210 rozszerzaj±c kod. Oryginalny kod Postgres-a, na podstawie którego
211 PostgreSQL powsta³, by³ wysi³kiem wielu absolwentów, studentów oraz
212 zespo³u programistów, którzy pracowali pod kierunkiem profesora
213 Michaela Stonebrakera z Uniwersytetu Kalifornii w Berkeley.
215 Nazwa oryginalna oprogramowania tworzonego w Berkeley brzmia³a
216 Postgres. W 1995 roku dodano jêzyk zapytañ SQL i nazwê zmieniono na
217 Postgres95. W koñcu roku 1996 nazwê ostatecznie zmieniono na
220 PostgreSQL mo¿e byæ uruchomiony pod nastêpuj±cymi systemami: Solaris,
221 SunOS, HPUX, AIX, Linux, Irix, FreeBSD i innymi systemami uniksowymi.
223 %description -l pt_BR
224 Gerenciador de Banco de Dados PostgreSQL (conhecido anteriormente como
225 Postgres, e depois como Postgres95).
227 O PostgreSQL é uma continuação melhorada do Sistema Gerenciador de
228 Banco de Dados POSTGRES, que era um protótipo de pesquisa para um SGBD
229 de nova geração. Enquanto o PostgreSQL mantém o poderoso modelo de
230 dados e os vários tipos de dados do POSTGRES, ele substitui a
231 linguagem de consulta PostQuel por um subconjunto estendido da SQL. O
232 PostgreSQL é livre e tem os fontes disponíveis.
234 O desenvolvimento do PostgreSQL está sendo executado por uma equipe de
235 desenvolvedores da Internet, todos subscritores da lista de
236 desenvolvimento do PostgreSQL. O coordenador atual é Marc G. Fournier
237 (scrappy@postgreSQL.org). Esta equipe é agora responsável pelo
238 desenvolvimento atual e futuro do PostgreSQL.
241 PostgreSQL - ÓÉÓÔÅÍÁ ÕÐÒÁ×ÌÅÎÉÑ ÂÁÚÁÍÉ ÄÁÎÎÙÈ (ÐÒÅÖÄÅ ÉÚ×ÅÓÔÎÁÑ ËÁË
242 Postgres, ÐÏÔÏÍ ËÁË Postgres95).
244 PostgreSQL - ÜÔÏ ÒÁÓÛÉÒÅÎÎÁÑ ×ÅÒÓÉÑ ÓÉÓÔÅÍÙ ÕÐÒÁ×ÌÅÎÉÑ ÂÁÚÁÍÉ ÄÁÎÎÙÈ
245 POSTGRES, ÉÓÓÌÅÄÏ×ÁÔÅÌØÓËÏÇÏ ÐÒÏÔÏÔÉÐÁ DBMS ÓÌÅÄÕÀÝÅÊ ÇÅÎÅÒÁÃÉÉ.
246 óÏÈÒÁÎÑÑ ÍÏÝÎÕÀ ÍÏÄÅÌØ ÄÁÎÎÙÈ É ÂÏÇÁÔÙÊ ÎÁÂÏÒ ÔÉÐÏ× ÄÁÎÎÙÈ POSTGRES,
247 ÏÎÁ ÚÁÍÅÎÑÅÔ ÑÚÙË ÚÁÐÒÏÓÏ× PostQuel ÒÁÓÛÉÒÅÎÎÙÍ ÎÁÂÏÒÏÍ SQL.
248 PostgreSQL ÂÅÓÐÌÁÔÅÎ É ÐÏÓÔÁ×ÌÑÅÔÓÑ × ×ÉÄÅ ÐÏÌÎÏÇÏ ËÏÍÐÌÅËÔÁ ÉÓÈÏÄÎÙÈ
251 PostgreSQL ÒÁÚÒÁÂÁÔÙ×ÁÌÓÑ ËÏÍÁÎÄÏÊ Internet-ÒÁÚÒÁÂÏÔÞÉËÏ×, ÐÏÄÐÉÓÁÎÎÙÈ
252 ÎÁ ÓÐÉÓÏË ÒÁÓÓÙÌËÉ, ÐÏÓ×ÑÝÅÎÎÙÊ ÒÁÚÒÁÂÏÔËÅ PostgreSQL. ÷ ÎÁÓÔÏÑÝÅÅ
253 ×ÒÅÍÑ ËÏÏÒÄÉÎÁÔÏÒÏÍ Ñ×ÌÑÅÔÓÑ Marc G. Fournier
254 (scrappy@postgreSQL.org). üÔÁ ËÏÍÁÎÄÁ × ÎÁÓÔÏÑÝÅÅ ×ÒÅÍÑ ÏÔ×ÅÞÁÅÔ ÚÁ
255 ×ÓÅ ÔÅËÕÝÉÅ É ÂÕÄÕÝÉÅ ÒÁÚÒÁÂÏÔËÉ PostgreSQL.
257 á×ÔÏÒÁÍÉ PostgreSQL 1.01 ÂÙÌÉ Andrew Yu É Jolly Chen. íÎÏÇÉÅ ×ÎÅÓÌÉ
258 Ó×ÏÊ ×ËÌÁÄ × ÐÏÒÔÉÒÏ×ÁÎÉÅ, ÔÅÓÔÉÒÏ×ÁÎÉÅ, ÏÔÌÁÄËÕ É ÕÌÕÞÛÅÎÉÅ ËÏÄÁ.
259 ïÒÉÇÉÎÁÌØÎÙÊ ËÏÄ Postgres, ÏÔ ËÏÔÏÒÏÇÏ ÐÒÏÉÚÏÛÅÌ PostgreSQL, ÂÙÌ
260 ÓÏÚÄÁÎ ÕÓÉÌÉÑÍÉ ÓÔÕÄÅÎÔÏ×, ÁÓÐÉÒÁÎÔÏ× É ÐÅÒÓÏÎÁÌÁ, ÒÁÂÏÔÁÀÝÅÇÏ ÐÏÄ
261 ÒÕËÏ×ÏÄÓÔ×ÏÍ ÐÒÏÆÅÓÓÏÒÁ Michael Stonebraker × University of
262 California, Berkeley.
264 ïÒÉÇÉÎÁÌØÎÏÅ ÎÁÚ×ÁÎÉÅ ðï × Berkeley ÂÙÌÏ Postgres. ëÏÇÄÁ × 1995 ÇÏÄÕ
265 ÂÙÌÁ ÄÏÂÁ×ÌÅÎÁ ÆÕÎËÃÉÏÎÁÌØÎÏÓÔØ SQL, ÎÁÚ×ÁÎÉÅ ÉÚÍÅÎÉÌÏÓØ ÎÁ
266 Postgres95. ÷ ËÏÎÃÅ 1996 ÇÏÄÁ ÏÎÏ ÅÝÅ ÒÁÚ ÉÚÍÅÎÉÌÏÓØ É ÔÅÐÅÒØ ÜÔÏ
269 PostgreSQL ÒÁÂÏÔÁÅÔ ÎÁ Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD
270 É ÂÏÌØÛÉÎÓÔ×Å ÄÒÕÇÉÈ ÒÁÚÎÏ×ÉÄÎÏÓÔÅÊ Unix.
273 PostgreSQL, POSTGRES'den türemiþ bir veri tabaný yönetim sistemidir
274 (DBMS). Güçlü veri modeli ve zengin POSTGRES veri tiplerini
275 desteklerken SQL'in geniþletilmiþ bir altkümesi yerine PostQuel
276 sorgulama dilini koyar.
279 PostgreSQL - ÓÉÓÔÅÍÁ ËÅÒÕ×ÁÎÎÑ ÂÁÚÁÍÉ ÄÁÎÉÈ (ÒÁÎ¦Û ×¦ÄÏÍÁ ÑË Postgres,
280 ÐÏÔ¦Í ÑË Postgres95).
282 PostgreSQL - ÃÅ ÒÏÚÛÉÒÅÎÁ ×ÅÒÓ¦Ñ ÓÉÓÔÅÍÉ ËÅÒÕ×ÁÎÎÑ ÂÁÚÁÍÉ ÄÁÎÉÈ
283 POSTGRES, ÄÏÓ̦ÄÎÉÃØËÏÇÏ ÐÒÏÔÏÔÉÐÕ DBMS ÎÁÓÔÕÐÎϧ ÇÅÎÅÒÁæ§.
284 úÂÅÒ¦ÇÁÀÞÉ ÐÏÔÕÖÎÕ ÍÏÄÅÌØ ÄÁÎÉÈ ÔÁ ÂÁÇÁÔÉÊ ÎÁÂ¦Ò ÔÉÐ¦× ÄÁÎÉÈ POSTGRES,
285 ×ÏÎÁ ÚÁͦÎÀ¤ ÍÏ×Õ ÚÁÐÉÔ¦× PostQuel ÒÏÚÛÉÒÅÎÉÍ ÎÁÂÏÒÏÍ SQL. PostgreSQL
286 ÂÅÚËÏÛÔÏ×ÎÁ ÔÁ ÐÏÓÔÁ×ÌѤÔØÓÑ Õ ×ÉÇÌÑĦ ÐÏ×ÎÏÇÏ ËÏÍÐÌÅËÔÕ ×ÉȦÄÎÉÈ
289 PostgreSQL ÒÏÚÒÏÂÌѤÔØÓÑ ËÏÍÁÎÄÏÀ Internet-ÐÒÏÇÒÁͦÓÔ¦×, ÕÞÁÓÎÉ˦×
290 ÓÐÉÓËÕ ÒÏÚÓÉÌËÉ, ÐÒÉÓ×ÑÞÅÎÏÇÏ ÒÏÚÒÏÂæ PostgreSQL. îÁÒÁÚ¦
291 ËÏÏÒÄÉÎÁÔÏÒÏÍ ¤ Marc G. Fournier (scrappy@postgreSQL.org). ãÑ ËÏÍÁÎÄÁ
292 צÄÐÏצÄÁ¤ ÚÁ ×Ó¦ ÐÏÔÏÞΦ ÔÁ ÍÁÊÂÕÔΦ ÒÏÚÒÏÂËÉ PostgreSQL.
294 á×ÔÏÒÁÍÉ PostgreSQL 1.01 ÂÕÌÉ Andrew Yu ÔÁ Jolly Chen. âÁÇÁÔÏ ÌÀÄÅÊ
295 ×ÎÅÓÌÉ Ó×¦Ê ×ÎÅÓÏË × ÐÏÒÔÕ×ÁÎÎÑ, ÔÅÓÔÕ×ÁÎÎÑ, צÄÌÁÄËÕ ÔÁ ÐÏËÒÁÝÅÎÎÑ
296 ËÏÄÕ. ïÒÉǦÎÁÌØÎÉÊ ËÏÄ Postgres, ×¦Ä ÑËÏÇÏ ÐÏÈÏÄÉÔØ PostgreSQL, ÂÕ×
297 ÓÔ×ÏÒÅÎÉÊ ÚÕÓÉÌÌÑÍÉ ÓÔÕÄÅÎÔ¦×, ÁÓЦÒÁÎÔ¦× ÔÁ ÐÅÒÓÏÎÁÌÕ, ÑËÉÊ ÐÒÁÃÀ×Á×
298 Ð¦Ä ËÅÒ¦×ÎÉÃÔ×ÏÍ ÐÒÏÆÅÓÏÒÁ Michael Stonebraker × University of
299 California, Berkeley.
301 ïÒÉǦÎÁÌØÎÁ ÎÁÚ×Á ÐÒÏÇÒÁÍÉ × Berkeley ÂÕÌÁ Postgres. ëÏÌÉ × 1995 ÒÏæ
302 ÂÕÌÏ ÄÏÄÁÎÏ ÆÕÎËæÏÎÁÌØΦÓÔØ SQL, ÎÁÚ×Á ÚͦÎÉÌÁÓÑ ÎÁ Postgres95. ÷
303 ˦Îæ 1996 ÒÏËÕ ×ÏÎÁ ÝÅ ÒÁÚ ÚͦÎÉÌÁÓØ ¦ ÚÁÒÁÚ ÃÅ PostgreSQL.
305 PostgreSQL ÐÒÁÃÀ¤ ÎÁ Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD
306 ÔÁ ¦ÌØÛÏÓÔ¦ ¦ÎÛÉÈ Ò¦ÚÎÏ×ÉÄ¦× Unix.
309 Summary: PostgreSQL development header files and libraries
310 Summary(de): PostgreSQL-Entwicklungs-Header-Dateien und Libraries
311 Summary(es): Archivos de inclusión y bibliotecas PostgreSQL
312 Summary(fr): En-têtes et bibliothèques de développement PostgreSQL
313 Summary(pl): PostgreSQL - pliki nag³ówkowe i biblioteki
314 Summary(pt_BR): Arquivos de inclusão e bibliotecas para desenvolvimento com o PostgreSQL
315 Summary(ru): PostgreSQL - ÈÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ ÒÁÚÒÁÂÏÔÞÉËÁ
316 Summary(tr): PostgreSQL baþlýk dosyalarý ve kitaplýklar
317 Summary(uk): PostgreSQL - ÈÅÄÅÒÉ ÔÁ ¦Â̦ÏÔÅËÉ ÐÒÏÇÒÁͦÓÔÁ
318 Group: Development/Libraries
319 Requires: %{name}-libs = %{version}-%{release}
322 This package contains header files and libraries required to compile
323 applications that are talking directly to the PostgreSQL backend
326 %description devel -l de
327 Dieses Paket enthält die Header-Dateien und Libraries, die zum
328 Kompilieren von Applikationen notwendig sind, die direkt mit dem
329 PostgreSQL-Backend-Server kommunizieren.
331 %description devel -l es
332 Este paquete contiene archivos de inclusión y bibliotecas requeridas
333 para compilación de aplicativos que se comunican directamente con el
334 servidor backend PostgreSQL.
336 %description devel -l fr
337 Ce package contient les fichiers d'en-tête et les bibliothéques
338 nécessaires pour compiler des applications ayant des échanges directs
339 avec le serveur du backend PostgreSQL.
341 %description devel -l pl
342 Pakiet zawiera nag³ówki oraz biblioteki wymagane do kompilacji
343 aplikacji ³±cz±cych siê bezpo¶rednio z serwerem PostgreSQL.
345 %description devel -l pt_BR
346 Este pacote contém arquivos de inclusão e bibliotecas requeridas para
347 compilação de aplicativos que se comunicam diretamente com o servidor
350 %description devel -l ru
351 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÈÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÓÂÏÒËÉ
352 ÐÒÉÌÏÖÅÎÉÊ, ÎÅÐÏÓÒÅÄÓÔ×ÅÎÎÏ ×ÚÁÉÍÏÄÅÊÓÔ×ÕÀÝÉÈ Ó ÓÅÒ×ÅÒÏÍ PostgreSQL.
354 %description devel -l tr
355 Bu paket, PostgreSQL sunucusuyla konuþacak yazýlýmlar geliþtirmek için
356 gereken baþlýk dosyalarýný ve kitaplýklarý içerir.
358 %description devel -l uk
359 ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ ÈÅÄÅÒÉ ÔÁ ¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ
360 ÐÒÏÇÒÁÍ, Ñ˦ ÂÅÚÐÏÓÅÒÅÄÎØÏ ×ÚÁ¤ÍÏĦÀÔØ Ú ÓÅÒ×ÅÒÏÍ PostgreSQL.
362 %package backend-devel
363 Summary: PostgreSQL backend development header files
364 Summary(pl): PostgreSQL - pliki nag³ówkowe dla backendu
365 Group: Development/Libraries
366 Requires: %{name}-devel = %{version}-%{release}
367 Requires: %{name}-libs = %{version}-%{release}
369 %description backend-devel
370 This package contains header files required to compile functions that
371 could be loaded directly by backend
373 %description backend-devel -l pl
374 Pakiet zawiera nag³ówki wymagane do kompilacji funkcji ktore moga byc
375 bezposrednio ladowane przez beckend serwera PostgreSQL.
378 Summary: Clients needed to access a PostgreSQL server
379 Summary(es): Clientes necesarios para acceder al servidor PostgreSQL
380 Summary(pl): Klienci wymagani do dostêpu do serwera PostgreSQL
381 Summary(pt_BR): Clientes necessários para acessar o servidor PostgreSQL
382 Summary(ru): ëÌÉÅÎÔÓËÉÅ ÐÒÏÇÒÁÍÍÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÄÏÓÔÕÐÁ Ë ÓÅÒ×ÅÒÕ PostgreSQL
383 Summary(uk): ë̦¤ÎÔÓØ˦ ÐÒÏÇÒÁÍÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÄÏÓÔÕÐÕ ÄÏ ÓÅÒ×ÅÒÁ PostgreSQL
384 Group: Applications/Databases
385 Requires: %{name}-libs = %{version}-%{release}
388 This package includes only the clients needed to access an PostgreSQL
389 server. The server is included in the main package. If all you need is
390 to connect to another PostgreSQL server, the this is the only package
391 you need to install. Clients include several command-line utilities
392 you can use to manage your databases on a remote PostgreSQL server.
394 %description clients -l es
395 Este paquete incluye solamente los clientes necesarios para acceder un
396 servidor PostgreSQL. El servidor está en el paquete principal.
398 %description clients -l pl
399 Pakiet zawiera programy klienckie potrzebne dla dostêpu do serwera
400 PostgreSQL oraz narzêdzia do zarz±dzania bazami dzia³aj±ce z linii
401 poleceñ. Serwer znajduje siê w g³ównym pakiecie.
403 %description clients -l pt_BR
404 Este pacote inclui somente os clientes necessários para acessar um
405 servidor PostgreSQL. O servidor está no pacote principal.
407 %description clients -l ru
408 üÔÏÔ ÐÁËÅÔ ×ËÌÀÞÁÅÔ ÔÏÌØËÏ ËÌÉÅÎÔÓËÉÅ ÐÒÏÇÒÁÍÍÙ É ÂÉÂÌÉÏÔÅËÉ,
409 ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÄÏÓÔÕÐÁ Ë ÓÅÒ×ÅÒÕ PostgreSQL. óÅÒ×ÅÒ ×ÈÏÄÉÔ × ÇÌÁ×ÎÙÊ
410 ÐÁËÅÔ. åÓÌÉ ×ÁÍ ÎÁÄÏ ÔÏÌØËÏ ÒÁÂÏÔÁÔØ Ó ÄÒÕÇÉÍ ÓÅÒ×ÅÒÏÍ PostgreSQL, ÜÔÏ
411 ÅÄÉÎÓÔ×ÅÎÎÙÊ ÐÁËÅÔ, ËÏÔÏÒÙÊ ×ÁÍ ÎÁÄÏ ÕÓÔÁÎÏ×ÉÔØ.
413 ôÅÐÅÒØ ÐÁËÅÔÙ Ó ÂÉÂÌÉÏÔÅËÁÍÉ ÄÌÑ ÒÁÚÎÙÈ ÑÚÙËÏ× ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ (C,
414 C++, Perl É Tcl) ÒÁÚÄÅÌÅÎÙ. üÔÏÔ ÐÁËÅÔ ×ËÌÀÞÁÅÔ ÔÏÌØËÏ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ
417 %description clients -l uk
418 ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ Ô¦ÌØËÉ Ë̦¤ÎÔÓØ˦ ÐÒÏÇÒÁÍÉ ÔÁ ¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ
419 ÄÌÑ ÄÏÓÔÕÐÕ ÄÏ ÓÅÒ×ÅÒÁ PostgreSQL. óÅÒ×ÅÒ Í¦ÓÔÉÔØÓÑ × ÇÏÌÏ×ÎÏÍÕ
420 ÐÁËÅÔ¦. ñËÝÏ ×ÁÍ ÐÏÔÒ¦ÂÎÏ ÐÒÁÃÀ×ÁÔÉ Ú ¦ÎÛÉÍ ÓÅÒ×ÅÒÏÍ PostgreSQL, ÃÅ
421 ¤ÄÉÎÉÊ ÐÁËÅÔ, ÑËÉÊ ×ÁÍ ÔÒÅÂÁ ×ÓÔÁÎÏ×ÉÔÉ.
423 ôÅÐÅÒ ÐÁËÅÔÉ Ú Â¦Â̦ÏÔÅËÁÍÉ ÄÌÑ Ò¦ÚÎÉÈ ÍÏ× ÐÒÏÇÒÁÍÕ×ÁÎÎÑ (C, C++, Perl
424 ¦ Tcl) ÒÏÚĦÌÅΦ. ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ Ô¦ÌØËÉ Â¦Â̦ÏÔÅËÉ ÄÌÑ ÍÏ×É C.
427 Summary: Documentation for PostgreSQL
428 Summary(pl): Dodatkowa dokumantacja dla PostgreSQL
429 Group: Applications/Databases
432 This package includes documentation and HOWTO for programmer, admin
433 etc., in HTML format.
435 %description doc -l pl
436 Pakiet ten zawiera dokumentacjê oraz HOWTO m.in. dla programistów,
437 administratorów w formacie HTML.
440 Summary: PostgreSQL libraries
441 Summary(es): Biblioteca compartida del PostgreSQL
442 Summary(pl): Biblioteki dzielone programu PostgreSQL
443 Summary(pt_BR): Biblioteca compartilhada do PostgreSQL
444 Summary(zh_CN): PostgreSQL ¿Í»§ËùÐèÒªµÄ¹²Ïí¿â
448 PostgreSQL shared libraries.
450 %description libs -l es
451 Este paquete contiene la biblioteca compartida para acceso al
454 %description libs -l pl
455 Biblioteki dzielone programu PostgreSQL.
457 %description libs -l pt_BR
458 Este pacote contém a biblioteca compartilhada para acesso ao
462 Summary: Embedded SQL in C interface
463 Summary(pl): Interfejs wbudowanego SQL-a w jêzyk C
465 Requires: %{name}-libs = %{version}-%{release}
468 Embedded SQL in C interface.
470 %description ecpg -l pl
471 Interfejs wbudowanego SQL-a w jêzyk C.
474 Summary: Embedded SQL in C interface files
475 Summary(pl): Pliki programistyczne interfejsu wbudowanego SQL-a w jêzyk C
476 Group: Development/Libraries
477 Requires: %{name}-devel = %{version}-%{release}
478 Requires: %{name}-ecpg = %{version}-%{release}
480 %description ecpg-devel
481 Embedded SQL in C interface files.
483 %description ecpg-devel -l pl
484 Pliki programistyczne interfejsu wbudowanego SQL-a w jêzyk C.
487 Summary: PostgreSQL static libraries
488 Summary(es): Bibliotecas estaticas PostgreSQL
489 Summary(pl): Biblioteki statyczne programu PostgreSQL
490 Summary(pt_BR): Bibliotecas estáticas PostgreSQL
491 Summary(ru): óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ Ó PostgreSQL
492 Summary(uk): óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ ÄÌÑ ÐÒÏÇÒÁÍÕ×ÁÎÎÑ Ú PostgreSQL
493 Group: Development/Libraries
494 Requires: %{name}-devel = %{version}-%{release}
497 PostgreSQL static libraries.
499 %description static -l es
500 Este paquete contiene bibliotecas estaticas requerida para compilación
501 de aplicativos que se comunican directamente con el servidor backend
504 %description static -l pl
505 Biblioteki statyczne programu PostgreSQL.
507 %description static -l pt_BR
508 Este pacote contém as bibliotecas estáticas requeridas para compilação
509 de aplicativos que se comunicam diretamente com o servidor backend
512 %description static -l ru
513 üÔÏ ÏÔÄÅÌØÎÙÊ ÐÁËÅÔ ÓÏ ÓÔÁÔÉÞÅÓËÉÍÉ ÂÉÂÌÉÏÔÅËÁÍÉ, ËÏÔÏÒÙÅ ÂÏÌØÛÅ ÎÅ
514 ×ÈÏÄÑÔ × %{name}-devel.
516 %description static -l uk
517 ãÅ ÏËÒÅÍÉÊ ÐÁËÅÔ Ú¦ ÓÔÁÔÉÞÎÉÍÉ Â¦Â̦ÏÔÅËÁÍÉ, Ñ˦ ¦ÌØÛ ÎÅ ×ÈÏÄÑÔØ ×
520 %package module-plpgsql
521 Summary: PL/pgSQL - PostgreSQL procedural language
522 Summary(pl): PL/pgSQL - jêzyk proceduralny bazy danych PostgreSQL
523 Group: Applications/Databases
524 Requires: %{name} = %{version}-%{release}
526 %description module-plpgsql
527 From PostgreSQL documentation:
529 Postgres supports the definition of procedural languages. In the case
530 of a function or trigger procedure defined in a procedural language,
531 the database has no built-in knowledge about how to interpret the
532 function's source text. Instead, the task is passed to a handler that
533 knows the details of the language. The handler itself is a special
534 programming language function compiled into a shared object and loaded
537 To enable PL/pgSQL procedural language for your database you have to
538 run createlang command.
540 %description module-plpgsql -l pl
541 Z dokumentacji PostgreSQL:
543 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
544 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
545 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
546 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
547 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
548 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
551 Za pomoc± polecenia createlang mo¿na dodaæ obs³ugê jêzyka
552 proceduralnego PL/pgSQL dla swojej bazy danych.
554 %package module-plperl
555 Summary: PL/perl - PostgreSQL procedural language
556 Summary(pl): PL/perl - jêzyk proceduralny bazy danych PostgreSQL
557 Group: Applications/Databases
558 Requires: %{name} = %{version}-%{release}
559 Requires: perl(DynaLoader) = %(%{__perl} -MDynaLoader -e 'print DynaLoader->VERSION')
561 %description module-plperl
562 From PostgreSQL documentation:
564 Postgres supports the definition of procedural languages. In the case
565 of a function or trigger procedure defined in a procedural language,
566 the database has no built-in knowledge about how to interpret the
567 function's source text. Instead, the task is passed to a handler that
568 knows the details of the language. The handler itself is a special
569 programming language function compiled into a shared object and loaded
572 To enable PL/Perl procedural language for your database you have to
573 run createlang command.
575 %description module-plperl -l pl
576 Z dokumentacji PostgreSQL:
578 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
579 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
580 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
581 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
582 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
583 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
586 Za pomoc± polecenia createlang mo¿na dodaæ obs³ugê jêzyka
587 proceduralnego PL/Perl dla swojej bazy danych.
589 %package module-plphp
590 Summary: PL/PHP - PostgreSQL procedural language
591 Summary(pl): PL/PHP - jêzyk proceduralny bazy danych PostgreSQL
592 Group: Applications/Databases
593 Requires: %{name} = %{version}-%{release}
594 %{?requires_php_extension}
596 %description module-plphp
597 From PostgreSQL documentation:
599 Postgres supports the definition of procedural languages. In the case
600 of a function or trigger procedure defined in a procedural language,
601 the database has no built-in knowledge about how to interpret the
602 function's source text. Instead, the task is passed to a handler that
603 knows the details of the language. The handler itself is a special
604 programming language function compiled into a shared object and loaded
607 To enable PL/PHP procedural language for your database you have to run
610 %description module-plphp -l pl
611 Z dokumentacji PostgreSQL:
613 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
614 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
615 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
616 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
617 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
618 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
621 Za pomoc± polecenia createlang mo¿na dodaæ obs³ugê jêzyka
622 proceduralnego PL/PHP dla swojej bazy danych.
624 %package module-plpython
625 Summary: PL/Python - PostgreSQL procedural language
626 Summary(pl): PL/Python - jêzyk proceduralny bazy danych PostgreSQL
627 Group: Applications/Databases
628 Requires: %{name} = %{version}-%{release}
629 %pyrequires_eq python
631 %description module-plpython
632 From PostgreSQL documentation:
634 Postgres supports the definition of procedural languages. In the case
635 of a function or trigger procedure defined in a procedural language,
636 the database has no built-in knowledge about how to interpret the
637 function's source text. Instead, the task is passed to a handler that
638 knows the details of the language. The handler itself is a special
639 programming language function compiled into a shared object and loaded
642 To enable PL/Python procedural language for your database you have to
643 run createlang command.
645 %description module-plpython -l pl
646 Z dokumentacji PostgreSQL:
648 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
649 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
650 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
651 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
652 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
653 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
656 Za pomoc± polecenia createlang mo¿na dodaæ obs³ugê jêzyka
657 proceduralnego PL/Python dla swojej bazy danych.
659 %package module-pltcl
660 Summary: PL/Tcl - PostgreSQL procedural language
661 Summary(pl): PL/Tcl - jêzyk proceduralny bazy danych PostgreSQL
662 Group: Applications/Databases
663 Requires: %{name} = %{version}-%{release}
665 %description module-pltcl
666 From PostgreSQL documentation:
668 Postgres supports the definition of procedural languages. In the case
669 of a function or trigger procedure defined in a procedural language,
670 the database has no built-in knowledge about how to interpret the
671 function's source text. Instead, the task is passed to a handler that
672 knows the details of the language. The handler itself is a special
673 programming language function compiled into a shared object and loaded
676 To enable PL/Tcl procedural language for your database you have to run
679 %description module-pltcl -l pl
680 Z dokumentacji PostgreSQL:
682 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
683 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
684 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
685 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
686 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
687 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
690 Za pomoc± polecenia createlang mo¿na dodaæ obs³ugê jêzyka
691 proceduralnego PL/Tcl dla swojej bazy danych.
693 %package module-dblink
694 Summary: dblink module for PostgreSQL
695 Summary(pl): Modu³ dblink dla PostgreSQL-a
696 Group: Applications/Databases
697 Requires: %{name} = %{version}-%{release}
699 %description module-dblink
700 dblink module for PostgreSQL provides functions returning results from
703 %description module-dblink -l pl
704 Modu³ dblink dla PostgreSQL-a udostêpnia funkcje zwracaj±ce wyniki ze
708 Summary: Large Objects module for PostgreSQL
709 Summary(pl): Modu³ Large Objects dla PostgreSQL-a
710 Group: Applications/Databases
711 Requires: %{name} = %{version}-%{release}
713 %description module-lo
714 Large Objects module for PostgreSQL adds a new data type 'lo', some
715 support functions and a trigger which handles the orphaning problem.
717 %description module-lo -l pl
718 Modu³ Large Objects dla PostgreSQL-a dodaje nowy typ danych 'lo',
719 kilka funkcji pomocniczych i wyzwalacz rozwi±zuj±cy problem
720 osieroconych obiektów.
722 %package module-pgcrypto
723 Summary: Cryptographic functions for PostgreSQL
724 Summary(pl): Funkcje kryptograficzne dla PostgreSQL-a
725 Group: Applications/Databases
726 Requires: %{name} = %{version}-%{release}
728 %description module-pgcrypto
729 Cryptographic functions for PostgreSQL.
731 %description module-pgcrypto -l pl
732 Funkcje kryptograficzne dla PostgreSQL.
734 %package module-tablefunc
735 Summary: crosstab functions for PostgreSQL
736 Summary(pl): Funkcje crosstab dla PostgreSQL-a
737 Group: Applications/Databases
738 Requires: %{name} = %{version}-%{release}
740 %description module-tablefunc
741 crosstab functions for PostgreSQL.
743 %description module-tablefunc -l pl
744 Funkcje crosstab dla PostgreSQL-a.
746 %package module-tsearch2
747 Summary: Full text extension for PostgreSQL
748 Summary(pl): Rozszerzenie pe³notekstowe dla PostgreSQL-a
749 Group: Applications/Databases
750 Requires: %{name} = %{version}-%{release}
752 %description module-tsearch2
753 Implementation of a new data type tsvector - a searchable data type
755 http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/
757 %description module-tsearch2 -l pl
758 Implementacja nowego typu danych tsvector - typu danych podlegaj±cego
759 przeszukiwaniu z dostêpem poprzez indeksy:
760 http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/
762 %package module-pg_trgm
763 Summary: Trigram matching for PostgreSQL
764 Summary(pl): Dopasowanie trigramowe dla PostgreSQL-a
765 Group: Applications/Databases
766 Requires: %{name} = %{version}-%{release}
768 %description module-pg_trgm
769 This module provides functions and index classes for determining the
770 similarity of text based on trigram matching.
772 %description module-pg_trgm -l pl
773 Ten modu³ dostarcza funkcje i klasy do rozpoznawania podobnych tekstów
774 w oparciu o dopasowywanie trigramowe (trigram matching).
778 Summary: XML-handling functions for PostgreSQL
779 Summary(pl): Funkcje do obs³ugi XML-a dla PostgreSQL-a
780 Group: Applications/Databases
781 Requires: %{name} = %{version}-%{release}
783 %description module-xml2
784 Module with XML functions provides both XPath querying and XSLT
785 functionality. There is also a new table function which allows the
786 straightforward return of multiple XML results.
788 %description module-xml2 -l pl
789 Modu³ z funkcjami XML zapewniaj±cymi obs³ugê zapytañ XPath oraz
790 funkcjonalno¶æ XSLT. Jest tak¿e nowa funkcja tabelowa pozwalaj±ca na
791 bezpo¶rednie zwracanie wielu wyników XML.
796 %{?with_absolute_dbpaths:%patch1 -p1}
803 patch -p1 < plphp.patch
806 tar xzf doc/man*.tar.gz
809 tar zxf doc/postgres.tar.gz -C doc/unpacked
812 #find contrib -type d -name CVS -exec rm -rf {} \;
815 %{__aclocal} -I config
818 CFLAGS="%{rpmcflags} -DNEED_REENTRANT_FUNCS" \
821 --enable-integer-datetimes \
823 --enable-thread-safety \
824 %{?with_kerberos5:--with-krb5} \
827 %{?with_perl:--with-perl} \
828 %{?with_php:--with-php=/usr/include/php} \
829 %{?with_python:--with-python} \
830 %{?with_tcl:--with-tcl --with-tclconfig=%{_ulibdir}} \
834 %{__make} -C contrib/dblink
835 %{__make} -C contrib/lo
836 %{__make} -C contrib/pgcrypto
837 %{__make} -C contrib/tablefunc
838 %{__make} -C contrib/tsearch2
839 %{__make} -C contrib/pg_trgm
840 %{__make} -C contrib/xml2
841 %{__make} -C src/tutorial \
844 %ifnarch sparc sparcv9 sparc64 alpha
845 %{?with_tests:%{__make} check}
855 rm -rf $RPM_BUILD_ROOT
856 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{rc.d/init.d,sysconfig}} \
857 $RPM_BUILD_ROOT{/var/{lib/pgsql,log},%{_pgsqldir}} \
858 $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} \
859 $RPM_BUILD_ROOT%{_mandir} \
860 $RPM_BUILD_ROOT/home/services/postgres
862 install src/tutorial/*.sql $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
865 DESTDIR=$RPM_BUILD_ROOT
868 %{__make} install -C src/pl/plperl \
869 DESTDIR=$RPM_BUILD_ROOT
872 %{__make} -C contrib/dblink install \
873 DESTDIR=$RPM_BUILD_ROOT
875 %{__make} -C contrib/lo install \
876 DESTDIR=$RPM_BUILD_ROOT
878 %{__make} -C contrib/pgcrypto install \
879 DESTDIR=$RPM_BUILD_ROOT
881 %{__make} -C contrib/tablefunc install \
882 DESTDIR=$RPM_BUILD_ROOT
884 %{__make} -C contrib/tsearch2 install \
885 DESTDIR=$RPM_BUILD_ROOT
887 %{__make} -C contrib/pg_trgm install \
888 DESTDIR=$RPM_BUILD_ROOT
890 %{__make} -C contrib/xml2 install \
891 DESTDIR=$RPM_BUILD_ROOT
896 DESTDIR=$RPM_BUILD_ROOT
900 touch $RPM_BUILD_ROOT/var/log/pgsql
902 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/postgresql
903 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/postgresql
906 tar zxf %{SOURCE2} -C howto
908 %py_comp $RPM_BUILD_ROOT%{py_libdir}
909 %py_ocomp $RPM_BUILD_ROOT%{py_libdir}
912 for f in libpq pg_controldata pg_dump pg_resetxlog pgscripts postgres psql initdb pg_ctl pg_config; do
916 cat pgscripts.lang pg_resetxlog.lang postgres.lang pg_controldata.lang > main.lang
917 cat pg_dump.lang psql.lang initdb.lang pg_ctl.lang > clients.lang
919 # Remove Contrib documentation. We use macro %doc
920 rm -rf $RPM_BUILD_ROOT/contrib
923 rm -rf $RPM_BUILD_ROOT
927 if [ -f /etc/sysconfig/postgresql ]; then
928 . /etc/sysconfig/postgresql
929 if [ -z "$PG_DB_CLUSTERS" -a -n "$POSTGRES_DATA_DIR" ]; then
930 PG_DB_CLUSTERS="$POSTGRES_DATA_DIR"
934 for pgdir in $PG_DB_CLUSTERS; do
935 if [ -f $pgdir/PG_VERSION ]; then
936 if [ `cat $pgdir/PG_VERSION` != '8.2' ]; then
937 echo "Found database(s) in older, incompatible format in cluster $pgdir."
942 if [ "$foundold" = "1" ]; then
944 echo "Dump all data from clusters mentioned above (using pg_dump or pg_dumpall)"
945 echo "and clean (or rename) those directories; then upgrade postgresql and"
946 echo "restore all data (using pg_restore or psql)."
947 echo "Remember to stop the daemon before upgrading!"
949 echo "Warning for upgrade from version *before* 7.2."
950 echo "Please note, that postgresql module path changed from"
951 echo "/usr/lib/pgsql/module to /usr/lib/postgresql. Change the path"
952 echo "in dump file before restore."
954 echo "Warning for upgrade from version *before* 7.3."
955 echo "Reading following webpage is encouraged:"
956 echo "http://www.ca.postgresql.org/docs/momjian/upgrade_tips_7.3"
960 %groupadd -g 88 -r postgres
961 %useradd -M -o -r -u 88 -d /home/services/postgres -s /bin/sh -g postgres -c "PostgreSQL Server" postgres
963 if [ -n "`/bin/id -u postgres 2>/dev/null`" ]; then
964 /usr/sbin/usermod -d /home/services/postgres postgres
968 /sbin/chkconfig --add postgresql
969 %service postgresql restart "postgresql server"
972 if [ "$1" = "0" ]; then
973 %service postgresql stop
974 /sbin/chkconfig --del postgresql
977 %post libs -p /sbin/ldconfig
978 %postun libs -p /sbin/ldconfig
980 %post ecpg -p /sbin/ldconfig
981 %postun ecpg -p /sbin/ldconfig
984 %defattr(644,root,root,755)
985 %doc COPYRIGHT README HISTORY doc/{FAQ*,README*,bug.template}
986 %attr(754,root,root) /etc/rc.d/init.d/postgresql
987 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/postgresql
989 %attr(755,root,root) %{_bindir}/initdb
990 %attr(755,root,root) %{_bindir}/ipcclean
991 %attr(755,root,root) %{_bindir}/pg_controldata
992 %attr(755,root,root) %{_bindir}/pg_ctl
993 %attr(755,root,root) %{_bindir}/pg_resetxlog
994 %attr(755,root,root) %{_bindir}/postgres
995 %attr(755,root,root) %{_bindir}/postmaster
997 %attr(755,root,root) %{_pgmoduledir}/ascii*
998 %attr(755,root,root) %{_pgmoduledir}/cyrillic*
999 %attr(755,root,root) %{_pgmoduledir}/euc*
1000 %attr(755,root,root) %{_pgmoduledir}/latin*
1001 %attr(755,root,root) %{_pgmoduledir}/utf*
1004 %dir %{_datadir}/postgresql
1005 %{_datadir}/postgresql/*.bki
1006 %{_datadir}/postgresql/*.sample
1007 %{_datadir}/postgresql/*.description
1008 %{_datadir}/postgresql/*.shdescription
1009 %{_datadir}/postgresql/*.sql
1010 %{_datadir}/postgresql/*.txt
1011 %{_datadir}/postgresql/timezone
1012 %{_datadir}/postgresql/timezonesets
1014 %attr(700,postgres,postgres) /home/services/postgres
1015 %attr(700,postgres,postgres) %dir /var/lib/pgsql
1016 %attr(640,postgres,postgres) %config(noreplace) %verify(not md5 mtime size) /var/log/pgsql
1018 %{_mandir}/man1/initdb.1*
1019 %{_mandir}/man1/ipcclean.1*
1020 %{_mandir}/man1/pg_controldata.1*
1021 %{_mandir}/man1/pg_ctl.1*
1022 %{_mandir}/man1/pg_resetxlog.1*
1023 %{_mandir}/man1/postgres.1*
1024 %{_mandir}/man1/postmaster.1*
1027 %defattr(644,root,root,755)
1028 %doc doc/unpacked/* doc/src/FAQ howto
1029 %{_examplesdir}/%{name}-%{version}
1031 %files libs -f libpq.lang
1032 %defattr(644,root,root,755)
1033 %attr(755,root,root) %{_libdir}/libpq.so.*.*
1034 %dir %{_pgmoduledir}
1037 %defattr(644,root,root,755)
1038 %attr(755,root,root) %{_bindir}/ecpg
1039 %attr(755,root,root) %{_libdir}/libecpg.so.*.*
1040 %attr(755,root,root) %{_libdir}/libecpg_compat.so.*.*
1041 %attr(755,root,root) %{_libdir}/libpgtypes.so.*.*
1042 %{_mandir}/man1/ecpg.1*
1045 %defattr(644,root,root,755)
1046 %attr(755,root,root) %{_libdir}/libecpg.so
1047 %attr(755,root,root) %{_libdir}/libecpg_compat.so
1048 %attr(755,root,root) %{_libdir}/libpgtypes.so
1049 %{_includedir}/ecpg*
1051 %files devel -f pg_config.lang
1052 %defattr(644,root,root,755)
1053 %attr(755,root,root) %{_bindir}/pg_config
1054 %attr(755,root,root) %{_libdir}/libpq.so
1055 %dir %{_includedir}/postgresql
1056 %{_includedir}/libpq-fe.h
1057 %{_includedir}/pg_config.h
1058 %{_includedir}/pg_config_manual.h
1059 %{_includedir}/pg_config_os.h
1060 %{_includedir}/postgres_ext.h
1061 %dir %{_includedir}/postgresql/internal
1062 %{_includedir}/postgresql/internal/c.h
1063 %{_includedir}/postgresql/internal/libpq-int.h
1064 %{_includedir}/postgresql/internal/port.h
1065 %{_includedir}/postgresql/internal/postgres_fe.h
1066 %{_includedir}/postgresql/internal/pqexpbuffer.h
1067 %{_includedir}/postgresql/internal/libpq
1068 %{_includedir}/libpq
1069 %{_mandir}/man1/pg_config.1*
1071 %files backend-devel
1072 %defattr(644,root,root,755)
1073 %{_includedir}/postgresql/server
1074 %dir %{_pgmoduledir}/pgxs
1075 %attr(755,root,root) %{_pgmoduledir}/pgxs/config
1076 %{_pgmoduledir}/pgxs/src
1079 %defattr(644,root,root,755)
1080 %{_libdir}/libecpg.a
1081 %{_libdir}/libecpg_compat.a
1083 %{_libdir}/libpgtypes.a
1084 %{_libdir}/libpgport.a
1086 %files clients -f clients.lang
1087 %defattr(644,root,root,755)
1088 %attr(755,root,root) %{_bindir}/clusterdb
1089 %attr(755,root,root) %{_bindir}/createdb
1090 %attr(755,root,root) %{_bindir}/createlang
1091 %attr(755,root,root) %{_bindir}/createuser
1092 %attr(755,root,root) %{_bindir}/dropdb
1093 %attr(755,root,root) %{_bindir}/droplang
1094 %attr(755,root,root) %{_bindir}/dropuser
1095 %attr(755,root,root) %{_bindir}/pg_dump
1096 %attr(755,root,root) %{_bindir}/pg_dumpall
1097 %attr(755,root,root) %{_bindir}/pg_restore
1098 %attr(755,root,root) %{_bindir}/psql
1099 %attr(755,root,root) %{_bindir}/reindexdb
1100 %attr(755,root,root) %{_bindir}/vacuumdb
1102 %{_mandir}/man1/clusterdb.1*
1103 %{_mandir}/man1/createdb.1*
1104 %{_mandir}/man1/createlang.1*
1105 %{_mandir}/man1/createuser.1*
1106 %{_mandir}/man1/dropdb.1*
1107 %{_mandir}/man1/droplang.1*
1108 %{_mandir}/man1/dropuser.1*
1109 %{_mandir}/man1/pg_dump.1*
1110 %{_mandir}/man1/pg_dumpall.1*
1111 %{_mandir}/man1/pg_restore.1*
1112 %{_mandir}/man1/psql.1*
1113 %{_mandir}/man1/reindexdb.1*
1114 %{_mandir}/man1/vacuumdb.1*
1115 %{_mandir}/man7/*.7*
1117 %files module-plpgsql
1118 %defattr(644,root,root,755)
1119 %attr(755,root,root) %{_pgmoduledir}/plpgsql.so
1122 %files module-plperl
1123 %defattr(644,root,root,755)
1124 %attr(755,root,root) %{_pgmoduledir}/plperl.so
1128 %files module-plpython
1129 %defattr(644,root,root,755)
1130 %attr(755,root,root) %{_pgmoduledir}/plpython.so
1135 %defattr(644,root,root,755)
1136 %attr(755,root,root) %{_bindir}/pltcl_*
1137 %attr(755,root,root) %{_pgmoduledir}/pltcl.so
1142 %defattr(644,root,root,755)
1143 %attr(755,root,root) %{_bindir}/plphp_*
1144 %attr(755,root,root) %{_pgmoduledir}/plphp.so
1147 %files module-dblink
1148 %defattr(644,root,root,755)
1149 %doc contrib/dblink/README.dblink
1150 %attr(755,root,root) %{_pgmoduledir}/dblink.so
1151 %{_pgsqldir}/*dblink.sql
1154 %defattr(644,root,root,755)
1155 %doc contrib/lo/README.lo
1156 %attr(755,root,root) %{_pgmoduledir}/lo.so
1157 %{_pgsqldir}/*lo.sql
1159 %files module-pgcrypto
1160 %defattr(644,root,root,755)
1161 %doc contrib/pgcrypto/README*
1162 %attr(755,root,root) %{_pgmoduledir}/pgcrypto.so
1163 %{_pgsqldir}/*pgcrypto.sql
1165 %files module-tablefunc
1166 %defattr(644,root,root,755)
1167 %doc contrib/tablefunc/README.tablefunc
1168 %attr(755,root,root) %{_pgmoduledir}/tablefunc.so
1169 %{_pgsqldir}/*tablefunc.sql
1171 %files module-tsearch2
1172 %defattr(644,root,root,755)
1173 %doc contrib/tsearch2/README*
1174 %attr(755,root,root) %{_pgmoduledir}/tsearch2.so
1175 %{_pgsqldir}/*tsearch2.sql
1176 %{_pgsqldir}/russian.stop.utf8
1177 %{_pgsqldir}/thesaurus
1180 %files module-pg_trgm
1181 %defattr(644,root,root,755)
1182 %doc contrib/pg_trgm/README*
1183 %attr(755,root,root) %{_pgmoduledir}/pg_trgm.so
1184 %{_pgsqldir}/*pg_trgm.sql
1187 %defattr(644,root,root,755)
1188 %doc contrib/xml2/README*
1189 %attr(755,root,root) %{_pgmoduledir}/pgxml.so
1190 %{_pgsqldir}/*pgxml.sql