]> git.pld-linux.org Git - packages/postgresql.git/blob - postgresql.spec
- unbroken tsearch2 dicts path for postgresql 8.0.x (change was OK for 7.4.x)
[packages/postgresql.git] / postgresql.spec
1 #
2 # TODO:
3 # - plphp has no files section
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     php                     # enable PHP support
14 %bcond_with     absolute_dbpaths        # enable absolute paths to create database
15                                         # (disabled by default because it is a security risk)
16
17 Summary:        PostgreSQL Data Base Management System
18 Summary(de):    PostgreSQL Datenbankverwaltungssystem
19 Summary(es):    Gestor de Banco de Datos PostgreSQL
20 Summary(fr):    Sysème de gestion de base de données PostgreSQL
21 Summary(pl):    PostgreSQL - system bazodanowy
22 Summary(pt_BR): Gerenciador de Banco de Dados PostgreSQL
23 Summary(ru):    PostgreSQL - ÓÉÓÔÅÍÁ ÕÐÒÁ×ÌÅÎÉÑ ÂÁÚÁÍÉ ÄÁÎÎÙÈ
24 Summary(tr):    Veri Tabaný Yönetim Sistemi
25 Summary(uk):    PostgreSQL - ÓÉÓÔÅÍÁ ËÅÒÕ×ÁÎÎÑ ÂÁÚÁÍÉ ÄÁÎÉÈ
26 Summary(zh_CN): PostgreSQL ¿Í»§¶Ë³ÌÐòºÍ¿âÎļþ
27 Name:           postgresql
28 Version:        8.1.4
29 Release:        1
30 License:        BSD
31 Group:          Applications/Databases
32 Source0:        ftp://ftp6.pl.postgresql.org/pub/postgresql/source/v%{version}/%{name}-%{version}.tar.bz2
33 # Source0-md5:  a65bdc5d833169d28bf6fbaaa8d57fcf
34 ##Source0:      ftp://ftp.postgresql.org/pub/source/v%{version}beta/%{name}-%{version}%{beta}.tar.bz2
35 Source1:        %{name}.init
36 Source2:        pgsql-Database-HOWTO-html.tar.gz
37 # Source2-md5:  5b656ddf1db41965761f85204a14398e
38 Source3:        %{name}.sysconfig
39 Source8:        http://www.commandprompt.com/files/plphp-8.x.tar.bz2
40 # Source8-md5:  d307e4ab8cb6900a1c290a5dde1bdeee
41 Patch0:         %{name}-conf.patch
42 Patch1:         %{name}-absolute_dbpaths.patch
43 Patch2:         %{name}-link.patch
44 Patch3:         %{name}-ecpg_link.patch
45 Patch4:         %{name}-ecpg-includedir.patch
46 Patch5:         %{name}-ac.patch
47 Patch6:         %{name}-pg_ctl-fix.patch
48 URL:            http://www.postgresql.org/
49 BuildRequires:  autoconf
50 BuildRequires:  automake
51 #BuildRequires: bison >= 1.875  not needed for releases
52 BuildRequires:  flex
53 BuildRequires:  gettext-devel
54 %{?with_kerberos5:BuildRequires:        heimdal-devel >= 0.7}
55 BuildRequires:  libtool
56 BuildRequires:  ncurses-devel >= 5.0
57 BuildRequires:  openssl-devel >= 0.9.7d
58 BuildRequires:  pam-devel
59 %{?with_perl:BuildRequires:     perl-devel}
60 %if %{with php}
61 BuildRequires:  php-devel >= 3:5.0.0
62 BuildRequires:  rpmbuild(macros) >= 1.238
63 %endif
64 %if %{with python}
65 BuildRequires:  python >= 1:2.3
66 BuildRequires:  python-devel >= 1:2.3
67 BuildRequires:  python-modules >= 1:2.3
68 %endif
69 BuildRequires:  readline-devel >= 4.2
70 BuildRequires:  rpmbuild(macros) >= 1.268
71 %{?with_tcl:BuildRequires:      tcl-devel >= 8.4.3}
72 BuildRequires:  zlib-devel
73 Requires(post,preun):   /sbin/chkconfig
74 Requires(pre):  /bin/id
75 Requires(pre):  /usr/bin/getgid
76 Requires(pre):  /usr/sbin/groupadd
77 Requires(pre):  /usr/sbin/useradd
78 Requires(pre):  /usr/sbin/usermod
79 Requires:       %{name}-clients = %{version}-%{release}
80 Requires:       %{name}-libs = %{version}-%{release}
81 Requires:       rc-scripts
82 Obsoletes:      postgresql-server
83 Obsoletes:      postgresql-test
84 BuildRoot:      %{tmpdir}/%{name}-%{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 = %{version}-%{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}-devel = %{version}-%{release}
370 Requires:       %{name}-libs = %{version}-%{release}
371
372 %description backend-devel
373 This package contains header files required to compile functions that
374 could be loaded directly by backend
375
376 %description backend-devel -l pl
377 Pakiet zawiera nag³ówki wymagane do kompilacji funkcji ktore moga byc
378 bezposrednio ladowane przez beckend serwera PostgreSQL.
379
380 %package clients
381 Summary:        Clients needed to access a PostgreSQL server
382 Summary(es):    Clientes necesarios para acceder al servidor PostgreSQL
383 Summary(pl):    Klienci wymagani do dostêpu do serwera PostgreSQL
384 Summary(pt_BR): Clientes necessários para acessar o servidor PostgreSQL
385 Summary(ru):    ëÌÉÅÎÔÓËÉÅ ÐÒÏÇÒÁÍÍÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÄÏÓÔÕÐÁ Ë ÓÅÒ×ÅÒÕ PostgreSQL
386 Summary(uk):    ë̦¤ÎÔÓØ˦ ÐÒÏÇÒÁÍÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÄÏÓÔÕÐÕ ÄÏ ÓÅÒ×ÅÒÁ PostgreSQL
387 Group:          Applications/Databases
388 Requires:       %{name}-libs = %{version}-%{release}
389
390 %description clients
391 This package includes only the clients needed to access an PostgreSQL
392 server. The server is included in the main package. If all you need is
393 to connect to another PostgreSQL server, the this is the only package
394 you need to install. Clients include several command-line utilities
395 you can use to manage your databases on a remote PostgreSQL server.
396
397 %description clients -l es
398 Este paquete incluye solamente los clientes necesarios para acceder un
399 servidor PostgreSQL. El servidor está en el paquete principal.
400
401 %description clients -l pl
402 Pakiet zawiera programy klienckie potrzebne dla dostêpu do serwera
403 PostgreSQL oraz narzêdzia do zarz±dzania bazami dzia³aj±ce z linii
404 poleceñ. Serwer znajduje siê w g³ównym pakiecie.
405
406 %description clients -l pt_BR
407 Este pacote inclui somente os clientes necessários para acessar um
408 servidor PostgreSQL. O servidor está no pacote principal.
409
410 %description clients -l ru
411 üÔÏÔ ÐÁËÅÔ ×ËÌÀÞÁÅÔ ÔÏÌØËÏ ËÌÉÅÎÔÓËÉÅ ÐÒÏÇÒÁÍÍÙ É ÂÉÂÌÉÏÔÅËÉ,
412 ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÄÏÓÔÕÐÁ Ë ÓÅÒ×ÅÒÕ PostgreSQL. óÅÒ×ÅÒ ×ÈÏÄÉÔ × ÇÌÁ×ÎÙÊ
413 ÐÁËÅÔ. åÓÌÉ ×ÁÍ ÎÁÄÏ ÔÏÌØËÏ ÒÁÂÏÔÁÔØ Ó ÄÒÕÇÉÍ ÓÅÒ×ÅÒÏÍ PostgreSQL, ÜÔÏ
414 ÅÄÉÎÓÔ×ÅÎÎÙÊ ÐÁËÅÔ, ËÏÔÏÒÙÊ ×ÁÍ ÎÁÄÏ ÕÓÔÁÎÏ×ÉÔØ.
415
416 ôÅÐÅÒØ ÐÁËÅÔÙ Ó ÂÉÂÌÉÏÔÅËÁÍÉ ÄÌÑ ÒÁÚÎÙÈ ÑÚÙËÏ× ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ (C,
417 C++, Perl É Tcl) ÒÁÚÄÅÌÅÎÙ. üÔÏÔ ÐÁËÅÔ ×ËÌÀÞÁÅÔ ÔÏÌØËÏ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ
418 ÑÚÙËÁ C.
419
420 %description clients -l uk
421 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ Ô¦ÌØËÉ Ë̦¤ÎÔÓØ˦ ÐÒÏÇÒÁÍÉ ÔÁ Â¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ
422 ÄÌÑ ÄÏÓÔÕÐÕ ÄÏ ÓÅÒ×ÅÒÁ PostgreSQL. óÅÒ×ÅҠͦÓÔÉÔØÓÑ × ÇÏÌÏ×ÎÏÍÕ
423 ÐÁËÅÔ¦. ñËÝÏ ×ÁÍ ÐÏÔÒ¦ÂÎÏ ÐÒÁÃÀ×ÁÔÉ Ú ¦ÎÛÉÍ ÓÅÒ×ÅÒÏÍ PostgreSQL, ÃÅ
424 ¤ÄÉÎÉÊ ÐÁËÅÔ, ÑËÉÊ ×ÁÍ ÔÒÅÂÁ ×ÓÔÁÎÏ×ÉÔÉ.
425
426 ôÅÐÅÒ ÐÁËÅÔɠڠ¦Â̦ÏÔÅËÁÍÉ ÄÌÑ Ò¦ÚÎÉÈ ÍÏ× ÐÒÏÇÒÁÍÕ×ÁÎÎÑ (C, C++, Perl
427 ¦ Tcl) ÒÏÚĦÌÅΦ. ãÅÊ ÐÁËÅԠͦÓÔÉÔØ Ô¦ÌØËɠ¦Â̦ÏÔÅËÉ ÄÌÑ ÍÏ×É C.
428
429 %package doc
430 Summary:        Documentation for PostgreSQL
431 Summary(pl):    Dodatkowa dokumantacja dla PostgreSQL
432 Group:          Applications/Databases
433
434 %description doc
435 This package includes documentation and HOWTO for programmer, admin
436 etc., in HTML format.
437
438 %description doc -l pl
439 Pakiet ten zawiera dokumentacjê oraz HOWTO m.in. dla programistów,
440 administratorów w formacie HTML.
441
442 %package libs
443 Summary:        PostgreSQL libraries
444 Summary(es):    Biblioteca compartida del PostgreSQL
445 Summary(pl):    Biblioteki dzielone programu PostgreSQL
446 Summary(pt_BR): Biblioteca compartilhada do PostgreSQL
447 Summary(zh_CN): PostgreSQL ¿Í»§ËùÐèÒªµÄ¹²Ïí¿â
448 Group:          Libraries
449
450 %description libs
451 PostgreSQL shared libraries.
452
453 %description libs -l es
454 Este paquete contiene la biblioteca compartida para acceso al
455 PostgreSQL.
456
457 %description libs -l pl
458 Biblioteki dzielone programu PostgreSQL.
459
460 %description libs -l pt_BR
461 Este pacote contém a biblioteca compartilhada para acesso ao
462 PostgreSQL.
463
464 %package ecpg
465 Summary:        Embedded SQL in C interface
466 Summary(pl):    Interfejs wbudowanego SQL-a w jêzyk C
467 Group:          Libraries
468 Requires:       %{name}-libs = %{version}-%{release}
469
470 %description ecpg
471 Embedded SQL in C interface.
472
473 %description ecpg -l pl
474 Interfejs wbudowanego SQL-a w jêzyk C.
475
476 %package ecpg-devel
477 Summary:        Embedded SQL in C interface files
478 Summary(pl):    Pliki programistyczne interfejsu wbudowanego SQL-a w jêzyk C
479 Group:          Development/Libraries
480 Requires:       %{name}-devel = %{version}-%{release}
481 Requires:       %{name}-ecpg = %{version}-%{release}
482
483 %description ecpg-devel
484 Embedded SQL in C interface files.
485
486 %description ecpg-devel -l pl
487 Pliki programistyczne interfejsu wbudowanego SQL-a w jêzyk C.
488
489 %package static
490 Summary:        PostgreSQL static libraries
491 Summary(es):    Bibliotecas estaticas PostgreSQL
492 Summary(pl):    Biblioteki statyczne programu PostgreSQL
493 Summary(pt_BR): Bibliotecas estáticas PostgreSQL
494 Summary(ru):    óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ Ó PostgreSQL
495 Summary(uk):    óÔÁÔÉÞΦ Â¦Â̦ÏÔÅËÉ ÄÌÑ ÐÒÏÇÒÁÍÕ×ÁÎÎÑ Ú PostgreSQL
496 Group:          Development/Libraries
497 Requires:       %{name}-devel = %{version}-%{release}
498
499 %description static
500 PostgreSQL static libraries.
501
502 %description static -l es
503 Este paquete contiene bibliotecas estaticas requerida para compilación
504 de aplicativos que se comunican directamente con el servidor backend
505 PostgreSQL.
506
507 %description static -l pl
508 Biblioteki statyczne programu PostgreSQL.
509
510 %description static -l pt_BR
511 Este pacote contém as bibliotecas estáticas requeridas para compilação
512 de aplicativos que se comunicam diretamente com o servidor backend
513 PostgreSQL.
514
515 %description static -l ru
516 üÔÏ ÏÔÄÅÌØÎÙÊ ÐÁËÅÔ ÓÏ ÓÔÁÔÉÞÅÓËÉÍÉ ÂÉÂÌÉÏÔÅËÁÍÉ, ËÏÔÏÒÙÅ ÂÏÌØÛÅ ÎÅ
517 ×ÈÏÄÑÔ × %{name}-devel.
518
519 %description static -l uk
520 ãÅ ÏËÒÅÍÉÊ ÐÁËÅÔ Ú¦ ÓÔÁÔÉÞÎÉÍɠ¦Â̦ÏÔÅËÁÍÉ, Ñ˦ Â¦ÌØÛ ÎÅ ×ÈÏÄÑÔØ ×
521 %{name}-devel.
522
523 %package module-plpgsql
524 Summary:        PL/pgSQL - PostgreSQL procedural language
525 Summary(pl):    PL/pgSQL - jêzyk proceduralny bazy danych PostgreSQL
526 Group:          Applications/Databases
527 Requires:       %{name} = %{version}-%{release}
528
529 %description module-plpgsql
530 From PostgreSQL documentation:
531
532 Postgres supports the definition of procedural languages. In the case
533 of a function or trigger procedure defined in a procedural language,
534 the database has no built-in knowledge about how to interpret the
535 function's source text. Instead, the task is passed to a handler that
536 knows the details of the language. The handler itself is a special
537 programming language function compiled into a shared object and loaded
538 on demand.
539
540 To enable PL/pgSQL procedural language for your database you have to
541 run createlang command.
542
543 %description module-plpgsql -l pl
544 Z dokumentacji PostgreSQL:
545
546 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
547 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
548 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
549 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
550 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
551 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
552 potrzeby.
553
554 Za pomoc± polecenia createlang mo¿na dodaæ obs³ugê jêzyka
555 proceduralnego PL/pgSQL dla swojej bazy danych.
556
557 %package module-plperl
558 Summary:        PL/perl - PostgreSQL procedural language
559 Summary(pl):    PL/perl - jêzyk proceduralny bazy danych PostgreSQL
560 Group:          Applications/Databases
561 Requires:       %{name} = %{version}-%{release}
562 Requires:       perl(DynaLoader) = %(%{__perl} -MDynaLoader -e 'print DynaLoader->VERSION')
563
564 %description module-plperl
565 From PostgreSQL documentation:
566
567 Postgres supports the definition of procedural languages. In the case
568 of a function or trigger procedure defined in a procedural language,
569 the database has no built-in knowledge about how to interpret the
570 function's source text. Instead, the task is passed to a handler that
571 knows the details of the language. The handler itself is a special
572 programming language function compiled into a shared object and loaded
573 on demand.
574
575 To enable PL/Perl procedural language for your database you have to
576 run createlang command.
577
578 %description module-plperl -l pl
579 Z dokumentacji PostgreSQL:
580
581 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
582 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
583 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
584 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
585 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
586 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
587 potrzeby.
588
589 Za pomoc± polecenia createlang mo¿na dodaæ obs³ugê jêzyka
590 proceduralnego PL/Perl dla swojej bazy danych.
591
592 %package module-plphp
593 Summary:        PL/PHP - PostgreSQL procedural language
594 Summary(pl):    PL/PHP - jêzyk proceduralny bazy danych PostgreSQL
595 Group:          Applications/Databases
596 Requires:       %{name} = %{version}-%{release}
597 %{?requires_php_extension}
598
599 %description module-plphp
600 From PostgreSQL documentation:
601
602 Postgres supports the definition of procedural languages. In the case
603 of a function or trigger procedure defined in a procedural language,
604 the database has no built-in knowledge about how to interpret the
605 function's source text. Instead, the task is passed to a handler that
606 knows the details of the language. The handler itself is a special
607 programming language function compiled into a shared object and loaded
608 on demand.
609
610 To enable PL/PHP procedural language for your database you have to
611 run createlang command.
612
613 %description module-plphp -l pl
614 Z dokumentacji PostgreSQL:
615
616 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
617 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
618 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
619 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
620 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
621 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
622 potrzeby.
623
624 Za pomoc± polecenia createlang mo¿na dodaæ obs³ugê jêzyka
625 proceduralnego PL/PHP dla swojej bazy danych.
626
627 %package module-plpython
628 Summary:        PL/Python - PostgreSQL procedural language
629 Summary(pl):    PL/Python - jêzyk proceduralny bazy danych PostgreSQL
630 Group:          Applications/Databases
631 Requires:       %{name} = %{version}-%{release}
632 %pyrequires_eq  python
633
634 %description module-plpython
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/Python procedural language for your database you have to
646 run createlang command.
647
648 %description module-plpython -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± polecenia createlang mo¿na dodaæ obs³ugê jêzyka
660 proceduralnego PL/Python dla swojej bazy danych.
661
662 %package module-pltcl
663 Summary:        PL/Tcl - PostgreSQL procedural language
664 Summary(pl):    PL/Tcl - jêzyk proceduralny bazy danych PostgreSQL
665 Group:          Applications/Databases
666 Requires:       %{name} = %{version}-%{release}
667
668 %description module-pltcl
669 From PostgreSQL documentation:
670
671 Postgres supports the definition of procedural languages. In the case
672 of a function or trigger procedure defined in a procedural language,
673 the database has no built-in knowledge about how to interpret the
674 function's source text. Instead, the task is passed to a handler that
675 knows the details of the language. The handler itself is a special
676 programming language function compiled into a shared object and loaded
677 on demand.
678
679 To enable PL/Tcl procedural language for your database you have to run
680 createlang command.
681
682 %description module-pltcl -l pl
683 Z dokumentacji PostgreSQL:
684
685 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
686 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
687 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
688 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
689 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
690 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
691 potrzeby.
692
693 Za pomoc± polecenia createlang mo¿na dodaæ obs³ugê jêzyka
694 proceduralnego PL/Tcl dla swojej bazy danych.
695
696 %package module-lo
697 Summary:        Large Objects module for PostgreSQL
698 Summary(pl):    Modu³ Large Objects dla PostgreSQL-a
699 Group:          Applications/Databases
700 Requires:       %{name} = %{version}-%{release}
701
702 %description module-lo
703 Large Objects module for PostgreSQL adds a new data type 'lo', some
704 support functions and a trigger which handles the orphaning problem.
705
706 %description module-lo -l pl
707 Modu³ Large Objects dla PostgreSQL-a dodaje nowy typ danych 'lo',
708 kilka funkcji pomocniczych i wyzwalacz rozwi±zuj±cy problem
709 osieroconych obiektów.
710
711 %package module-pgcrypto
712 Summary:        Cryptographic functions for PostgreSQL
713 Summary(pl):    Funkcje kryptograficzne dla PostgreSQL-a
714 Group:          Applications/Databases
715 Requires:       %{name} = %{version}-%{release}
716
717 %description module-pgcrypto
718 Cryptographic functions for PostgreSQL.
719
720 %description module-pgcrypto -l pl
721 Funkcje kryptograficzne dla PostgreSQL.
722
723 %package module-tsearch2
724 Summary:        Full text extension for PostgreSQL
725 Summary(pl):    Rozszerzenie pe³notekstowe dla PostgreSQL-a
726 Group:          Applications/Databases
727 Requires:       %{name} = %{version}-%{release}
728
729 %description module-tsearch2
730 Implementation of a new data type tsvector - a searchable data type
731 with indexed access:
732 http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/
733
734 %description module-tsearch2 -l pl
735 Implementacja nowego typu danych tsvector - typu danych podlegaj±cego
736 przeszukiwaniu z dostêpem poprzez indeksy:
737 http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/
738
739 %prep
740 %setup -q -a8
741 %patch0 -p1
742 %{?with_absolute_dbpaths:%patch1 -p1}
743 %patch2 -p1
744 %patch3 -p1
745 %patch4 -p1
746 #patch5 -p1     needed for glibc2.3.4 + gcc4
747 %patch6 -p0
748
749 %if %{with php}
750 patch -p1 < plphp.patch
751 %endif
752
753 tar xzf doc/man*.tar.gz
754
755 mkdir doc/unpacked
756 tar zxf doc/postgres.tar.gz -C doc/unpacked
757
758 # Erase all CVS dirs
759 #find contrib -type d -name CVS -exec rm -rf {} \;
760
761 %build
762 %{__aclocal} -I config
763 %{__autoconf}
764 %configure \
765         CFLAGS="%{rpmcflags} -DNEED_REENTRANT_FUNCS" \
766         --disable-rpath \
767         --enable-depend \
768         --enable-integer-datetimes \
769         %{?with_pgsql_locale:--enable-locale} \
770         %{?with_pgsql_multibyte:--enable-multibyte} \
771         --enable-nls \
772         --enable-recode \
773         --enable-syslog \
774         --enable-thread-safety \
775         --enable-unicode-conversion \
776         --with-CXX \
777         %{?with_kerberos5:--with-krb5} \
778         --with-openssl \
779         --with-pam \
780         %{?with_perl:--with-perl} \
781         %{?with_php:--with-php=/usr/include/php} \
782         %{?with_python:--with-python} \
783         %{?with_tcl:--with-tcl} \
784         --with-x \
785         --without-docdir
786
787 %{__make}
788 %{__make} -C contrib/lo
789 %{__make} -C contrib/pgcrypto
790 %{__make} -C contrib/tsearch2
791 %{__make} -C src/tutorial \
792         NO_PGXS=1
793
794 %ifnarch sparc sparcv9 sparc64 alpha
795 %{?with_tests:%{__make} check}
796 %endif
797
798 %if %{with php}
799 cd src/pl/plphp
800 %{__make}
801 cd ../../../
802 %endif
803
804 %install
805 rm -rf $RPM_BUILD_ROOT
806 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{rc.d/init.d,sysconfig}} \
807         $RPM_BUILD_ROOT{/var/{lib/pgsql,log},%{_pgsqldir}} \
808         $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} \
809         $RPM_BUILD_ROOT%{_mandir} \
810         $RPM_BUILD_ROOT/home/services/postgres
811
812 install src/tutorial/*.sql $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
813
814 %{__make} install \
815         DESTDIR=$RPM_BUILD_ROOT
816
817 %{__cc} -shared -Wl,-soname,libpq.so.3 -o $RPM_BUILD_ROOT%{_libdir}/libpq.so.3.0.0 -L$RPM_BUILD_ROOT%{_libdir} -lpq
818
819 %if %{with perl}
820 %{__make} install -C src/pl/plperl \
821         DESTDIR=$RPM_BUILD_ROOT
822 %endif
823
824 %{__make} -C contrib/lo install \
825         DESTDIR=$RPM_BUILD_ROOT
826
827 %{__make} -C contrib/pgcrypto install \
828         DESTDIR=$RPM_BUILD_ROOT
829
830 %{__make} -C contrib/tsearch2 install \
831         DESTDIR=$RPM_BUILD_ROOT
832
833 %if %{with php}
834 cd src/pl/plphp
835 %{__make} install \
836         DESTDIR=$RPM_BUILD_ROOT
837 cd ../../../
838 %endif
839
840 touch $RPM_BUILD_ROOT/var/log/pgsql
841
842 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/postgresql
843 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/postgresql
844
845 install -d howto
846 tar zxf %{SOURCE2} -C howto
847
848 %py_comp $RPM_BUILD_ROOT%{py_libdir}
849 %py_ocomp $RPM_BUILD_ROOT%{py_libdir}
850
851 # find locales
852 for f in libpq pg_controldata pg_dump pg_resetxlog pgscripts postgres psql initdb pg_ctl pg_config; do
853         %find_lang $f
854 done
855 # merge locales
856 cat pgscripts.lang pg_resetxlog.lang postgres.lang pg_controldata.lang > main.lang
857 cat pg_dump.lang psql.lang initdb.lang pg_ctl.lang > clients.lang
858
859 # Remove Contrib documentation. We use macro %doc
860 rm -rf $RPM_BUILD_ROOT/contrib
861
862 %clean
863 rm -rf $RPM_BUILD_ROOT
864
865 %pre
866 PG_DB_CLUSTERS=""
867 if [ -f /etc/sysconfig/postgresql ]; then
868         . /etc/sysconfig/postgresql
869         if [ -z "$PG_DB_CLUSTERS" -a -n "$POSTGRES_DATA_DIR" ]; then
870                 PG_DB_CLUSTERS="$POSTGRES_DATA_DIR"
871         fi
872 fi
873 foundold=0
874 for pgdir in $PG_DB_CLUSTERS; do
875         if [ -f $pgdir/PG_VERSION ]; then
876                 if [ `cat $pgdir/PG_VERSION` != '8.1' ]; then
877                         echo "Found database(s) in older, incompatible format in cluster $pgdir."
878                         foundold=1
879                 fi
880         fi
881 done
882 if [ "$foundold" = "1" ]; then
883         echo
884         echo "Dump all data from clusters mentioned above (using pg_dump or pg_dumpall)"
885         echo "and clean (or rename) those directories; then upgrade postgresql and"
886         echo "restore all data (using pg_restore or psql)."
887         echo "Remember to stop the daemon before upgrading!"
888         echo
889         echo "Warning for upgrade from version *before* 7.2."
890         echo "Please note, that postgresql module path changed from"
891         echo "/usr/lib/pgsql/module to /usr/lib/postgresql. Change the path"
892         echo "in dump file before restore."
893         echo
894         echo "Warning for upgrade from version *before* 7.3."
895         echo "Reading following webpage is encouraged:"
896         echo "http://www.ca.postgresql.org/docs/momjian/upgrade_tips_7.3"
897         exit 1
898 fi
899
900 %groupadd -g 88 -r postgres
901 %useradd -M -o -r -u 88 -d /home/services/postgres -s /bin/sh -g postgres -c "PostgreSQL Server" postgres
902
903 if [ -n "`/bin/id -u postgres 2>/dev/null`" ]; then
904         /usr/sbin/usermod -d /home/services/postgres postgres
905 fi
906
907 %post
908 /sbin/chkconfig --add postgresql
909 %service postgresql restart "postgresql server"
910
911 %preun
912 if [ "$1" = "0" ]; then
913         %service postgresql stop
914         /sbin/chkconfig --del postgresql
915 fi
916
917 %post   libs -p /sbin/ldconfig
918 %postun libs -p /sbin/ldconfig
919
920 %post   ecpg -p /sbin/ldconfig
921 %postun ecpg -p /sbin/ldconfig
922
923 %files -f main.lang
924 %defattr(644,root,root,755)
925 %doc COPYRIGHT README HISTORY doc/{FAQ*,README*,bug.template}
926 %attr(754,root,root) /etc/rc.d/init.d/postgresql
927 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/postgresql
928
929 %attr(755,root,root) %{_bindir}/initdb
930 %attr(755,root,root) %{_bindir}/ipcclean
931 %attr(755,root,root) %{_bindir}/pg_controldata
932 %attr(755,root,root) %{_bindir}/pg_ctl
933 %attr(755,root,root) %{_bindir}/pg_resetxlog
934 %attr(755,root,root) %{_bindir}/postgres
935 %attr(755,root,root) %{_bindir}/postmaster
936
937 %attr(755,root,root) %{_pgmoduledir}/ascii*
938 %attr(755,root,root) %{_pgmoduledir}/cyrillic*
939 %attr(755,root,root) %{_pgmoduledir}/euc*
940 %attr(755,root,root) %{_pgmoduledir}/latin*
941 %attr(755,root,root) %{_pgmoduledir}/utf*
942
943 %dir %{_pgsqldir}
944 %dir %{_datadir}/postgresql
945 %dir %{_datadir}/postgresql/timezone
946 %{_datadir}/postgresql/*.bki
947 %{_datadir}/postgresql/*.sample
948 %{_datadir}/postgresql/*.description
949 %{_datadir}/postgresql/*.sql
950 %{_datadir}/postgresql/*.txt
951 %{_datadir}/postgresql/timezone/*
952
953 %attr(700,postgres,postgres) /home/services/postgres
954 %attr(700,postgres,postgres) %dir /var/lib/pgsql
955 %attr(640,postgres,postgres) %config(noreplace) %verify(not md5 mtime size) /var/log/pgsql
956
957 %{_mandir}/man1/initdb.1*
958 %{_mandir}/man1/ipcclean.1*
959 %{_mandir}/man1/pg_controldata.1*
960 %{_mandir}/man1/pg_ctl.1*
961 %{_mandir}/man1/pg_resetxlog.1*
962 %{_mandir}/man1/postgres.1*
963 %{_mandir}/man1/postmaster.1*
964
965 %files doc
966 %defattr(644,root,root,755)
967 %doc doc/unpacked/* doc/src/FAQ howto
968 %{_examplesdir}/%{name}-%{version}
969
970 %files libs -f libpq.lang
971 %defattr(644,root,root,755)
972 %attr(755,root,root) %{_libdir}/libpq.so.*
973 %dir %{_pgmoduledir}
974
975 %files ecpg
976 %defattr(644,root,root,755)
977 %attr(755,root,root) %{_bindir}/ecpg
978 %attr(755,root,root) %{_libdir}/libecpg.so.*.*
979 %attr(755,root,root) %{_libdir}/libecpg_compat.so.*.*
980 %attr(755,root,root) %{_libdir}/libpgtypes.so.*.*
981 %{_mandir}/man1/ecpg.1*
982
983 %files ecpg-devel
984 %defattr(644,root,root,755)
985 %attr(755,root,root) %{_libdir}/libecpg.so
986 %attr(755,root,root) %{_libdir}/libecpg_compat.so
987 %attr(755,root,root) %{_libdir}/libpgtypes.so
988 %{_includedir}/ecpg
989
990 %files devel -f pg_config.lang
991 %defattr(644,root,root,755)
992 %attr(755,root,root) %{_bindir}/pg_config
993 %attr(755,root,root) %{_libdir}/libpq.so
994 %dir %{_includedir}/postgresql
995 %{_includedir}/libpq-fe.h
996 %{_includedir}/pg_config.h
997 %{_includedir}/pg_config_manual.h
998 %{_includedir}/pg_config_os.h
999 %{_includedir}/postgres_ext.h
1000 %dir %{_includedir}/postgresql/internal
1001 %{_includedir}/postgresql/internal/c.h
1002 %{_includedir}/postgresql/internal/libpq-int.h
1003 %{_includedir}/postgresql/internal/port.h
1004 %{_includedir}/postgresql/internal/postgres_fe.h
1005 %{_includedir}/postgresql/internal/pqexpbuffer.h
1006 %{_includedir}/postgresql/internal/libpq
1007 %{_includedir}/libpq
1008 %{_mandir}/man1/pg_config.1*
1009
1010 %files backend-devel
1011 %defattr(644,root,root,755)
1012 %{_includedir}/postgresql/server
1013 %dir %{_pgmoduledir}/pgxs
1014 %attr(755,root,root) %{_pgmoduledir}/pgxs/config
1015 %{_pgmoduledir}/pgxs/src
1016
1017 %files static
1018 %defattr(644,root,root,755)
1019 %{_libdir}/libecpg.a
1020 %{_libdir}/libecpg_compat.a
1021 %{_libdir}/libpq.a
1022 %{_libdir}/libpgtypes.a
1023 %{_libdir}/libpgport.a
1024
1025 %files clients -f clients.lang
1026 %defattr(644,root,root,755)
1027 %attr(755,root,root) %{_bindir}/clusterdb
1028 %attr(755,root,root) %{_bindir}/createdb
1029 %attr(755,root,root) %{_bindir}/createlang
1030 %attr(755,root,root) %{_bindir}/createuser
1031 %attr(755,root,root) %{_bindir}/dropdb
1032 %attr(755,root,root) %{_bindir}/droplang
1033 %attr(755,root,root) %{_bindir}/dropuser
1034 %attr(755,root,root) %{_bindir}/pg_dump
1035 %attr(755,root,root) %{_bindir}/pg_dumpall
1036 %attr(755,root,root) %{_bindir}/pg_restore
1037 %attr(755,root,root) %{_bindir}/psql
1038 %attr(755,root,root) %{_bindir}/reindexdb
1039 %attr(755,root,root) %{_bindir}/vacuumdb
1040
1041 %{_mandir}/man1/clusterdb.1*
1042 %{_mandir}/man1/createdb.1*
1043 %{_mandir}/man1/createlang.1*
1044 %{_mandir}/man1/createuser.1*
1045 %{_mandir}/man1/dropdb.1*
1046 %{_mandir}/man1/droplang.1*
1047 %{_mandir}/man1/dropuser.1*
1048 %{_mandir}/man1/pg_dump.1*
1049 %{_mandir}/man1/pg_dumpall.1*
1050 %{_mandir}/man1/pg_restore.1*
1051 %{_mandir}/man1/psql.1*
1052 %{_mandir}/man1/reindexdb.1*
1053 %{_mandir}/man1/vacuumdb.1*
1054 %{_mandir}/man7/*.7*
1055
1056 %files module-plpgsql
1057 %defattr(644,root,root,755)
1058 %attr(755,root,root) %{_pgmoduledir}/plpgsql.so
1059
1060 %if %{with perl}
1061 %files module-plperl
1062 %defattr(644,root,root,755)
1063 %attr(755,root,root) %{_pgmoduledir}/plperl.so
1064 %endif
1065
1066 %if %{with python}
1067 %files module-plpython
1068 %defattr(644,root,root,755)
1069 %attr(755,root,root) %{_pgmoduledir}/plpython.so
1070 %endif
1071
1072 %if %{with tcl}
1073 %files module-pltcl
1074 %defattr(644,root,root,755)
1075 %attr(755,root,root) %{_bindir}/pltcl_*
1076 %attr(755,root,root) %{_pgmoduledir}/pltcl.so
1077 %endif
1078
1079 %files module-lo
1080 %defattr(644,root,root,755)
1081 %doc contrib/lo/README.lo
1082 %attr(755,root,root) %{_pgmoduledir}/lo.so
1083 %{_pgsqldir}/lo*.sql
1084
1085 %files module-pgcrypto
1086 %defattr(644,root,root,755)
1087 %doc contrib/pgcrypto/README*
1088 %attr(755,root,root) %{_pgmoduledir}/pgcrypto.so
1089 %{_pgsqldir}/pgcrypto.sql
1090
1091 %files module-tsearch2
1092 %defattr(644,root,root,755)
1093 %doc contrib/tsearch2/README*
1094 %attr(755,root,root) %{_pgmoduledir}/tsearch2.so
1095 %{_pgsqldir}/tsearch2.sql
1096 %{_pgsqldir}/untsearch2.sql
1097 %{_pgsqldir}/*.stop
This page took 0.956988 seconds and 4 git commands to generate.