3 # _with_jdbc - with JDBC driver
6 %include /usr/lib/rpm/macros.perl
7 %include /usr/lib/rpm/macros.python
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
20 Group: Applications/Databases
21 Source0: ftp://ftp.postgresql.org/pub/source/v%{version}/%{name}-%{version}.tar.gz
23 Source2: pgsql-Database-HOWTO-html.tar.gz
24 Source3: %{name}.sysconfig
25 Source4: pgaccess.desktop
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
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
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
62 %define _pgmoduledir %{_libdir}/postgresql
63 %define _pgsqldir %{_pgmoduledir}/sql
66 PostgreSQL Data Base Management System (formerly known as Postgres,
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.
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.
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
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.
93 PostgreSQL runs on Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD,
94 and most flavours of Unix.
97 PostgreSQL Datenbank-Managementsystem (früher als Postgres, dann als
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
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.
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.
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.
123 PostgreSQL läuft auf Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD
124 und den meisten Unix-Systemen.
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.
141 Système de gestion de bases de données PostgreSQL (D'abord nommé
142 Postgres, puis Postgres95).
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.
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.
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.
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.
168 PostgreSQL tourne sur Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD,
169 et la plupart des Unix.
172 System Zarz±dzania Baz± Danych PostgreSQL (dawniej znany jako
173 Postgres, nastêpnie jako Postgres95).
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
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.
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.
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
199 PostgreSQL mo¿e byæ uruchominy pod nastêpuj±cymi systemami: Solaris,
200 SunOS, HPUX, AIX, Linux, Irix, FreeBSD i innych systemach Unix.
202 %description -l pt_BR
203 Gerenciador de Banco de Dados PostgreSQL (conhecido anteriormente como
204 Postgres, e depois como Postgres95).
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.
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.
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.
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}
237 This package contains header files and libraries required to compile
238 applications that are talking directly to the PostgreSQL backend
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.
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.
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.
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.
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
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.
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}
275 %description backend-devel
276 This package contains header files required to compile functions that
277 could be loaded directly by backend
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.
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}
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.
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.
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.
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.
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}
321 This package includes only perl modules needed to access an PostgreSQL
324 %description perl -l es
325 Módulo Perl para acceder un servidor PostgreSQL
327 %description perl -l pl
328 Pakiet ten zawiera tylko modu³y Perla wymagane dla dostêpu do serwera
331 %description perl -l pt_BR
332 Módulo Perl para acesso ao servidor PostgreSQL.
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
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
351 %description -n python-postgresql -l es
352 Módulo Python para acceder un servidor PostgreSQL
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.
358 %description -n python-postgresql -l pt_BR
359 Módulo Python para acesso ao servidor PostgreSQL.
362 Summary: Documentation for PostgreSQL
363 Summary(pl): Dodatkowa dokumantacja dla PostgreSQL
364 Group: Applications/Databases
367 This package includes documentation and HOWTO for programmer, admin
368 etc., in HTML format.
370 %description doc -l pl
371 Pakiet ten zawiera dokumentacjê oraz HOWTO m.in. dla programistów,
372 administratorów w formacie HTML.
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
382 PostgreSQL shared libraries.
384 %description libs -l es
385 Este paquete contiene la biblioteca compartida para acceso al
388 %description libs -l pl
389 Biblioteki dzielone programu PostgreSQL.
391 %description libs -l pt_BR
392 Este pacote contém a biblioteca compartilhada para acesso ao
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}
404 PostgreSQL static libraries.
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
411 %description static -l pl
412 Biblioteki statyczne programu PostgreSQL.
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
420 Summary: C++ interface to PostgreSQL
421 Summary(pl): Interfejs C++ do PostgreSQL
422 Group: Applications/Databases
423 Requires: %{name}-libs = %{version}
426 This package includes library for C++ interface to PostgreSQL.
428 %description c++ -l pl
429 Pakiet ten zawiera biblioteki dla interfejsu C++ do PostgreSQL.
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}
438 %description c++-devel
439 This package includes library and header files for C++ interface.
441 %description c++-devel -l pl
442 Pakiet ten zawiera biblioteki i pliki nag³ówkowe dla interfejsu C++.
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}
450 %description c++-static
451 This package includes static library for interface C++.
453 %description c++-static -l pl
454 Pakiet ten zawiera biblioteki statyczne dla interfejsu C++.
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}
465 This package includes library for interface ODBC.
467 %description odbc -l es
468 Driver para acceder un servidor PostgreSQL, a través de ODBC.
470 %description odbc -l pl
471 Pakiet ten zawiera biblioteki dla interfejsu ODBC.
473 %description odbc -l pt_BR
474 Driver ODBC necessário para acessar um servidor PostgreSQL.
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}
483 %description odbc-devel
484 This package includes library and header files for interface ODBC.
486 %description odbc-devel -l pl
487 Pakiet ten zawiera biblioteki i pliki nag³ówkowe dla interfejsu ODBC.
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}
495 %description odbc-static
496 This package includes static library for interface ODBC.
498 %description odbc-static -l pl
499 Pakiet ten zawiera biblioteki statyczne dla interfejsu ODBC.
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}
507 %description -n pgaccess
508 A free graphical database management tool for PostgreSQL.
510 %description -n pgaccess -l pl
511 Graficzne narzêdzie do obs³ugi baz danych PostgreSQL.
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}
522 tcl interface for PostgreSQL.
524 %description tcl -l es
525 Bibliotecas y shell TCL para acceder un servidor PostgreSQL
527 %description tcl -l pl
528 Interfejs tcl dla PostgreSQL.
530 %description tcl -l pt_BR
531 Bibliotecas e shell para programas em TCL acessarem o servidor
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}
541 %description tcl-devel
542 Development part of tcl interface for PostgreSQL.
544 %description tcl-devel -l pl
545 Czê¶æ interfejsu tcl dla PostgreSQL przeznaczona dla programistów.
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}
553 %description tcl-static
554 Static libraries of tcl interface for PostgreSQL.
556 %description tcl-devel -l pl
557 Biblioteki statyczne interfejsu tcl dla PostgreSQL.
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}
565 %description module-plpgsql
566 From PostgreSQL documentation.
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
576 To enable PL/pgSQL procedural language for your database you have to
577 run createlang command.
579 %description module-plpgsql -l pl
580 Z dokumentacji PostgreSQL.
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
590 Za pomoc± komendy createlang mo¿na dodaæ wsparcie dla jêzyka
591 proceduralnego PL/pgSQL dla swojej bazy danych.
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}
600 %description module-plperl
601 From PostgreSQL documentation.
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
611 To enable PL/perl procedural language for your database you have to
612 run createlang command.
614 %description module-plperl -l pl
615 Z dokumentacji PostgreSQL.
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
625 Za pomoc± komendy createlang mo¿na dodaæ wsparcie dla jêzyka
626 proceduralnego PL/perl dla swojej bazy danych.
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}
635 %description module-plpython
636 From PostgreSQL documentation.
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
646 To enable PL/python procedural language for your database you have to
647 run createlang command.
649 %description module-plpython -l pl
650 Z dokumentacji PostgreSQL.
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
660 Za pomoc± komendy createlang mo¿na dodaæ wsparcie dla jêzyka
661 proceduralnego PL/python dla swojej bazy danych.
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}
669 %description module-pltcl
670 From PostgreSQL documentation.
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
680 To enable PL/TCL procedural language for your database you have to run
683 %description module-pltcl -l pl
684 Z dokumentacji PostgreSQL.
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
694 Za pomoc± komendy createlang mo¿na dodaæ wsparcie dla jêzyka
695 proceduralnego PL/TCL dla swojej bazy danych.
707 tar xzf doc/man*.tar.gz
710 tar zxf doc/postgres.tar.gz -C doc/unpacked
713 rm -fR `find contrib/ -type d -name CVS`
716 rm -f config/libtool.m4
720 %{!?_without_pgsql_locale:--enable-locale} \
721 %{!?_without_pgsql_multibyte:--enable-multibyte} \
727 --enable-unicode-conversion \
735 --with-odbcinst=%{_sysconfdir} \
737 %{?_with_jdbc: --with-java}
740 %ifnarch sparc sparcv9 sparc64 alpha ppc
741 %{!?_without_tests: %{__make} check }
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
751 %{__make} install install-all-headers \
752 DESTDIR=$RPM_BUILD_ROOT
754 %{__make} install -C src/pl/plperl \
755 DESTDIR=$RPM_BUILD_ROOT
757 touch $RPM_BUILD_ROOT/var/log/pgsql
759 # Move PL/pgSQL procedural language to %{_pgmoduledir}
760 ( cd $RPM_BUILD_ROOT%{_libdir}
761 mv -f plpgsql.so $RPM_BUILD_ROOT%{_pgmoduledir}
764 # Move PL/TCL procedural language to %{_pgmoduledir}
765 ( cd $RPM_BUILD_ROOT%{_libdir}
766 mv -f pltcl.so $RPM_BUILD_ROOT%{_pgmoduledir}
770 install src/interfaces/odbc/odbcinst.ini $RPM_BUILD_ROOT%{_sysconfdir}
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}
777 cp -a man? $RPM_BUILD_ROOT%{_mandir}
781 tar xzf $RPM_SOURCE_DIR/pgsql-Database-HOWTO-html.tar.gz
784 %py_comp $RPM_BUILD_ROOT%{py_libdir}
785 %py_ocomp $RPM_BUILD_ROOT%{py_libdir}
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
792 rm -rf $RPM_BUILD_ROOT
793 rm -f /tmp/tmp_perl_info
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)."
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."
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
818 /usr/sbin/useradd -M -o -r -u 88 \
819 -d /home/services/postgres -s /bin/sh -g postgres \
820 -c "PostgreSQL Server" postgres
824 /sbin/chkconfig --add postgresql
826 if [ -f /var/lock/subsys/postgresql ]; then
827 /etc/rc.d/init.d/postgresql restart >&2
829 echo "Run \"/etc/rc.d/init.d/postgresql start\" to start postgresql server."
833 if [ "$1" = "0" ]; then
834 if [ -f /var/lock/subsys/postgresql ]; then
835 /etc/rc.d/init.d/postgresql stop
837 /sbin/chkconfig --del postgresql
840 %post libs -p /sbin/ldconfig
841 %postun libs -p /sbin/ldconfig
843 %post tcl -p /sbin/ldconfig
844 %postun tcl -p /sbin/ldconfig
846 %post c++ -p /sbin/ldconfig
847 %postun c++ -p /sbin/ldconfig
849 %post odbc -p /sbin/ldconfig
850 %postun odbc -p /sbin/ldconfig
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/*
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
875 %{_datadir}/postgresql/*.bki
876 %{_datadir}/postgresql/*.sample
877 %{_datadir}/postgresql/*.description
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
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*
899 %doc doc/FAQ* doc/README*
900 %doc COPYRIGHT.gz README.gz HISTORY.gz doc/bug.template.gz
903 %defattr(644,root,root,755)
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
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*
941 %defattr(644,root,root,755)
942 %{_includedir}/postgresql/server
945 %defattr(644,root,root,755)
947 %{_libdir}/libpgeasy.a
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
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*
966 %defattr(644,root,root,755)
967 %attr(755,root,root) %{_libdir}/libpq++.so.*.*
970 %defattr(644,root,root,755)
971 %attr(755,root,root) %{_libdir}/libpq++.so
972 %{_includedir}/libpq++.h
973 %{_includedir}/libpq++
976 %defattr(644,root,root,755)
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
989 %files -n python-postgresql
990 %defattr(644,root,root,755)
993 %attr(755,root,root) %{py_sitedir}/*.so
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*
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*
1017 %defattr(644,root,root,755)
1018 %{_includedir}/libpgtcl.h
1021 %defattr(644,root,root,755)
1022 %{_libdir}/libpgtcl.a
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
1032 %defattr(644,root,root,755)
1033 #%{_includedir}/postgresql/iodbc
1034 %attr(755,root,root) %{_libdir}/libpsqlodbc.so
1037 %defattr(644,root,root,755)
1038 %{_libdir}/libpsqlodbc.a
1040 %files module-plpgsql
1041 %defattr(644,root,root,755)
1042 %attr(755,root,root) %{_pgmoduledir}/plpgsql.so
1044 %files module-plperl
1045 %defattr(644,root,root,755)
1046 %attr(755,root,root) %{_pgmoduledir}/plperl.so
1048 %files module-plpython
1049 %defattr(644,root,root,755)
1050 %attr(755,root,root) %{_pgmoduledir}/plpython.so
1053 %defattr(644,root,root,755)
1054 %attr(755,root,root) %{_pgmoduledir}/pltcl.so