]> git.pld-linux.org Git - packages/postgresql.git/blob - postgresql.spec
- slony1 removed -- version 1.1 may be built separately
[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     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 %define         postgresql_version      8.0.3
17 %define         postgresql_release      3.1
18
19 Summary:        PostgreSQL Data Base Management System
20 Summary(de):    PostgreSQL Datenbankverwaltungssystem
21 Summary(es):    Gestor de Banco de Datos PostgreSQL
22 Summary(fr):    Sysème de gestion de base de données PostgreSQL
23 Summary(pl):    PostgreSQL - system bazodanowy
24 Summary(pt_BR): Gerenciador de Banco de Dados PostgreSQL
25 Summary(ru):    PostgreSQL - ÓÉÓÔÅÍÁ ÕÐÒÁ×ÌÅÎÉÑ ÂÁÚÁÍÉ ÄÁÎÎÙÈ
26 Summary(tr):    Veri Tabaný Yönetim Sistemi
27 Summary(uk):    PostgreSQL - ÓÉÓÔÅÍÁ ËÅÒÕ×ÁÎÎÑ ÂÁÚÁÍÉ ÄÁÎÉÈ
28 Summary(zh_CN): PostgreSQL ¿Í»§¶Ë³ÌÐòºÍ¿âÎļþ
29 Name:           postgresql
30 Version:        %{postgresql_version}
31 Release:        %{postgresql_release}
32 License:        BSD
33 Group:          Applications/Databases
34 Source0:        ftp://ftp.postgresql.org/pub/source/v%{postgresql_version}/%{name}-%{postgresql_version}.tar.bz2
35 # Source0-md5:  c0914a133ce6c1e0f1d8b93982d6e881
36 ##Source0:      ftp://ftp.postgresql.org/pub/source/v%{version}beta/%{name}-%{version}%{beta}.tar.bz2
37 Source1:        %{name}.init
38 Source2:        pgsql-Database-HOWTO-html.tar.gz
39 # Source2-md5:  5b656ddf1db41965761f85204a14398e
40 Source3:        %{name}.sysconfig
41 Source8:        http://www.commandprompt.com/files/plphp-8.x.tar.bz2
42 # Source8-md5:  d307e4ab8cb6900a1c290a5dde1bdeee
43 Patch0:         %{name}-conf.patch
44 Patch1:         %{name}-absolute_dbpaths.patch
45 Patch2:         %{name}-link.patch
46 Patch3:         %{name}-ecpg_link.patch
47 Patch4:         %{name}-ecpg-includedir.patch
48 Patch5:         %{name}-ac.patch
49 Icon:           postgresql.xpm
50 URL:            http://www.postgresql.org/
51 BuildRequires:  autoconf
52 BuildRequires:  automake
53 #BuildRequires: bison >= 1.875  not needed for releases
54 BuildRequires:  flex
55 BuildRequires:  gettext-devel
56 %{?with_kerberos5:BuildRequires:        heimdal-devel}
57 BuildRequires:  libtool
58 BuildRequires:  ncurses-devel >= 5.0
59 BuildRequires:  openssl-devel >= 0.9.7d
60 BuildRequires:  pam-devel
61 %{?with_perl:BuildRequires:     perl-devel}
62 %if %{with php}
63 BuildRequires:  php-devel
64 %endif
65 %if %{with python}
66 BuildRequires:  python >= 1:2.3
67 BuildRequires:  python-devel >= 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 = %{postgresql_version}-%{postgresql_release}
76 PreReq:         %{name}-libs = %{postgresql_version}-%{postgresql_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}-%{postgresql_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 = %{postgresql_version}-%{postgresql_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 = %{postgresql_version}-%{postgresql_release}
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± 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} = %{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± 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} = %{postgresql_version}-%{postgresql_release}
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} = %{postgresql_version}-%{postgresql_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} = %{postgresql_version}-%{postgresql_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-pgcrypto
697 Summary:        Cryptographic functions for PostgreSQL
698 Summary(pl):    Funkcje kryptograficzne dla PostgreSQL
699 Group:          Applications/Databases
700 Requires:       %{name} = %{postgresql_version}-%{postgresql_release}
701
702 %description module-pgcrypto
703 Cryptographic functions for PostgreSQL.
704
705 %description module-pgcrypto -l pl
706 Funkcje kryptograficzne dla PostgreSQL.
707
708 %package module-tsearch2
709 Summary:        Full text extension for PostgreSQL
710 Summary(pl):    Rozszerzenie pe³notekstowe dla PostgreSQL-a
711 Group:          Applications/Databases
712 Requires:       %{name} = %{postgresql_version}-%{postgresql_release}
713
714 %description module-tsearch2
715 Implementation of a new data type tsvector - a searchable data type
716 with indexed access:
717 http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/
718
719 %description module-tsearch2 -l pl
720 Implementacja nowego typu danych tsvector - typu danych podlegaj±cego
721 przeszukiwaniu z dostêpem poprzez indeksy:
722 http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/
723
724 %prep
725 %setup -q -a8
726 %patch0 -p1
727 %{?with_absolute_dbpaths:%patch1 -p1}
728 %patch2 -p1
729 %patch3 -p1
730 %patch4 -p1
731 #patch5 -p1     needed for glibc2.3.4 + gcc4
732
733 %if %{with php}
734 patch -p1 < plphp.patch
735 %endif
736
737 tar xzf doc/man*.tar.gz
738
739 mkdir doc/unpacked
740 tar zxf doc/postgres.tar.gz -C doc/unpacked
741
742 # Erase all CVS dirs
743 #find contrib -type d -name CVS -exec rm -rf {} \;
744
745 %build
746 %{__aclocal} -I config
747 %{__autoconf}
748 %configure \
749         CFLAGS="%{rpmcflags} -DNEED_REENTRANT_FUNCS" \
750         --disable-rpath \
751         --enable-depend \
752         --enable-integer-datetimes \
753         %{?with_pgsql_locale:--enable-locale} \
754         %{?with_pgsql_multibyte:--enable-multibyte} \
755         --enable-nls \
756         --enable-recode \
757         --enable-syslog \
758         --enable-thread-safety \
759         --enable-unicode-conversion \
760         --with-CXX \
761         %{?with_kerberos5:--with-krb5} \
762         --with-openssl \
763         --with-pam \
764         %{?with_perl:--with-perl} \
765         %{?with_php:--with-php=/usr/include/php} \
766         %{?with_python:--with-python} \
767         %{?with_tcl:--with-tcl} \
768         --with-x \
769         --without-docdir 
770
771 %{__make}
772 %{__make} -C contrib/pg_autovacuum
773 %{__make} -C contrib/pgcrypto
774 %{__sed} -i 's:contrib/::g' contrib/tsearch2/tsearch.sql.in
775 %{__make} -C contrib/tsearch2
776 %{__make} -C src/tutorial \
777         NO_PGXS=1
778
779 %ifnarch sparc sparcv9 sparc64 alpha
780 %{?with_tests:%{__make} check}
781 %endif
782
783 %if %{with php}
784 cd src/pl/plphp
785 %{__make}
786 cd ../../../
787 %endif
788
789 %install
790 rm -rf $RPM_BUILD_ROOT
791 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{rc.d/init.d,sysconfig}} \
792         $RPM_BUILD_ROOT{/var/{lib/pgsql,log},%{_pgsqldir}} \
793         $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} \
794         $RPM_BUILD_ROOT%{_mandir} \
795         $RPM_BUILD_ROOT/home/services/postgres
796
797 install src/tutorial/*.sql $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
798
799 %{__make} install \
800         DESTDIR=$RPM_BUILD_ROOT
801
802 %{__cc} -shared -Wl,-soname,libpq.so.3 -o $RPM_BUILD_ROOT%{_libdir}/libpq.so.3.0.0 -L$RPM_BUILD_ROOT%{_libdir} -lpq
803
804 %if %{with perl}
805 %{__make} install -C src/pl/plperl \
806         DESTDIR=$RPM_BUILD_ROOT
807 %endif
808
809 %{__make} -C contrib/pg_autovacuum install \
810         DESTDIR=$RPM_BUILD_ROOT
811
812 %{__make} -C contrib/pgcrypto install \
813         DESTDIR=$RPM_BUILD_ROOT
814
815 %{__make} -C contrib/tsearch2 install \
816         DESTDIR=$RPM_BUILD_ROOT
817
818 %if %{with php}
819 cd src/pl/plphp
820 %{__make} install \
821         DESTDIR=$RPM_BUILD_ROOT
822 cd ../../../
823 %endif
824
825 touch $RPM_BUILD_ROOT/var/log/pgsql
826
827 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/postgresql
828 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/postgresql
829
830 install -d howto
831 tar zxf %{SOURCE2} -C howto
832
833 %py_comp $RPM_BUILD_ROOT%{py_libdir}
834 %py_ocomp $RPM_BUILD_ROOT%{py_libdir}
835
836 # find locales
837 for f in libpq pg_controldata pg_dump pg_resetxlog pgscripts postgres psql initdb pg_ctl pg_config; do
838         %find_lang $f
839 done
840 # merge locales
841 cat pgscripts.lang pg_resetxlog.lang postgres.lang pg_controldata.lang > main.lang
842 cat pg_dump.lang psql.lang initdb.lang pg_ctl.lang > clients.lang
843
844 # Remove Contrib documentation. We use macro %doc
845 rm -rf $RPM_BUILD_ROOT/contrib
846
847 %clean
848 rm -rf $RPM_BUILD_ROOT
849
850 %pre
851 PG_DB_CLUSTERS=""
852 if [ -f /etc/sysconfig/postgresql ]; then
853         . /etc/sysconfig/postgresql
854         if [ -z "$PG_DB_CLUSTERS" -a -n "$POSTGRES_DATA_DIR" ]; then
855                 PG_DB_CLUSTERS="$POSTGRES_DATA_DIR"
856         fi
857 fi
858 foundold=0
859 for pgdir in $PG_DB_CLUSTERS; do
860         if [ -f $pgdir/PG_VERSION ]; then
861                 if [ `cat $pgdir/PG_VERSION` != '8.0' ]; then
862                         echo "Found database(s) in older, incompatible format in cluster $pgdir."
863                         foundold=1
864                 fi
865         fi
866 done
867 if [ "$foundold" = "1" ]; then
868         echo
869         echo "Dump all data from clusters mentioned above (using pg_dump or pg_dumpall)"
870         echo "and clean (or rename) those directories; then upgrade postgresql and"
871         echo "restore all data (using pg_restore or psql)."
872         echo "Remember to stop the daemon before upgrading!"
873         echo
874         echo "Warning for upgrade from version *before* 7.2."
875         echo "Please note, that postgresql module path changed from"
876         echo "/usr/lib/pgsql/module to /usr/lib/postgresql. Change the path"
877         echo "in dump file before restore."
878         echo
879         echo "Warning for upgrade from version *before* 7.3."
880         echo "Reading following webpage is encouraged:"
881         echo "http://www.ca.postgresql.org/docs/momjian/upgrade_tips_7.3."
882         exit 1
883 fi
884
885 %groupadd -g 88 -r postgres
886 %useradd -M -o -r -u 88 -d /home/services/postgres -s /bin/sh -g postgres -c "PostgreSQL Server" postgres
887
888 # TODO: move  this to trigger!
889 if [ -n "`/bin/id -u postgres 2>/dev/null`" ]; then
890         /usr/sbin/usermod -d /home/services/postgres postgres
891 fi
892
893 %post
894 /sbin/chkconfig --add postgresql
895 if [ -f /var/lock/subsys/postgresql ]; then
896         /etc/rc.d/init.d/postgresql restart >&2 || :
897 else
898         echo "Run \"/etc/rc.d/init.d/postgresql start\" to start postgresql server."
899 fi
900
901 %preun
902 if [ "$1" = "0" ]; then
903         if [ -f /var/lock/subsys/postgresql ]; then
904                 /etc/rc.d/init.d/postgresql stop
905         fi
906         /sbin/chkconfig --del postgresql
907 fi
908
909 %post   libs -p /sbin/ldconfig
910 %postun libs -p /sbin/ldconfig
911
912 %post   ecpg -p /sbin/ldconfig
913 %postun ecpg -p /sbin/ldconfig
914
915 %files -f main.lang
916 %defattr(644,root,root,755)
917 %doc COPYRIGHT README HISTORY doc/{FAQ*,README*,bug.template}
918 %doc contrib/pg_autovacuum/README*
919 %attr(754,root,root) /etc/rc.d/init.d/postgresql
920 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/postgresql
921
922 %attr(755,root,root) %{_bindir}/initdb
923 %attr(755,root,root) %{_bindir}/ipcclean
924 %attr(755,root,root) %{_bindir}/pg_autovacuum
925 %attr(755,root,root) %{_bindir}/pg_controldata
926 %attr(755,root,root) %{_bindir}/pg_ctl
927 %attr(755,root,root) %{_bindir}/pg_resetxlog
928 %attr(755,root,root) %{_bindir}/postgres
929 %attr(755,root,root) %{_bindir}/postmaster
930
931 %attr(755,root,root) %{_pgmoduledir}/ascii*
932 %attr(755,root,root) %{_pgmoduledir}/cyrillic*
933 %attr(755,root,root) %{_pgmoduledir}/euc*
934 %attr(755,root,root) %{_pgmoduledir}/latin*
935 %attr(755,root,root) %{_pgmoduledir}/utf*
936
937 %dir %{_pgsqldir}
938 %dir %{_datadir}/postgresql
939 %dir %{_datadir}/postgresql/timezone
940 %{_datadir}/postgresql/*.bki
941 %{_datadir}/postgresql/*.sample
942 %{_datadir}/postgresql/*.description
943 %{_datadir}/postgresql/*.sql
944 %{_datadir}/postgresql/*.txt
945 %{_datadir}/postgresql/timezone/*
946
947 %attr(700,postgres,postgres) /home/services/postgres
948 %attr(700,postgres,postgres) %dir /var/lib/pgsql
949 %attr(640,postgres,postgres) %config(noreplace) %verify(not md5 mtime size) /var/log/pgsql
950
951 %{_mandir}/man1/initdb.1*
952 %{_mandir}/man1/ipcclean.1*
953 %{_mandir}/man1/pg_controldata.1*
954 %{_mandir}/man1/pg_ctl.1*
955 %{_mandir}/man1/pg_resetxlog.1*
956 %{_mandir}/man1/postgres.1*
957 %{_mandir}/man1/postmaster.1*
958
959 %files doc
960 %defattr(644,root,root,755)
961 %doc doc/unpacked/* doc/src/FAQ howto
962 %{_examplesdir}/%{name}-%{version}
963
964 %files libs -f libpq.lang
965 %defattr(644,root,root,755)
966 %attr(755,root,root) %{_libdir}/libpq.so.*
967 %dir %{_pgmoduledir}
968
969 %files ecpg
970 %defattr(644,root,root,755)
971 %attr(755,root,root) %{_bindir}/ecpg
972 %attr(755,root,root) %{_libdir}/libecpg.so.*.*
973 %attr(755,root,root) %{_libdir}/libecpg_compat.so.*.*
974 %attr(755,root,root) %{_libdir}/libpgtypes.so.*.*
975 %{_mandir}/man1/ecpg.1*
976
977 %files ecpg-devel
978 %defattr(644,root,root,755)
979 %attr(755,root,root) %{_libdir}/libecpg.so
980 %attr(755,root,root) %{_libdir}/libecpg_compat.so
981 %attr(755,root,root) %{_libdir}/libpgtypes.so
982 %{_includedir}/ecpg
983
984 %files devel -f pg_config.lang
985 %defattr(644,root,root,755)
986 %attr(755,root,root) %{_bindir}/pg_config
987 %attr(755,root,root) %{_libdir}/libpq.so
988 %dir %{_includedir}/postgresql
989 %{_includedir}/libpq-fe.h
990 %{_includedir}/pg_config.h
991 %{_includedir}/pg_config_manual.h
992 %{_includedir}/pg_config_os.h
993 %{_includedir}/postgres_ext.h
994 %dir %{_includedir}/postgresql/internal
995 %{_includedir}/postgresql/internal/c.h
996 %{_includedir}/postgresql/internal/libpq-int.h
997 %{_includedir}/postgresql/internal/port.h
998 %{_includedir}/postgresql/internal/postgres_fe.h
999 %{_includedir}/postgresql/internal/pqexpbuffer.h
1000 %{_includedir}/postgresql/internal/libpq
1001 %{_includedir}/libpq
1002 %{_mandir}/man1/pg_config.1*
1003
1004 %files backend-devel
1005 %defattr(644,root,root,755)
1006 %{_includedir}/postgresql/server
1007 %dir %{_pgmoduledir}/pgxs
1008 %attr(755,root,root) %{_pgmoduledir}/pgxs/config
1009 %{_pgmoduledir}/pgxs/src
1010
1011 %files static
1012 %defattr(644,root,root,755)
1013 %{_libdir}/libecpg.a
1014 %{_libdir}/libecpg_compat.a
1015 %{_libdir}/libpq.a
1016 %{_libdir}/libpgtypes.a
1017 %{_libdir}/libpgport.a
1018
1019 %files clients -f clients.lang
1020 %defattr(644,root,root,755)
1021 %attr(755,root,root) %{_bindir}/clusterdb
1022 %attr(755,root,root) %{_bindir}/createdb
1023 %attr(755,root,root) %{_bindir}/createlang
1024 %attr(755,root,root) %{_bindir}/createuser
1025 %attr(755,root,root) %{_bindir}/dropdb
1026 %attr(755,root,root) %{_bindir}/droplang
1027 %attr(755,root,root) %{_bindir}/dropuser
1028 %attr(755,root,root) %{_bindir}/pg_dump
1029 %attr(755,root,root) %{_bindir}/pg_dumpall
1030 %attr(755,root,root) %{_bindir}/pg_restore
1031 %attr(755,root,root) %{_bindir}/psql
1032 %attr(755,root,root) %{_bindir}/vacuumdb
1033
1034 %{_mandir}/man1/clusterdb.1*
1035 %{_mandir}/man1/createdb.1*
1036 %{_mandir}/man1/createlang.1*
1037 %{_mandir}/man1/createuser.1*
1038 %{_mandir}/man1/dropdb.1*
1039 %{_mandir}/man1/droplang.1*
1040 %{_mandir}/man1/dropuser.1*
1041 %{_mandir}/man1/pg_dump.1*
1042 %{_mandir}/man1/pg_dumpall.1*
1043 %{_mandir}/man1/pg_restore.1*
1044 %{_mandir}/man1/psql.1*
1045 %{_mandir}/man1/vacuumdb.1*
1046 %{_mandir}/man7/*.7*
1047
1048 %files module-plpgsql
1049 %defattr(644,root,root,755)
1050 %attr(755,root,root) %{_pgmoduledir}/plpgsql.so
1051
1052 %if %{with perl}
1053 %files module-plperl
1054 %defattr(644,root,root,755)
1055 %attr(755,root,root) %{_pgmoduledir}/plperl.so
1056 %endif
1057
1058 %if %{with python}
1059 %files module-plpython
1060 %defattr(644,root,root,755)
1061 %attr(755,root,root) %{_pgmoduledir}/plpython.so
1062 %endif
1063
1064 %if %{with tcl}
1065 %files module-pltcl
1066 %defattr(644,root,root,755)
1067 %attr(755,root,root) %{_bindir}/pltcl_*
1068 %attr(755,root,root) %{_pgmoduledir}/pltcl.so
1069 %endif
1070
1071 %files module-pgcrypto
1072 %defattr(644,root,root,755)
1073 %doc contrib/pgcrypto/README*
1074 %attr(755,root,root) %{_pgmoduledir}/pgcrypto.so
1075 %{_pgsqldir}/pgcrypto.sql
1076
1077 %files module-tsearch2
1078 %defattr(644,root,root,755)
1079 %doc contrib/tsearch2/README*
1080 %attr(755,root,root) %{_pgmoduledir}/tsearch2.so
1081 %{_pgsqldir}/tsearch2.sql
1082 %{_pgsqldir}/untsearch2.sql
1083 %{_pgsqldir}/*.stop
This page took 0.116796 seconds and 3 git commands to generate.