]> git.pld-linux.org Git - packages/postgresql.git/blob - postgresql.spec
841df751e9392c43b82828290e463714da67b873
[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
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.0.3
29 Release:        4
30 License:        BSD
31 Group:          Applications/Databases
32 Source0:        ftp://ftp.postgresql.org/pub/source/v%{version}/%{name}-%{version}.tar.bz2
33 # Source0-md5:  c0914a133ce6c1e0f1d8b93982d6e881
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
62 %endif
63 %if %{with python}
64 BuildRequires:  python >= 1:2.3
65 BuildRequires:  python-devel >= 1:2.3
66 %endif
67 BuildRequires:  readline-devel >= 4.2
68 BuildRequires:  rpmbuild(macros) >= 1.202
69 BuildRequires:  sed >= 4.0
70 %{?with_tcl:BuildRequires:      tcl-devel >= 8.4.3}
71 BuildRequires:  zlib-devel
72 PreReq:         rc-scripts
73 PreReq:         %{name}-clients = %{version}-%{release}
74 PreReq:         %{name}-libs = %{version}-%{release}
75 Requires(pre):  /usr/bin/getgid
76 Requires(pre):  /bin/id
77 Requires(pre):  /usr/sbin/groupadd
78 Requires(pre):  /usr/sbin/useradd
79 Requires(pre):  /usr/sbin/usermod
80 Requires(post,preun):   /sbin/chkconfig
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
597 %description module-plphp
598 From PostgreSQL documentation:
599
600 Postgres supports the definition of procedural languages. In the case
601 of a function or trigger procedure defined in a procedural language,
602 the database has no built-in knowledge about how to interpret the
603 function's source text. Instead, the task is passed to a handler that
604 knows the details of the language. The handler itself is a special
605 programming language function compiled into a shared object and loaded
606 on demand.
607
608 To enable PL/PHP procedural language for your database you have to
609 run createlang command.
610
611 %description module-plphp -l pl
612 Z dokumentacji PostgreSQL:
613
614 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
615 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
616 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
617 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
618 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
619 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
620 potrzeby.
621
622 Za pomoc± polecenia createlang mo¿na dodaæ obs³ugê jêzyka
623 proceduralnego PL/PHP dla swojej bazy danych.
624
625 %package module-plpython
626 Summary:        PL/Python - PostgreSQL procedural language
627 Summary(pl):    PL/Python - jêzyk proceduralny bazy danych PostgreSQL
628 Group:          Applications/Databases
629 Requires:       %{name} = %{version}-%{release}
630 %pyrequires_eq  python
631
632 %description module-plpython
633 From PostgreSQL documentation:
634
635 Postgres supports the definition of procedural languages. In the case
636 of a function or trigger procedure defined in a procedural language,
637 the database has no built-in knowledge about how to interpret the
638 function's source text. Instead, the task is passed to a handler that
639 knows the details of the language. The handler itself is a special
640 programming language function compiled into a shared object and loaded
641 on demand.
642
643 To enable PL/Python procedural language for your database you have to
644 run createlang command.
645
646 %description module-plpython -l pl
647 Z dokumentacji PostgreSQL:
648
649 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
650 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
651 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
652 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
653 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
654 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
655 potrzeby.
656
657 Za pomoc± polecenia createlang mo¿na dodaæ obs³ugê jêzyka
658 proceduralnego PL/Python dla swojej bazy danych.
659
660 %package module-pltcl
661 Summary:        PL/Tcl - PostgreSQL procedural language
662 Summary(pl):    PL/Tcl - jêzyk proceduralny bazy danych PostgreSQL
663 Group:          Applications/Databases
664 Requires:       %{name} = %{version}-%{release}
665
666 %description module-pltcl
667 From PostgreSQL documentation:
668
669 Postgres supports the definition of procedural languages. In the case
670 of a function or trigger procedure defined in a procedural language,
671 the database has no built-in knowledge about how to interpret the
672 function's source text. Instead, the task is passed to a handler that
673 knows the details of the language. The handler itself is a special
674 programming language function compiled into a shared object and loaded
675 on demand.
676
677 To enable PL/Tcl procedural language for your database you have to run
678 createlang command.
679
680 %description module-pltcl -l pl
681 Z dokumentacji PostgreSQL:
682
683 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
684 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
685 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
686 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
687 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
688 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
689 potrzeby.
690
691 Za pomoc± polecenia createlang mo¿na dodaæ obs³ugê jêzyka
692 proceduralnego PL/Tcl dla swojej bazy danych.
693
694 %package module-lo
695 Summary:        Large Objects module for PostgreSQL
696 Summary(pl):    Modu³ Large Objects dla PostgreSQL-a
697 Group:          Applications/Databases
698 Requires:       %{name} = %{version}-%{release}
699
700 %description module-lo
701 Large Objects module for PostgreSQL adds a new data type 'lo', some
702 support functions and a trigger which handles the orphaning problem.
703
704 %description module-lo -l pl
705 Modu³ Large Objects dla PostgreSQL-a dodaje nowy typ danych 'lo',
706 kilka funkcji pomocniczych i wyzwalacz rozwi±zuj±cy problem
707 osieroconych obiektów.
708
709 %package module-pgcrypto
710 Summary:        Cryptographic functions for PostgreSQL
711 Summary(pl):    Funkcje kryptograficzne dla PostgreSQL-a
712 Group:          Applications/Databases
713 Requires:       %{name} = %{version}-%{release}
714
715 %description module-pgcrypto
716 Cryptographic functions for PostgreSQL.
717
718 %description module-pgcrypto -l pl
719 Funkcje kryptograficzne dla PostgreSQL.
720
721 %package module-tsearch2
722 Summary:        Full text extension for PostgreSQL
723 Summary(pl):    Rozszerzenie pe³notekstowe dla PostgreSQL-a
724 Group:          Applications/Databases
725 Requires:       %{name} = %{version}-%{release}
726
727 %description module-tsearch2
728 Implementation of a new data type tsvector - a searchable data type
729 with indexed access:
730 http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/
731
732 %description module-tsearch2 -l pl
733 Implementacja nowego typu danych tsvector - typu danych podlegaj±cego
734 przeszukiwaniu z dostêpem poprzez indeksy:
735 http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/
736
737 %prep
738 %setup -q -a8
739 %patch0 -p1
740 %{?with_absolute_dbpaths:%patch1 -p1}
741 %patch2 -p1
742 %patch3 -p1
743 %patch4 -p1
744 #patch5 -p1     needed for glibc2.3.4 + gcc4
745
746 %if %{with php}
747 patch -p1 < plphp.patch
748 %endif
749
750 tar xzf doc/man*.tar.gz
751
752 mkdir doc/unpacked
753 tar zxf doc/postgres.tar.gz -C doc/unpacked
754
755 # Erase all CVS dirs
756 #find contrib -type d -name CVS -exec rm -rf {} \;
757
758 %build
759 %{__aclocal} -I config
760 %{__autoconf}
761 %configure \
762         CFLAGS="%{rpmcflags} -DNEED_REENTRANT_FUNCS" \
763         --disable-rpath \
764         --enable-depend \
765         --enable-integer-datetimes \
766         %{?with_pgsql_locale:--enable-locale} \
767         %{?with_pgsql_multibyte:--enable-multibyte} \
768         --enable-nls \
769         --enable-recode \
770         --enable-syslog \
771         --enable-thread-safety \
772         --enable-unicode-conversion \
773         --with-CXX \
774         %{?with_kerberos5:--with-krb5} \
775         --with-openssl \
776         --with-pam \
777         %{?with_perl:--with-perl} \
778         %{?with_php:--with-php=/usr/include/php} \
779         %{?with_python:--with-python} \
780         %{?with_tcl:--with-tcl} \
781         --with-x \
782         --without-docdir 
783
784 %{__make}
785 %{__make} -C contrib/lo
786 %{__make} -C contrib/pg_autovacuum
787 %{__make} -C contrib/pgcrypto
788 %{__sed} -i 's:contrib/::g' contrib/tsearch2/tsearch.sql.in
789 %{__make} -C contrib/tsearch2
790 %{__make} -C src/tutorial \
791         NO_PGXS=1
792
793 %ifnarch sparc sparcv9 sparc64 alpha
794 %{?with_tests:%{__make} check}
795 %endif
796
797 %if %{with php}
798 cd src/pl/plphp
799 %{__make}
800 cd ../../../
801 %endif
802
803 %install
804 rm -rf $RPM_BUILD_ROOT
805 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{rc.d/init.d,sysconfig}} \
806         $RPM_BUILD_ROOT{/var/{lib/pgsql,log},%{_pgsqldir}} \
807         $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} \
808         $RPM_BUILD_ROOT%{_mandir} \
809         $RPM_BUILD_ROOT/home/services/postgres
810
811 install src/tutorial/*.sql $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
812
813 %{__make} install \
814         DESTDIR=$RPM_BUILD_ROOT
815
816 %{__cc} -shared -Wl,-soname,libpq.so.3 -o $RPM_BUILD_ROOT%{_libdir}/libpq.so.3.0.0 -L$RPM_BUILD_ROOT%{_libdir} -lpq
817
818 %if %{with perl}
819 %{__make} install -C src/pl/plperl \
820         DESTDIR=$RPM_BUILD_ROOT
821 %endif
822
823 %{__make} -C contrib/lo install \
824         DESTDIR=$RPM_BUILD_ROOT
825
826 %{__make} -C contrib/pg_autovacuum install \
827         DESTDIR=$RPM_BUILD_ROOT
828
829 %{__make} -C contrib/pgcrypto install \
830         DESTDIR=$RPM_BUILD_ROOT
831
832 %{__make} -C contrib/tsearch2 install \
833         DESTDIR=$RPM_BUILD_ROOT
834
835 %if %{with php}
836 cd src/pl/plphp
837 %{__make} install \
838         DESTDIR=$RPM_BUILD_ROOT
839 cd ../../../
840 %endif
841
842 touch $RPM_BUILD_ROOT/var/log/pgsql
843
844 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/postgresql
845 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/postgresql
846
847 install -d howto
848 tar zxf %{SOURCE2} -C howto
849
850 %py_comp $RPM_BUILD_ROOT%{py_libdir}
851 %py_ocomp $RPM_BUILD_ROOT%{py_libdir}
852
853 # find locales
854 for f in libpq pg_controldata pg_dump pg_resetxlog pgscripts postgres psql initdb pg_ctl pg_config; do
855         %find_lang $f
856 done
857 # merge locales
858 cat pgscripts.lang pg_resetxlog.lang postgres.lang pg_controldata.lang > main.lang
859 cat pg_dump.lang psql.lang initdb.lang pg_ctl.lang > clients.lang
860
861 # Remove Contrib documentation. We use macro %doc
862 rm -rf $RPM_BUILD_ROOT/contrib
863
864 %clean
865 rm -rf $RPM_BUILD_ROOT
866
867 %pre
868 PG_DB_CLUSTERS=""
869 if [ -f /etc/sysconfig/postgresql ]; then
870         . /etc/sysconfig/postgresql
871         if [ -z "$PG_DB_CLUSTERS" -a -n "$POSTGRES_DATA_DIR" ]; then
872                 PG_DB_CLUSTERS="$POSTGRES_DATA_DIR"
873         fi
874 fi
875 foundold=0
876 for pgdir in $PG_DB_CLUSTERS; do
877         if [ -f $pgdir/PG_VERSION ]; then
878                 if [ `cat $pgdir/PG_VERSION` != '8.0' ]; then
879                         echo "Found database(s) in older, incompatible format in cluster $pgdir."
880                         foundold=1
881                 fi
882         fi
883 done
884 if [ "$foundold" = "1" ]; then
885         echo
886         echo "Dump all data from clusters mentioned above (using pg_dump or pg_dumpall)"
887         echo "and clean (or rename) those directories; then upgrade postgresql and"
888         echo "restore all data (using pg_restore or psql)."
889         echo "Remember to stop the daemon before upgrading!"
890         echo
891         echo "Warning for upgrade from version *before* 7.2."
892         echo "Please note, that postgresql module path changed from"
893         echo "/usr/lib/pgsql/module to /usr/lib/postgresql. Change the path"
894         echo "in dump file before restore."
895         echo
896         echo "Warning for upgrade from version *before* 7.3."
897         echo "Reading following webpage is encouraged:"
898         echo "http://www.ca.postgresql.org/docs/momjian/upgrade_tips_7.3."
899         exit 1
900 fi
901
902 %groupadd -g 88 -r postgres
903 %useradd -M -o -r -u 88 -d /home/services/postgres -s /bin/sh -g postgres -c "PostgreSQL Server" postgres
904
905 # TODO: move  this to trigger!
906 if [ -n "`/bin/id -u postgres 2>/dev/null`" ]; then
907         /usr/sbin/usermod -d /home/services/postgres postgres
908 fi
909
910 %post
911 /sbin/chkconfig --add postgresql
912 if [ -f /var/lock/subsys/postgresql ]; then
913         /etc/rc.d/init.d/postgresql restart >&2 || :
914 else
915         echo "Run \"/etc/rc.d/init.d/postgresql start\" to start postgresql server."
916 fi
917
918 %preun
919 if [ "$1" = "0" ]; then
920         if [ -f /var/lock/subsys/postgresql ]; then
921                 /etc/rc.d/init.d/postgresql stop
922         fi
923         /sbin/chkconfig --del postgresql
924 fi
925
926 %post   libs -p /sbin/ldconfig
927 %postun libs -p /sbin/ldconfig
928
929 %post   ecpg -p /sbin/ldconfig
930 %postun ecpg -p /sbin/ldconfig
931
932 %files -f main.lang
933 %defattr(644,root,root,755)
934 %doc COPYRIGHT README HISTORY doc/{FAQ*,README*,bug.template}
935 %doc contrib/pg_autovacuum/README*
936 %attr(754,root,root) /etc/rc.d/init.d/postgresql
937 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/postgresql
938
939 %attr(755,root,root) %{_bindir}/initdb
940 %attr(755,root,root) %{_bindir}/ipcclean
941 %attr(755,root,root) %{_bindir}/pg_autovacuum
942 %attr(755,root,root) %{_bindir}/pg_controldata
943 %attr(755,root,root) %{_bindir}/pg_ctl
944 %attr(755,root,root) %{_bindir}/pg_resetxlog
945 %attr(755,root,root) %{_bindir}/postgres
946 %attr(755,root,root) %{_bindir}/postmaster
947
948 %attr(755,root,root) %{_pgmoduledir}/ascii*
949 %attr(755,root,root) %{_pgmoduledir}/cyrillic*
950 %attr(755,root,root) %{_pgmoduledir}/euc*
951 %attr(755,root,root) %{_pgmoduledir}/latin*
952 %attr(755,root,root) %{_pgmoduledir}/utf*
953
954 %dir %{_pgsqldir}
955 %dir %{_datadir}/postgresql
956 %dir %{_datadir}/postgresql/timezone
957 %{_datadir}/postgresql/*.bki
958 %{_datadir}/postgresql/*.sample
959 %{_datadir}/postgresql/*.description
960 %{_datadir}/postgresql/*.sql
961 %{_datadir}/postgresql/*.txt
962 %{_datadir}/postgresql/timezone/*
963
964 %attr(700,postgres,postgres) /home/services/postgres
965 %attr(700,postgres,postgres) %dir /var/lib/pgsql
966 %attr(640,postgres,postgres) %config(noreplace) %verify(not md5 mtime size) /var/log/pgsql
967
968 %{_mandir}/man1/initdb.1*
969 %{_mandir}/man1/ipcclean.1*
970 %{_mandir}/man1/pg_controldata.1*
971 %{_mandir}/man1/pg_ctl.1*
972 %{_mandir}/man1/pg_resetxlog.1*
973 %{_mandir}/man1/postgres.1*
974 %{_mandir}/man1/postmaster.1*
975
976 %files doc
977 %defattr(644,root,root,755)
978 %doc doc/unpacked/* doc/src/FAQ howto
979 %{_examplesdir}/%{name}-%{version}
980
981 %files libs -f libpq.lang
982 %defattr(644,root,root,755)
983 %attr(755,root,root) %{_libdir}/libpq.so.*
984 %dir %{_pgmoduledir}
985
986 %files ecpg
987 %defattr(644,root,root,755)
988 %attr(755,root,root) %{_bindir}/ecpg
989 %attr(755,root,root) %{_libdir}/libecpg.so.*.*
990 %attr(755,root,root) %{_libdir}/libecpg_compat.so.*.*
991 %attr(755,root,root) %{_libdir}/libpgtypes.so.*.*
992 %{_mandir}/man1/ecpg.1*
993
994 %files ecpg-devel
995 %defattr(644,root,root,755)
996 %attr(755,root,root) %{_libdir}/libecpg.so
997 %attr(755,root,root) %{_libdir}/libecpg_compat.so
998 %attr(755,root,root) %{_libdir}/libpgtypes.so
999 %{_includedir}/ecpg
1000
1001 %files devel -f pg_config.lang
1002 %defattr(644,root,root,755)
1003 %attr(755,root,root) %{_bindir}/pg_config
1004 %attr(755,root,root) %{_libdir}/libpq.so
1005 %dir %{_includedir}/postgresql
1006 %{_includedir}/libpq-fe.h
1007 %{_includedir}/pg_config.h
1008 %{_includedir}/pg_config_manual.h
1009 %{_includedir}/pg_config_os.h
1010 %{_includedir}/postgres_ext.h
1011 %dir %{_includedir}/postgresql/internal
1012 %{_includedir}/postgresql/internal/c.h
1013 %{_includedir}/postgresql/internal/libpq-int.h
1014 %{_includedir}/postgresql/internal/port.h
1015 %{_includedir}/postgresql/internal/postgres_fe.h
1016 %{_includedir}/postgresql/internal/pqexpbuffer.h
1017 %{_includedir}/postgresql/internal/libpq
1018 %{_includedir}/libpq
1019 %{_mandir}/man1/pg_config.1*
1020
1021 %files backend-devel
1022 %defattr(644,root,root,755)
1023 %{_includedir}/postgresql/server
1024 %dir %{_pgmoduledir}/pgxs
1025 %attr(755,root,root) %{_pgmoduledir}/pgxs/config
1026 %{_pgmoduledir}/pgxs/src
1027
1028 %files static
1029 %defattr(644,root,root,755)
1030 %{_libdir}/libecpg.a
1031 %{_libdir}/libecpg_compat.a
1032 %{_libdir}/libpq.a
1033 %{_libdir}/libpgtypes.a
1034 %{_libdir}/libpgport.a
1035
1036 %files clients -f clients.lang
1037 %defattr(644,root,root,755)
1038 %attr(755,root,root) %{_bindir}/clusterdb
1039 %attr(755,root,root) %{_bindir}/createdb
1040 %attr(755,root,root) %{_bindir}/createlang
1041 %attr(755,root,root) %{_bindir}/createuser
1042 %attr(755,root,root) %{_bindir}/dropdb
1043 %attr(755,root,root) %{_bindir}/droplang
1044 %attr(755,root,root) %{_bindir}/dropuser
1045 %attr(755,root,root) %{_bindir}/pg_dump
1046 %attr(755,root,root) %{_bindir}/pg_dumpall
1047 %attr(755,root,root) %{_bindir}/pg_restore
1048 %attr(755,root,root) %{_bindir}/psql
1049 %attr(755,root,root) %{_bindir}/vacuumdb
1050
1051 %{_mandir}/man1/clusterdb.1*
1052 %{_mandir}/man1/createdb.1*
1053 %{_mandir}/man1/createlang.1*
1054 %{_mandir}/man1/createuser.1*
1055 %{_mandir}/man1/dropdb.1*
1056 %{_mandir}/man1/droplang.1*
1057 %{_mandir}/man1/dropuser.1*
1058 %{_mandir}/man1/pg_dump.1*
1059 %{_mandir}/man1/pg_dumpall.1*
1060 %{_mandir}/man1/pg_restore.1*
1061 %{_mandir}/man1/psql.1*
1062 %{_mandir}/man1/vacuumdb.1*
1063 %{_mandir}/man7/*.7*
1064
1065 %files module-plpgsql
1066 %defattr(644,root,root,755)
1067 %attr(755,root,root) %{_pgmoduledir}/plpgsql.so
1068
1069 %if %{with perl}
1070 %files module-plperl
1071 %defattr(644,root,root,755)
1072 %attr(755,root,root) %{_pgmoduledir}/plperl.so
1073 %endif
1074
1075 %if %{with python}
1076 %files module-plpython
1077 %defattr(644,root,root,755)
1078 %attr(755,root,root) %{_pgmoduledir}/plpython.so
1079 %endif
1080
1081 %if %{with tcl}
1082 %files module-pltcl
1083 %defattr(644,root,root,755)
1084 %attr(755,root,root) %{_bindir}/pltcl_*
1085 %attr(755,root,root) %{_pgmoduledir}/pltcl.so
1086 %endif
1087
1088 %files module-lo
1089 %defattr(644,root,root,755)
1090 %doc contrib/lo/README.lo
1091 %attr(755,root,root) %{_pgmoduledir}/lo.so
1092 %{_pgsqldir}/lo*.sql
1093
1094 %files module-pgcrypto
1095 %defattr(644,root,root,755)
1096 %doc contrib/pgcrypto/README*
1097 %attr(755,root,root) %{_pgmoduledir}/pgcrypto.so
1098 %{_pgsqldir}/pgcrypto.sql
1099
1100 %files module-tsearch2
1101 %defattr(644,root,root,755)
1102 %doc contrib/tsearch2/README*
1103 %attr(755,root,root) %{_pgmoduledir}/tsearch2.so
1104 %{_pgsqldir}/tsearch2.sql
1105 %{_pgsqldir}/untsearch2.sql
1106 %{_pgsqldir}/*.stop
This page took 0.128724 seconds and 2 git commands to generate.