]> git.pld-linux.org Git - packages/postgresql.git/blob - postgresql.spec
- added pg_ctl-nopsql.patch which fixes server start on properly
[packages/postgresql.git] / postgresql.spec
1 #
2 # Conditional build:
3 # _with_jdbc            - with JDBC driver
4 #
5
6 %include        /usr/lib/rpm/macros.perl
7 %include        /usr/lib/rpm/macros.python
8
9 Summary:        PostgreSQL Data Base Management System
10 Summary(de):    PostgreSQL Datenbankverwaltungssystem
11 Summary(es):    Gestor de Banco de Datos PostgreSQL
12 Summary(fr):    Sysème de gestion de base de données PostgreSQL
13 Summary(pl):    PostgreSQL - system bazodanowy
14 Summary(pt_BR): Gerenciador de Banco de Dados PostgreSQL
15 Summary(tr):    Veri Tabaný Yönetim Sistemi
16 Name:           postgresql
17 Version:        7.2
18 Release:        8
19 License:        BSD
20 Group:          Applications/Databases
21 Source0:        ftp://ftp.postgresql.org/pub/source/v%{version}/%{name}-%{version}.tar.gz
22 Source1:        %{name}.init
23 Source2:        pgsql-Database-HOWTO-html.tar.gz
24 Source3:        %{name}.sysconfig
25 Source4:        pgaccess.desktop
26 Source5:        pgaccess.png
27 Patch0:         %{name}-no_libnsl.patch
28 Patch1:         %{name}-configure.patch
29 Patch2:         %{name}-ac_fixes.patch
30 Patch3:         %{name}-pg_ctl-silent.patch
31 Patch4:         %{name}-DESTDIR.patch
32 Patch5:         %{name}-contribfixes.patch
33 Patch6:         %{name}-pg_ctl-nopsql.patch
34 Icon:           postgresql.xpm
35 URL:            http://www.postgresql.org/
36 BuildRequires:  XFree86-devel
37 BuildRequires:  autoconf
38 BuildRequires:  automake
39 BuildRequires:  tcl-devel >= 8.3.2
40 BuildRequires:  tk-devel >= 8.3.2
41 BuildRequires:  readline-devel >= 4.2
42 BuildRequires:  ncurses-devel >= 5.0
43 BuildRequires:  openssl-devel >= 0.9.6a
44 BuildRequires:  perl-devel >= 5.6
45 BuildRequires:  python-devel >= 2.2
46 BuildRequires:  rpm-perlprov
47 BuildRequires:  rpm-pythonprov
48 BuildRequires:  zlib-devel
49 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50 Prereq:         /sbin/chkconfig
51 Prereq:         rc-scripts
52 Prereq:         %{name}-clients = %{version}
53 Prereq:         %{name}-libs = %{version}
54 Requires(pre):  /usr/bin/getgid
55 Requires(pre):  /bin/id
56 Requires(pre):  /usr/sbin/groupadd
57 Requires(pre):  /usr/sbin/useradd
58 Requires(pre):  /usr/sbin/usermod
59 Obsoletes:      postgresql-server
60 Obsoletes:      postgresql-test
61
62 %define         _pgmoduledir    %{_libdir}/postgresql
63 %define         _pgsqldir       %{_pgmoduledir}/sql
64
65 %description
66 PostgreSQL Data Base Management System (formerly known as Postgres,
67 then as Postgres95).
68
69 PostgreSQL is an enhancement of the POSTGRES database management
70 system, a next-generation DBMS research prototype. While PostgreSQL
71 retains the powerful data model and rich data types of POSTGRES, it
72 replaces the PostQuel query language with an extended subset of SQL.
73 PostgreSQL is free and the complete source is available.
74
75 PostgreSQL development is being performed by a team of Internet
76 developers who all subscribe to the PostgreSQL development mailing
77 list. The current coordinator is Marc G. Fournier
78 (scrappy@postgreSQL.org). This team is now responsible for all current
79 and future development of PostgreSQL.
80
81 The authors of PostgreSQL 1.01 were Andrew Yu and Jolly Chen. Many
82 others have contributed to the porting, testing, debugging and
83 enhancement of the code. The original Postgres code, from which
84 PostgreSQL is derived, was the effort of many graduate students,
85 undergraduate students, and staff programmers working under the
86 direction of Professor Michael Stonebraker at the University of
87 California, Berkeley.
88
89 The original name of the software at Berkeley was Postgres. When SQL
90 functionality was added in 1995, its name was changed to Postgres95.
91 The name was changed at the end of 1996 to PostgreSQL.
92
93 PostgreSQL runs on Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD,
94 and most flavours of Unix.
95
96 %description -l de
97 PostgreSQL Datenbank-Managementsystem (früher als Postgres, dann als
98 Postgres95 bekannt).
99
100 PostgreSQL ist eine Verbesserung des POSTGRES-DB-Managementsystems,
101 ein DBMS-Forschungsprototyp der nächsten Generation. Während es das
102 leistungsfähige Datenmodell und die reichhaltigen Datentypen von
103 POSTGRES beibehält, ersetzt es die PostQuel-Abfragesprache durch ein
104 Subset von SQL. PostgreSQL ist gratis, der gesamte Quellcode ist
105 verfügbar.
106
107 Ein Team von Internet-Entwicklern befaßt sich mit PostgreSQL. Sie alle
108 sind auf der PostgreSQL-Entwickleradreßliste. Koordinator ist Marc G.
109 Fournier (scrappy@postgreSQL.org). Das Team ist verantwortlich für
110 alle aktuellen und künftigen Entwicklungen von PostgreSQL.
111
112 Die Autoren von PostgreSQL 1.01 waren Andrew Yu und Jolly Chen.
113 Zahlreiche andere haben zur Portierung, zum Testen, Debugging und zur
114 Verbesserung des Code beigetragen. Den Original-Postgres-Code, von dem
115 sich PostgreSQL ableitet, verdanken wir der Arbeit vieler Doktoranden,
116 Studenten und Programmierern unter der Leitung von Professor Michael
117 Stonebraker an der University of California, Berkeley.
118
119 Der ursprüngliche Name war Postgres. Als 1995 SQL-Funktionalität
120 hinzukam, wurde der Name in Postgres95 geändert. Ende 1996 schließlich
121 entschied man sich für PostgreSQL.
122
123 PostgreSQL läuft auf Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD
124 und den meisten Unix-Systemen.
125
126 %description -l es
127 Administrador de Banco de Datos PostgreSQL (conocido anteriormente
128 como Postgres, y después como Postgres95). PostgreSQL es una
129 continuación mejorada del Sistema Administrador de Banco de Datos
130 POSTGRES, que era un prototipo de pesquisa para un SGBD de nueva
131 generación. Mientras PostgreSQL mantiene el potente modelo de datos y
132 los varios tipos de datos del POSTGRES, substituye el lenguaje de
133 consulta PostQuel por un subconjunto extendido de la SQL. PostgreSQL
134 es libre y tiene los fuentes disponibles. El desarrollo del PostgreSQL
135 se ejecutado por un equipo de estudiosos de Internet, todos suscritos
136 en la lista de desarrollo del PostgreSQL. El coordinador actual es
137 Marc G. Fournier (scrappy@postgreSQL.org). Este equipo es ahora
138 responsable por el desarrollo actual y futuro del PostgreSQL.
139
140 %description -l fr
141 Système de gestion de bases de données PostgreSQL (D'abord nommé
142 Postgres, puis Postgres95).
143
144 PostgreSQL est une amélioration du système de gestion de bases de
145 données POSTGRES, un prototype de recherche de la génération suivant
146 DBMS. Tout en conservant le puissant modèle de donnée de et les types
147 de donée riches de Postgres, il remplace le langage de requêtes de
148 Postgres par un sous ensemble etendu de commandes SQL. PosrgreSQL est
149 libre, et ses sources sont disponibles.
150
151 Le développement de PostgreSQL est actuellement réalisé via internet
152 parune équipe de développeurs inscrits sur la mailing-list de
153 développement de PostgreSQL. Le coordinateur actuel est Marc G
154 Fournier (scrappy@postgreSQL.org). Cette équipe est responsable du
155 développemen actuel et à venir de PostgreSQL.
156
157 Les auteurs de PostgreSQL 1.01 étaient Andrew Yu et Jolly Chen.
158 Beaucoup d'autres ont contribué au portage, au test, au débogage et à
159 l'amélioration du code. Le code original de Postgres, duquel
160 PostgreSQL est dérivé, a été l'oeuvre d'étudiants de haut niveau, de
161 moins haut niveau, et de programmeurs travaillant sous la direction du
162 professeur Michael Stonebraker à l'université de Berkeley Californie.
163
164 Le nom original du logiciel était Postgres. Quand les fonctionnalitées
165 SQL furent ajoutées en 1995, son nom est devenu Postgres95. Il a été
166 rebaptisé PostgreSQL en 1996.
167
168 PostgreSQL tourne sur Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD,
169 et la plupart des Unix.
170
171 %description -l pl
172 System Zarz±dzania Baz± Danych PostgreSQL (dawniej znany jako
173 Postgres, nastêpnie jako Postgres95).
174
175 PostgreSQL jest rozszerzeniem systemu zarz±dzania baz danych POSTGRES,
176 prototypu DBMS nastêpnej generacji. Co prawda PostgreSQL odziedziczy³
177 model danych oraz bogaty zbiór ró¿nych typów danych, to jednak jêzyk
178 zapytañ PostQuel zosta³ zast±piony rozszerzonym SQL-em. PostgreSQL
179 jest wolnym oprogramowaniem i kody ¼ród³owe tego oprogramowania s± w
180 pe³ni dostêpne.
181
182 System PostgreSQL jest tworzony przez zespó³ ludzi, którzy s± zapisani
183 na listê dyskusyjn± dotycz±c± PostgreSQL-a. Obecnym koordynatorem jest
184 Marc G. Fournier (scrappy@postgreSQL.org). Wymieniony wy¿ej zespó³
185 jest odpowiedzialny za aktualny i przysz³y rozwój systemu PostgreSQL.
186
187 Autorami PostgreSQL-a 1.01 byli Andrew Yu oraz Jolly Chen. Wielu
188 innych pomaga³o przenosz±c na ró¿ne platformy, testuj±c, analizuj±c i
189 rozszerzaj±c kod. Oryginalny kod Postgres-a, na podstawie którego
190 PostgreSQL powsta³, by³ wysi³kiem wielu absolwentów, studentów oraz
191 zespo³u programistów, którzy pracowali pod kierunkiem profesora
192 Michaela Stonebrakera z Uniwersytetu Kalifornii w Berkeley.
193
194 Nazwa oryginalna oprogramowania tworzonego w Berkeley brzmia³a
195 Postgres. W 1995 roku dodano jêzyk zapytañ SQL i nazwê zmieniono na
196 Postgres95. W koñcu roku 1996 nazwê ostatecznie zmieniono na
197 PostgreSQL.
198
199 PostgreSQL mo¿e byæ uruchominy pod nastêpuj±cymi systemami: Solaris,
200 SunOS, HPUX, AIX, Linux, Irix, FreeBSD i innych systemach Unix.
201
202 %description -l pt_BR
203 Gerenciador de Banco de Dados PostgreSQL (conhecido anteriormente como
204 Postgres, e depois como Postgres95).
205
206 O PostgreSQL é uma continuação melhorada do Sistema Gerenciador de
207 Banco de Dados POSTGRES, que era um protótipo de pesquisa para um SGBD
208 de nova geração. Enquanto o PostgreSQL mantém o poderoso modelo de
209 dados e os vários tipos de dados do POSTGRES, ele substitui a
210 linguagem de consulta PostQuel por um subconjunto estendido da SQL. O
211 PostgreSQL é livre e tem os fontes disponíveis.
212
213 O desenvolvimento do PostgreSQL está sendo executado por uma equipe de
214 desenvolvedores da Internet, todos subscritores da lista de
215 desenvolvimento do PostgreSQL. O coordenador atual é Marc G. Fournier
216 (scrappy@postgreSQL.org). Esta equipe é agora responsável pelo
217 desenvolvimento atual e futuro do PostgreSQL.
218
219 %description -l tr
220 PostgreSQL, POSTGRES'den türemiþ bir veri tabaný yönetim sistemidir
221 (DBMS). Güçlü veri modeli ve zengin POSTGRES veri tiplerini
222 desteklerken SQL'in geniþletilmiþ bir altkümesi yerine PostQuel
223 sorgulama dilini koyar.
224
225 %package devel
226 Summary:        PostgreSQL development header files and libraries
227 Summary(de):    PostgreSQL-Entwicklungs-Header-Dateien und Libraries
228 Summary(es):    Archivos de inclusión y bibliotecas PostgreSQL
229 Summary(fr):    En-têtes et bibliothèques de développement PostgreSQL
230 Summary(pl):    PostgreSQL - pliki nag³ówkowe i biblioteki
231 Summary(pt_BR): Arquivos de inclusão e bibliotecas para desenvolvimento com o PostgreSQL
232 Summary(tr):    PostgreSQL baþlýk dosyalarý ve kitaplýklar
233 Group:          Development/Libraries
234 Requires:       %{name}-libs = %{version}
235
236 %description devel
237 This package contains header files and libraries required to compile
238 applications that are talking directly to the PostgreSQL backend
239 server.
240
241 %description devel -l de
242 Dieses Paket enthält die Header-Dateien und Libraries, die zum
243 Kompilieren von Applikationen notwendig sind, die direkt mit dem
244 PostgreSQL-Backend-Server kommunizieren.
245
246 %description devel -l es
247 Este paquete contiene archivos de inclusión y bibliotecas requeridas
248 para compilación de aplicativos que se comunican directamente con el
249 servidor backend PostgreSQL.
250
251 %description devel -l fr
252 Ce package contient les fichiers d'en-tête et les bibliothéques
253 nécessaires pour compiler des applications ayant des échanges directs
254 avec le serveur du backend PostgreSQL.
255
256 %description devel -l pl
257 Pakiet zawiera nag³ówki oraz biblioteki wymagane do kompilacji
258 aplikacji ³±cz±cych siê bezpo¶rednio z serwerem PostgreSQL.
259
260 %description devel -l pt_BR
261 Este pacote contém arquivos de inclusão e bibliotecas requeridas para
262 compilação de aplicativos que se comunicam diretamente com o servidor
263 backend PostgreSQL.
264
265 %description devel -l tr
266 Bu paket, PostgreSQL sunucusuyla konuþacak yazýlýmlar geliþtirmek için
267 gereken baþlýk dosyalarýný ve kitaplýklarý içerir.
268
269 %package backend-devel
270 Summary:        PostgreSQL backend development header files
271 Summary(pl):    PostgreSQL - pliki nag³ówkowe dla backendu
272 Group:          Development/Libraries
273 Requires:       %{name}-libs = %{version}
274
275 %description backend-devel
276 This package contains header files required to compile functions that
277 could be loaded directly by backend
278
279 %description backend-devel -l pl
280 Pakiet zawiera nag³ówki wymagane do kompilacji funkcji ktore moga byc
281 bezposrednio ladowane przez beckend serwera PostgreSQL.
282
283 %package clients
284 Summary:        Clients needed to access a PostgreSQL server
285 Summary(es):    Clientes necesarios para acceder al servidor PostgreSQL
286 Summary(pl):    Klienci wymagani do dostêpu do serwera PostgreSQL
287 Summary(pt_BR): Clientes necessários para acessar o servidor PostgreSQL
288 Group:          Applications/Databases
289 Requires:       %{name}-libs = %{version}
290
291 %description clients
292 This package includes only the clients needed to access an PostgreSQL
293 server. The server is included in the main package. If all you need is
294 to connect to another PostgreSQL server, the this is the only package
295 you need to install. Clients include several command-line utilities
296 you can use to manage your databases on a remote PostgreSQL server.
297
298 %description clients -l es
299 Este paquete incluye solamente los clientes necesarios para acceder un
300 servidor PostgreSQL. El servidor está en el paquete principal.
301
302 %description clients -l pl
303 Pakiet zawiera programy klienckie potrzebne dla dostêpu do serwera
304 PostgreSQL oraz narzêdzia do zarz±dzania bazami dzia³aj±ce z linii
305 poleceñ. Serwer znajduje siê w g³ównym pakiecie.
306
307 %description clients -l pt_BR
308 Este pacote inclui somente os clientes necessários para acessar um
309 servidor PostgreSQL. O servidor está no pacote principal.
310
311 %package perl
312 Summary:        Perl interface to PostgreSQL database
313 Summary(es):    Módulo Perl para acceder un servidor PostgreSQL
314 Summary(pl):    Interfejs dla Perla umo¿liwiaj±cy dostêp do baz PostgreSQL
315 Summary(pt_BR): Módulo Perl para acesso ao servidor PostgreSQL
316 Group:          Applications/Databases
317 Requires:       perl >= 5.004
318 Requires:       %{name}-libs = %{version}
319
320 %description perl
321 This package includes only perl modules needed to access an PostgreSQL
322 server.
323
324 %description perl -l es
325 Módulo Perl para acceder un servidor PostgreSQL
326
327 %description perl -l pl
328 Pakiet ten zawiera tylko modu³y Perla wymagane dla dostêpu do serwera
329 PostgreSQL.
330
331 %description perl -l pt_BR
332 Módulo Perl para acesso ao servidor PostgreSQL.
333
334 %package -n python-postgresql
335 Summary:        The python-based client programs needed for accessing a PostgreSQL server
336 Summary(es):    Módulo Python para acceder un servidor PostgreSQL
337 Summary(pl):    Programy klienckie do dostêpu do serwera PostgreSQL napisane w Pythonie
338 Summary(pt_BR): Módulo Python para acesso ao servidor PostgreSQL.
339 Group:          Libraries/Python
340 Requires:       python >= 2.0
341 Requires:       python-mx-DateTime
342 Requires:       %{name}-libs = %{version}
343 Obsoletes:      python-PyGreSQL
344 Obsoletes:      postgresql-python
345
346 %description -n python-postgresql
347 postgresql-python includes the python-based client programs and client
348 libraries that you'll need to access a PostgreSQL database management
349 system server.
350
351 %description -n python-postgresql -l es
352 Módulo Python para acceder un servidor PostgreSQL
353
354 %description -n python-postgresql -l pl
355 Pakiet ten zawiera napisane w Pythonie programy i biblioteki klienckie
356 do dostêpu do serwera baz danych PostgreSQL.
357
358 %description -n python-postgresql -l pt_BR
359 Módulo Python para acesso ao servidor PostgreSQL.
360
361 %package doc
362 Summary:        Documentation for PostgreSQL
363 Summary(pl):    Dodatkowa dokumantacja dla PostgreSQL
364 Group:          Applications/Databases
365
366 %description doc
367 This package includes documentation and HOWTO for programmer, admin
368 etc., in HTML format.
369
370 %description doc -l pl
371 Pakiet ten zawiera dokumentacjê oraz HOWTO m.in. dla programistów,
372 administratorów w formacie HTML.
373
374 %package libs
375 Summary:        PostgreSQL libraries
376 Summary(es):    Biblioteca compartida del PostgreSQL
377 Summary(pl):    Biblioteki dzielone programu PostgreSQL
378 Summary(pt_BR): Biblioteca compartilhada do PostgreSQL
379 Group:          Libraries
380
381 %description libs
382 PostgreSQL shared libraries.
383
384 %description libs -l es
385 Este paquete contiene la biblioteca compartida para acceso al
386 postgresql.
387
388 %description libs -l pl
389 Biblioteki dzielone programu PostgreSQL.
390
391 %description libs -l pt_BR
392 Este pacote contém a biblioteca compartilhada para acesso ao
393 postgresql.
394
395 %package static
396 Summary:        PostgreSQL static libraries
397 Summary(es):    Bibliotecas estaticas PostgreSQL
398 Summary(pl):    Biblioteki statyczne programu PostgreSQL
399 Summary(pt_BR): Bibliotecas estáticas PostgreSQL
400 Group:          Development/Libraries
401 Requires:       %{name}-devel = %{version}
402
403 %description static
404 PostgreSQL static libraries.
405
406 %description static -l es
407 Este paquete contiene bibliotecas estaticas requerida para compilación
408 de aplicativos que se comunican directamente con el servidor backend
409 PostgreSQL.
410
411 %description static -l pl
412 Biblioteki statyczne programu PostgreSQL.
413
414 %description static -l pt_BR
415 Este pacote contém as bibliotecas estáticas requeridas para compilação
416 de aplicativos que se comunicam diretamente com o servidor backend
417 PostgreSQL.
418
419 %package c++
420 Summary:        C++ interface to PostgreSQL
421 Summary(pl):    Interfejs C++ do PostgreSQL
422 Group:          Applications/Databases
423 Requires:       %{name}-libs = %{version}
424
425 %description c++
426 This package includes library for C++ interface to PostgreSQL.
427
428 %description c++ -l pl
429 Pakiet ten zawiera biblioteki dla interfejsu C++ do PostgreSQL.
430
431 %package c++-devel
432 Summary:        C++ interface to PostgreSQL - development part
433 Summary(pl):    Interfejs C++ do PostgreSQL - cze¶æ programistyczna
434 Group:          Applications/Databases
435 Requires:       %{name}-c++ = %{version}
436 Requires:       %{name}-devel = %{version}
437
438 %description c++-devel
439 This package includes library and header files for C++ interface.
440
441 %description c++-devel -l pl
442 Pakiet ten zawiera biblioteki i pliki nag³ówkowe dla interfejsu C++.
443
444 %package c++-static
445 Summary:        C++ interface to PostgreSQL - static libraries
446 Summary(pl):    Interfejs C++ do PostgreSQL - biblioteki statyczne
447 Group:          Applications/Databases
448 Requires:       %{name}-c++-devel = %{version}
449
450 %description c++-static
451 This package includes static library for interface C++.
452
453 %description c++-static -l pl
454 Pakiet ten zawiera biblioteki statyczne dla interfejsu C++.
455
456 %package odbc
457 Summary:        ODBC interface to PostgreSQL
458 Summary(es):    Driver ODBC para acceder un servidor PostgreSQL
459 Summary(pl):    Interfejs ODBC do PostgreSQL
460 Summary(pt_BR): Driver ODBC necessário para acessar um servidor PostgreSQL
461 Group:          Applications/Databases
462 Requires:       %{name}-libs = %{version}
463
464 %description odbc
465 This package includes library for interface ODBC.
466
467 %description odbc -l es
468 Driver para acceder un servidor PostgreSQL, a través de ODBC.
469
470 %description odbc -l pl
471 Pakiet ten zawiera biblioteki dla interfejsu ODBC.
472
473 %description odbc -l pt_BR
474 Driver ODBC necessário para acessar um servidor PostgreSQL.
475
476 %package odbc-devel
477 Summary:        ODBC interface to PostgreSQL - development part
478 Summary(pl):    Interfejs ODBC do PostgreSQL - cze¶æ programistyczna
479 Group:          Applications/Databases
480 Requires:       %{name}-odbc = %{version}
481 Requires:       %{name}-devel = %{version}
482
483 %description odbc-devel
484 This package includes library and header files for interface ODBC.
485
486 %description odbc-devel -l pl
487 Pakiet ten zawiera biblioteki i pliki nag³ówkowe dla interfejsu ODBC.
488
489 %package odbc-static
490 Summary:        ODBC interface to PostgreSQL - static libraries
491 Summary(pl):    Interfejs ODBC do PostgreSQL - biblioteki statyczne
492 Group:          Applications/Databases
493 Requires:       %{name}-odbc-devel = %{version}
494
495 %description odbc-static
496 This package includes static library for interface ODBC.
497
498 %description odbc-static -l pl
499 Pakiet ten zawiera biblioteki statyczne dla interfejsu ODBC.
500
501 %package -n pgaccess
502 Summary:        A free graphical database management tool for PostgreSQL
503 Summary(pl):    Graficzne narzêdzie do obs³ugi baz danych PostgreSQL
504 Group:          Applications/Databases
505 Requires:       %{name}-tcl = %{version}
506
507 %description -n pgaccess
508 A free graphical database management tool for PostgreSQL.
509
510 %description -n pgaccess -l pl
511 Graficzne narzêdzie do obs³ugi baz danych PostgreSQL.
512
513 %package tcl
514 Summary:        tcl interface for PostgreSQL
515 Summary(es):    Bibliotecas y shell TCL para acceder un servidor PostgreSQL
516 Summary(pl):    Interfejs tcl dla PostgreSQL
517 Summary(pt_BR): Bibliotecas e shell para programas em TCL acessarem o servidor PostgreSQL
518 Group:          Development/Languages/Tcl
519 Requires:       %{name}-libs = %{version}
520
521 %description tcl
522 tcl interface for PostgreSQL.
523
524 %description tcl -l es
525 Bibliotecas y shell TCL para acceder un servidor PostgreSQL
526
527 %description tcl -l pl
528 Interfejs tcl dla PostgreSQL.
529
530 %description tcl -l pt_BR
531 Bibliotecas e shell para programas em TCL acessarem o servidor
532 PostgreSQL
533
534 %package tcl-devel
535 Summary:        Development part of tcl interface for PostgreSQL
536 Summary(pl):    Czê¶æ dla programistów interfejsu tcl dla PostgreSQL
537 Group:          Development/Languages/Tcl
538 Requires:       %{name}-tcl = %{version}
539 Requires:       %{name}-devel = %{version}
540
541 %description tcl-devel
542 Development part of tcl interface for PostgreSQL.
543
544 %description tcl-devel -l pl
545 Czê¶æ interfejsu tcl dla PostgreSQL przeznaczona dla programistów.
546
547 %package tcl-static
548 Summary:        Static libraries of tcl interface for PostgreSQL
549 Summary(pl):    Biblioteki statyczne interfejsu tcl dla PostgreSQL
550 Group:          Development/Languages/Tcl
551 Requires:       %{name}-tcl-devel = %{version}
552
553 %description tcl-static
554 Static libraries of tcl interface for PostgreSQL.
555
556 %description tcl-devel -l pl
557 Biblioteki statyczne interfejsu tcl dla PostgreSQL.
558
559 %package module-plpgsql
560 Summary:        PL/pgSQL - PostgreSQL procedural language
561 Summary(pl):    PL/pgSQL jêzyk proceduralny bazy danych PostgreSQL
562 Group:          Applications/Databases
563 Requires:       %{name} = %{version}
564
565 %description module-plpgsql
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/pgSQL procedural language for your database you have to
577 run createlang command.
578
579 %description module-plpgsql -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± komendy createlang mo¿na dodaæ wsparcie dla jêzyka
591 proceduralnego PL/pgSQL dla swojej bazy danych.
592
593 %package module-plperl
594 Summary:        PL/perl - PostgreSQL procedural language
595 Summary(pl):    PL/perl jêzyk proceduralny bazy danych PostgreSQL
596 Group:          Applications/Databases
597 Requires:       %{name} = %{version}
598 %requires_eq    perl
599
600 %description module-plperl
601 From PostgreSQL documentation.
602
603 Postgres supports the definition of procedural languages. In the case
604 of a function or trigger procedure defined in a procedural language,
605 the database has no built-in knowledge about how to interpret the
606 function's source text. Instead, the task is passed to a handler that
607 knows the details of the language. The handler itself is a special
608 programming language function compiled into a shared object and loaded
609 on demand.
610
611 To enable PL/perl procedural language for your database you have to
612 run createlang command.
613
614 %description module-plperl -l pl
615 Z dokumentacji PostgreSQL.
616
617 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
618 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
619 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
620 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
621 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
622 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
623 potrzeby.
624
625 Za pomoc± komendy createlang mo¿na dodaæ wsparcie dla jêzyka
626 proceduralnego PL/perl dla swojej bazy danych.
627
628 %package module-plpython
629 Summary:        PL/python - PostgreSQL procedural language
630 Summary(pl):    PL/python jêzyk proceduralny bazy danych PostgreSQL
631 Group:          Applications/Databases
632 Requires:       %{name} = %{version}
633 %requires_eq    python
634
635 %description module-plpython
636 From PostgreSQL documentation.
637
638 Postgres supports the definition of procedural languages. In the case
639 of a function or trigger procedure defined in a procedural language,
640 the database has no built-in knowledge about how to interpret the
641 function's source text. Instead, the task is passed to a handler that
642 knows the details of the language. The handler itself is a special
643 programming language function compiled into a shared object and loaded
644 on demand.
645
646 To enable PL/python procedural language for your database you have to
647 run createlang command.
648
649 %description module-plpython -l pl
650 Z dokumentacji PostgreSQL.
651
652 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
653 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
654 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
655 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
656 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
657 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
658 potrzeby.
659
660 Za pomoc± komendy createlang mo¿na dodaæ wsparcie dla jêzyka
661 proceduralnego PL/python dla swojej bazy danych.
662
663 %package module-pltcl
664 Summary:        PL/TCL - PostgreSQL procedural language
665 Summary(pl):    PL/TCL - jêzyk proceduralny bazy danych PostgreSQL
666 Group:          Applications/Databases
667 Requires:       %{name} = %{version}
668
669 %description module-pltcl
670 From PostgreSQL documentation.
671
672 Postgres supports the definition of procedural languages. In the case
673 of a function or trigger procedure defined in a procedural language,
674 the database has no built-in knowledge about how to interpret the
675 function's source text. Instead, the task is passed to a handler that
676 knows the details of the language. The handler itself is a special
677 programming language function compiled into a shared object and loaded
678 on demand.
679
680 To enable PL/TCL procedural language for your database you have to run
681 createlang command.
682
683 %description module-pltcl -l pl
684 Z dokumentacji PostgreSQL.
685
686 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
687 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
688 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
689 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
690 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
691 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
692 potrzeby.
693
694 Za pomoc± komendy createlang mo¿na dodaæ wsparcie dla jêzyka
695 proceduralnego PL/TCL dla swojej bazy danych.
696
697 %prep
698 %setup  -q
699 %patch0 -p1
700 %patch1 -p1
701 %patch2 -p1
702 %patch3 -p1
703 %patch4 -p1
704 %patch5 -p1
705 %patch6 -p0
706
707 tar xzf doc/man*.tar.gz
708
709 mkdir doc/unpacked
710 tar zxf doc/postgres.tar.gz -C doc/unpacked
711
712 # Erase all CVS dir
713 rm -fR `find contrib/ -type d -name CVS`
714
715 %build
716 rm -f config/libtool.m4
717 aclocal -I config
718 autoconf
719 %configure \
720         %{!?_without_pgsql_locale:--enable-locale} \
721         %{!?_without_pgsql_multibyte:--enable-multibyte} \
722         --disable-rpath \
723         --enable-depend \
724         --enable-odbc \
725         --enable-recode \
726         --enable-syslog \
727         --enable-unicode-conversion \
728         --with-CXX \
729         --with-tcl \
730         --with-tk \
731         --with-perl \
732         --with-python \
733         --with-openssl \
734         --enable-odbc \
735         --with-odbcinst=%{_sysconfdir} \
736         --with-x \
737 %{?_with_jdbc:  --with-java}
738
739 %{__make}
740 %ifnarch sparc sparcv9 sparc64 alpha ppc
741 %{!?_without_tests: %{__make} check }
742 %endif
743
744 %install
745 rm -rf $RPM_BUILD_ROOT
746 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{rc.d/init.d,sysconfig}} \
747         $RPM_BUILD_ROOT{/var/{lib/pgsql,log},%{_pgsqldir}} \
748         $RPM_BUILD_ROOT{%{_applnkdir}/System,%{_pixmapsdir}} \
749         $RPM_BUILD_ROOT/home/services/postgres
750
751 %{__make} install install-all-headers \
752         DESTDIR=$RPM_BUILD_ROOT
753
754 %{__make} install -C src/pl/plperl \
755         DESTDIR=$RPM_BUILD_ROOT
756
757 touch $RPM_BUILD_ROOT/var/log/pgsql
758
759 # Move PL/pgSQL procedural language to %{_pgmoduledir}
760 ( cd $RPM_BUILD_ROOT%{_libdir}
761   mv -f plpgsql.so $RPM_BUILD_ROOT%{_pgmoduledir}
762 )
763
764 # Move PL/TCL procedural language to %{_pgmoduledir}
765 ( cd $RPM_BUILD_ROOT%{_libdir}
766   mv -f pltcl.so $RPM_BUILD_ROOT%{_pgmoduledir}
767 )
768
769 # odbc
770 install src/interfaces/odbc/odbcinst.ini $RPM_BUILD_ROOT%{_sysconfdir}
771
772 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/postgresql
773 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/postgresql
774 install %{SOURCE4} $RPM_BUILD_ROOT%{_applnkdir}/System
775 install %{SOURCE5} $RPM_BUILD_ROOT%{_pixmapsdir}
776
777 cp -a man?         $RPM_BUILD_ROOT%{_mandir}
778
779 install -d howto
780 ( cd howto
781   tar xzf $RPM_SOURCE_DIR/pgsql-Database-HOWTO-html.tar.gz
782 )
783
784 %py_comp $RPM_BUILD_ROOT%{py_libdir}
785 %py_ocomp $RPM_BUILD_ROOT%{py_libdir}
786
787 gzip -9nf doc/FAQ doc/README* COPYRIGHT README HISTORY doc/bug.template \
788         src/interfaces/odbc/readme.txt \
789         src/interfaces/odbc/notice.txt
790
791 %clean
792 rm -rf $RPM_BUILD_ROOT
793 rm -f /tmp/tmp_perl_info
794
795 %pre
796 if [ -f /etc/sysconfig/postgresql ]; then
797     POSTGRES_DATA_DIR=/var/lib/pgsql
798     . /etc/sysconfig/postgresql
799     if [ -f $POSTGRES_DATA_DIR/PG_VERSION ]; then
800         if [ `cat $POSTGRES_DATA_DIR/PG_VERSION` != '7.2' ]; then
801             echo "Database(s) in older, incompatible format exist in $POSTGRES_DATA_DIR."
802             echo "Dump them and clean $POSTGRES_DATA_DIR, then upgrade postgresql and"
803             echo "restore database(s)."
804         echo
805         echo "Warning for upgrade from version *before* 7.2."
806         echo "Please note, that postgresql module path changed from"
807         echo "/usr/lib/pgsql/module to /usr/lib/postgresql. Change the path"
808         echo "in dump file before restore."
809             exit 1
810         fi
811     fi
812 fi
813
814 getgid postgres >/dev/null 2>&1 || /usr/sbin/groupadd -g 88 -r -f postgres
815 if id postgres >/dev/null 2>&1 ; then
816         /usr/sbin/usermod -d /home/services/postgres postgres
817 else
818         /usr/sbin/useradd -M -o -r -u 88 \
819                 -d /home/services/postgres -s /bin/sh -g postgres \
820                 -c "PostgreSQL Server" postgres
821 fi
822
823 %post
824 /sbin/chkconfig --add postgresql
825
826 if [ -f /var/lock/subsys/postgresql ]; then
827         /etc/rc.d/init.d/postgresql restart >&2
828 else
829         echo "Run \"/etc/rc.d/init.d/postgresql start\" to start postgresql server."
830 fi
831
832 %preun
833 if [ "$1" = "0" ]; then
834         if [ -f /var/lock/subsys/postgresql ]; then
835                 /etc/rc.d/init.d/postgresql stop
836         fi
837         /sbin/chkconfig --del postgresql
838 fi
839
840 %post   libs -p /sbin/ldconfig
841 %postun libs -p /sbin/ldconfig
842
843 %post   tcl -p /sbin/ldconfig
844 %postun tcl -p /sbin/ldconfig
845
846 %post   c++ -p /sbin/ldconfig
847 %postun c++ -p /sbin/ldconfig
848
849 %post   odbc -p /sbin/ldconfig
850 %postun odbc -p /sbin/ldconfig
851
852 %files
853 %defattr(644,root,root,755)
854 %attr(754,root,root) /etc/rc.d/init.d/*
855 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/sysconfig/*
856
857 %attr(755,root,root) %{_bindir}/createdb
858 %attr(755,root,root) %{_bindir}/createuser
859 %attr(755,root,root) %{_bindir}/dropdb
860 %attr(755,root,root) %{_bindir}/dropuser
861 %attr(755,root,root) %{_bindir}/initdb
862 %attr(755,root,root) %{_bindir}/initlocation
863 %attr(755,root,root) %{_bindir}/pg_ctl
864 %attr(755,root,root) %{_bindir}/pg_config
865 %attr(755,root,root) %{_bindir}/pg_encoding
866 %attr(755,root,root) %{_bindir}/pg_passwd
867 %attr(755,root,root) %{_bindir}/postgres
868 %attr(755,root,root) %{_bindir}/postmaster
869 %attr(755,root,root) %{_bindir}/ipcclean
870 %attr(755,root,root) %{_bindir}/createlang
871 %attr(755,root,root) %{_bindir}/droplang
872
873 %dir %{_pgsqldir}
874 %dir %{_pgmoduledir}
875 %{_datadir}/postgresql/*.bki
876 %{_datadir}/postgresql/*.sample
877 %{_datadir}/postgresql/*.description
878
879 %attr(700,postgres,postgres) /home/services/postgres
880 %attr(700,postgres,postgres) %dir /var/lib/pgsql
881 %attr(640,postgres,postgres) %config(noreplace) %verify(not md5 size mtime) /var/log/pgsql
882
883 %{_mandir}/man1/createdb.1*
884 %{_mandir}/man1/createlang.1*
885 %{_mandir}/man1/createuser.1*
886 %{_mandir}/man1/dropdb.1*
887 %{_mandir}/man1/droplang.1*
888 %{_mandir}/man1/dropuser.1*
889 %{_mandir}/man1/initdb.1*
890 %{_mandir}/man1/initlocation.1*
891 %{_mandir}/man1/pg_passwd.1*
892 %{_mandir}/man1/pg_ctl.1*
893 %{_mandir}/man1/pg_config.1*
894 %{_mandir}/man1/postgres.1*
895 %{_mandir}/man1/postmaster.1*
896 %{_mandir}/man1/ipcclean.1*
897
898 %doc contrib
899 %doc doc/FAQ* doc/README*
900 %doc COPYRIGHT.gz README.gz HISTORY.gz doc/bug.template.gz
901
902 %files doc
903 %defattr(644,root,root,755)
904 %doc doc/unpacked/*
905 %doc howto
906
907 %files libs
908 %defattr(644,root,root,755)
909 %attr(755,root,root) %{_libdir}/libpq.so.*.*
910 %attr(755,root,root) %{_libdir}/libpgeasy.so.*.*
911 %attr(755,root,root) %{_libdir}/libecpg.so.*.*
912 %attr(755,root,root) %{_bindir}/pg_id
913
914 %files devel
915 %defattr(644,root,root,755)
916 %attr(755,root,root) %{_bindir}/ecpg
917 %attr(755,root,root) %{_libdir}/libecpg.so
918 %attr(755,root,root) %{_libdir}/libpgeasy.so
919 %attr(755,root,root) %{_libdir}/libpq.so
920 %dir %{_includedir}/postgresql
921 %{_includedir}/pg_config.h
922 %{_includedir}/pg_config_os.h
923 %{_includedir}/ecpgerrno.h
924 %{_includedir}/ecpglib.h
925 %{_includedir}/ecpgtype.h
926 %{_includedir}/libpgeasy.h
927 %{_includedir}/libpq-fe.h
928 %{_includedir}/postgres_ext.h
929 %{_includedir}/sql3types.h
930 %{_includedir}/sqlca.h
931 %dir %{_includedir}/postgresql/internal
932 %{_includedir}/postgresql/internal/c.h
933 %{_includedir}/postgresql/internal/libpq-int.h
934 %{_includedir}/postgresql/internal/postgres_fe.h
935 %{_includedir}/postgresql/internal/pqexpbuffer.h
936 %{_includedir}/postgresql/internal/lib
937 %{_includedir}/postgresql/internal/libpq
938 %{_mandir}/man1/ecpg.1*
939
940 %files backend-devel
941 %defattr(644,root,root,755)
942 %{_includedir}/postgresql/server
943
944 %files static
945 %defattr(644,root,root,755)
946 %{_libdir}/libecpg.a
947 %{_libdir}/libpgeasy.a
948 %{_libdir}/libpq.a
949
950 %files clients
951 %defattr(644,root,root,755)
952 %attr(755,root,root) %{_bindir}/pg_dump
953 %attr(755,root,root) %{_bindir}/pg_dumpall
954 %attr(755,root,root) %{_bindir}/pg_restore
955 %attr(755,root,root) %{_bindir}/psql
956 %attr(755,root,root) %{_bindir}/vacuumdb
957
958 %{_mandir}/man1/pg_dump.1*
959 %{_mandir}/man1/pg_dumpall.1*
960 %{_mandir}/man1/pg_restore.1*
961 %{_mandir}/man1/psql.1*
962 %{_mandir}/man1/vacuumdb.1*
963 %{_mandir}/manl/*.l*
964
965 %files c++
966 %defattr(644,root,root,755)
967 %attr(755,root,root) %{_libdir}/libpq++.so.*.*
968
969 %files c++-devel
970 %defattr(644,root,root,755)
971 %attr(755,root,root) %{_libdir}/libpq++.so
972 %{_includedir}/libpq++.h
973 %{_includedir}/libpq++
974
975 %files c++-static
976 %defattr(644,root,root,755)
977 %{_libdir}/libpq++.a
978
979 %files perl
980 %defattr(644,root,root,755)
981 %dir %{perl_sitearch}/auto/Pg
982 %{perl_sitearch}/auto/Pg/Pg.bs
983 %attr(755,root,root) %{perl_sitearch}/auto/Pg/Pg.so
984 %{perl_sitearch}/auto/Pg/autosplit.ix
985 %{perl_sitearch}/Pg.pm
986 %{_mandir}/man3/*
987
988
989 %files -n python-postgresql
990 %defattr(644,root,root,755)
991 %{py_sitedir}/*.pyc
992 %{py_sitedir}/*.pyo
993 %attr(755,root,root) %{py_sitedir}/*.so
994
995 %files -n pgaccess
996 %defattr(644,root,root,755)
997 %doc src/bin/pgaccess/doc/html/*
998 %attr(755,root,root) %{_bindir}/pgaccess
999 %dir %{_datadir}/postgresql/pgaccess
1000 %attr(755, root, root) %{_datadir}/postgresql/pgaccess/main.tcl
1001 %{_datadir}/postgresql/pgaccess/images
1002 %{_datadir}/postgresql/pgaccess/lib
1003 %{_applnkdir}/System/pgaccess.desktop
1004 %{_pixmapsdir}/pgaccess.png
1005 %{_mandir}/man1/pgaccess.1*
1006
1007 %files tcl
1008 %defattr(644,root,root,755)
1009 %attr(755,root,root) %{_libdir}/libpgtcl.so
1010 %attr(755,root,root) %{_libdir}/libpgtcl.so.*.*
1011 %attr(755,root,root) %{_bindir}/pgtclsh
1012 %attr(755,root,root) %{_bindir}/pgtksh
1013 %{_mandir}/man1/pgtclsh.1*
1014 %{_mandir}/man1/pgtksh.1*
1015
1016 %files tcl-devel
1017 %defattr(644,root,root,755)
1018 %{_includedir}/libpgtcl.h
1019
1020 %files tcl-static
1021 %defattr(644,root,root,755)
1022 %{_libdir}/libpgtcl.a
1023
1024 %files odbc
1025 %defattr(644,root,root,755)
1026 %doc src/interfaces/odbc/readme.txt.gz src/interfaces/odbc/notice.txt.gz
1027 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/odbc*
1028 %attr(755,root,root) %{_libdir}/libpsqlodbc.so.*.*
1029 %{_datadir}/postgresql/odbc.sql
1030
1031 %files odbc-devel
1032 %defattr(644,root,root,755)
1033 #%{_includedir}/postgresql/iodbc
1034 %attr(755,root,root) %{_libdir}/libpsqlodbc.so
1035
1036 %files odbc-static
1037 %defattr(644,root,root,755)
1038 %{_libdir}/libpsqlodbc.a
1039
1040 %files module-plpgsql
1041 %defattr(644,root,root,755)
1042 %attr(755,root,root) %{_pgmoduledir}/plpgsql.so
1043
1044 %files module-plperl
1045 %defattr(644,root,root,755)
1046 %attr(755,root,root) %{_pgmoduledir}/plperl.so
1047
1048 %files module-plpython
1049 %defattr(644,root,root,755)
1050 %attr(755,root,root) %{_pgmoduledir}/plpython.so
1051
1052 %files module-pltcl
1053 %defattr(644,root,root,755)
1054 %attr(755,root,root) %{_pgmoduledir}/pltcl.so
This page took 0.121743 seconds and 4 git commands to generate.