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