]> git.pld-linux.org Git - packages/postgresql.git/blob - postgresql.spec
- url upgrade without dot
[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.2
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:  12d54a11bc3a414477d37ef338bec161
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 Icon:           postgresql.xpm
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.202
71 BuildRequires:  sed >= 4.0
72 %{?with_tcl:BuildRequires:      tcl-devel >= 8.4.3}
73 BuildRequires:  zlib-devel
74 PreReq:         rc-scripts
75 PreReq:         %{name}-clients = %{version}-%{release}
76 PreReq:         %{name}-libs = %{version}-%{release}
77 Requires(pre):  /usr/bin/getgid
78 Requires(pre):  /bin/id
79 Requires(pre):  /usr/sbin/groupadd
80 Requires(pre):  /usr/sbin/useradd
81 Requires(pre):  /usr/sbin/usermod
82 Requires(post,preun):   /sbin/chkconfig
83 Obsoletes:      postgresql-server
84 Obsoletes:      postgresql-test
85 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
86
87 %define         _pgmoduledir    %{_libdir}/postgresql
88 %define         _pgsqldir       %{_datadir}/postgresql/contrib
89
90 %description
91 PostgreSQL Data Base Management System (formerly known as Postgres,
92 then as Postgres95).
93
94 PostgreSQL is an enhancement of the POSTGRES database management
95 system, a next-generation DBMS research prototype. While PostgreSQL
96 retains the powerful data model and rich data types of POSTGRES, it
97 replaces the PostQuel query language with an extended subset of SQL.
98 PostgreSQL is free and the complete source is available.
99
100 PostgreSQL development is being performed by a team of Internet
101 developers who all subscribe to the PostgreSQL development mailing
102 list. The current coordinator is Marc G. Fournier
103 (scrappy@postgreSQL.org). This team is now responsible for all current
104 and future development of PostgreSQL.
105
106 The authors of PostgreSQL 1.01 were Andrew Yu and Jolly Chen. Many
107 others have contributed to the porting, testing, debugging and
108 enhancement of the code. The original Postgres code, from which
109 PostgreSQL is derived, was the effort of many graduate students,
110 undergraduate students, and staff programmers working under the
111 direction of Professor Michael Stonebraker at the University of
112 California, Berkeley.
113
114 The original name of the software at Berkeley was Postgres. When SQL
115 functionality was added in 1995, its name was changed to Postgres95.
116 The name was changed at the end of 1996 to PostgreSQL.
117
118 PostgreSQL runs on Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD,
119 and most flavours of Unix.
120
121 %description -l de
122 PostgreSQL Datenbank-Managementsystem (früher als Postgres, dann als
123 Postgres95 bekannt).
124
125 PostgreSQL ist eine Verbesserung des POSTGRES-DB-Managementsystems,
126 ein DBMS-Forschungsprototyp der nächsten Generation. Während es das
127 leistungsfähige Datenmodell und die reichhaltigen Datentypen von
128 POSTGRES beibehält, ersetzt es die PostQuel-Abfragesprache durch ein
129 Subset von SQL. PostgreSQL ist gratis, der gesamte Quellcode ist
130 verfügbar.
131
132 Ein Team von Internet-Entwicklern befaßt sich mit PostgreSQL. Sie alle
133 sind auf der PostgreSQL-Entwickleradreßliste. Koordinator ist Marc G.
134 Fournier (scrappy@postgreSQL.org). Das Team ist verantwortlich für
135 alle aktuellen und künftigen Entwicklungen von PostgreSQL.
136
137 Die Autoren von PostgreSQL 1.01 waren Andrew Yu und Jolly Chen.
138 Zahlreiche andere haben zur Portierung, zum Testen, Debugging und zur
139 Verbesserung des Code beigetragen. Den Original-Postgres-Code, von dem
140 sich PostgreSQL ableitet, verdanken wir der Arbeit vieler Doktoranden,
141 Studenten und Programmierern unter der Leitung von Professor Michael
142 Stonebraker an der University of California, Berkeley.
143
144 Der ursprüngliche Name war Postgres. Als 1995 SQL-Funktionalität
145 hinzukam, wurde der Name in Postgres95 geändert. Ende 1996 schließlich
146 entschied man sich für PostgreSQL.
147
148 PostgreSQL läuft auf Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD
149 und den meisten Unix-Systemen.
150
151 %description -l es
152 Administrador de Banco de Datos PostgreSQL (conocido anteriormente
153 como Postgres, y después como Postgres95). PostgreSQL es una
154 continuación mejorada del Sistema Administrador de Banco de Datos
155 POSTGRES, que era un prototipo de pesquisa para un SGBD de nueva
156 generación. Mientras PostgreSQL mantiene el potente modelo de datos y
157 los varios tipos de datos del POSTGRES, substituye el lenguaje de
158 consulta PostQuel por un subconjunto extendido de la SQL. PostgreSQL
159 es libre y tiene los fuentes disponibles. El desarrollo del PostgreSQL
160 se ejecutado por un equipo de estudiosos de Internet, todos suscritos
161 en la lista de desarrollo del PostgreSQL. El coordinador actual es
162 Marc G. Fournier (scrappy@postgreSQL.org). Este equipo es ahora
163 responsable por el desarrollo actual y futuro del PostgreSQL.
164
165 %description -l fr
166 Système de gestion de bases de données PostgreSQL (D'abord nommé
167 Postgres, puis Postgres95).
168
169 PostgreSQL est une amélioration du système de gestion de bases de
170 données POSTGRES, un prototype de recherche de la génération suivant
171 DBMS. Tout en conservant le puissant modèle de donnée de et les types
172 de donée riches de Postgres, il remplace le langage de requêtes de
173 Postgres par un sous ensemble etendu de commandes SQL. PosrgreSQL est
174 libre, et ses sources sont disponibles.
175
176 Le développement de PostgreSQL est actuellement réalisé via internet
177 parune équipe de développeurs inscrits sur la mailing-list de
178 développement de PostgreSQL. Le coordinateur actuel est Marc G
179 Fournier (scrappy@postgreSQL.org). Cette équipe est responsable du
180 développemen actuel et à venir de PostgreSQL.
181
182 Les auteurs de PostgreSQL 1.01 étaient Andrew Yu et Jolly Chen.
183 Beaucoup d'autres ont contribué au portage, au test, au débogage et à
184 l'amélioration du code. Le code original de Postgres, duquel
185 PostgreSQL est dérivé, a été l'oeuvre d'étudiants de haut niveau, de
186 moins haut niveau, et de programmeurs travaillant sous la direction du
187 professeur Michael Stonebraker à l'université de Berkeley Californie.
188
189 Le nom original du logiciel était Postgres. Quand les fonctionnalitées
190 SQL furent ajoutées en 1995, son nom est devenu Postgres95. Il a été
191 rebaptisé PostgreSQL en 1996.
192
193 PostgreSQL tourne sur Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD,
194 et la plupart des Unix.
195
196 %description -l pl
197 System Zarz±dzania Baz± Danych PostgreSQL (dawniej znany jako
198 Postgres, nastêpnie jako Postgres95).
199
200 PostgreSQL jest rozszerzeniem systemu zarz±dzania baz danych POSTGRES,
201 prototypu DBMS nastêpnej generacji. Co prawda PostgreSQL odziedziczy³
202 model danych oraz bogaty zbiór ró¿nych typów danych, to jednak jêzyk
203 zapytañ PostQuel zosta³ zast±piony rozszerzonym SQL-em. PostgreSQL
204 jest wolnym oprogramowaniem i kody ¼ród³owe tego oprogramowania s± w
205 pe³ni dostêpne.
206
207 System PostgreSQL jest tworzony przez zespó³ ludzi, którzy s± zapisani
208 na listê dyskusyjn± dotycz±c± PostgreSQL-a. Obecnym koordynatorem jest
209 Marc G. Fournier (scrappy@postgreSQL.org). Wymieniony wy¿ej zespó³
210 jest odpowiedzialny za aktualny i przysz³y rozwój systemu PostgreSQL.
211
212 Autorami PostgreSQL-a 1.01 byli Andrew Yu oraz Jolly Chen. Wielu
213 innych pomaga³o przenosz±c na ró¿ne platformy, testuj±c, analizuj±c i
214 rozszerzaj±c kod. Oryginalny kod Postgres-a, na podstawie którego
215 PostgreSQL powsta³, by³ wysi³kiem wielu absolwentów, studentów oraz
216 zespo³u programistów, którzy pracowali pod kierunkiem profesora
217 Michaela Stonebrakera z Uniwersytetu Kalifornii w Berkeley.
218
219 Nazwa oryginalna oprogramowania tworzonego w Berkeley brzmia³a
220 Postgres. W 1995 roku dodano jêzyk zapytañ SQL i nazwê zmieniono na
221 Postgres95. W koñcu roku 1996 nazwê ostatecznie zmieniono na
222 PostgreSQL.
223
224 PostgreSQL mo¿e byæ uruchomiony pod nastêpuj±cymi systemami: Solaris,
225 SunOS, HPUX, AIX, Linux, Irix, FreeBSD i innymi systemami uniksowymi.
226
227 %description -l pt_BR
228 Gerenciador de Banco de Dados PostgreSQL (conhecido anteriormente como
229 Postgres, e depois como Postgres95).
230
231 O PostgreSQL é uma continuação melhorada do Sistema Gerenciador de
232 Banco de Dados POSTGRES, que era um protótipo de pesquisa para um SGBD
233 de nova geração. Enquanto o PostgreSQL mantém o poderoso modelo de
234 dados e os vários tipos de dados do POSTGRES, ele substitui a
235 linguagem de consulta PostQuel por um subconjunto estendido da SQL. O
236 PostgreSQL é livre e tem os fontes disponíveis.
237
238 O desenvolvimento do PostgreSQL está sendo executado por uma equipe de
239 desenvolvedores da Internet, todos subscritores da lista de
240 desenvolvimento do PostgreSQL. O coordenador atual é Marc G. Fournier
241 (scrappy@postgreSQL.org). Esta equipe é agora responsável pelo
242 desenvolvimento atual e futuro do PostgreSQL.
243
244 %description -l ru
245 PostgreSQL - ÓÉÓÔÅÍÁ ÕÐÒÁ×ÌÅÎÉÑ ÂÁÚÁÍÉ ÄÁÎÎÙÈ (ÐÒÅÖÄÅ ÉÚ×ÅÓÔÎÁÑ ËÁË
246 Postgres, ÐÏÔÏÍ ËÁË Postgres95).
247
248 PostgreSQL - ÜÔÏ ÒÁÓÛÉÒÅÎÎÁÑ ×ÅÒÓÉÑ ÓÉÓÔÅÍÙ ÕÐÒÁ×ÌÅÎÉÑ ÂÁÚÁÍÉ ÄÁÎÎÙÈ
249 POSTGRES, ÉÓÓÌÅÄÏ×ÁÔÅÌØÓËÏÇÏ ÐÒÏÔÏÔÉÐÁ DBMS ÓÌÅÄÕÀÝÅÊ ÇÅÎÅÒÁÃÉÉ.
250 óÏÈÒÁÎÑÑ ÍÏÝÎÕÀ ÍÏÄÅÌØ ÄÁÎÎÙÈ É ÂÏÇÁÔÙÊ ÎÁÂÏÒ ÔÉÐÏ× ÄÁÎÎÙÈ POSTGRES,
251 ÏÎÁ ÚÁÍÅÎÑÅÔ ÑÚÙË ÚÁÐÒÏÓÏ× PostQuel ÒÁÓÛÉÒÅÎÎÙÍ ÎÁÂÏÒÏÍ SQL.
252 PostgreSQL ÂÅÓÐÌÁÔÅΠɠÐÏÓÔÁ×ÌÑÅÔÓÑ × ×ÉÄÅ ÐÏÌÎÏÇÏ ËÏÍÐÌÅËÔÁ ÉÓÈÏÄÎÙÈ
253 ÔÅËÓÔÏ×.
254
255 PostgreSQL ÒÁÚÒÁÂÁÔÙ×ÁÌÓÑ ËÏÍÁÎÄÏÊ Internet-ÒÁÚÒÁÂÏÔÞÉËÏ×, ÐÏÄÐÉÓÁÎÎÙÈ
256 ÎÁ ÓÐÉÓÏË ÒÁÓÓÙÌËÉ, ÐÏÓ×ÑÝÅÎÎÙÊ ÒÁÚÒÁÂÏÔËÅ PostgreSQL. ÷ ÎÁÓÔÏÑÝÅÅ
257 ×ÒÅÍÑ ËÏÏÒÄÉÎÁÔÏÒÏÍ Ñ×ÌÑÅÔÓÑ Marc G. Fournier
258 (scrappy@postgreSQL.org). üÔÁ ËÏÍÁÎÄÁ × ÎÁÓÔÏÑÝÅÅ ×ÒÅÍÑ ÏÔ×ÅÞÁÅÔ ÚÁ
259 ×ÓÅ ÔÅËÕÝÉÅ É ÂÕÄÕÝÉÅ ÒÁÚÒÁÂÏÔËÉ PostgreSQL.
260
261 á×ÔÏÒÁÍÉ PostgreSQL 1.01 ÂÙÌÉ Andrew Yu É Jolly Chen. íÎÏÇÉÅ ×ÎÅÓÌÉ
262 Ó×ÏÊ ×ËÌÁÄ × ÐÏÒÔÉÒÏ×ÁÎÉÅ, ÔÅÓÔÉÒÏ×ÁÎÉÅ, ÏÔÌÁÄËÕ É ÕÌÕÞÛÅÎÉÅ ËÏÄÁ.
263 ïÒÉÇÉÎÁÌØÎÙÊ ËÏÄ Postgres, ÏÔ ËÏÔÏÒÏÇÏ ÐÒÏÉÚÏÛÅÌ PostgreSQL, ÂÙÌ
264 ÓÏÚÄÁΠÕÓÉÌÉÑÍÉ ÓÔÕÄÅÎÔÏ×, ÁÓÐÉÒÁÎÔÏ× É ÐÅÒÓÏÎÁÌÁ, ÒÁÂÏÔÁÀÝÅÇÏ ÐÏÄ
265 ÒÕËÏ×ÏÄÓÔ×ÏÍ ÐÒÏÆÅÓÓÏÒÁ Michael Stonebraker × University of
266 California, Berkeley.
267
268 ïÒÉÇÉÎÁÌØÎÏÅ ÎÁÚ×ÁÎÉÅ ðï × Berkeley ÂÙÌÏ Postgres. ëÏÇÄÁ × 1995 ÇÏÄÕ
269 ÂÙÌÁ ÄÏÂÁ×ÌÅÎÁ ÆÕÎËÃÉÏÎÁÌØÎÏÓÔØ SQL, ÎÁÚ×ÁÎÉÅ ÉÚÍÅÎÉÌÏÓØ ÎÁ
270 Postgres95. ÷ ËÏÎÃÅ 1996 ÇÏÄÁ ÏÎÏ ÅÝÅ ÒÁÚ ÉÚÍÅÎÉÌÏÓØ É ÔÅÐÅÒØ ÜÔÏ
271 PostgreSQL.
272
273 PostgreSQL ÒÁÂÏÔÁÅÔ ÎÁ Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD
274 É ÂÏÌØÛÉÎÓÔ×Å ÄÒÕÇÉÈ ÒÁÚÎÏ×ÉÄÎÏÓÔÅÊ Unix.
275
276 %description -l tr
277 PostgreSQL, POSTGRES'den türemiþ bir veri tabaný yönetim sistemidir
278 (DBMS). Güçlü veri modeli ve zengin POSTGRES veri tiplerini
279 desteklerken SQL'in geniþletilmiþ bir altkümesi yerine PostQuel
280 sorgulama dilini koyar.
281
282 %description -l uk
283 PostgreSQL - ÓÉÓÔÅÍÁ ËÅÒÕ×ÁÎÎÑ ÂÁÚÁÍÉ ÄÁÎÉÈ (ÒÁΦ۠צÄÏÍÁ ÑË Postgres,
284 ÐÏԦ͠ÑË Postgres95).
285
286 PostgreSQL - ÃÅ ÒÏÚÛÉÒÅÎÁ ×ÅÒӦѠÓÉÓÔÅÍÉ ËÅÒÕ×ÁÎÎÑ ÂÁÚÁÍÉ ÄÁÎÉÈ
287 POSTGRES, ÄÏÓ̦ÄÎÉÃØËÏÇÏ ÐÒÏÔÏÔÉÐÕ DBMS ÎÁÓÔÕÐÎϧ ÇÅÎÅÒÁæ§.
288 úÂÅÒ¦ÇÁÀÞÉ ÐÏÔÕÖÎÕ ÍÏÄÅÌØ ÄÁÎÉÈ ÔÁ ÂÁÇÁÔÉÊ ÎÁ¦ҠÔÉЦנÄÁÎÉÈ POSTGRES,
289 ×ÏÎÁ ÚÁͦÎÀ¤ ÍÏ×Õ ÚÁÐÉԦנPostQuel ÒÏÚÛÉÒÅÎÉÍ ÎÁÂÏÒÏÍ SQL. PostgreSQL
290 ÂÅÚËÏÛÔÏ×ÎÁ ÔÁ ÐÏÓÔÁ×ÌѤÔØÓÑ Õ ×ÉÇÌÑĦ ÐÏ×ÎÏÇÏ ËÏÍÐÌÅËÔÕ ×ÉȦÄÎÉÈ
291 ÔÅËÓÔ¦×.
292
293 PostgreSQL ÒÏÚÒÏÂÌѤÔØÓÑ ËÏÍÁÎÄÏÀ Internet-ÐÒÏÇÒÁͦÓÔ¦×, ÕÞÁÓÎÉ˦×
294 ÓÐÉÓËÕ ÒÏÚÓÉÌËÉ, ÐÒÉÓ×ÑÞÅÎÏÇÏ ÒÏÚÒÏÂæ PostgreSQL. îÁÒÁÚ¦
295 ËÏÏÒÄÉÎÁÔÏÒÏÍ ¤ Marc G. Fournier (scrappy@postgreSQL.org). ãÑ ËÏÍÁÎÄÁ
296 צÄÐÏצÄÁ¤ ÚÁ ×Ó¦ ÐÏÔÏÞΦ ÔÁ ÍÁÊÂÕÔΦ ÒÏÚÒÏÂËÉ PostgreSQL.
297
298 á×ÔÏÒÁÍÉ PostgreSQL 1.01 ÂÕÌÉ Andrew Yu ÔÁ Jolly Chen. âÁÇÁÔÏ ÌÀÄÅÊ
299 ×ÎÅÓÌÉ Óצʠ×ÎÅÓÏË × ÐÏÒÔÕ×ÁÎÎÑ, ÔÅÓÔÕ×ÁÎÎÑ, ×¦ÄÌÁÄËÕ ÔÁ ÐÏËÒÁÝÅÎÎÑ
300 ËÏÄÕ. ïÒÉǦÎÁÌØÎÉÊ ËÏÄ Postgres, ×¦Ä ÑËÏÇÏ ÐÏÈÏÄÉÔØ PostgreSQL, ÂÕ×
301 ÓÔ×ÏÒÅÎÉÊ ÚÕÓÉÌÌÑÍÉ ÓÔÕÄÅÎÔ¦×, ÁÓЦÒÁÎԦנÔÁ ÐÅÒÓÏÎÁÌÕ, ÑËÉÊ ÐÒÁÃÀ×Á×
302 ЦĠËÅÒ¦×ÎÉÃÔ×ÏÍ ÐÒÏÆÅÓÏÒÁ Michael Stonebraker × University of
303 California, Berkeley.
304
305 ïÒÉǦÎÁÌØÎÁ ÎÁÚ×Á ÐÒÏÇÒÁÍÉ × Berkeley ÂÕÌÁ Postgres. ëÏÌÉ × 1995 ÒÏæ
306 ÂÕÌÏ ÄÏÄÁÎÏ ÆÕÎËæÏÎÁÌØΦÓÔØ SQL, ÎÁÚ×Á ÚͦÎÉÌÁÓÑ ÎÁ Postgres95. ÷
307 ˦Îæ 1996 ÒÏËÕ ×ÏÎÁ ÝÅ ÒÁÚ ÚͦÎÉÌÁÓØ ¦ ÚÁÒÁÚ ÃÅ PostgreSQL.
308
309 PostgreSQL ÐÒÁÃÀ¤ ÎÁ Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD
310 ÔÁ Â¦ÌØÛÏÓÔ¦ ¦ÎÛÉÈ Ò¦ÚÎÏ×ÉĦנUnix.
311
312 %package devel
313 Summary:        PostgreSQL development header files and libraries
314 Summary(de):    PostgreSQL-Entwicklungs-Header-Dateien und Libraries
315 Summary(es):    Archivos de inclusión y bibliotecas PostgreSQL
316 Summary(fr):    En-têtes et bibliothèques de développement PostgreSQL
317 Summary(pl):    PostgreSQL - pliki nag³ówkowe i biblioteki
318 Summary(pt_BR): Arquivos de inclusão e bibliotecas para desenvolvimento com o PostgreSQL
319 Summary(ru):    PostgreSQL - ÈÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ ÒÁÚÒÁÂÏÔÞÉËÁ
320 Summary(tr):    PostgreSQL baþlýk dosyalarý ve kitaplýklar
321 Summary(uk):    PostgreSQL - ÈÅÄÅÒÉ ÔÁ Â¦Â̦ÏÔÅËÉ ÐÒÏÇÒÁͦÓÔÁ
322 Group:          Development/Libraries
323 Requires:       %{name}-libs = %{version}-%{release}
324
325 %description devel
326 This package contains header files and libraries required to compile
327 applications that are talking directly to the PostgreSQL backend
328 server.
329
330 %description devel -l de
331 Dieses Paket enthält die Header-Dateien und Libraries, die zum
332 Kompilieren von Applikationen notwendig sind, die direkt mit dem
333 PostgreSQL-Backend-Server kommunizieren.
334
335 %description devel -l es
336 Este paquete contiene archivos de inclusión y bibliotecas requeridas
337 para compilación de aplicativos que se comunican directamente con el
338 servidor backend PostgreSQL.
339
340 %description devel -l fr
341 Ce package contient les fichiers d'en-tête et les bibliothéques
342 nécessaires pour compiler des applications ayant des échanges directs
343 avec le serveur du backend PostgreSQL.
344
345 %description devel -l pl
346 Pakiet zawiera nag³ówki oraz biblioteki wymagane do kompilacji
347 aplikacji ³±cz±cych siê bezpo¶rednio z serwerem PostgreSQL.
348
349 %description devel -l pt_BR
350 Este pacote contém arquivos de inclusão e bibliotecas requeridas para
351 compilação de aplicativos que se comunicam diretamente com o servidor
352 backend PostgreSQL.
353
354 %description devel -l ru
355 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÈÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÓÂÏÒËÉ
356 ÐÒÉÌÏÖÅÎÉÊ, ÎÅÐÏÓÒÅÄÓÔ×ÅÎÎÏ ×ÚÁÉÍÏÄÅÊÓÔ×ÕÀÝÉÈ Ó ÓÅÒ×ÅÒÏÍ PostgreSQL.
357
358 %description devel -l tr
359 Bu paket, PostgreSQL sunucusuyla konuþacak yazýlýmlar geliþtirmek için
360 gereken baþlýk dosyalarýný ve kitaplýklarý içerir.
361
362 %description devel -l uk
363 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ÈÅÄÅÒÉ ÔÁ Â¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ
364 ÐÒÏÇÒÁÍ, Ñ˦ ÂÅÚÐÏÓÅÒÅÄÎØÏ ×ÚÁ¤ÍÏĦÀÔØ Ú ÓÅÒ×ÅÒÏÍ PostgreSQL.
365
366 %package backend-devel
367 Summary:        PostgreSQL backend development header files
368 Summary(pl):    PostgreSQL - pliki nag³ówkowe dla backendu
369 Group:          Development/Libraries
370 Requires:       %{name}-devel = %{version}-%{release}
371 Requires:       %{name}-libs = %{version}-%{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 = %{version}-%{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 = %{version}-%{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 = %{version}-%{release}
482 Requires:       %{name}-ecpg = %{version}-%{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 = %{version}-%{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} = %{version}-%{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± polecenia createlang mo¿na dodaæ obs³ugê 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} = %{version}-%{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± polecenia createlang mo¿na dodaæ obs³ugê jêzyka
591 proceduralnego PL/Perl dla swojej bazy danych.
592
593 %package module-plphp
594 Summary:        PL/PHP - PostgreSQL procedural language
595 Summary(pl):    PL/PHP - jêzyk proceduralny bazy danych PostgreSQL
596 Group:          Applications/Databases
597 Requires:       %{name} = %{version}-%{release}
598 %{?requires_php_extension}
599
600 %description module-plphp
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/PHP procedural language for your database you have to
612 run createlang command.
613
614 %description module-plphp -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± polecenia createlang mo¿na dodaæ obs³ugê jêzyka
626 proceduralnego PL/PHP dla swojej bazy danych.
627
628 %package module-plpython
629 Summary:        PL/Python - PostgreSQL procedural language
630 Summary(pl):    PL/Python - jêzyk proceduralny bazy danych PostgreSQL
631 Group:          Applications/Databases
632 Requires:       %{name} = %{version}-%{release}
633 %pyrequires_eq  python
634
635 %description module-plpython
636 From PostgreSQL documentation:
637
638 Postgres supports the definition of procedural languages. In the case
639 of a function or trigger procedure defined in a procedural language,
640 the database has no built-in knowledge about how to interpret the
641 function's source text. Instead, the task is passed to a handler that
642 knows the details of the language. The handler itself is a special
643 programming language function compiled into a shared object and loaded
644 on demand.
645
646 To enable PL/Python procedural language for your database you have to
647 run createlang command.
648
649 %description module-plpython -l pl
650 Z dokumentacji PostgreSQL:
651
652 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
653 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
654 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
655 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
656 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
657 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
658 potrzeby.
659
660 Za pomoc± polecenia createlang mo¿na dodaæ obs³ugê jêzyka
661 proceduralnego PL/Python dla swojej bazy danych.
662
663 %package module-pltcl
664 Summary:        PL/Tcl - PostgreSQL procedural language
665 Summary(pl):    PL/Tcl - jêzyk proceduralny bazy danych PostgreSQL
666 Group:          Applications/Databases
667 Requires:       %{name} = %{version}-%{release}
668
669 %description module-pltcl
670 From PostgreSQL documentation:
671
672 Postgres supports the definition of procedural languages. In the case
673 of a function or trigger procedure defined in a procedural language,
674 the database has no built-in knowledge about how to interpret the
675 function's source text. Instead, the task is passed to a handler that
676 knows the details of the language. The handler itself is a special
677 programming language function compiled into a shared object and loaded
678 on demand.
679
680 To enable PL/Tcl procedural language for your database you have to run
681 createlang command.
682
683 %description module-pltcl -l pl
684 Z dokumentacji PostgreSQL:
685
686 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
687 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
688 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
689 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
690 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
691 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
692 potrzeby.
693
694 Za pomoc± polecenia createlang mo¿na dodaæ obs³ugê jêzyka
695 proceduralnego PL/Tcl dla swojej bazy danych.
696
697 %package module-lo
698 Summary:        Large Objects module for PostgreSQL
699 Summary(pl):    Modu³ Large Objects dla PostgreSQL-a
700 Group:          Applications/Databases
701 Requires:       %{name} = %{version}-%{release}
702
703 %description module-lo
704 Large Objects module for PostgreSQL adds a new data type 'lo', some
705 support functions and a trigger which handles the orphaning problem.
706
707 %description module-lo -l pl
708 Modu³ Large Objects dla PostgreSQL-a dodaje nowy typ danych 'lo',
709 kilka funkcji pomocniczych i wyzwalacz rozwi±zuj±cy problem
710 osieroconych obiektów.
711
712 %package module-pgcrypto
713 Summary:        Cryptographic functions for PostgreSQL
714 Summary(pl):    Funkcje kryptograficzne dla PostgreSQL-a
715 Group:          Applications/Databases
716 Requires:       %{name} = %{version}-%{release}
717
718 %description module-pgcrypto
719 Cryptographic functions for PostgreSQL.
720
721 %description module-pgcrypto -l pl
722 Funkcje kryptograficzne dla PostgreSQL.
723
724 %package module-tsearch2
725 Summary:        Full text extension for PostgreSQL
726 Summary(pl):    Rozszerzenie pe³notekstowe dla PostgreSQL-a
727 Group:          Applications/Databases
728 Requires:       %{name} = %{version}-%{release}
729
730 %description module-tsearch2
731 Implementation of a new data type tsvector - a searchable data type
732 with indexed access:
733 http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/
734
735 %description module-tsearch2 -l pl
736 Implementacja nowego typu danych tsvector - typu danych podlegaj±cego
737 przeszukiwaniu z dostêpem poprzez indeksy:
738 http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/
739
740 %prep
741 %setup -q -a8
742 %patch0 -p1
743 %{?with_absolute_dbpaths:%patch1 -p1}
744 %patch2 -p1
745 %patch3 -p1
746 %patch4 -p1
747 #patch5 -p1     needed for glibc2.3.4 + gcc4
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 %{__sed} -i 's:contrib/::g' contrib/tsearch2/tsearch.sql.in
791 %{__make} -C contrib/tsearch2
792 %{__make} -C src/tutorial \
793         NO_PGXS=1
794
795 %ifnarch sparc sparcv9 sparc64 alpha
796 %{?with_tests:%{__make} check}
797 %endif
798
799 %if %{with php}
800 cd src/pl/plphp
801 %{__make}
802 cd ../../../
803 %endif
804
805 %install
806 rm -rf $RPM_BUILD_ROOT
807 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{rc.d/init.d,sysconfig}} \
808         $RPM_BUILD_ROOT{/var/{lib/pgsql,log},%{_pgsqldir}} \
809         $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} \
810         $RPM_BUILD_ROOT%{_mandir} \
811         $RPM_BUILD_ROOT/home/services/postgres
812
813 install src/tutorial/*.sql $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
814
815 %{__make} install \
816         DESTDIR=$RPM_BUILD_ROOT
817
818 %{__cc} -shared -Wl,-soname,libpq.so.3 -o $RPM_BUILD_ROOT%{_libdir}/libpq.so.3.0.0 -L$RPM_BUILD_ROOT%{_libdir} -lpq
819
820 %if %{with perl}
821 %{__make} install -C src/pl/plperl \
822         DESTDIR=$RPM_BUILD_ROOT
823 %endif
824
825 %{__make} -C contrib/lo install \
826         DESTDIR=$RPM_BUILD_ROOT
827
828 %{__make} -C contrib/pgcrypto install \
829         DESTDIR=$RPM_BUILD_ROOT
830
831 %{__make} -C contrib/tsearch2 install \
832         DESTDIR=$RPM_BUILD_ROOT
833
834 %if %{with php}
835 cd src/pl/plphp
836 %{__make} install \
837         DESTDIR=$RPM_BUILD_ROOT
838 cd ../../../
839 %endif
840
841 touch $RPM_BUILD_ROOT/var/log/pgsql
842
843 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/postgresql
844 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/postgresql
845
846 install -d howto
847 tar zxf %{SOURCE2} -C howto
848
849 %py_comp $RPM_BUILD_ROOT%{py_libdir}
850 %py_ocomp $RPM_BUILD_ROOT%{py_libdir}
851
852 # find locales
853 for f in libpq pg_controldata pg_dump pg_resetxlog pgscripts postgres psql initdb pg_ctl pg_config; do
854         %find_lang $f
855 done
856 # merge locales
857 cat pgscripts.lang pg_resetxlog.lang postgres.lang pg_controldata.lang > main.lang
858 cat pg_dump.lang psql.lang initdb.lang pg_ctl.lang > clients.lang
859
860 # Remove Contrib documentation. We use macro %doc
861 rm -rf $RPM_BUILD_ROOT/contrib
862
863 %clean
864 rm -rf $RPM_BUILD_ROOT
865
866 %pre
867 PG_DB_CLUSTERS=""
868 if [ -f /etc/sysconfig/postgresql ]; then
869         . /etc/sysconfig/postgresql
870         if [ -z "$PG_DB_CLUSTERS" -a -n "$POSTGRES_DATA_DIR" ]; then
871                 PG_DB_CLUSTERS="$POSTGRES_DATA_DIR"
872         fi
873 fi
874 foundold=0
875 for pgdir in $PG_DB_CLUSTERS; do
876         if [ -f $pgdir/PG_VERSION ]; then
877                 if [ `cat $pgdir/PG_VERSION` != '8.1' ]; then
878                         echo "Found database(s) in older, incompatible format in cluster $pgdir."
879                         foundold=1
880                 fi
881         fi
882 done
883 if [ "$foundold" = "1" ]; then
884         echo
885         echo "Dump all data from clusters mentioned above (using pg_dump or pg_dumpall)"
886         echo "and clean (or rename) those directories; then upgrade postgresql and"
887         echo "restore all data (using pg_restore or psql)."
888         echo "Remember to stop the daemon before upgrading!"
889         echo
890         echo "Warning for upgrade from version *before* 7.2."
891         echo "Please note, that postgresql module path changed from"
892         echo "/usr/lib/pgsql/module to /usr/lib/postgresql. Change the path"
893         echo "in dump file before restore."
894         echo
895         echo "Warning for upgrade from version *before* 7.3."
896         echo "Reading following webpage is encouraged:"
897         echo "http://www.ca.postgresql.org/docs/momjian/upgrade_tips_7.3"
898         exit 1
899 fi
900
901 %groupadd -g 88 -r postgres
902 %useradd -M -o -r -u 88 -d /home/services/postgres -s /bin/sh -g postgres -c "PostgreSQL Server" postgres
903
904 if [ -n "`/bin/id -u postgres 2>/dev/null`" ]; then
905         /usr/sbin/usermod -d /home/services/postgres postgres
906 fi
907
908 %post
909 /sbin/chkconfig --add postgresql
910 if [ -f /var/lock/subsys/postgresql ]; then
911         /etc/rc.d/init.d/postgresql restart >&2 || :
912 else
913         echo "Run \"/etc/rc.d/init.d/postgresql start\" to start postgresql server."
914 fi
915
916 %preun
917 if [ "$1" = "0" ]; then
918         if [ -f /var/lock/subsys/postgresql ]; then
919                 /etc/rc.d/init.d/postgresql stop
920         fi
921         /sbin/chkconfig --del postgresql
922 fi
923
924 %post   libs -p /sbin/ldconfig
925 %postun libs -p /sbin/ldconfig
926
927 %post   ecpg -p /sbin/ldconfig
928 %postun ecpg -p /sbin/ldconfig
929
930 %files -f main.lang
931 %defattr(644,root,root,755)
932 %doc COPYRIGHT README HISTORY doc/{FAQ*,README*,bug.template}
933 %attr(754,root,root) /etc/rc.d/init.d/postgresql
934 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/postgresql
935
936 %attr(755,root,root) %{_bindir}/initdb
937 %attr(755,root,root) %{_bindir}/ipcclean
938 %attr(755,root,root) %{_bindir}/pg_controldata
939 %attr(755,root,root) %{_bindir}/pg_ctl
940 %attr(755,root,root) %{_bindir}/pg_resetxlog
941 %attr(755,root,root) %{_bindir}/postgres
942 %attr(755,root,root) %{_bindir}/postmaster
943
944 %attr(755,root,root) %{_pgmoduledir}/ascii*
945 %attr(755,root,root) %{_pgmoduledir}/cyrillic*
946 %attr(755,root,root) %{_pgmoduledir}/euc*
947 %attr(755,root,root) %{_pgmoduledir}/latin*
948 %attr(755,root,root) %{_pgmoduledir}/utf*
949
950 %dir %{_pgsqldir}
951 %dir %{_datadir}/postgresql
952 %dir %{_datadir}/postgresql/timezone
953 %{_datadir}/postgresql/*.bki
954 %{_datadir}/postgresql/*.sample
955 %{_datadir}/postgresql/*.description
956 %{_datadir}/postgresql/*.sql
957 %{_datadir}/postgresql/*.txt
958 %{_datadir}/postgresql/timezone/*
959
960 %attr(700,postgres,postgres) /home/services/postgres
961 %attr(700,postgres,postgres) %dir /var/lib/pgsql
962 %attr(640,postgres,postgres) %config(noreplace) %verify(not md5 mtime size) /var/log/pgsql
963
964 %{_mandir}/man1/initdb.1*
965 %{_mandir}/man1/ipcclean.1*
966 %{_mandir}/man1/pg_controldata.1*
967 %{_mandir}/man1/pg_ctl.1*
968 %{_mandir}/man1/pg_resetxlog.1*
969 %{_mandir}/man1/postgres.1*
970 %{_mandir}/man1/postmaster.1*
971
972 %files doc
973 %defattr(644,root,root,755)
974 %doc doc/unpacked/* doc/src/FAQ howto
975 %{_examplesdir}/%{name}-%{version}
976
977 %files libs -f libpq.lang
978 %defattr(644,root,root,755)
979 %attr(755,root,root) %{_libdir}/libpq.so.*
980 %dir %{_pgmoduledir}
981
982 %files ecpg
983 %defattr(644,root,root,755)
984 %attr(755,root,root) %{_bindir}/ecpg
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 %{_mandir}/man1/ecpg.1*
989
990 %files ecpg-devel
991 %defattr(644,root,root,755)
992 %attr(755,root,root) %{_libdir}/libecpg.so
993 %attr(755,root,root) %{_libdir}/libecpg_compat.so
994 %attr(755,root,root) %{_libdir}/libpgtypes.so
995 %{_includedir}/ecpg
996
997 %files devel -f pg_config.lang
998 %defattr(644,root,root,755)
999 %attr(755,root,root) %{_bindir}/pg_config
1000 %attr(755,root,root) %{_libdir}/libpq.so
1001 %dir %{_includedir}/postgresql
1002 %{_includedir}/libpq-fe.h
1003 %{_includedir}/pg_config.h
1004 %{_includedir}/pg_config_manual.h
1005 %{_includedir}/pg_config_os.h
1006 %{_includedir}/postgres_ext.h
1007 %dir %{_includedir}/postgresql/internal
1008 %{_includedir}/postgresql/internal/c.h
1009 %{_includedir}/postgresql/internal/libpq-int.h
1010 %{_includedir}/postgresql/internal/port.h
1011 %{_includedir}/postgresql/internal/postgres_fe.h
1012 %{_includedir}/postgresql/internal/pqexpbuffer.h
1013 %{_includedir}/postgresql/internal/libpq
1014 %{_includedir}/libpq
1015 %{_mandir}/man1/pg_config.1*
1016
1017 %files backend-devel
1018 %defattr(644,root,root,755)
1019 %{_includedir}/postgresql/server
1020 %dir %{_pgmoduledir}/pgxs
1021 %attr(755,root,root) %{_pgmoduledir}/pgxs/config
1022 %{_pgmoduledir}/pgxs/src
1023
1024 %files static
1025 %defattr(644,root,root,755)
1026 %{_libdir}/libecpg.a
1027 %{_libdir}/libecpg_compat.a
1028 %{_libdir}/libpq.a
1029 %{_libdir}/libpgtypes.a
1030 %{_libdir}/libpgport.a
1031
1032 %files clients -f clients.lang
1033 %defattr(644,root,root,755)
1034 %attr(755,root,root) %{_bindir}/clusterdb
1035 %attr(755,root,root) %{_bindir}/createdb
1036 %attr(755,root,root) %{_bindir}/createlang
1037 %attr(755,root,root) %{_bindir}/createuser
1038 %attr(755,root,root) %{_bindir}/dropdb
1039 %attr(755,root,root) %{_bindir}/droplang
1040 %attr(755,root,root) %{_bindir}/dropuser
1041 %attr(755,root,root) %{_bindir}/pg_dump
1042 %attr(755,root,root) %{_bindir}/pg_dumpall
1043 %attr(755,root,root) %{_bindir}/pg_restore
1044 %attr(755,root,root) %{_bindir}/psql
1045 %attr(755,root,root) %{_bindir}/reindexdb
1046 %attr(755,root,root) %{_bindir}/vacuumdb
1047
1048 %{_mandir}/man1/clusterdb.1*
1049 %{_mandir}/man1/createdb.1*
1050 %{_mandir}/man1/createlang.1*
1051 %{_mandir}/man1/createuser.1*
1052 %{_mandir}/man1/dropdb.1*
1053 %{_mandir}/man1/droplang.1*
1054 %{_mandir}/man1/dropuser.1*
1055 %{_mandir}/man1/pg_dump.1*
1056 %{_mandir}/man1/pg_dumpall.1*
1057 %{_mandir}/man1/pg_restore.1*
1058 %{_mandir}/man1/psql.1*
1059 %{_mandir}/man1/reindexdb.1*
1060 %{_mandir}/man1/vacuumdb.1*
1061 %{_mandir}/man7/*.7*
1062
1063 %files module-plpgsql
1064 %defattr(644,root,root,755)
1065 %attr(755,root,root) %{_pgmoduledir}/plpgsql.so
1066
1067 %if %{with perl}
1068 %files module-plperl
1069 %defattr(644,root,root,755)
1070 %attr(755,root,root) %{_pgmoduledir}/plperl.so
1071 %endif
1072
1073 %if %{with python}
1074 %files module-plpython
1075 %defattr(644,root,root,755)
1076 %attr(755,root,root) %{_pgmoduledir}/plpython.so
1077 %endif
1078
1079 %if %{with tcl}
1080 %files module-pltcl
1081 %defattr(644,root,root,755)
1082 %attr(755,root,root) %{_bindir}/pltcl_*
1083 %attr(755,root,root) %{_pgmoduledir}/pltcl.so
1084 %endif
1085
1086 %files module-lo
1087 %defattr(644,root,root,755)
1088 %doc contrib/lo/README.lo
1089 %attr(755,root,root) %{_pgmoduledir}/lo.so
1090 %{_pgsqldir}/lo*.sql
1091
1092 %files module-pgcrypto
1093 %defattr(644,root,root,755)
1094 %doc contrib/pgcrypto/README*
1095 %attr(755,root,root) %{_pgmoduledir}/pgcrypto.so
1096 %{_pgsqldir}/pgcrypto.sql
1097
1098 %files module-tsearch2
1099 %defattr(644,root,root,755)
1100 %doc contrib/tsearch2/README*
1101 %attr(755,root,root) %{_pgmoduledir}/tsearch2.so
1102 %{_pgsqldir}/tsearch2.sql
1103 %{_pgsqldir}/untsearch2.sql
1104 %{_pgsqldir}/*.stop
This page took 0.302471 seconds and 4 git commands to generate.