3 %bcond_without tests # disable testing
4 %bcond_without tcl # disables Tcl support
5 %bcond_without kerberos5 # disable kerberos5 support
6 %bcond_without perl # disable Perl support
7 %bcond_without python # disable Python support
8 %bcond_with absolute_dbpaths # enable absolute paths to create database
9 # (disabled by default because it is a security risk)
11 # NOTE: merge from POSTGRESQL_8_3 branch when 8.3 arrives
13 Summary: PostgreSQL Data Base Management System
14 Summary(de.UTF-8): PostgreSQL Datenbankverwaltungssystem
15 Summary(es.UTF-8): Gestor de Banco de Datos PostgreSQL
16 Summary(fr.UTF-8): Sysème de gestion de base de données PostgreSQL
17 Summary(pl.UTF-8): PostgreSQL - system bazodanowy
18 Summary(pt_BR.UTF-8): Gerenciador de Banco de Dados PostgreSQL
19 Summary(ru.UTF-8): PostgreSQL - система управления базами данных
20 Summary(tr.UTF-8): Veri Tabanı Yönetim Sistemi
21 Summary(uk.UTF-8): PostgreSQL - система керування базами даних
22 Summary(zh_CN.UTF-8): PostgreSQL 客户端程序和库文件
27 Group: Applications/Databases
28 Source0: ftp://ftp.postgresql.org/pub/source/v%{version}/%{name}-%{version}.tar.bz2
29 # Source0-md5: bb1cd309ea72f070cb964736f5755847
31 Source2: pgsql-Database-HOWTO-html.tar.gz
32 # Source2-md5: 5b656ddf1db41965761f85204a14398e
33 Source3: %{name}.sysconfig
34 Patch0: %{name}-conf.patch
35 Patch1: %{name}-absolute_dbpaths.patch
36 Patch3: %{name}-ecpg_link.patch
37 Patch4: %{name}-ecpg-includedir.patch
38 Patch5: %{name}-pg_ctl-fix.patch
39 URL: http://www.postgresql.org/
40 BuildRequires: autoconf
41 BuildRequires: automake
42 #BuildRequires: bison >= 1.875 not needed for releases
44 BuildRequires: gettext-devel
45 %{?with_kerberos5:BuildRequires: krb5-devel}
46 BuildRequires: libtool
47 BuildRequires: libxml2-devel
48 BuildRequires: libxslt-devel
49 BuildRequires: ncurses-devel >= 5.0
50 BuildRequires: openssl-devel >= 0.9.7d
51 BuildRequires: pam-devel
52 %{?with_perl:BuildRequires: perl-devel}
54 BuildRequires: python >= 1:2.3
55 BuildRequires: python-devel >= 1:2.3
56 BuildRequires: python-modules >= 1:2.3
58 BuildRequires: readline-devel >= 4.2
59 BuildRequires: rpmbuild(macros) >= 1.268
60 %{?with_tcl:BuildRequires: tcl-devel >= 8.4.3}
61 BuildRequires: zlib-devel
62 Requires(post,preun): /sbin/chkconfig
63 Requires(pre): /bin/id
64 Requires(pre): /usr/bin/getgid
65 Requires(pre): /usr/sbin/groupadd
66 Requires(pre): /usr/sbin/useradd
67 Requires(pre): /usr/sbin/usermod
68 Requires: %{name}-clients = %{version}-%{release}
69 Requires: %{name}-libs = %{version}-%{release}
71 Obsoletes: postgresql-server
72 Obsoletes: postgresql-test
73 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
75 %define _pgmoduledir %{_libdir}/postgresql
76 %define _pgsqldir %{_datadir}/postgresql/contrib
78 %define _ulibdir /usr/lib
81 PostgreSQL Data Base Management System (formerly known as Postgres,
84 PostgreSQL is an enhancement of the POSTGRES database management
85 system, a next-generation DBMS research prototype. While PostgreSQL
86 retains the powerful data model and rich data types of POSTGRES, it
87 replaces the PostQuel query language with an extended subset of SQL.
88 PostgreSQL is free and the complete source is available.
90 PostgreSQL development is being performed by a team of Internet
91 developers who all subscribe to the PostgreSQL development mailing
92 list. The current coordinator is Marc G. Fournier
93 (scrappy@postgreSQL.org). This team is now responsible for all current
94 and future development of PostgreSQL.
96 The authors of PostgreSQL 1.01 were Andrew Yu and Jolly Chen. Many
97 others have contributed to the porting, testing, debugging and
98 enhancement of the code. The original Postgres code, from which
99 PostgreSQL is derived, was the effort of many graduate students,
100 undergraduate students, and staff programmers working under the
101 direction of Professor Michael Stonebraker at the University of
102 California, Berkeley.
104 The original name of the software at Berkeley was Postgres. When SQL
105 functionality was added in 1995, its name was changed to Postgres95.
106 The name was changed at the end of 1996 to PostgreSQL.
108 PostgreSQL runs on Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD,
109 and most flavours of Unix.
111 %description -l de.UTF-8
112 PostgreSQL Datenbank-Managementsystem (früher als Postgres, dann als
115 PostgreSQL ist eine Verbesserung des POSTGRES-DB-Managementsystems,
116 ein DBMS-Forschungsprototyp der nächsten Generation. Während es das
117 leistungsfähige Datenmodell und die reichhaltigen Datentypen von
118 POSTGRES beibehält, ersetzt es die PostQuel-Abfragesprache durch ein
119 Subset von SQL. PostgreSQL ist gratis, der gesamte Quellcode ist
122 Ein Team von Internet-Entwicklern befaßt sich mit PostgreSQL. Sie alle
123 sind auf der PostgreSQL-Entwickleradreßliste. Koordinator ist Marc G.
124 Fournier (scrappy@postgreSQL.org). Das Team ist verantwortlich für
125 alle aktuellen und künftigen Entwicklungen von PostgreSQL.
127 Die Autoren von PostgreSQL 1.01 waren Andrew Yu und Jolly Chen.
128 Zahlreiche andere haben zur Portierung, zum Testen, Debugging und zur
129 Verbesserung des Code beigetragen. Den Original-Postgres-Code, von dem
130 sich PostgreSQL ableitet, verdanken wir der Arbeit vieler Doktoranden,
131 Studenten und Programmierern unter der Leitung von Professor Michael
132 Stonebraker an der University of California, Berkeley.
134 Der ursprüngliche Name war Postgres. Als 1995 SQL-Funktionalität
135 hinzukam, wurde der Name in Postgres95 geändert. Ende 1996 schließlich
136 entschied man sich für PostgreSQL.
138 PostgreSQL läuft auf Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD
139 und den meisten Unix-Systemen.
141 %description -l es.UTF-8
142 Administrador de Banco de Datos PostgreSQL (conocido anteriormente
143 como Postgres, y después como Postgres95). PostgreSQL es una
144 continuación mejorada del Sistema Administrador de Banco de Datos
145 POSTGRES, que era un prototipo de pesquisa para un SGBD de nueva
146 generación. Mientras PostgreSQL mantiene el potente modelo de datos y
147 los varios tipos de datos del POSTGRES, substituye el lenguaje de
148 consulta PostQuel por un subconjunto extendido de la SQL. PostgreSQL
149 es libre y tiene los fuentes disponibles. El desarrollo del PostgreSQL
150 se ejecutado por un equipo de estudiosos de Internet, todos suscritos
151 en la lista de desarrollo del PostgreSQL. El coordinador actual es
152 Marc G. Fournier (scrappy@postgreSQL.org). Este equipo es ahora
153 responsable por el desarrollo actual y futuro del PostgreSQL.
155 %description -l fr.UTF-8
156 Système de gestion de bases de données PostgreSQL (D'abord nommé
157 Postgres, puis Postgres95).
159 PostgreSQL est une amélioration du système de gestion de bases de
160 données POSTGRES, un prototype de recherche de la génération suivant
161 DBMS. Tout en conservant le puissant modèle de donnée de et les types
162 de donée riches de Postgres, il remplace le langage de requêtes de
163 Postgres par un sous ensemble etendu de commandes SQL. PosrgreSQL est
164 libre, et ses sources sont disponibles.
166 Le développement de PostgreSQL est actuellement réalisé via internet
167 parune équipe de développeurs inscrits sur la mailing-list de
168 développement de PostgreSQL. Le coordinateur actuel est Marc G
169 Fournier (scrappy@postgreSQL.org). Cette équipe est responsable du
170 développemen actuel et à venir de PostgreSQL.
172 Les auteurs de PostgreSQL 1.01 étaient Andrew Yu et Jolly Chen.
173 Beaucoup d'autres ont contribué au portage, au test, au débogage et à
174 l'amélioration du code. Le code original de Postgres, duquel
175 PostgreSQL est dérivé, a été l'oeuvre d'étudiants de haut niveau, de
176 moins haut niveau, et de programmeurs travaillant sous la direction du
177 professeur Michael Stonebraker à l'université de Berkeley Californie.
179 Le nom original du logiciel était Postgres. Quand les fonctionnalitées
180 SQL furent ajoutées en 1995, son nom est devenu Postgres95. Il a été
181 rebaptisé PostgreSQL en 1996.
183 PostgreSQL tourne sur Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD,
184 et la plupart des Unix.
186 %description -l pl.UTF-8
187 System Zarządzania Bazą Danych PostgreSQL (dawniej znany jako
188 Postgres, następnie jako Postgres95).
190 PostgreSQL jest rozszerzeniem systemu zarządzania baz danych POSTGRES,
191 prototypu DBMS następnej generacji. Co prawda PostgreSQL odziedziczył
192 model danych oraz bogaty zbiór różnych typów danych, to jednak język
193 zapytań PostQuel został zastąpiony rozszerzonym SQL-em. PostgreSQL
194 jest wolnym oprogramowaniem i kody źródłowe tego oprogramowania są w
197 System PostgreSQL jest tworzony przez zespół ludzi, którzy są zapisani
198 na listę dyskusyjną dotyczącą PostgreSQL-a. Obecnym koordynatorem jest
199 Marc G. Fournier (scrappy@postgreSQL.org). Wymieniony wyżej zespół
200 jest odpowiedzialny za aktualny i przyszły rozwój systemu PostgreSQL.
202 Autorami PostgreSQL-a 1.01 byli Andrew Yu oraz Jolly Chen. Wielu
203 innych pomagało przenosząc na różne platformy, testując, analizując i
204 rozszerzając kod. Oryginalny kod Postgres-a, na podstawie którego
205 PostgreSQL powstał, był wysiłkiem wielu absolwentów, studentów oraz
206 zespołu programistów, którzy pracowali pod kierunkiem profesora
207 Michaela Stonebrakera z Uniwersytetu Kalifornii w Berkeley.
209 Nazwa oryginalna oprogramowania tworzonego w Berkeley brzmiała
210 Postgres. W 1995 roku dodano język zapytań SQL i nazwę zmieniono na
211 Postgres95. W końcu roku 1996 nazwę ostatecznie zmieniono na
214 PostgreSQL może być uruchomiony pod następującymi systemami: Solaris,
215 SunOS, HPUX, AIX, Linux, Irix, FreeBSD i innymi systemami uniksowymi.
217 %description -l pt_BR.UTF-8
218 Gerenciador de Banco de Dados PostgreSQL (conhecido anteriormente como
219 Postgres, e depois como Postgres95).
221 O PostgreSQL é uma continuação melhorada do Sistema Gerenciador de
222 Banco de Dados POSTGRES, que era um protótipo de pesquisa para um SGBD
223 de nova geração. Enquanto o PostgreSQL mantém o poderoso modelo de
224 dados e os vários tipos de dados do POSTGRES, ele substitui a
225 linguagem de consulta PostQuel por um subconjunto estendido da SQL. O
226 PostgreSQL é livre e tem os fontes disponíveis.
228 O desenvolvimento do PostgreSQL está sendo executado por uma equipe de
229 desenvolvedores da Internet, todos subscritores da lista de
230 desenvolvimento do PostgreSQL. O coordenador atual é Marc G. Fournier
231 (scrappy@postgreSQL.org). Esta equipe é agora responsável pelo
232 desenvolvimento atual e futuro do PostgreSQL.
234 %description -l ru.UTF-8
235 PostgreSQL - система управления базами данных (прежде известная как
236 Postgres, потом как Postgres95).
238 PostgreSQL - это расширенная версия системы управления базами данных
239 POSTGRES, исследовательского прототипа DBMS следующей генерации.
240 Сохраняя мощную модель данных и богатый набор типов данных POSTGRES,
241 она заменяет язык запросов PostQuel расширенным набором SQL.
242 PostgreSQL бесплатен и поставляется в виде полного комплекта исходных
245 PostgreSQL разрабатывался командой Internet-разработчиков, подписанных
246 на список рассылки, посвященный разработке PostgreSQL. В настоящее
247 время координатором является Marc G. Fournier
248 (scrappy@postgreSQL.org). Эта команда в настоящее время отвечает за
249 все текущие и будущие разработки PostgreSQL.
251 Авторами PostgreSQL 1.01 были Andrew Yu и Jolly Chen. Многие внесли
252 свой вклад в портирование, тестирование, отладку и улучшение кода.
253 Оригинальный код Postgres, от которого произошел PostgreSQL, был
254 создан усилиями студентов, аспирантов и персонала, работающего под
255 руководством профессора Michael Stonebraker в University of
256 California, Berkeley.
258 Оригинальное название ПО в Berkeley было Postgres. Когда в 1995 году
259 была добавлена функциональность SQL, название изменилось на
260 Postgres95. В конце 1996 года оно еще раз изменилось и теперь это
263 PostgreSQL работает на Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD
264 и большинстве других разновидностей Unix.
266 %description -l tr.UTF-8
267 PostgreSQL, POSTGRES'den türemiş bir veri tabanı yönetim sistemidir
268 (DBMS). Güçlü veri modeli ve zengin POSTGRES veri tiplerini
269 desteklerken SQL'in genişletilmiş bir altkümesi yerine PostQuel
270 sorgulama dilini koyar.
272 %description -l uk.UTF-8
273 PostgreSQL - система керування базами даних (раніш відома як Postgres,
274 потім як Postgres95).
276 PostgreSQL - це розширена версія системи керування базами даних
277 POSTGRES, дослідницького прототипу DBMS наступної генерації.
278 Зберігаючи потужну модель даних та багатий набір типів даних POSTGRES,
279 вона замінює мову запитів PostQuel розширеним набором SQL. PostgreSQL
280 безкоштовна та поставляється у вигляді повного комплекту вихідних
283 PostgreSQL розробляється командою Internet-програмістів, учасників
284 списку розсилки, присвяченого розробці PostgreSQL. Наразі
285 координатором є Marc G. Fournier (scrappy@postgreSQL.org). Ця команда
286 відповідає за всі поточні та майбутні розробки PostgreSQL.
288 Авторами PostgreSQL 1.01 були Andrew Yu та Jolly Chen. Багато людей
289 внесли свій внесок в портування, тестування, відладку та покращення
290 коду. Оригінальний код Postgres, від якого походить PostgreSQL, був
291 створений зусиллями студентів, аспірантів та персоналу, який працював
292 під керівництвом професора Michael Stonebraker в University of
293 California, Berkeley.
295 Оригінальна назва програми в Berkeley була Postgres. Коли в 1995 році
296 було додано функціональність SQL, назва змінилася на Postgres95. В
297 кінці 1996 року вона ще раз змінилась і зараз це PostgreSQL.
299 PostgreSQL працює на Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD
300 та більшості інших різновидів Unix.
303 Summary: PostgreSQL development header files and libraries
304 Summary(de.UTF-8): PostgreSQL-Entwicklungs-Header-Dateien und Libraries
305 Summary(es.UTF-8): Archivos de inclusión y bibliotecas PostgreSQL
306 Summary(fr.UTF-8): En-têtes et bibliothèques de développement PostgreSQL
307 Summary(pl.UTF-8): PostgreSQL - pliki nagłówkowe i biblioteki
308 Summary(pt_BR.UTF-8): Arquivos de inclusão e bibliotecas para desenvolvimento com o PostgreSQL
309 Summary(ru.UTF-8): PostgreSQL - хедеры и библиотеки разработчика
310 Summary(tr.UTF-8): PostgreSQL başlık dosyaları ve kitaplıklar
311 Summary(uk.UTF-8): PostgreSQL - хедери та бібліотеки програміста
312 Group: Development/Libraries
313 Requires: %{name}-libs = %{version}-%{release}
316 This package contains header files and libraries required to compile
317 applications that are talking directly to the PostgreSQL backend
320 %description devel -l de.UTF-8
321 Dieses Paket enthält die Header-Dateien und Libraries, die zum
322 Kompilieren von Applikationen notwendig sind, die direkt mit dem
323 PostgreSQL-Backend-Server kommunizieren.
325 %description devel -l es.UTF-8
326 Este paquete contiene archivos de inclusión y bibliotecas requeridas
327 para compilación de aplicativos que se comunican directamente con el
328 servidor backend PostgreSQL.
330 %description devel -l fr.UTF-8
331 Ce package contient les fichiers d'en-tête et les bibliothéques
332 nécessaires pour compiler des applications ayant des échanges directs
333 avec le serveur du backend PostgreSQL.
335 %description devel -l pl.UTF-8
336 Pakiet zawiera nagłówki oraz biblioteki wymagane do kompilacji
337 aplikacji łączących się bezpośrednio z serwerem PostgreSQL.
339 %description devel -l pt_BR.UTF-8
340 Este pacote contém arquivos de inclusão e bibliotecas requeridas para
341 compilação de aplicativos que se comunicam diretamente com o servidor
344 %description devel -l ru.UTF-8
345 Этот пакет содержит хедеры и библиотеки, необходимые для сборки
346 приложений, непосредственно взаимодействующих с сервером PostgreSQL.
348 %description devel -l tr.UTF-8
349 Bu paket, PostgreSQL sunucusuyla konuşacak yazılımlar geliştirmek için
350 gereken başlık dosyalarını ve kitaplıkları içerir.
352 %description devel -l uk.UTF-8
353 Цей пакет містить хедери та бібліотеки, необхідні для розробки
354 програм, які безпосередньо взаємодіють з сервером PostgreSQL.
356 %package backend-devel
357 Summary: PostgreSQL backend development header files
358 Summary(pl.UTF-8): PostgreSQL - pliki nagłówkowe dla backendu
359 Group: Development/Libraries
360 Requires: %{name}-devel = %{version}-%{release}
361 Requires: %{name}-libs = %{version}-%{release}
363 %description backend-devel
364 This package contains header files required to compile functions that
365 could be loaded directly by backend
367 %description backend-devel -l pl.UTF-8
368 Pakiet zawiera nagłówki wymagane do kompilacji funkcji ktore moga byc
369 bezposrednio ladowane przez beckend serwera PostgreSQL.
372 Summary: Clients needed to access a PostgreSQL server
373 Summary(es.UTF-8): Clientes necesarios para acceder al servidor PostgreSQL
374 Summary(pl.UTF-8): Klienci wymagani do dostępu do serwera PostgreSQL
375 Summary(pt_BR.UTF-8): Clientes necessários para acessar o servidor PostgreSQL
376 Summary(ru.UTF-8): Клиентские программы, необходимые для доступа к серверу PostgreSQL
377 Summary(uk.UTF-8): Клієнтські програми, необхідні для доступу до сервера PostgreSQL
378 Group: Applications/Databases
379 Requires: %{name}-libs = %{version}-%{release}
382 This package includes only the clients needed to access an PostgreSQL
383 server. The server is included in the main package. If all you need is
384 to connect to another PostgreSQL server, the this is the only package
385 you need to install. Clients include several command-line utilities
386 you can use to manage your databases on a remote PostgreSQL server.
388 %description clients -l es.UTF-8
389 Este paquete incluye solamente los clientes necesarios para acceder un
390 servidor PostgreSQL. El servidor está en el paquete principal.
392 %description clients -l pl.UTF-8
393 Pakiet zawiera programy klienckie potrzebne dla dostępu do serwera
394 PostgreSQL oraz narzędzia do zarządzania bazami działające z linii
395 poleceń. Serwer znajduje się w głównym pakiecie.
397 %description clients -l pt_BR.UTF-8
398 Este pacote inclui somente os clientes necessários para acessar um
399 servidor PostgreSQL. O servidor está no pacote principal.
401 %description clients -l ru.UTF-8
402 Этот пакет включает только клиентские программы и библиотеки,
403 необходимые для доступа к серверу PostgreSQL. Сервер входит в главный
404 пакет. Если вам надо только работать с другим сервером PostgreSQL, это
405 единственный пакет, который вам надо установить.
407 Теперь пакеты с библиотеками для разных языков программирования (C,
408 C++, Perl и Tcl) разделены. Этот пакет включает только библиотеки для
411 %description clients -l uk.UTF-8
412 Цей пакет містить тільки клієнтські програми та бібліотеки, необхідні
413 для доступу до сервера PostgreSQL. Сервер міститься в головному
414 пакеті. Якщо вам потрібно працювати з іншим сервером PostgreSQL, це
415 єдиний пакет, який вам треба встановити.
417 Тепер пакети з бібліотеками для різних мов програмування (C, C++, Perl
418 і Tcl) розділені. Цей пакет містить тільки бібліотеки для мови C.
421 Summary: Documentation for PostgreSQL
422 Summary(pl.UTF-8): Dodatkowa dokumantacja dla PostgreSQL
423 Group: Applications/Databases
426 This package includes documentation and HOWTO for programmer, admin
427 etc., in HTML format.
429 %description doc -l pl.UTF-8
430 Pakiet ten zawiera dokumentację oraz HOWTO m.in. dla programistów,
431 administratorów w formacie HTML.
434 Summary: PostgreSQL libraries
435 Summary(es.UTF-8): Biblioteca compartida del PostgreSQL
436 Summary(pl.UTF-8): Biblioteki dzielone programu PostgreSQL
437 Summary(pt_BR.UTF-8): Biblioteca compartilhada do PostgreSQL
438 Summary(zh_CN.UTF-8): PostgreSQL 客户所需要的共享库
442 PostgreSQL shared libraries.
444 %description libs -l es.UTF-8
445 Este paquete contiene la biblioteca compartida para acceso al
448 %description libs -l pl.UTF-8
449 Biblioteki dzielone programu PostgreSQL.
451 %description libs -l pt_BR.UTF-8
452 Este pacote contém a biblioteca compartilhada para acesso ao
456 Summary: Embedded SQL in C interface
457 Summary(pl.UTF-8): Interfejs wbudowanego SQL-a w język C
459 Requires: %{name}-libs = %{version}-%{release}
462 Embedded SQL in C interface.
464 %description ecpg -l pl.UTF-8
465 Interfejs wbudowanego SQL-a w język C.
468 Summary: Embedded SQL in C interface files
469 Summary(pl.UTF-8): Pliki programistyczne interfejsu wbudowanego SQL-a w język C
470 Group: Development/Libraries
471 Requires: %{name}-devel = %{version}-%{release}
472 Requires: %{name}-ecpg = %{version}-%{release}
474 %description ecpg-devel
475 Embedded SQL in C interface files.
477 %description ecpg-devel -l pl.UTF-8
478 Pliki programistyczne interfejsu wbudowanego SQL-a w język C.
481 Summary: PostgreSQL static libraries
482 Summary(es.UTF-8): Bibliotecas estaticas PostgreSQL
483 Summary(pl.UTF-8): Biblioteki statyczne programu PostgreSQL
484 Summary(pt_BR.UTF-8): Bibliotecas estáticas PostgreSQL
485 Summary(ru.UTF-8): Статические библиотеки для программирования с PostgreSQL
486 Summary(uk.UTF-8): Статичні бібліотеки для програмування з PostgreSQL
487 Group: Development/Libraries
488 Requires: %{name}-devel = %{version}-%{release}
491 PostgreSQL static libraries.
493 %description static -l es.UTF-8
494 Este paquete contiene bibliotecas estaticas requerida para compilación
495 de aplicativos que se comunican directamente con el servidor backend
498 %description static -l pl.UTF-8
499 Biblioteki statyczne programu PostgreSQL.
501 %description static -l pt_BR.UTF-8
502 Este pacote contém as bibliotecas estáticas requeridas para compilação
503 de aplicativos que se comunicam diretamente com o servidor backend
506 %description static -l ru.UTF-8
507 Это отдельный пакет со статическими библиотеками, которые больше не
508 входят в %{name}-devel.
510 %description static -l uk.UTF-8
511 Це окремий пакет зі статичними бібліотеками, які більш не входять в
514 %package module-plpgsql
515 Summary: PL/pgSQL - PostgreSQL procedural language
516 Summary(pl.UTF-8): PL/pgSQL - język proceduralny bazy danych PostgreSQL
517 Group: Applications/Databases
518 Requires: %{name} = %{version}-%{release}
520 %description module-plpgsql
521 From PostgreSQL documentation:
523 Postgres supports the definition of procedural languages. In the case
524 of a function or trigger procedure defined in a procedural language,
525 the database has no built-in knowledge about how to interpret the
526 function's source text. Instead, the task is passed to a handler that
527 knows the details of the language. The handler itself is a special
528 programming language function compiled into a shared object and loaded
531 To enable PL/pgSQL procedural language for your database you have to
532 run createlang command.
534 %description module-plpgsql -l pl.UTF-8
535 Z dokumentacji PostgreSQL:
537 Postgres ma wsparcie dla języków proceduralnych. W przypadku, kiedy
538 programista zdefiniuje procedurę wyzwalacza lub funkcję w języku
539 proceduralnym, baza danych nie ma pojęcia jak interpretować tego typu
540 funkcję. Funkcja lub procedura ta jest przekazywana do interpretera,
541 który wie jak ją wykonać. Interpreter jest odpowiednią, specjalną
542 funkcją, która jest skompilowana w obiekt dzielony i ładowany w razie
545 Za pomocą polecenia createlang można dodać obsługę języka
546 proceduralnego PL/pgSQL dla swojej bazy danych.
548 %package module-plperl
549 Summary: PL/perl - PostgreSQL procedural language
550 Summary(pl.UTF-8): PL/perl - język proceduralny bazy danych PostgreSQL
551 Group: Applications/Databases
552 Requires: %{name} = %{version}-%{release}
553 Requires: perl(DynaLoader) = %(%{__perl} -MDynaLoader -e 'print DynaLoader->VERSION')
555 %description module-plperl
556 From PostgreSQL documentation:
558 Postgres supports the definition of procedural languages. In the case
559 of a function or trigger procedure defined in a procedural language,
560 the database has no built-in knowledge about how to interpret the
561 function's source text. Instead, the task is passed to a handler that
562 knows the details of the language. The handler itself is a special
563 programming language function compiled into a shared object and loaded
566 To enable PL/Perl procedural language for your database you have to
567 run createlang command.
569 %description module-plperl -l pl.UTF-8
570 Z dokumentacji PostgreSQL:
572 Postgres ma wsparcie dla języków proceduralnych. W przypadku, kiedy
573 programista zdefiniuje procedurę wyzwalacza lub funkcję w języku
574 proceduralnym, baza danych nie ma pojęcia jak interpretować tego typu
575 funkcję. Funkcja lub procedura ta jest przekazywana do interpretera,
576 który wie jak ją wykonać. Interpreter jest odpowiednią, specjalną
577 funkcją, która jest skompilowana w obiekt dzielony i ładowany w razie
580 Za pomocą polecenia createlang można dodać obsługę języka
581 proceduralnego PL/Perl dla swojej bazy danych.
583 %package module-plpython
584 Summary: PL/Python - PostgreSQL procedural language
585 Summary(pl.UTF-8): PL/Python - język proceduralny bazy danych PostgreSQL
586 Group: Applications/Databases
587 Requires: %{name} = %{version}-%{release}
588 %pyrequires_eq python
590 %description module-plpython
591 From PostgreSQL documentation:
593 Postgres supports the definition of procedural languages. In the case
594 of a function or trigger procedure defined in a procedural language,
595 the database has no built-in knowledge about how to interpret the
596 function's source text. Instead, the task is passed to a handler that
597 knows the details of the language. The handler itself is a special
598 programming language function compiled into a shared object and loaded
601 To enable PL/Python procedural language for your database you have to
602 run createlang command.
604 %description module-plpython -l pl.UTF-8
605 Z dokumentacji PostgreSQL:
607 Postgres ma wsparcie dla języków proceduralnych. W przypadku, kiedy
608 programista zdefiniuje procedurę wyzwalacza lub funkcję w języku
609 proceduralnym, baza danych nie ma pojęcia jak interpretować tego typu
610 funkcję. Funkcja lub procedura ta jest przekazywana do interpretera,
611 który wie jak ją wykonać. Interpreter jest odpowiednią, specjalną
612 funkcją, która jest skompilowana w obiekt dzielony i ładowany w razie
615 Za pomocą polecenia createlang można dodać obsługę języka
616 proceduralnego PL/Python dla swojej bazy danych.
618 %package module-pltcl
619 Summary: PL/Tcl - PostgreSQL procedural language
620 Summary(pl.UTF-8): PL/Tcl - język proceduralny bazy danych PostgreSQL
621 Group: Applications/Databases
622 Requires: %{name} = %{version}-%{release}
625 %description module-pltcl
626 From PostgreSQL documentation:
628 Postgres supports the definition of procedural languages. In the case
629 of a function or trigger procedure defined in a procedural language,
630 the database has no built-in knowledge about how to interpret the
631 function's source text. Instead, the task is passed to a handler that
632 knows the details of the language. The handler itself is a special
633 programming language function compiled into a shared object and loaded
636 To enable PL/Tcl procedural language for your database you have to run
639 %description module-pltcl -l pl.UTF-8
640 Z dokumentacji PostgreSQL:
642 Postgres ma wsparcie dla języków proceduralnych. W przypadku, kiedy
643 programista zdefiniuje procedurę wyzwalacza lub funkcję w języku
644 proceduralnym, baza danych nie ma pojęcia jak interpretować tego typu
645 funkcję. Funkcja lub procedura ta jest przekazywana do interpretera,
646 który wie jak ją wykonać. Interpreter jest odpowiednią, specjalną
647 funkcją, która jest skompilowana w obiekt dzielony i ładowany w razie
650 Za pomocą polecenia createlang można dodać obsługę języka
651 proceduralnego PL/Tcl dla swojej bazy danych.
653 %package module-dblink
654 Summary: dblink module for PostgreSQL
655 Summary(pl.UTF-8): Moduł dblink dla PostgreSQL-a
656 Group: Applications/Databases
657 Requires: %{name} = %{version}-%{release}
659 %description module-dblink
660 dblink module for PostgreSQL provides functions returning results from
663 %description module-dblink -l pl.UTF-8
664 Moduł dblink dla PostgreSQL-a udostępnia funkcje zwracające wyniki ze
668 Summary: Large Objects module for PostgreSQL
669 Summary(pl.UTF-8): Moduł Large Objects dla PostgreSQL-a
670 Group: Applications/Databases
671 Requires: %{name} = %{version}-%{release}
673 %description module-lo
674 Large Objects module for PostgreSQL adds a new data type 'lo', some
675 support functions and a trigger which handles the orphaning problem.
677 %description module-lo -l pl.UTF-8
678 Moduł Large Objects dla PostgreSQL-a dodaje nowy typ danych 'lo',
679 kilka funkcji pomocniczych i wyzwalacz rozwiązujący problem
680 osieroconych obiektów.
682 %package module-pgcrypto
683 Summary: Cryptographic functions for PostgreSQL
684 Summary(pl.UTF-8): Funkcje kryptograficzne dla PostgreSQL-a
685 Group: Applications/Databases
686 Requires: %{name} = %{version}-%{release}
688 %description module-pgcrypto
689 Cryptographic functions for PostgreSQL.
691 %description module-pgcrypto -l pl.UTF-8
692 Funkcje kryptograficzne dla PostgreSQL.
694 %package module-tablefunc
695 Summary: crosstab functions for PostgreSQL
696 Summary(pl.UTF-8): Funkcje crosstab dla PostgreSQL-a
697 Group: Applications/Databases
698 Requires: %{name} = %{version}-%{release}
700 %description module-tablefunc
701 crosstab functions for PostgreSQL.
703 %description module-tablefunc -l pl.UTF-8
704 Funkcje crosstab dla PostgreSQL-a.
706 %package module-tsearch2
707 Summary: Full text extension for PostgreSQL
708 Summary(pl.UTF-8): Rozszerzenie pełnotekstowe dla PostgreSQL-a
709 Group: Applications/Databases
710 Requires: %{name} = %{version}-%{release}
712 %description module-tsearch2
713 Implementation of a new data type tsvector - a searchable data type
715 http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/
717 %description module-tsearch2 -l pl.UTF-8
718 Implementacja nowego typu danych tsvector - typu danych podlegającego
719 przeszukiwaniu z dostępem poprzez indeksy:
720 http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/
722 %package module-pg_trgm
723 Summary: Trigram matching for PostgreSQL
724 Summary(pl.UTF-8): Dopasowanie trigramowe dla PostgreSQL-a
725 Group: Applications/Databases
726 Requires: %{name} = %{version}-%{release}
728 %description module-pg_trgm
729 This module provides functions and index classes for determining the
730 similarity of text based on trigram matching.
732 %description module-pg_trgm -l pl.UTF-8
733 Ten moduł dostarcza funkcje i klasy do rozpoznawania podobnych tekstów
734 w oparciu o dopasowywanie trigramowe (trigram matching).
738 Summary: XML-handling functions for PostgreSQL
739 Summary(pl.UTF-8): Funkcje do obsługi XML-a dla PostgreSQL-a
740 Group: Applications/Databases
741 Requires: %{name} = %{version}-%{release}
743 %description module-xml2
744 Module with XML functions provides both XPath querying and XSLT
745 functionality. There is also a new table function which allows the
746 straightforward return of multiple XML results.
748 %description module-xml2 -l pl.UTF-8
749 Moduł z funkcjami XML zapewniającymi obsługę zapytań XPath oraz
750 funkcjonalność XSLT. Jest także nowa funkcja tabelowa pozwalająca na
751 bezpośrednie zwracanie wielu wyników XML.
756 %{?with_absolute_dbpaths:%patch1 -p1}
761 tar xzf doc/man*.tar.gz
764 tar zxf doc/postgres.tar.gz -C doc/unpacked
767 #find contrib -type d -name CVS -exec rm -rf {} \;
770 %{__aclocal} -I config
773 CFLAGS="%{rpmcflags} -DNEED_REENTRANT_FUNCS" \
776 --enable-integer-datetimes \
778 --enable-thread-safety \
779 %{?with_kerberos5:--with-krb5} \
782 %{?with_perl:--with-perl} \
783 %{?with_python:--with-python} \
784 %{?with_tcl:--with-tcl --with-tclconfig=%{_ulibdir}} \
788 %{__make} -C contrib/dblink
789 %{__make} -C contrib/lo
790 %{__make} -C contrib/pgcrypto
791 %{__make} -C contrib/tablefunc
792 %{__make} -C contrib/tsearch2
793 %{__make} -C contrib/pg_trgm
794 %{__make} -C contrib/xml2
795 %{__make} -C src/tutorial \
798 %ifnarch sparc sparcv9 sparc64 alpha
799 %{?with_tests:%{__make} check}
803 rm -rf $RPM_BUILD_ROOT
804 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{rc.d/init.d,sysconfig}} \
805 $RPM_BUILD_ROOT{/var/{lib/pgsql,log},%{_pgsqldir}} \
806 $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} \
807 $RPM_BUILD_ROOT%{_mandir} \
808 $RPM_BUILD_ROOT/home/services/postgres
810 install src/tutorial/*.sql $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
813 DESTDIR=$RPM_BUILD_ROOT
816 %{__make} install -C src/pl/plperl \
817 DESTDIR=$RPM_BUILD_ROOT
820 %{__make} -C contrib/dblink install \
821 DESTDIR=$RPM_BUILD_ROOT
823 %{__make} -C contrib/lo install \
824 DESTDIR=$RPM_BUILD_ROOT
826 %{__make} -C contrib/pgcrypto install \
827 DESTDIR=$RPM_BUILD_ROOT
829 %{__make} -C contrib/tablefunc install \
830 DESTDIR=$RPM_BUILD_ROOT
832 %{__make} -C contrib/tsearch2 install \
833 DESTDIR=$RPM_BUILD_ROOT
835 %{__make} -C contrib/pg_trgm install \
836 DESTDIR=$RPM_BUILD_ROOT
838 %{__make} -C contrib/xml2 install \
839 DESTDIR=$RPM_BUILD_ROOT
841 touch $RPM_BUILD_ROOT/var/log/pgsql
843 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/postgresql
844 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/postgresql
847 tar zxf %{SOURCE2} -C howto
849 %py_comp $RPM_BUILD_ROOT%{py_libdir}
850 %py_ocomp $RPM_BUILD_ROOT%{py_libdir}
853 for f in libpq pg_controldata pg_dump pg_resetxlog pgscripts postgres psql initdb pg_ctl pg_config; do
857 cat pgscripts.lang pg_resetxlog.lang postgres.lang pg_controldata.lang > main.lang
858 cat pg_dump.lang psql.lang initdb.lang pg_ctl.lang > clients.lang
860 # Remove Contrib documentation. We use macro %doc
861 rm -rf $RPM_BUILD_ROOT/contrib
863 mv $RPM_BUILD_ROOT{%{_datadir}/postgresql,%{_pgsqldir}}/unknown.pltcl
865 install src/pl/plperl/ppport.h $RPM_BUILD_ROOT%{_includedir}/postgresql/server/
868 rm -rf $RPM_BUILD_ROOT
872 if [ -f /etc/sysconfig/postgresql ]; then
873 . /etc/sysconfig/postgresql
874 if [ -z "$PG_DB_CLUSTERS" -a -n "$POSTGRES_DATA_DIR" ]; then
875 PG_DB_CLUSTERS="$POSTGRES_DATA_DIR"
879 for pgdir in $PG_DB_CLUSTERS; do
880 if [ -f $pgdir/PG_VERSION ]; then
881 if [ `cat $pgdir/PG_VERSION` != '8.2' ]; then
882 echo "Found database(s) in older, incompatible format in cluster $pgdir."
887 if [ "$foundold" = "1" ]; then
889 echo "Dump all data from clusters mentioned above (using pg_dump or pg_dumpall)"
890 echo "and clean (or rename) those directories; then upgrade postgresql and"
891 echo "restore all data (using pg_restore or psql)."
892 echo "Remember to stop the daemon before upgrading!"
894 echo "Warning for upgrade from version *before* 7.2."
895 echo "Please note, that postgresql module path changed from"
896 echo "/usr/lib/pgsql/module to /usr/lib/postgresql. Change the path"
897 echo "in dump file before restore."
899 echo "Warning for upgrade from version *before* 7.3."
900 echo "Reading following webpage is encouraged:"
901 echo "http://www.ca.postgresql.org/docs/momjian/upgrade_tips_7.3"
905 %groupadd -g 88 -r postgres
906 %useradd -M -o -r -u 88 -d /home/services/postgres -s /bin/sh -g postgres -c "PostgreSQL Server" postgres
908 if [ -n "`/bin/id -u postgres 2>/dev/null`" ]; then
909 /usr/sbin/usermod -d /home/services/postgres postgres
913 /sbin/chkconfig --add postgresql
914 %service postgresql restart "postgresql server"
917 if [ "$1" = "0" ]; then
918 %service postgresql stop
919 /sbin/chkconfig --del postgresql
922 %post libs -p /sbin/ldconfig
923 %postun libs -p /sbin/ldconfig
925 %post ecpg -p /sbin/ldconfig
926 %postun ecpg -p /sbin/ldconfig
929 %defattr(644,root,root,755)
930 %doc COPYRIGHT README HISTORY doc/{FAQ*,README*,bug.template}
931 %attr(754,root,root) /etc/rc.d/init.d/postgresql
932 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/postgresql
934 %attr(755,root,root) %{_bindir}/initdb
935 %attr(755,root,root) %{_bindir}/ipcclean
936 %attr(755,root,root) %{_bindir}/pg_controldata
937 %attr(755,root,root) %{_bindir}/pg_ctl
938 %attr(755,root,root) %{_bindir}/pg_resetxlog
939 %attr(755,root,root) %{_bindir}/postgres
940 %attr(755,root,root) %{_bindir}/postmaster
942 %attr(755,root,root) %{_pgmoduledir}/ascii*
943 %attr(755,root,root) %{_pgmoduledir}/cyrillic*
944 %attr(755,root,root) %{_pgmoduledir}/euc*
945 %attr(755,root,root) %{_pgmoduledir}/latin*
946 %attr(755,root,root) %{_pgmoduledir}/utf*
949 %dir %{_datadir}/postgresql
950 %{_datadir}/postgresql/*.bki
951 %{_datadir}/postgresql/*.sample
952 %{_datadir}/postgresql/*.description
953 %{_datadir}/postgresql/*.shdescription
954 %{_datadir}/postgresql/*.sql
955 %{_datadir}/postgresql/*.txt
956 %{_datadir}/postgresql/timezone
957 %{_datadir}/postgresql/timezonesets
959 %attr(700,postgres,postgres) /home/services/postgres
960 %attr(700,postgres,postgres) %dir /var/lib/pgsql
961 %attr(640,postgres,postgres) %config(noreplace) %verify(not md5 mtime size) /var/log/pgsql
963 %{_mandir}/man1/initdb.1*
964 %{_mandir}/man1/ipcclean.1*
965 %{_mandir}/man1/pg_controldata.1*
966 %{_mandir}/man1/pg_ctl.1*
967 %{_mandir}/man1/pg_resetxlog.1*
968 %{_mandir}/man1/postgres.1*
969 %{_mandir}/man1/postmaster.1*
972 %defattr(644,root,root,755)
973 %doc doc/unpacked/* doc/src/FAQ howto
974 %{_examplesdir}/%{name}-%{version}
976 %files libs -f libpq.lang
977 %defattr(644,root,root,755)
978 %attr(755,root,root) %{_libdir}/libpq.so.*.*
982 %defattr(644,root,root,755)
983 %attr(755,root,root) %{_bindir}/ecpg
984 %attr(755,root,root) %{_libdir}/libecpg.so.*.*
985 %attr(755,root,root) %{_libdir}/libecpg_compat.so.*.*
986 %attr(755,root,root) %{_libdir}/libpgtypes.so.*.*
987 %{_mandir}/man1/ecpg.1*
990 %defattr(644,root,root,755)
991 %attr(755,root,root) %{_libdir}/libecpg.so
992 %attr(755,root,root) %{_libdir}/libecpg_compat.so
993 %attr(755,root,root) %{_libdir}/libpgtypes.so
996 %files devel -f pg_config.lang
997 %defattr(644,root,root,755)
998 %attr(755,root,root) %{_bindir}/pg_config
999 %attr(755,root,root) %{_libdir}/libpq.so
1000 %dir %{_includedir}/postgresql
1001 %{_includedir}/libpq-fe.h
1002 %{_includedir}/pg_config.h
1003 %{_includedir}/pg_config_manual.h
1004 %{_includedir}/pg_config_os.h
1005 %{_includedir}/postgres_ext.h
1006 %dir %{_includedir}/postgresql/internal
1007 %{_includedir}/postgresql/internal/c.h
1008 %{_includedir}/postgresql/internal/libpq-int.h
1009 %{_includedir}/postgresql/internal/port.h
1010 %{_includedir}/postgresql/internal/postgres_fe.h
1011 %{_includedir}/postgresql/internal/pqexpbuffer.h
1012 %{_includedir}/postgresql/internal/libpq
1013 %{_includedir}/libpq
1014 %{_mandir}/man1/pg_config.1*
1016 %files backend-devel
1017 %defattr(644,root,root,755)
1018 %{_includedir}/postgresql/server
1019 %dir %{_pgmoduledir}/pgxs
1020 %attr(755,root,root) %{_pgmoduledir}/pgxs/config
1021 %{_pgmoduledir}/pgxs/src
1024 %defattr(644,root,root,755)
1025 %{_libdir}/libecpg.a
1026 %{_libdir}/libecpg_compat.a
1028 %{_libdir}/libpgtypes.a
1029 %{_libdir}/libpgport.a
1031 %files clients -f clients.lang
1032 %defattr(644,root,root,755)
1033 %attr(755,root,root) %{_bindir}/clusterdb
1034 %attr(755,root,root) %{_bindir}/createdb
1035 %attr(755,root,root) %{_bindir}/createlang
1036 %attr(755,root,root) %{_bindir}/createuser
1037 %attr(755,root,root) %{_bindir}/dropdb
1038 %attr(755,root,root) %{_bindir}/droplang
1039 %attr(755,root,root) %{_bindir}/dropuser
1040 %attr(755,root,root) %{_bindir}/pg_dump
1041 %attr(755,root,root) %{_bindir}/pg_dumpall
1042 %attr(755,root,root) %{_bindir}/pg_restore
1043 %attr(755,root,root) %{_bindir}/psql
1044 %attr(755,root,root) %{_bindir}/reindexdb
1045 %attr(755,root,root) %{_bindir}/vacuumdb
1047 %{_mandir}/man1/clusterdb.1*
1048 %{_mandir}/man1/createdb.1*
1049 %{_mandir}/man1/createlang.1*
1050 %{_mandir}/man1/createuser.1*
1051 %{_mandir}/man1/dropdb.1*
1052 %{_mandir}/man1/droplang.1*
1053 %{_mandir}/man1/dropuser.1*
1054 %{_mandir}/man1/pg_dump.1*
1055 %{_mandir}/man1/pg_dumpall.1*
1056 %{_mandir}/man1/pg_restore.1*
1057 %{_mandir}/man1/psql.1*
1058 %{_mandir}/man1/reindexdb.1*
1059 %{_mandir}/man1/vacuumdb.1*
1060 %{_mandir}/man7/*.7*
1062 %files module-plpgsql
1063 %defattr(644,root,root,755)
1064 %attr(755,root,root) %{_pgmoduledir}/plpgsql.so
1067 %files module-plperl
1068 %defattr(644,root,root,755)
1069 %attr(755,root,root) %{_pgmoduledir}/plperl.so
1073 %files module-plpython
1074 %defattr(644,root,root,755)
1075 %attr(755,root,root) %{_pgmoduledir}/plpython.so
1080 %defattr(644,root,root,755)
1081 %attr(755,root,root) %{_bindir}/pltcl_*
1082 %attr(755,root,root) %{_pgmoduledir}/pltcl.so
1083 %{_pgsqldir}/unknown.pltcl
1086 %files module-dblink
1087 %defattr(644,root,root,755)
1088 %doc contrib/dblink/README.dblink
1089 %attr(755,root,root) %{_pgmoduledir}/dblink.so
1090 %{_pgsqldir}/*dblink.sql
1093 %defattr(644,root,root,755)
1094 %doc contrib/lo/README.lo
1095 %attr(755,root,root) %{_pgmoduledir}/lo.so
1096 %{_pgsqldir}/*lo.sql
1098 %files module-pgcrypto
1099 %defattr(644,root,root,755)
1100 %doc contrib/pgcrypto/README*
1101 %attr(755,root,root) %{_pgmoduledir}/pgcrypto.so
1102 %{_pgsqldir}/*pgcrypto.sql
1104 %files module-tablefunc
1105 %defattr(644,root,root,755)
1106 %doc contrib/tablefunc/README.tablefunc
1107 %attr(755,root,root) %{_pgmoduledir}/tablefunc.so
1108 %{_pgsqldir}/*tablefunc.sql
1110 %files module-tsearch2
1111 %defattr(644,root,root,755)
1112 %doc contrib/tsearch2/README*
1113 %attr(755,root,root) %{_pgmoduledir}/tsearch2.so
1114 %{_pgsqldir}/*tsearch2.sql
1115 %{_pgsqldir}/russian.stop.utf8
1116 %{_pgsqldir}/thesaurus
1119 %files module-pg_trgm
1120 %defattr(644,root,root,755)
1121 %doc contrib/pg_trgm/README*
1122 %attr(755,root,root) %{_pgmoduledir}/pg_trgm.so
1123 %{_pgsqldir}/*pg_trgm.sql
1126 %defattr(644,root,root,755)
1127 %doc contrib/xml2/README*
1128 %attr(755,root,root) %{_pgmoduledir}/pgxml.so
1129 %{_pgsqldir}/*pgxml.sql