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