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