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