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