]> git.pld-linux.org Git - packages/postgresql.git/blob - postgresql.spec
1aba015f8339a35050ee18b60f1652f00cbd2434
[packages/postgresql.git] / postgresql.spec
1 #
2 # TODO:
3 # - pg_autovacuum init support? look at its readme file, please
4 #
5 # Conditional build:
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_without  php                     # disable PHP support
14 %bcond_with     absolute_dbpaths        # enable absolute paths to create database
15                                         # (disabled by default because it is a security risk)
16 %bcond_without  slony1                  # disable Slony-I replication system
17
18 %define         postgresql_version      8.0.1
19 %define         postgresql_release      2
20 %define         slony1_version  1.0.5
21 %define         slony1_release  1
22
23 Summary:        PostgreSQL Data Base Management System
24 Summary(de):    PostgreSQL Datenbankverwaltungssystem
25 Summary(es):    Gestor de Banco de Datos PostgreSQL
26 Summary(fr):    Sysème de gestion de base de données PostgreSQL
27 Summary(pl):    PostgreSQL - system bazodanowy
28 Summary(pt_BR): Gerenciador de Banco de Dados PostgreSQL
29 Summary(ru):    PostgreSQL - ÓÉÓÔÅÍÁ ÕÐÒÁ×ÌÅÎÉÑ ÂÁÚÁÍÉ ÄÁÎÎÙÈ
30 Summary(tr):    Veri Tabaný Yönetim Sistemi
31 Summary(uk):    PostgreSQL - ÓÉÓÔÅÍÁ ËÅÒÕ×ÁÎÎÑ ÂÁÚÁÍÉ ÄÁÎÉÈ
32 Summary(zh_CN): PostgreSQL ¿Í»§¶Ë³ÌÐòºÍ¿âÎļþ
33 Name:           postgresql
34 Version:        %{postgresql_version}
35 Release:        %{postgresql_release}
36 License:        BSD
37 Group:          Applications/Databases
38 Source0:        ftp://ftp.postgresql.org/pub/source/v%{postgresql_version}/%{name}-%{postgresql_version}.tar.bz2
39 # Source0-md5:  075ac81c865b0af865459260bf1ca890
40 ##Source0:      ftp://ftp.postgresql.org/pub/source/v%{version}beta/%{name}-%{version}%{beta}.tar.bz2
41 Source1:        %{name}.init
42 Source2:        pgsql-Database-HOWTO-html.tar.gz
43 # Source2-md5:  5b656ddf1db41965761f85204a14398e
44 Source3:        %{name}.sysconfig
45 Source4:        http://developer.postgresql.org/~wieck/slony1/download/slony1-%{slony1_version}.tar.gz
46 # Source4-md5:  66fcc0f53028101e4e0f969e5f47fe43
47 Source5:        slony1.init
48 Source6:        slony1.pgpass
49 Source7:        slony1.sysconfig
50 Source8:        http://www.commandprompt.com/files/plphp-8.x.tar.bz2
51 # Source8-md5:  d307e4ab8cb6900a1c290a5dde1bdeee
52 Patch0:         %{name}-conf.patch
53 Patch1:         %{name}-absolute_dbpaths.patch
54 Patch2:         %{name}-link.patch
55 Patch3:         %{name}-ecpg_link.patch
56 Patch4:         %{name}-ecpg-includedir.patch
57 Patch5:         %{name}-gram.patch
58 Patch6:         %{name}-ac.patch
59 Icon:           postgresql.xpm
60 URL:            http://www.postgresql.org/
61 BuildRequires:  autoconf
62 BuildRequires:  automake
63 #BuildRequires: bison >= 1.875  not needed for releases
64 BuildRequires:  flex
65 BuildRequires:  gettext-devel
66 %{?with_kerberos5:BuildRequires:        heimdal-devel}
67 BuildRequires:  libtool
68 BuildRequires:  ncurses-devel >= 5.0
69 BuildRequires:  openssl-devel >= 0.9.7d
70 BuildRequires:  pam-devel
71 %{?with_perl:BuildRequires:     perl-devel}
72 %if %{with php}
73 BuildRequires:  php-devel
74 %endif
75 %if %{with python}
76 BuildRequires:  python >= 1:2.3
77 BuildRequires:  python-devel >= 1:2.3
78 %endif
79 BuildRequires:  readline-devel >= 4.2
80 BuildRequires:  sed >= 4.0
81 %{?with_tcl:BuildRequires:      tcl-devel >= 8.4.3}
82 BuildRequires:  zlib-devel
83 PreReq:         rc-scripts
84 PreReq:         %{name}-clients = %{postgresql_version}-%{postgresql_release}
85 PreReq:         %{name}-libs = %{postgresql_version}-%{postgresql_release}
86 Requires(pre):  /usr/bin/getgid
87 Requires(pre):  /bin/id
88 Requires(pre):  /usr/sbin/groupadd
89 Requires(pre):  /usr/sbin/useradd
90 Requires(pre):  /usr/sbin/usermod
91 Requires(post,preun):   /sbin/chkconfig
92 Obsoletes:      postgresql-server
93 Obsoletes:      postgresql-test
94 BuildRoot:      %{tmpdir}/%{name}-%{postgresql_version}-root-%(id -u -n)
95
96 %define         _pgmoduledir    %{_libdir}/postgresql
97 %define         _pgsqldir       %{_datadir}/postgresql/contrib
98
99 %description
100 PostgreSQL Data Base Management System (formerly known as Postgres,
101 then as Postgres95).
102
103 PostgreSQL is an enhancement of the POSTGRES database management
104 system, a next-generation DBMS research prototype. While PostgreSQL
105 retains the powerful data model and rich data types of POSTGRES, it
106 replaces the PostQuel query language with an extended subset of SQL.
107 PostgreSQL is free and the complete source is available.
108
109 PostgreSQL development is being performed by a team of Internet
110 developers who all subscribe to the PostgreSQL development mailing
111 list. The current coordinator is Marc G. Fournier
112 (scrappy@postgreSQL.org). This team is now responsible for all current
113 and future development of PostgreSQL.
114
115 The authors of PostgreSQL 1.01 were Andrew Yu and Jolly Chen. Many
116 others have contributed to the porting, testing, debugging and
117 enhancement of the code. The original Postgres code, from which
118 PostgreSQL is derived, was the effort of many graduate students,
119 undergraduate students, and staff programmers working under the
120 direction of Professor Michael Stonebraker at the University of
121 California, Berkeley.
122
123 The original name of the software at Berkeley was Postgres. When SQL
124 functionality was added in 1995, its name was changed to Postgres95.
125 The name was changed at the end of 1996 to PostgreSQL.
126
127 PostgreSQL runs on Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD,
128 and most flavours of Unix.
129
130 %description -l de
131 PostgreSQL Datenbank-Managementsystem (früher als Postgres, dann als
132 Postgres95 bekannt).
133
134 PostgreSQL ist eine Verbesserung des POSTGRES-DB-Managementsystems,
135 ein DBMS-Forschungsprototyp der nächsten Generation. Während es das
136 leistungsfähige Datenmodell und die reichhaltigen Datentypen von
137 POSTGRES beibehält, ersetzt es die PostQuel-Abfragesprache durch ein
138 Subset von SQL. PostgreSQL ist gratis, der gesamte Quellcode ist
139 verfügbar.
140
141 Ein Team von Internet-Entwicklern befaßt sich mit PostgreSQL. Sie alle
142 sind auf der PostgreSQL-Entwickleradreßliste. Koordinator ist Marc G.
143 Fournier (scrappy@postgreSQL.org). Das Team ist verantwortlich für
144 alle aktuellen und künftigen Entwicklungen von PostgreSQL.
145
146 Die Autoren von PostgreSQL 1.01 waren Andrew Yu und Jolly Chen.
147 Zahlreiche andere haben zur Portierung, zum Testen, Debugging und zur
148 Verbesserung des Code beigetragen. Den Original-Postgres-Code, von dem
149 sich PostgreSQL ableitet, verdanken wir der Arbeit vieler Doktoranden,
150 Studenten und Programmierern unter der Leitung von Professor Michael
151 Stonebraker an der University of California, Berkeley.
152
153 Der ursprüngliche Name war Postgres. Als 1995 SQL-Funktionalität
154 hinzukam, wurde der Name in Postgres95 geändert. Ende 1996 schließlich
155 entschied man sich für PostgreSQL.
156
157 PostgreSQL läuft auf Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD
158 und den meisten Unix-Systemen.
159
160 %description -l es
161 Administrador de Banco de Datos PostgreSQL (conocido anteriormente
162 como Postgres, y después como Postgres95). PostgreSQL es una
163 continuación mejorada del Sistema Administrador de Banco de Datos
164 POSTGRES, que era un prototipo de pesquisa para un SGBD de nueva
165 generación. Mientras PostgreSQL mantiene el potente modelo de datos y
166 los varios tipos de datos del POSTGRES, substituye el lenguaje de
167 consulta PostQuel por un subconjunto extendido de la SQL. PostgreSQL
168 es libre y tiene los fuentes disponibles. El desarrollo del PostgreSQL
169 se ejecutado por un equipo de estudiosos de Internet, todos suscritos
170 en la lista de desarrollo del PostgreSQL. El coordinador actual es
171 Marc G. Fournier (scrappy@postgreSQL.org). Este equipo es ahora
172 responsable por el desarrollo actual y futuro del PostgreSQL.
173
174 %description -l fr
175 Système de gestion de bases de données PostgreSQL (D'abord nommé
176 Postgres, puis Postgres95).
177
178 PostgreSQL est une amélioration du système de gestion de bases de
179 données POSTGRES, un prototype de recherche de la génération suivant
180 DBMS. Tout en conservant le puissant modèle de donnée de et les types
181 de donée riches de Postgres, il remplace le langage de requêtes de
182 Postgres par un sous ensemble etendu de commandes SQL. PosrgreSQL est
183 libre, et ses sources sont disponibles.
184
185 Le développement de PostgreSQL est actuellement réalisé via internet
186 parune équipe de développeurs inscrits sur la mailing-list de
187 développement de PostgreSQL. Le coordinateur actuel est Marc G
188 Fournier (scrappy@postgreSQL.org). Cette équipe est responsable du
189 développemen actuel et à venir de PostgreSQL.
190
191 Les auteurs de PostgreSQL 1.01 étaient Andrew Yu et Jolly Chen.
192 Beaucoup d'autres ont contribué au portage, au test, au débogage et à
193 l'amélioration du code. Le code original de Postgres, duquel
194 PostgreSQL est dérivé, a été l'oeuvre d'étudiants de haut niveau, de
195 moins haut niveau, et de programmeurs travaillant sous la direction du
196 professeur Michael Stonebraker à l'université de Berkeley Californie.
197
198 Le nom original du logiciel était Postgres. Quand les fonctionnalitées
199 SQL furent ajoutées en 1995, son nom est devenu Postgres95. Il a été
200 rebaptisé PostgreSQL en 1996.
201
202 PostgreSQL tourne sur Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD,
203 et la plupart des Unix.
204
205 %description -l pl
206 System Zarz±dzania Baz± Danych PostgreSQL (dawniej znany jako
207 Postgres, nastêpnie jako Postgres95).
208
209 PostgreSQL jest rozszerzeniem systemu zarz±dzania baz danych POSTGRES,
210 prototypu DBMS nastêpnej generacji. Co prawda PostgreSQL odziedziczy³
211 model danych oraz bogaty zbiór ró¿nych typów danych, to jednak jêzyk
212 zapytañ PostQuel zosta³ zast±piony rozszerzonym SQL-em. PostgreSQL
213 jest wolnym oprogramowaniem i kody ¼ród³owe tego oprogramowania s± w
214 pe³ni dostêpne.
215
216 System PostgreSQL jest tworzony przez zespó³ ludzi, którzy s± zapisani
217 na listê dyskusyjn± dotycz±c± PostgreSQL-a. Obecnym koordynatorem jest
218 Marc G. Fournier (scrappy@postgreSQL.org). Wymieniony wy¿ej zespó³
219 jest odpowiedzialny za aktualny i przysz³y rozwój systemu PostgreSQL.
220
221 Autorami PostgreSQL-a 1.01 byli Andrew Yu oraz Jolly Chen. Wielu
222 innych pomaga³o przenosz±c na ró¿ne platformy, testuj±c, analizuj±c i
223 rozszerzaj±c kod. Oryginalny kod Postgres-a, na podstawie którego
224 PostgreSQL powsta³, by³ wysi³kiem wielu absolwentów, studentów oraz
225 zespo³u programistów, którzy pracowali pod kierunkiem profesora
226 Michaela Stonebrakera z Uniwersytetu Kalifornii w Berkeley.
227
228 Nazwa oryginalna oprogramowania tworzonego w Berkeley brzmia³a
229 Postgres. W 1995 roku dodano jêzyk zapytañ SQL i nazwê zmieniono na
230 Postgres95. W koñcu roku 1996 nazwê ostatecznie zmieniono na
231 PostgreSQL.
232
233 PostgreSQL mo¿e byæ uruchomiony pod nastêpuj±cymi systemami: Solaris,
234 SunOS, HPUX, AIX, Linux, Irix, FreeBSD i innymi systemami uniksowymi.
235
236 %description -l pt_BR
237 Gerenciador de Banco de Dados PostgreSQL (conhecido anteriormente como
238 Postgres, e depois como Postgres95).
239
240 O PostgreSQL é uma continuação melhorada do Sistema Gerenciador de
241 Banco de Dados POSTGRES, que era um protótipo de pesquisa para um SGBD
242 de nova geração. Enquanto o PostgreSQL mantém o poderoso modelo de
243 dados e os vários tipos de dados do POSTGRES, ele substitui a
244 linguagem de consulta PostQuel por um subconjunto estendido da SQL. O
245 PostgreSQL é livre e tem os fontes disponíveis.
246
247 O desenvolvimento do PostgreSQL está sendo executado por uma equipe de
248 desenvolvedores da Internet, todos subscritores da lista de
249 desenvolvimento do PostgreSQL. O coordenador atual é Marc G. Fournier
250 (scrappy@postgreSQL.org). Esta equipe é agora responsável pelo
251 desenvolvimento atual e futuro do PostgreSQL.
252
253 %description -l ru
254 PostgreSQL - ÓÉÓÔÅÍÁ ÕÐÒÁ×ÌÅÎÉÑ ÂÁÚÁÍÉ ÄÁÎÎÙÈ (ÐÒÅÖÄÅ ÉÚ×ÅÓÔÎÁÑ ËÁË
255 Postgres, ÐÏÔÏÍ ËÁË Postgres95).
256
257 PostgreSQL - ÜÔÏ ÒÁÓÛÉÒÅÎÎÁÑ ×ÅÒÓÉÑ ÓÉÓÔÅÍÙ ÕÐÒÁ×ÌÅÎÉÑ ÂÁÚÁÍÉ ÄÁÎÎÙÈ
258 POSTGRES, ÉÓÓÌÅÄÏ×ÁÔÅÌØÓËÏÇÏ ÐÒÏÔÏÔÉÐÁ DBMS ÓÌÅÄÕÀÝÅÊ ÇÅÎÅÒÁÃÉÉ.
259 óÏÈÒÁÎÑÑ ÍÏÝÎÕÀ ÍÏÄÅÌØ ÄÁÎÎÙÈ É ÂÏÇÁÔÙÊ ÎÁÂÏÒ ÔÉÐÏ× ÄÁÎÎÙÈ POSTGRES,
260 ÏÎÁ ÚÁÍÅÎÑÅÔ ÑÚÙË ÚÁÐÒÏÓÏ× PostQuel ÒÁÓÛÉÒÅÎÎÙÍ ÎÁÂÏÒÏÍ SQL.
261 PostgreSQL ÂÅÓÐÌÁÔÅΠɠÐÏÓÔÁ×ÌÑÅÔÓÑ × ×ÉÄÅ ÐÏÌÎÏÇÏ ËÏÍÐÌÅËÔÁ ÉÓÈÏÄÎÙÈ
262 ÔÅËÓÔÏ×.
263
264 PostgreSQL ÒÁÚÒÁÂÁÔÙ×ÁÌÓÑ ËÏÍÁÎÄÏÊ Internet-ÒÁÚÒÁÂÏÔÞÉËÏ×, ÐÏÄÐÉÓÁÎÎÙÈ
265 ÎÁ ÓÐÉÓÏË ÒÁÓÓÙÌËÉ, ÐÏÓ×ÑÝÅÎÎÙÊ ÒÁÚÒÁÂÏÔËÅ PostgreSQL. ÷ ÎÁÓÔÏÑÝÅÅ
266 ×ÒÅÍÑ ËÏÏÒÄÉÎÁÔÏÒÏÍ Ñ×ÌÑÅÔÓÑ Marc G. Fournier
267 (scrappy@postgreSQL.org). üÔÁ ËÏÍÁÎÄÁ × ÎÁÓÔÏÑÝÅÅ ×ÒÅÍÑ ÏÔ×ÅÞÁÅÔ ÚÁ
268 ×ÓÅ ÔÅËÕÝÉÅ É ÂÕÄÕÝÉÅ ÒÁÚÒÁÂÏÔËÉ PostgreSQL.
269
270 á×ÔÏÒÁÍÉ PostgreSQL 1.01 ÂÙÌÉ Andrew Yu É Jolly Chen. íÎÏÇÉÅ ×ÎÅÓÌÉ
271 Ó×ÏÊ ×ËÌÁÄ × ÐÏÒÔÉÒÏ×ÁÎÉÅ, ÔÅÓÔÉÒÏ×ÁÎÉÅ, ÏÔÌÁÄËÕ É ÕÌÕÞÛÅÎÉÅ ËÏÄÁ.
272 ïÒÉÇÉÎÁÌØÎÙÊ ËÏÄ Postgres, ÏÔ ËÏÔÏÒÏÇÏ ÐÒÏÉÚÏÛÅÌ PostgreSQL, ÂÙÌ
273 ÓÏÚÄÁΠÕÓÉÌÉÑÍÉ ÓÔÕÄÅÎÔÏ×, ÁÓÐÉÒÁÎÔÏ× É ÐÅÒÓÏÎÁÌÁ, ÒÁÂÏÔÁÀÝÅÇÏ ÐÏÄ
274 ÒÕËÏ×ÏÄÓÔ×ÏÍ ÐÒÏÆÅÓÓÏÒÁ Michael Stonebraker × University of
275 California, Berkeley.
276
277 ïÒÉÇÉÎÁÌØÎÏÅ ÎÁÚ×ÁÎÉÅ ðï × Berkeley ÂÙÌÏ Postgres. ëÏÇÄÁ × 1995 ÇÏÄÕ
278 ÂÙÌÁ ÄÏÂÁ×ÌÅÎÁ ÆÕÎËÃÉÏÎÁÌØÎÏÓÔØ SQL, ÎÁÚ×ÁÎÉÅ ÉÚÍÅÎÉÌÏÓØ ÎÁ
279 Postgres95. ÷ ËÏÎÃÅ 1996 ÇÏÄÁ ÏÎÏ ÅÝÅ ÒÁÚ ÉÚÍÅÎÉÌÏÓØ É ÔÅÐÅÒØ ÜÔÏ
280 PostgreSQL.
281
282 PostgreSQL ÒÁÂÏÔÁÅÔ ÎÁ Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD
283 É ÂÏÌØÛÉÎÓÔ×Å ÄÒÕÇÉÈ ÒÁÚÎÏ×ÉÄÎÏÓÔÅÊ Unix.
284
285 %description -l tr
286 PostgreSQL, POSTGRES'den türemiþ bir veri tabaný yönetim sistemidir
287 (DBMS). Güçlü veri modeli ve zengin POSTGRES veri tiplerini
288 desteklerken SQL'in geniþletilmiþ bir altkümesi yerine PostQuel
289 sorgulama dilini koyar.
290
291 %description -l uk
292 PostgreSQL - ÓÉÓÔÅÍÁ ËÅÒÕ×ÁÎÎÑ ÂÁÚÁÍÉ ÄÁÎÉÈ (ÒÁΦ۠צÄÏÍÁ ÑË Postgres,
293 ÐÏԦ͠ÑË Postgres95).
294
295 PostgreSQL - ÃÅ ÒÏÚÛÉÒÅÎÁ ×ÅÒӦѠÓÉÓÔÅÍÉ ËÅÒÕ×ÁÎÎÑ ÂÁÚÁÍÉ ÄÁÎÉÈ
296 POSTGRES, ÄÏÓ̦ÄÎÉÃØËÏÇÏ ÐÒÏÔÏÔÉÐÕ DBMS ÎÁÓÔÕÐÎϧ ÇÅÎÅÒÁæ§.
297 úÂÅÒ¦ÇÁÀÞÉ ÐÏÔÕÖÎÕ ÍÏÄÅÌØ ÄÁÎÉÈ ÔÁ ÂÁÇÁÔÉÊ ÎÁ¦ҠÔÉЦנÄÁÎÉÈ POSTGRES,
298 ×ÏÎÁ ÚÁͦÎÀ¤ ÍÏ×Õ ÚÁÐÉԦנPostQuel ÒÏÚÛÉÒÅÎÉÍ ÎÁÂÏÒÏÍ SQL. PostgreSQL
299 ÂÅÚËÏÛÔÏ×ÎÁ ÔÁ ÐÏÓÔÁ×ÌѤÔØÓÑ Õ ×ÉÇÌÑĦ ÐÏ×ÎÏÇÏ ËÏÍÐÌÅËÔÕ ×ÉȦÄÎÉÈ
300 ÔÅËÓÔ¦×.
301
302 PostgreSQL ÒÏÚÒÏÂÌѤÔØÓÑ ËÏÍÁÎÄÏÀ Internet-ÐÒÏÇÒÁͦÓÔ¦×, ÕÞÁÓÎÉ˦×
303 ÓÐÉÓËÕ ÒÏÚÓÉÌËÉ, ÐÒÉÓ×ÑÞÅÎÏÇÏ ÒÏÚÒÏÂæ PostgreSQL. îÁÒÁÚ¦
304 ËÏÏÒÄÉÎÁÔÏÒÏÍ ¤ Marc G. Fournier (scrappy@postgreSQL.org). ãÑ ËÏÍÁÎÄÁ
305 צÄÐÏצÄÁ¤ ÚÁ ×Ó¦ ÐÏÔÏÞΦ ÔÁ ÍÁÊÂÕÔΦ ÒÏÚÒÏÂËÉ PostgreSQL.
306
307 á×ÔÏÒÁÍÉ PostgreSQL 1.01 ÂÕÌÉ Andrew Yu ÔÁ Jolly Chen. âÁÇÁÔÏ ÌÀÄÅÊ
308 ×ÎÅÓÌÉ Óצʠ×ÎÅÓÏË × ÐÏÒÔÕ×ÁÎÎÑ, ÔÅÓÔÕ×ÁÎÎÑ, ×¦ÄÌÁÄËÕ ÔÁ ÐÏËÒÁÝÅÎÎÑ
309 ËÏÄÕ. ïÒÉǦÎÁÌØÎÉÊ ËÏÄ Postgres, ×¦Ä ÑËÏÇÏ ÐÏÈÏÄÉÔØ PostgreSQL, ÂÕ×
310 ÓÔ×ÏÒÅÎÉÊ ÚÕÓÉÌÌÑÍÉ ÓÔÕÄÅÎÔ¦×, ÁÓЦÒÁÎԦנÔÁ ÐÅÒÓÏÎÁÌÕ, ÑËÉÊ ÐÒÁÃÀ×Á×
311 ЦĠËÅÒ¦×ÎÉÃÔ×ÏÍ ÐÒÏÆÅÓÏÒÁ Michael Stonebraker × University of
312 California, Berkeley.
313
314 ïÒÉǦÎÁÌØÎÁ ÎÁÚ×Á ÐÒÏÇÒÁÍÉ × Berkeley ÂÕÌÁ Postgres. ëÏÌÉ × 1995 ÒÏæ
315 ÂÕÌÏ ÄÏÄÁÎÏ ÆÕÎËæÏÎÁÌØΦÓÔØ SQL, ÎÁÚ×Á ÚͦÎÉÌÁÓÑ ÎÁ Postgres95. ÷
316 ˦Îæ 1996 ÒÏËÕ ×ÏÎÁ ÝÅ ÒÁÚ ÚͦÎÉÌÁÓØ ¦ ÚÁÒÁÚ ÃÅ PostgreSQL.
317
318 PostgreSQL ÐÒÁÃÀ¤ ÎÁ Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD
319 ÔÁ Â¦ÌØÛÏÓÔ¦ ¦ÎÛÉÈ Ò¦ÚÎÏ×ÉĦנUnix.
320
321 %package devel
322 Summary:        PostgreSQL development header files and libraries
323 Summary(de):    PostgreSQL-Entwicklungs-Header-Dateien und Libraries
324 Summary(es):    Archivos de inclusión y bibliotecas PostgreSQL
325 Summary(fr):    En-têtes et bibliothèques de développement PostgreSQL
326 Summary(pl):    PostgreSQL - pliki nag³ówkowe i biblioteki
327 Summary(pt_BR): Arquivos de inclusão e bibliotecas para desenvolvimento com o PostgreSQL
328 Summary(ru):    PostgreSQL - ÈÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ ÒÁÚÒÁÂÏÔÞÉËÁ
329 Summary(tr):    PostgreSQL baþlýk dosyalarý ve kitaplýklar
330 Summary(uk):    PostgreSQL - ÈÅÄÅÒÉ ÔÁ Â¦Â̦ÏÔÅËÉ ÐÒÏÇÒÁͦÓÔÁ
331 Group:          Development/Libraries
332 Requires:       %{name}-libs = %{postgresql_version}-%{postgresql_release}
333
334 %description devel
335 This package contains header files and libraries required to compile
336 applications that are talking directly to the PostgreSQL backend
337 server.
338
339 %description devel -l de
340 Dieses Paket enthält die Header-Dateien und Libraries, die zum
341 Kompilieren von Applikationen notwendig sind, die direkt mit dem
342 PostgreSQL-Backend-Server kommunizieren.
343
344 %description devel -l es
345 Este paquete contiene archivos de inclusión y bibliotecas requeridas
346 para compilación de aplicativos que se comunican directamente con el
347 servidor backend PostgreSQL.
348
349 %description devel -l fr
350 Ce package contient les fichiers d'en-tête et les bibliothéques
351 nécessaires pour compiler des applications ayant des échanges directs
352 avec le serveur du backend PostgreSQL.
353
354 %description devel -l pl
355 Pakiet zawiera nag³ówki oraz biblioteki wymagane do kompilacji
356 aplikacji ³±cz±cych siê bezpo¶rednio z serwerem PostgreSQL.
357
358 %description devel -l pt_BR
359 Este pacote contém arquivos de inclusão e bibliotecas requeridas para
360 compilação de aplicativos que se comunicam diretamente com o servidor
361 backend PostgreSQL.
362
363 %description devel -l ru
364 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÈÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÓÂÏÒËÉ
365 ÐÒÉÌÏÖÅÎÉÊ, ÎÅÐÏÓÒÅÄÓÔ×ÅÎÎÏ ×ÚÁÉÍÏÄÅÊÓÔ×ÕÀÝÉÈ Ó ÓÅÒ×ÅÒÏÍ PostgreSQL.
366
367 %description devel -l tr
368 Bu paket, PostgreSQL sunucusuyla konuþacak yazýlýmlar geliþtirmek için
369 gereken baþlýk dosyalarýný ve kitaplýklarý içerir.
370
371 %description devel -l uk
372 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ÈÅÄÅÒÉ ÔÁ Â¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ
373 ÐÒÏÇÒÁÍ, Ñ˦ ÂÅÚÐÏÓÅÒÅÄÎØÏ ×ÚÁ¤ÍÏĦÀÔØ Ú ÓÅÒ×ÅÒÏÍ PostgreSQL.
374
375 %package backend-devel
376 Summary:        PostgreSQL backend development header files
377 Summary(pl):    PostgreSQL - pliki nag³ówkowe dla backendu
378 Group:          Development/Libraries
379 Requires:       %{name}-libs = %{postgresql_version}-%{postgresql_release}
380
381 %description backend-devel
382 This package contains header files required to compile functions that
383 could be loaded directly by backend
384
385 %description backend-devel -l pl
386 Pakiet zawiera nag³ówki wymagane do kompilacji funkcji ktore moga byc
387 bezposrednio ladowane przez beckend serwera PostgreSQL.
388
389 %package clients
390 Summary:        Clients needed to access a PostgreSQL server
391 Summary(es):    Clientes necesarios para acceder al servidor PostgreSQL
392 Summary(pl):    Klienci wymagani do dostêpu do serwera PostgreSQL
393 Summary(pt_BR): Clientes necessários para acessar o servidor PostgreSQL
394 Summary(ru):    ëÌÉÅÎÔÓËÉÅ ÐÒÏÇÒÁÍÍÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÄÏÓÔÕÐÁ Ë ÓÅÒ×ÅÒÕ PostgreSQL
395 Summary(uk):    ë̦¤ÎÔÓØ˦ ÐÒÏÇÒÁÍÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÄÏÓÔÕÐÕ ÄÏ ÓÅÒ×ÅÒÁ PostgreSQL
396 Group:          Applications/Databases
397 Requires:       %{name}-libs = %{postgresql_version}-%{postgresql_release}
398
399 %description clients
400 This package includes only the clients needed to access an PostgreSQL
401 server. The server is included in the main package. If all you need is
402 to connect to another PostgreSQL server, the this is the only package
403 you need to install. Clients include several command-line utilities
404 you can use to manage your databases on a remote PostgreSQL server.
405
406 %description clients -l es
407 Este paquete incluye solamente los clientes necesarios para acceder un
408 servidor PostgreSQL. El servidor está en el paquete principal.
409
410 %description clients -l pl
411 Pakiet zawiera programy klienckie potrzebne dla dostêpu do serwera
412 PostgreSQL oraz narzêdzia do zarz±dzania bazami dzia³aj±ce z linii
413 poleceñ. Serwer znajduje siê w g³ównym pakiecie.
414
415 %description clients -l pt_BR
416 Este pacote inclui somente os clientes necessários para acessar um
417 servidor PostgreSQL. O servidor está no pacote principal.
418
419 %description clients -l ru
420 üÔÏÔ ÐÁËÅÔ ×ËÌÀÞÁÅÔ ÔÏÌØËÏ ËÌÉÅÎÔÓËÉÅ ÐÒÏÇÒÁÍÍÙ É ÂÉÂÌÉÏÔÅËÉ,
421 ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÄÏÓÔÕÐÁ Ë ÓÅÒ×ÅÒÕ PostgreSQL. óÅÒ×ÅÒ ×ÈÏÄÉÔ × ÇÌÁ×ÎÙÊ
422 ÐÁËÅÔ. åÓÌÉ ×ÁÍ ÎÁÄÏ ÔÏÌØËÏ ÒÁÂÏÔÁÔØ Ó ÄÒÕÇÉÍ ÓÅÒ×ÅÒÏÍ PostgreSQL, ÜÔÏ
423 ÅÄÉÎÓÔ×ÅÎÎÙÊ ÐÁËÅÔ, ËÏÔÏÒÙÊ ×ÁÍ ÎÁÄÏ ÕÓÔÁÎÏ×ÉÔØ.
424
425 ôÅÐÅÒØ ÐÁËÅÔÙ Ó ÂÉÂÌÉÏÔÅËÁÍÉ ÄÌÑ ÒÁÚÎÙÈ ÑÚÙËÏ× ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ (C,
426 C++, Perl É Tcl) ÒÁÚÄÅÌÅÎÙ. üÔÏÔ ÐÁËÅÔ ×ËÌÀÞÁÅÔ ÔÏÌØËÏ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ
427 ÑÚÙËÁ C.
428
429 %description clients -l uk
430 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ Ô¦ÌØËÉ Ë̦¤ÎÔÓØ˦ ÐÒÏÇÒÁÍÉ ÔÁ Â¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ
431 ÄÌÑ ÄÏÓÔÕÐÕ ÄÏ ÓÅÒ×ÅÒÁ PostgreSQL. óÅÒ×ÅҠͦÓÔÉÔØÓÑ × ÇÏÌÏ×ÎÏÍÕ
432 ÐÁËÅÔ¦. ñËÝÏ ×ÁÍ ÐÏÔÒ¦ÂÎÏ ÐÒÁÃÀ×ÁÔÉ Ú ¦ÎÛÉÍ ÓÅÒ×ÅÒÏÍ PostgreSQL, ÃÅ
433 ¤ÄÉÎÉÊ ÐÁËÅÔ, ÑËÉÊ ×ÁÍ ÔÒÅÂÁ ×ÓÔÁÎÏ×ÉÔÉ.
434
435 ôÅÐÅÒ ÐÁËÅÔɠڠ¦Â̦ÏÔÅËÁÍÉ ÄÌÑ Ò¦ÚÎÉÈ ÍÏ× ÐÒÏÇÒÁÍÕ×ÁÎÎÑ (C, C++, Perl
436 ¦ Tcl) ÒÏÚĦÌÅΦ. ãÅÊ ÐÁËÅԠͦÓÔÉÔØ Ô¦ÌØËɠ¦Â̦ÏÔÅËÉ ÄÌÑ ÍÏ×É C.
437
438 %package doc
439 Summary:        Documentation for PostgreSQL
440 Summary(pl):    Dodatkowa dokumantacja dla PostgreSQL
441 Group:          Applications/Databases
442
443 %description doc
444 This package includes documentation and HOWTO for programmer, admin
445 etc., in HTML format.
446
447 %description doc -l pl
448 Pakiet ten zawiera dokumentacjê oraz HOWTO m.in. dla programistów,
449 administratorów w formacie HTML.
450
451 %package libs
452 Summary:        PostgreSQL libraries
453 Summary(es):    Biblioteca compartida del PostgreSQL
454 Summary(pl):    Biblioteki dzielone programu PostgreSQL
455 Summary(pt_BR): Biblioteca compartilhada do PostgreSQL
456 Summary(zh_CN): PostgreSQL ¿Í»§ËùÐèÒªµÄ¹²Ïí¿â
457 Group:          Libraries
458
459 %description libs
460 PostgreSQL shared libraries.
461
462 %description libs -l es
463 Este paquete contiene la biblioteca compartida para acceso al
464 PostgreSQL.
465
466 %description libs -l pl
467 Biblioteki dzielone programu PostgreSQL.
468
469 %description libs -l pt_BR
470 Este pacote contém a biblioteca compartilhada para acesso ao
471 PostgreSQL.
472
473 %package ecpg
474 Summary:        Embedded SQL in C interface
475 Summary(pl):    Interfejs wbudowanego SQL-a w jêzyk C
476 Group:          Libraries
477 Requires:       %{name}-libs = %{postgresql_version}-%{postgresql_release}
478
479 %description ecpg
480 Embedded SQL in C interface.
481
482 %description ecpg -l pl
483 Interfejs wbudowanego SQL-a w jêzyk C.
484
485 %package ecpg-devel
486 Summary:        Embedded SQL in C interface files
487 Summary(pl):    Pliki programistyczne interfejsu wbudowanego SQL-a w jêzyk C
488 Group:          Development/Libraries
489 Requires:       %{name}-devel = %{postgresql_version}-%{postgresql_release}
490 Requires:       %{name}-ecpg = %{postgresql_version}-%{postgresql_release}
491
492 %description ecpg-devel
493 Embedded SQL in C interface files.
494
495 %description ecpg-devel -l pl
496 Pliki programistyczne interfejsu wbudowanego SQL-a w jêzyk C.
497
498 %package static
499 Summary:        PostgreSQL static libraries
500 Summary(es):    Bibliotecas estaticas PostgreSQL
501 Summary(pl):    Biblioteki statyczne programu PostgreSQL
502 Summary(pt_BR): Bibliotecas estáticas PostgreSQL
503 Summary(ru):    óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ Ó PostgreSQL
504 Summary(uk):    óÔÁÔÉÞΦ Â¦Â̦ÏÔÅËÉ ÄÌÑ ÐÒÏÇÒÁÍÕ×ÁÎÎÑ Ú PostgreSQL
505 Group:          Development/Libraries
506 Requires:       %{name}-devel = %{postgresql_version}-%{postgresql_release}
507
508 %description static
509 PostgreSQL static libraries.
510
511 %description static -l es
512 Este paquete contiene bibliotecas estaticas requerida para compilación
513 de aplicativos que se comunican directamente con el servidor backend
514 PostgreSQL.
515
516 %description static -l pl
517 Biblioteki statyczne programu PostgreSQL.
518
519 %description static -l pt_BR
520 Este pacote contém as bibliotecas estáticas requeridas para compilação
521 de aplicativos que se comunicam diretamente com o servidor backend
522 PostgreSQL.
523
524 %description static -l ru
525 üÔÏ ÏÔÄÅÌØÎÙÊ ÐÁËÅÔ ÓÏ ÓÔÁÔÉÞÅÓËÉÍÉ ÂÉÂÌÉÏÔÅËÁÍÉ, ËÏÔÏÒÙÅ ÂÏÌØÛÅ ÎÅ
526 ×ÈÏÄÑÔ × %{name}-devel.
527
528 %description static -l uk
529 ãÅ ÏËÒÅÍÉÊ ÐÁËÅÔ Ú¦ ÓÔÁÔÉÞÎÉÍɠ¦Â̦ÏÔÅËÁÍÉ, Ñ˦ Â¦ÌØÛ ÎÅ ×ÈÏÄÑÔØ ×
530 %{name}-devel.
531
532 %package module-plpgsql
533 Summary:        PL/pgSQL - PostgreSQL procedural language
534 Summary(pl):    PL/pgSQL jêzyk proceduralny bazy danych PostgreSQL
535 Group:          Applications/Databases
536 Requires:       %{name} = %{postgresql_version}-%{postgresql_release}
537
538 %description module-plpgsql
539 From PostgreSQL documentation.
540
541 Postgres supports the definition of procedural languages. In the case
542 of a function or trigger procedure defined in a procedural language,
543 the database has no built-in knowledge about how to interpret the
544 function's source text. Instead, the task is passed to a handler that
545 knows the details of the language. The handler itself is a special
546 programming language function compiled into a shared object and loaded
547 on demand.
548
549 To enable PL/pgSQL procedural language for your database you have to
550 run createlang command.
551
552 %description module-plpgsql -l pl
553 Z dokumentacji PostgreSQL.
554
555 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
556 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
557 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
558 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
559 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
560 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
561 potrzeby.
562
563 Za pomoc± komendy createlang mo¿na dodaæ wsparcie dla jêzyka
564 proceduralnego PL/pgSQL dla swojej bazy danych.
565
566 %package module-plperl
567 Summary:        PL/perl - PostgreSQL procedural language
568 Summary(pl):    PL/perl jêzyk proceduralny bazy danych PostgreSQL
569 Group:          Applications/Databases
570 Requires:       %{name} = %{postgresql_version}-%{postgresql_release}
571 Requires:       perl(DynaLoader) = %(%{__perl} -MDynaLoader -e 'print DynaLoader->VERSION')
572
573 %description module-plperl
574 From PostgreSQL documentation.
575
576 Postgres supports the definition of procedural languages. In the case
577 of a function or trigger procedure defined in a procedural language,
578 the database has no built-in knowledge about how to interpret the
579 function's source text. Instead, the task is passed to a handler that
580 knows the details of the language. The handler itself is a special
581 programming language function compiled into a shared object and loaded
582 on demand.
583
584 To enable PL/Perl procedural language for your database you have to
585 run createlang command.
586
587 %description module-plperl -l pl
588 Z dokumentacji PostgreSQL.
589
590 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
591 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
592 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
593 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
594 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
595 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
596 potrzeby.
597
598 Za pomoc± komendy createlang mo¿na dodaæ wsparcie dla jêzyka
599 proceduralnego PL/Perl dla swojej bazy danych.
600
601 %package module-plphp
602 Summary:        PL/PHP - PostgreSQL procedural language
603 Summary(pl):    PL/PHP jêzyk proceduralny bazy danych PostgreSQL
604 Group:          Applications/Databases
605 Requires:       %{name} = %{postgresql_version}-%{postgresql_release}
606
607 %description module-plphp
608 From PostgreSQL documentation.
609
610 Postgres supports the definition of procedural languages. In the case
611 of a function or trigger procedure defined in a procedural language,
612 the database has no built-in knowledge about how to interpret the
613 function's source text. Instead, the task is passed to a handler that
614 knows the details of the language. The handler itself is a special
615 programming language function compiled into a shared object and loaded
616 on demand.
617
618 To enable PL/PHP procedural language for your database you have to
619 run createlang command.
620
621 %package module-plpython
622 Summary:        PL/Python - PostgreSQL procedural language
623 Summary(pl):    PL/Python jêzyk proceduralny bazy danych PostgreSQL
624 Group:          Applications/Databases
625 Requires:       %{name} = %{postgresql_version}-%{postgresql_release}
626 %pyrequires_eq  python
627
628 %description module-plpython
629 From PostgreSQL documentation.
630
631 Postgres supports the definition of procedural languages. In the case
632 of a function or trigger procedure defined in a procedural language,
633 the database has no built-in knowledge about how to interpret the
634 function's source text. Instead, the task is passed to a handler that
635 knows the details of the language. The handler itself is a special
636 programming language function compiled into a shared object and loaded
637 on demand.
638
639 To enable PL/Python procedural language for your database you have to
640 run createlang command.
641
642 %description module-plpython -l pl
643 Z dokumentacji PostgreSQL.
644
645 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
646 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
647 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
648 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
649 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
650 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
651 potrzeby.
652
653 Za pomoc± komendy createlang mo¿na dodaæ wsparcie dla jêzyka
654 proceduralnego PL/Python dla swojej bazy danych.
655
656 %package module-pltcl
657 Summary:        PL/Tcl - PostgreSQL procedural language
658 Summary(pl):    PL/Tcl - jêzyk proceduralny bazy danych PostgreSQL
659 Group:          Applications/Databases
660 Requires:       %{name} = %{postgresql_version}-%{postgresql_release}
661
662 %description module-pltcl
663 From PostgreSQL documentation.
664
665 Postgres supports the definition of procedural languages. In the case
666 of a function or trigger procedure defined in a procedural language,
667 the database has no built-in knowledge about how to interpret the
668 function's source text. Instead, the task is passed to a handler that
669 knows the details of the language. The handler itself is a special
670 programming language function compiled into a shared object and loaded
671 on demand.
672
673 To enable PL/Tcl procedural language for your database you have to run
674 createlang command.
675
676 %description module-pltcl -l pl
677 Z dokumentacji PostgreSQL.
678
679 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
680 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
681 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
682 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
683 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
684 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
685 potrzeby.
686
687 Za pomoc± komendy createlang mo¿na dodaæ wsparcie dla jêzyka
688 proceduralnego PL/Tcl dla swojej bazy danych.
689
690 %package module-pgcrypto
691 Summary:        Cryptographic functions for PostgreSQL
692 Summary(pl):    Funkcje kryptograficzne dla PostgreSQL
693 Group:          Applications/Databases
694 Requires:       %{name} = %{postgresql_version}-%{postgresql_release}
695
696 %description module-pgcrypto
697 Cryptographic functions for PostgreSQL.
698
699 %description module-pgcrypto -l pl
700 Funkcje kryptograficzne dla PostgreSQL.
701
702 %package module-tsearch2
703 Summary:        Full text extension for PostgreSQL
704 Summary(pl):    Rozszerzenie pe³notekstowe dla PostgreSQL-a
705 Group:          Applications/Databases
706 Requires:       %{name} = %{postgresql_version}-%{postgresql_release}
707
708 %description module-tsearch2
709 Implementation of a new data type tsvector - a searchable data type
710 with indexed access:
711 http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/
712
713 %description module-tsearch2 -l pl
714 Implementacja nowego typu danych tsvector - typu danych podlegaj±cego
715 przeszukiwaniu z dostêpem poprzez indeksy:
716 http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/
717
718 %package -n slony1
719 Summary:        Slony-I - a "master to multiple slaves" replication system for PostgreSQL
720 Summary(pl):    Slony-I - system replikacji dla PostgreSQL
721 Version:        %{slony1_version}
722 Release:        %{slony1_release}@%{postgresql_version}_%{postgresql_release}
723 URL:            http://slony.info/
724 Group:          Applications/Databases
725 Requires:       %{name} = %{postgresql_version}-%{postgresql_release}
726 Requires:       %{name}-libs = %{postgresql_version}-%{postgresql_release}
727
728 %description -n slony1
729 Slony-I is a "master to multiple slaves" replication system with
730 cascading and failover.
731
732 The big picture for the development of Slony-I is a master-slave
733 system that includes all features and capabilities needed to replicate
734 large databases to a reasonably limited number of slave systems.
735
736 Slony-I is a system for data centers and backup sites, where the
737 normal mode of operation is that all nodes are available. 
738
739 %description -n slony1 -l pl
740 Slony-I jest systemem replikacji dla PostgreSQL. Pozwala na replikacjê
741 typu "jeden serwer g³owny, wiele serwerów pomocniczych".
742
743 G³ówn± zalet± Slony-I jest system "master-slave". Zawiera on wszelk±
744 funkcjonalno¶æ potrzebn± do replikowania du¿ych baz danych na
745 okre¶lon± ilo¶æ serwerów pomocniczych lub zastêpczych.
746
747 Slony-I jest przeznaczony dla systemów, gdzie normalny tryb pracy
748 wymaga aby zarówno serwer g³ówny jak i wszystkie serwery pomocnicze
749 by³y ca³y czas operacyjne.
750
751 %prep
752 %setup -q -a4 -a8
753 %patch0 -p1
754 %{?with_absolute_dbpaths:%patch1 -p1}
755 %patch2 -p1
756 %patch3 -p1
757 %patch4 -p1
758 %patch5 -p1
759 #patch6 -p1     needed for glibc2.3.4 + gcc4
760
761 %if %{with php}
762 patch -p1 < plphp.patch
763 %endif
764
765 tar xzf doc/man*.tar.gz
766
767 mkdir doc/unpacked
768 tar zxf doc/postgres.tar.gz -C doc/unpacked
769
770 # Erase all CVS dirs
771 #find contrib -type d -name CVS -exec rm -rf {} \;
772
773 %build
774 %{__aclocal} -I config
775 %{__autoconf}
776 %configure \
777         CFLAGS="%{rpmcflags} -DNEED_REENTRANT_FUNCS" \
778         --disable-rpath \
779         --enable-depend \
780         --enable-integer-datetimes \
781         %{?with_pgsql_locale:--enable-locale} \
782         %{?with_pgsql_multibyte:--enable-multibyte} \
783         --enable-nls \
784         --enable-recode \
785         --enable-syslog \
786         --enable-thread-safety \
787         --enable-unicode-conversion \
788         --with-CXX \
789         %{?with_kerberos5:--with-krb5} \
790         --with-openssl \
791         --with-pam \
792         %{?with_perl:--with-perl} \
793         %{?with_php:--with-php=/usr/include/php} \
794         %{?with_python:--with-python} \
795         %{?with_tcl:--with-tcl} \
796         --with-x \
797         --without-docdir 
798
799 %{__make}
800 %{__make} -C contrib/pg_autovacuum
801 %{__make} -C contrib/pgcrypto
802 %{__sed} -i 's:contrib/::g' contrib/tsearch2/tsearch.sql.in
803 %{__make} -C contrib/tsearch2
804 %{__make} -C src/tutorial \
805         NO_PGXS=1
806 %ifnarch sparc sparcv9 sparc64 alpha
807 %{?with_tests:%{__make} check}
808 %endif
809
810 %if %{with slony1}
811 cd slony1-%{slony1_version}
812 install /usr/share/automake/config.* config
813 %configure \
814         --with-pgsourcetree=`pwd`/..
815 %{__make}
816 cd ..
817 %endif
818
819 %if %{with php}
820 cd src/pl/plphp
821 %{__make}
822 cd ../../../
823 %endif
824
825 %install
826 rm -rf $RPM_BUILD_ROOT
827 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{rc.d/init.d,sysconfig}} \
828         $RPM_BUILD_ROOT{/var/{lib/pgsql,log},%{_pgsqldir}} \
829         $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} \
830         $RPM_BUILD_ROOT%{_mandir} \
831         $RPM_BUILD_ROOT/home/services/postgres
832
833 install src/tutorial/*.sql $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
834
835 %{__make} install \
836         DESTDIR=$RPM_BUILD_ROOT
837
838 %if %{with perl}
839 %{__make} install -C src/pl/plperl \
840         DESTDIR=$RPM_BUILD_ROOT
841 %endif
842
843 %{__make} -C contrib/pg_autovacuum install \
844         DESTDIR=$RPM_BUILD_ROOT
845
846 %{__make} -C contrib/pgcrypto install \
847         DESTDIR=$RPM_BUILD_ROOT
848
849 %{__make} -C contrib/tsearch2 install \
850         DESTDIR=$RPM_BUILD_ROOT
851
852 %if %{with slony1}
853 %{__make} install -C slony1-%{slony1_version} \
854         DESTDIR=$RPM_BUILD_ROOT
855 mkdir $RPM_BUILD_ROOT/home/services/slony1
856 install %{SOURCE7} $RPM_BUILD_ROOT/etc/sysconfig/slony1
857 install %{SOURCE6} $RPM_BUILD_ROOT/home/services/slony1/.pgpass
858 install %{SOURCE5} $RPM_BUILD_ROOT/etc/rc.d/init.d/slony1
859 %endif
860
861 %if %{with php}
862 cd src/pl/plphp
863 %{__make} install \
864         DESTDIR=$RPM_BUILD_ROOT
865 cd ../../../
866 %endif
867
868 touch $RPM_BUILD_ROOT/var/log/pgsql
869
870 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/postgresql
871 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/postgresql
872
873 install -d howto
874 ( cd howto
875         tar xzf %{SOURCE2}
876 )
877
878 %py_comp $RPM_BUILD_ROOT%{py_libdir}
879 %py_ocomp $RPM_BUILD_ROOT%{py_libdir}
880
881 # find locales
882 for f in libpq pg_controldata pg_dump pg_resetxlog pgscripts postgres psql initdb pg_ctl pg_config; do
883         %find_lang $f
884 done
885 # merge locales
886 cat pgscripts.lang pg_resetxlog.lang postgres.lang pg_controldata.lang > main.lang
887 cat pg_dump.lang psql.lang initdb.lang pg_ctl.lang > clients.lang
888
889 # Remove Contrib documentation. We use macro %doc
890 rm -rf $RPM_BUILD_ROOT/contrib
891
892 %clean
893 rm -rf $RPM_BUILD_ROOT
894
895 %pre
896 PG_DB_CLUSTERS=""
897 if [ -f /etc/sysconfig/postgresql ]; then
898         . /etc/sysconfig/postgresql
899         if [ -z "$PG_DB_CLUSTERS" -a -n "$POSTGRES_DATA_DIR" ]; then
900                 PG_DB_CLUSTERS="$POSTGRES_DATA_DIR"
901         fi
902 fi
903 foundold=0
904 for pgdir in $PG_DB_CLUSTERS; do
905         if [ -f $pgdir/PG_VERSION ]; then
906                 if [ `cat $pgdir/PG_VERSION` != '8.0' ]; then
907                         echo "Found database(s) in older, incompatible format in cluster $pgdir."
908                         foundold=1
909                 fi
910         fi
911 done
912 if [ "$foundold" = "1" ]; then
913         echo
914         echo "Dump all data from clusters mentioned above (using pg_dump or pg_dumpall)"
915         echo "and clean (or rename) those directories; then upgrade postgresql and"
916         echo "restore all data (using pg_restore or psql)."
917         echo "Remember to stop the daemon before upgrading!"
918         echo
919         echo "Warning for upgrade from version *before* 7.2."
920         echo "Please note, that postgresql module path changed from"
921         echo "/usr/lib/pgsql/module to /usr/lib/postgresql. Change the path"
922         echo "in dump file before restore."
923         echo
924         echo "Warning for upgrade from version *before* 7.3."
925         echo "Reading following webpage is encouraged:"
926         echo "http://www.ca.postgresql.org/docs/momjian/upgrade_tips_7.3."
927         exit 1
928 fi
929
930 if [ -n "`/usr/bin/getgid postgres`" ]; then
931         if [ "`/usr/bin/getgid postgres`" != "88" ]; then
932                 echo "Error: group postgres doesn't have gid=88. Correct this before installing postgresql." 1>&2
933                 exit 1
934         fi
935 else
936         /usr/sbin/groupadd -g 88 -r postgres
937 fi
938 if [ -n "`/bin/id -u postgres 2>/dev/null`" ]; then
939         if [ "`/bin/id -u postgres 2>/dev/null`" != "88" ]; then
940                 echo "Error: user postgres doesn't have uid=88. Correct this before installing postgresql." 1>&2
941                 exit 1
942         fi
943         /usr/sbin/usermod -d /home/services/postgres postgres
944 else
945         /usr/sbin/useradd -M -o -r -u 88 \
946                 -d /home/services/postgres -s /bin/sh -g postgres \
947                 -c "PostgreSQL Server" postgres
948 fi
949
950 %post
951 /sbin/chkconfig --add postgresql
952 if [ -f /var/lock/subsys/postgresql ]; then
953         /etc/rc.d/init.d/postgresql restart >&2 || :
954 else
955         echo "Run \"/etc/rc.d/init.d/postgresql start\" to start postgresql server."
956 fi
957
958 %preun
959 if [ "$1" = "0" ]; then
960         if [ -f /var/lock/subsys/postgresql ]; then
961                 /etc/rc.d/init.d/postgresql stop
962         fi
963         /sbin/chkconfig --del postgresql
964 fi
965
966 %post   libs -p /sbin/ldconfig
967 %postun libs -p /sbin/ldconfig
968
969 %post   ecpg -p /sbin/ldconfig
970 %postun ecpg -p /sbin/ldconfig
971
972 %pre -n slony1
973 if [ -n "`/usr/bin/getgid slony1`" ]; then
974         if [ "`/usr/bin/getgid slony1`" != "131" ]; then
975                 echo "Error: group slony1 doesn't have gid=131. Correct this before installing slony1." 1>&2
976                 exit 1
977         fi
978 else
979         /usr/sbin/groupadd -g 131 -r slony1
980 fi
981 if [ -n "`/bin/id -u slony1 2>/dev/null`" ]; then
982         if [ "`/bin/id -u slony1 2>/dev/null`" != "131" ]; then
983                 echo "Error: user postgres doesn't have uid=131. Correct this before installing slony1." 1>&2
984                 exit 1
985         fi
986 else
987         /usr/sbin/useradd -M -o -r -u 131 \
988                 -d /home/services/slony1 -s /bin/sh -g slony1 \
989                 -c "Slony-I Replicator" slony1
990 fi
991
992 %post -n slony1
993 /sbin/chkconfig --add slony1
994 if [ -f /var/lock/subsys/slony1 ]; then
995         /etc/rc.d/init.d/slony1 restart >&2 || :
996 else
997         echo "Run \"/etc/rc.d/init.d/slony1 start\" to start slony1 replicator."
998 fi
999
1000 %preun -n slony1
1001 if [ "$1" = "0" ]; then
1002         if [ -f /var/lock/subsys/slony1 ]; then
1003                 /etc/rc.d/init.d/slony1 stop
1004         fi
1005         /sbin/chkconfig --del slony1
1006 fi
1007
1008 %files -f main.lang
1009 %defattr(644,root,root,755)
1010 %doc COPYRIGHT README HISTORY doc/{FAQ*,README*,bug.template}
1011 %doc contrib/pg_autovacuum/README*
1012 %attr(754,root,root) /etc/rc.d/init.d/postgresql
1013 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/postgresql
1014
1015 %attr(755,root,root) %{_bindir}/initdb
1016 %attr(755,root,root) %{_bindir}/ipcclean
1017 %attr(755,root,root) %{_bindir}/pg_autovacuum
1018 %attr(755,root,root) %{_bindir}/pg_controldata
1019 %attr(755,root,root) %{_bindir}/pg_ctl
1020 %attr(755,root,root) %{_bindir}/pg_resetxlog
1021 %attr(755,root,root) %{_bindir}/postgres
1022 %attr(755,root,root) %{_bindir}/postmaster
1023
1024 %attr(755,root,root) %{_pgmoduledir}/ascii*
1025 %attr(755,root,root) %{_pgmoduledir}/cyrillic*
1026 %attr(755,root,root) %{_pgmoduledir}/euc*
1027 %attr(755,root,root) %{_pgmoduledir}/latin*
1028 %attr(755,root,root) %{_pgmoduledir}/utf*
1029
1030 %dir %{_pgsqldir}
1031 %dir %{_datadir}/postgresql
1032 %dir %{_datadir}/postgresql/timezone
1033 %{_datadir}/postgresql/*.bki
1034 %{_datadir}/postgresql/*.sample
1035 %{_datadir}/postgresql/*.description
1036 %{_datadir}/postgresql/*.sql
1037 %{_datadir}/postgresql/*.txt
1038 %{_datadir}/postgresql/timezone/*
1039
1040 %attr(700,postgres,postgres) /home/services/postgres
1041 %attr(700,postgres,postgres) %dir /var/lib/pgsql
1042 %attr(640,postgres,postgres) %config(noreplace) %verify(not md5 mtime size) /var/log/pgsql
1043
1044 %{_mandir}/man1/initdb.1*
1045 %{_mandir}/man1/ipcclean.1*
1046 %{_mandir}/man1/pg_controldata.1*
1047 %{_mandir}/man1/pg_ctl.1*
1048 %{_mandir}/man1/pg_resetxlog.1*
1049 %{_mandir}/man1/postgres.1*
1050 %{_mandir}/man1/postmaster.1*
1051
1052 %files doc
1053 %defattr(644,root,root,755)
1054 %doc doc/unpacked/* doc/src/FAQ howto
1055 %{_examplesdir}/%{name}-%{version}
1056
1057 %files libs -f libpq.lang
1058 %defattr(644,root,root,755)
1059 %attr(755,root,root) %{_libdir}/libpq.so.*.*
1060 %dir %{_pgmoduledir}
1061
1062 %files ecpg
1063 %defattr(644,root,root,755)
1064 %attr(755,root,root) %{_bindir}/ecpg
1065 %attr(755,root,root) %{_libdir}/libecpg.so.*.*
1066 %attr(755,root,root) %{_libdir}/libecpg_compat.so.*.*
1067 %attr(755,root,root) %{_libdir}/libpgtypes.so.*.*
1068 %{_mandir}/man1/ecpg.1*
1069
1070 %files ecpg-devel
1071 %defattr(644,root,root,755)
1072 %attr(755,root,root) %{_libdir}/libecpg.so
1073 %attr(755,root,root) %{_libdir}/libecpg_compat.so
1074 %attr(755,root,root) %{_libdir}/libpgtypes.so
1075 %{_includedir}/ecpg
1076
1077 %files devel -f pg_config.lang
1078 %defattr(644,root,root,755)
1079 %attr(755,root,root) %{_bindir}/pg_config
1080 %attr(755,root,root) %{_libdir}/libpq.so
1081 %dir %{_includedir}/postgresql
1082 %{_includedir}/libpq-fe.h
1083 %{_includedir}/pg_config.h
1084 %{_includedir}/pg_config_manual.h
1085 %{_includedir}/pg_config_os.h
1086 %{_includedir}/postgres_ext.h
1087 %dir %{_includedir}/postgresql/internal
1088 %{_includedir}/postgresql/internal/c.h
1089 %{_includedir}/postgresql/internal/libpq-int.h
1090 %{_includedir}/postgresql/internal/port.h
1091 %{_includedir}/postgresql/internal/postgres_fe.h
1092 %{_includedir}/postgresql/internal/pqexpbuffer.h
1093 %{_includedir}/postgresql/internal/libpq
1094 %{_includedir}/libpq
1095 %{_mandir}/man1/pg_config.1*
1096
1097 %files backend-devel
1098 %defattr(644,root,root,755)
1099 %{_includedir}/postgresql/server
1100 %dir %{_pgmoduledir}/pgxs
1101 %attr(755,root,root) %{_pgmoduledir}/pgxs/config
1102 %{_pgmoduledir}/pgxs/src
1103
1104 %files static
1105 %defattr(644,root,root,755)
1106 %{_libdir}/libecpg.a
1107 %{_libdir}/libecpg_compat.a
1108 %{_libdir}/libpq.a
1109 %{_libdir}/libpgtypes.a
1110 %{_libdir}/libpgport.a
1111
1112 %files clients -f clients.lang
1113 %defattr(644,root,root,755)
1114 %attr(755,root,root) %{_bindir}/clusterdb
1115 %attr(755,root,root) %{_bindir}/createdb
1116 %attr(755,root,root) %{_bindir}/createlang
1117 %attr(755,root,root) %{_bindir}/createuser
1118 %attr(755,root,root) %{_bindir}/dropdb
1119 %attr(755,root,root) %{_bindir}/droplang
1120 %attr(755,root,root) %{_bindir}/dropuser
1121 %attr(755,root,root) %{_bindir}/pg_dump
1122 %attr(755,root,root) %{_bindir}/pg_dumpall
1123 %attr(755,root,root) %{_bindir}/pg_restore
1124 %attr(755,root,root) %{_bindir}/psql
1125 %attr(755,root,root) %{_bindir}/vacuumdb
1126
1127 %{_mandir}/man1/clusterdb.1*
1128 %{_mandir}/man1/createdb.1*
1129 %{_mandir}/man1/createlang.1*
1130 %{_mandir}/man1/createuser.1*
1131 %{_mandir}/man1/dropdb.1*
1132 %{_mandir}/man1/droplang.1*
1133 %{_mandir}/man1/dropuser.1*
1134 %{_mandir}/man1/pg_dump.1*
1135 %{_mandir}/man1/pg_dumpall.1*
1136 %{_mandir}/man1/pg_restore.1*
1137 %{_mandir}/man1/psql.1*
1138 %{_mandir}/man1/vacuumdb.1*
1139 %{_mandir}/man7/*.7*
1140
1141 %files module-plpgsql
1142 %defattr(644,root,root,755)
1143 %attr(755,root,root) %{_pgmoduledir}/plpgsql.so
1144
1145 %if %{with perl}
1146 %files module-plperl
1147 %defattr(644,root,root,755)
1148 %attr(755,root,root) %{_pgmoduledir}/plperl.so
1149 %endif
1150
1151 %if %{with python}
1152 %files module-plpython
1153 %defattr(644,root,root,755)
1154 %attr(755,root,root) %{_pgmoduledir}/plpython.so
1155 %endif
1156
1157 %if %{with tcl}
1158 %files module-pltcl
1159 %defattr(644,root,root,755)
1160 %attr(755,root,root) %{_bindir}/pltcl_*
1161 %attr(755,root,root) %{_pgmoduledir}/pltcl.so
1162 %endif
1163
1164 %files module-pgcrypto
1165 %defattr(644,root,root,755)
1166 %doc contrib/pgcrypto/README*
1167 %attr(755,root,root) %{_pgmoduledir}/pgcrypto.so
1168 %{_pgsqldir}/pgcrypto.sql
1169
1170 %files module-tsearch2
1171 %defattr(644,root,root,755)
1172 %doc contrib/tsearch2/README*
1173 %attr(755,root,root) %{_pgmoduledir}/tsearch2.so
1174 %{_pgsqldir}/tsearch2.sql
1175 %{_pgsqldir}/untsearch2.sql
1176 %{_pgsqldir}/*.stop
1177
1178 %if %{with slony1}
1179 %files -n slony1
1180 %defattr(644,root,root,755)
1181 %doc slony1-%{slony1_version}/doc/howto/*
1182 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/slony1
1183 %attr(754,root,root) /etc/rc.d/init.d/slony1
1184 %attr(755,root,root) %{_bindir}/slon
1185 %attr(755,root,root) %{_bindir}/slonik
1186 %attr(750,slony1,slony1) %dir /home/services/slony1
1187 %attr(600,slony1,slony1) /home/services/slony1/.pgpass
1188 %attr(755,root,root) %{_pgmoduledir}/slony1_funcs.so
1189 %attr(755,root,root) %{_pgmoduledir}/xxid.so
1190 %endif
This page took 0.167707 seconds and 3 git commands to generate.