]> git.pld-linux.org Git - packages/postgresql.git/blame - postgresql.spec
- up to 9.2.4 (fixes CVE-2013-1899; remote issue)
[packages/postgresql.git] / postgresql.spec
CommitLineData
500e26d8 1# TODO:
6d8da3ba 2# - python 3 and python 2 subpackages?
60fcd7d3 3# - consider dns_sd/Bonjour support (--with-bonjour)
d24d2940 4# - think about pg_upgrade integration (sysconfig variable to allow upgrade from 8.3+ without dump/restore?)
ade88dbb 5# create postgresqlM.N packages with parts of old pgsql required by pg_upgrade
500e26d8 6# - test init script (db initialization)
a774e725 7#
8# Conditional build:
c51da2b5 9%bcond_without tests # disable testing
10%bcond_without tcl # disable Tcl support
964e9385 11%bcond_without kerberos5 # disable kerberos5 support
5f47c8ad 12%bcond_without perl # disable Perl support
c51da2b5 13%bcond_without python # disable Python support
a1ace3a4 14%bcond_without ldap # disable LDAP support
60fcd7d3 15%bcond_without selinux # sepgsql contrib module
16404f9a 16%bcond_with absolute_dbpaths # enable absolute paths to create database
550a1fa5 17 # (disabled by default because it is a security risk)
1909f764 18#
055aa993
JR
19
20%define beta %{nil}
a1aa6bb4 21%define mver 9.2
055aa993 22
016f481d 23Summary: PostgreSQL Data Base Management System
620f9138
ER
24Summary(de.UTF-8): PostgreSQL Datenbankverwaltungssystem
25Summary(es.UTF-8): Gestor de Banco de Datos PostgreSQL
26Summary(fr.UTF-8): Sysème de gestion de base de données PostgreSQL
27Summary(pl.UTF-8): PostgreSQL - system bazodanowy
28Summary(pt_BR.UTF-8): Gerenciador de Banco de Dados PostgreSQL
29Summary(ru.UTF-8): PostgreSQL - система управления базами данных
30Summary(tr.UTF-8): Veri Tabanı Yönetim Sistemi
31Summary(uk.UTF-8): PostgreSQL - система керування базами даних
32Summary(zh_CN.UTF-8): PostgreSQL 客户端程序和库文件
016f481d 33Name: postgresql
fec1de13 34Version: %{mver}.4
b5d14337 35Release: 1
3b12d52f 36License: BSD
016f481d 37Group: Applications/Databases
74ecf57d 38Source0: ftp://ftp.postgresql.org/pub/source/v%{version}/%{name}-%{version}.tar.bz2
fec1de13 39# Source0-md5: 6ee5bb53b97da7c6ad9cb0825d3300dd
b752f531 40Source1: %{name}.init
9d4c7921 41Source2: pgsql-Database-HOWTO-html.tar.gz
b21c6987 42# Source2-md5: 5b656ddf1db41965761f85204a14398e
b752f531 43Source3: %{name}.sysconfig
94b00d5a
JK
44Source5: %{name}.upstart
45Source6: %{name}-instance.upstart
dc307bb4 46Patch0: %{name}-conf.patch
47Patch1: %{name}-absolute_dbpaths.patch
c51da2b5 48Patch2: %{name}-ecpg-includedir.patch
49Patch3: %{name}-ac_version.patch
50Patch4: %{name}-disable_horology_test.patch
4614112f 51Patch5: %{name}-heimdal.patch
016f481d 52URL: http://www.postgresql.org/
368587a1 53BuildRequires: autoconf
a9e3ed5f 54BuildRequires: automake
c51da2b5 55# not needed for releases... but fixes something in snapshot
56BuildRequires: bison >= 1.875
cfcef89a 57BuildRequires: docbook-dtd42-sgml
58BuildRequires: docbook-dtd42-xml
59BuildRequires: docbook-style-xsl
60fcd7d3 60BuildRequires: flex >= 2.5.31
899ec251 61BuildRequires: gettext-devel
7a6f5720 62%{?with_kerberos5:BuildRequires: heimdal-devel}
7f7f5e5b 63%{?with_selinux:BuildRequires: libselinux-devel >= 2.0.99}
b4e9d937 64BuildRequires: libtool
c51da2b5 65BuildRequires: libxml2-devel >= 2.6.23
0b02f266 66BuildRequires: libxslt-devel
c4156621 67BuildRequires: libxslt-progs
c32c47f8 68BuildRequires: ncurses-devel >= 5.0
a1ace3a4 69%{?with_ldap:BuildRequires: openldap-devel}
e05bfd03 70BuildRequires: openssl-devel >= 0.9.7d
c74c603d 71BuildRequires: ossp-uuid-devel
0715e574 72BuildRequires: pam-devel
c6b2c886 73%{?with_perl:BuildRequires: perl-devel}
6006bd58
KK
74%if %{with python}
75BuildRequires: python >= 1:2.3
76BuildRequires: python-devel >= 1:2.3
024f308f 77BuildRequires: python-modules >= 1:2.3
6006bd58 78%endif
cd61d421 79BuildRequires: readline-devel >= 4.2
3a2e0fdd 80BuildRequires: rpmbuild(macros) >= 1.268
16404f9a 81%{?with_tcl:BuildRequires: tcl-devel >= 8.4.3}
c4156621 82%{?with_tests:BuildRequires: tzdata}
40a8e4da 83BuildRequires: zlib-devel
3a2e0fdd 84Requires(post,preun): /sbin/chkconfig
320d02f0 85Requires(pre): /bin/id
3a2e0fdd 86Requires(pre): /usr/bin/getgid
320d02f0
JB
87Requires(pre): /usr/sbin/groupadd
88Requires(pre): /usr/sbin/useradd
3c7ef761
ER
89Requires(triggerpostun): /bin/id
90Requires(triggerpostun): /usr/sbin/usermod
3a2e0fdd
ER
91Requires: %{name}-clients = %{version}-%{release}
92Requires: %{name}-libs = %{version}-%{release}
94b00d5a 93Requires: rc-scripts >= 0.4.3.0
c51da2b5 94Requires: tzdata
ea5af212 95Obsoletes: postgresql-module-plpgsql
3c7ef761 96Obsoletes: postgresql-module-tsearch2
1e933717 97Obsoletes: postgresql-server
38168fb1 98Obsoletes: postgresql-test
2bfb68de 99BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
7386fb4a 100
00287bb7 101%define _pgmoduledir %{_libdir}/postgresql
6ceb4ff1 102%define _pgsqldir %{_datadir}/postgresql/extension
48115857 103
2477983b
AM
104%define _ulibdir /usr/lib
105
d24d2940 106# omitted contribs:
60fcd7d3 107# dummy_seclabel, pg_test_fsync, spi and test_parser - examples/tests
d24d2940 108# tsearch2 - old module for compatibility only
3be975a0 109%define contrib_modules adminpack auth_delay auto_explain btree_gin btree_gist chkpass citext cube dblink dict_int dict_xsyn earthdistance file_fdw fuzzystrmatch hstore intagg intarray isn lo ltree oid2name pageinspect passwordcheck pg_archivecleanup pg_buffercache pg_freespacemap pg_standby pg_stat_statements pg_trgm pg_upgrade pg_upgrade_support pgbench pgcrypto pgrowlocks pgstattuple seg %{?with_selinux:sepgsql} sslinfo tablefunc unaccent uuid-ossp vacuumlo xml2
c51da2b5 110
b35e841d 111%description
e59a0118 112PostgreSQL Data Base Management System (formerly known as Postgres,
113then as Postgres95).
114
115PostgreSQL is an enhancement of the POSTGRES database management
116system, a next-generation DBMS research prototype. While PostgreSQL
117retains the powerful data model and rich data types of POSTGRES, it
118replaces the PostQuel query language with an extended subset of SQL.
119PostgreSQL is free and the complete source is available.
120
121PostgreSQL development is being performed by a team of Internet
122developers who all subscribe to the PostgreSQL development mailing
123list. The current coordinator is Marc G. Fournier
124(scrappy@postgreSQL.org). This team is now responsible for all current
125and future development of PostgreSQL.
126
127The authors of PostgreSQL 1.01 were Andrew Yu and Jolly Chen. Many
128others have contributed to the porting, testing, debugging and
129enhancement of the code. The original Postgres code, from which
130PostgreSQL is derived, was the effort of many graduate students,
131undergraduate students, and staff programmers working under the
132direction of Professor Michael Stonebraker at the University of
133California, Berkeley.
b35e841d 134
135The original name of the software at Berkeley was Postgres. When SQL
e59a0118 136functionality was added in 1995, its name was changed to Postgres95.
137The name was changed at the end of 1996 to PostgreSQL.
b35e841d 138
e59a0118 139PostgreSQL runs on Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD,
140and most flavours of Unix.
b35e841d 141
c76c631a
JR
142%description -l de.UTF-8
143PostgreSQL Datenbank-Managementsystem (früher als Postgres, dann als
b35e841d 144Postgres95 bekannt).
145
e59a0118 146PostgreSQL ist eine Verbesserung des POSTGRES-DB-Managementsystems,
c76c631a
JR
147ein DBMS-Forschungsprototyp der nächsten Generation. Während es das
148leistungsfähige Datenmodell und die reichhaltigen Datentypen von
149POSTGRES beibehält, ersetzt es die PostQuel-Abfragesprache durch ein
e59a0118 150Subset von SQL. PostgreSQL ist gratis, der gesamte Quellcode ist
c76c631a 151verfügbar.
48115857 152
c76c631a
JR
153Ein Team von Internet-Entwicklern befaßt sich mit PostgreSQL. Sie alle
154sind auf der PostgreSQL-Entwickleradreßliste. Koordinator ist Marc G.
155Fournier (scrappy@postgreSQL.org). Das Team ist verantwortlich für
156alle aktuellen und künftigen Entwicklungen von PostgreSQL.
48115857 157
e59a0118 158Die Autoren von PostgreSQL 1.01 waren Andrew Yu und Jolly Chen.
159Zahlreiche andere haben zur Portierung, zum Testen, Debugging und zur
160Verbesserung des Code beigetragen. Den Original-Postgres-Code, von dem
161sich PostgreSQL ableitet, verdanken wir der Arbeit vieler Doktoranden,
162Studenten und Programmierern unter der Leitung von Professor Michael
163Stonebraker an der University of California, Berkeley.
b35e841d 164
c76c631a
JR
165Der ursprüngliche Name war Postgres. Als 1995 SQL-Funktionalität
166hinzukam, wurde der Name in Postgres95 geändert. Ende 1996 schließlich
167entschied man sich für PostgreSQL.
b35e841d 168
c76c631a 169PostgreSQL läuft auf Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD
e59a0118 170und den meisten Unix-Systemen.
b35e841d 171
c76c631a 172%description -l es.UTF-8
55747262 173Administrador de Banco de Datos PostgreSQL (conocido anteriormente
c76c631a
JR
174como Postgres, y después como Postgres95). PostgreSQL es una
175continuación mejorada del Sistema Administrador de Banco de Datos
55747262 176POSTGRES, que era un prototipo de pesquisa para un SGBD de nueva
c76c631a 177generación. Mientras PostgreSQL mantiene el potente modelo de datos y
55747262 178los varios tipos de datos del POSTGRES, substituye el lenguaje de
179consulta PostQuel por un subconjunto extendido de la SQL. PostgreSQL
180es libre y tiene los fuentes disponibles. El desarrollo del PostgreSQL
181se ejecutado por un equipo de estudiosos de Internet, todos suscritos
182en la lista de desarrollo del PostgreSQL. El coordinador actual es
183Marc G. Fournier (scrappy@postgreSQL.org). Este equipo es ahora
184responsable por el desarrollo actual y futuro del PostgreSQL.
185
c76c631a
JR
186%description -l fr.UTF-8
187Système de gestion de bases de données PostgreSQL (D'abord nommé
e59a0118 188Postgres, puis Postgres95).
189
c76c631a
JR
190PostgreSQL est une amélioration du système de gestion de bases de
191données POSTGRES, un prototype de recherche de la génération suivant
192DBMS. Tout en conservant le puissant modèle de donnée de et les types
193de donée riches de Postgres, il remplace le langage de requêtes de
e59a0118 194Postgres par un sous ensemble etendu de commandes SQL. PosrgreSQL est
195libre, et ses sources sont disponibles.
196
c76c631a
JR
197Le développement de PostgreSQL est actuellement réalisé via internet
198parune équipe de développeurs inscrits sur la mailing-list de
199développement de PostgreSQL. Le coordinateur actuel est Marc G
200Fournier (scrappy@postgreSQL.org). Cette équipe est responsable du
201développemen actuel et à venir de PostgreSQL.
e59a0118 202
c76c631a
JR
203Les auteurs de PostgreSQL 1.01 étaient Andrew Yu et Jolly Chen.
204Beaucoup d'autres ont contribué au portage, au test, au débogage et à
205l'amélioration du code. Le code original de Postgres, duquel
206PostgreSQL est dérivé, a été l'oeuvre d'étudiants de haut niveau, de
e59a0118 207moins haut niveau, et de programmeurs travaillant sous la direction du
c76c631a 208professeur Michael Stonebraker à l'université de Berkeley Californie.
e59a0118 209
c76c631a
JR
210Le nom original du logiciel était Postgres. Quand les fonctionnalitées
211SQL furent ajoutées en 1995, son nom est devenu Postgres95. Il a été
212rebaptisé PostgreSQL en 1996.
e59a0118 213
214PostgreSQL tourne sur Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD,
215et la plupart des Unix.
b35e841d 216
c76c631a
JR
217%description -l pl.UTF-8
218System Zarządzania Bazą Danych PostgreSQL (dawniej znany jako
219Postgres, następnie jako Postgres95).
3afbcd28 220
c76c631a
JR
221PostgreSQL jest rozszerzeniem systemu zarządzania baz danych POSTGRES,
222prototypu DBMS następnej generacji. Co prawda PostgreSQL odziedziczył
223model danych oraz bogaty zbiór różnych typów danych, to jednak język
224zapytań PostQuel został zastąpiony rozszerzonym SQL-em. PostgreSQL
225jest wolnym oprogramowaniem i kody źródłowe tego oprogramowania są w
226pełni dostępne.
1f130e30 227
c76c631a
JR
228System PostgreSQL jest tworzony przez zespół ludzi, którzy są zapisani
229na listę dyskusyjną dotyczącą PostgreSQL-a. Obecnym koordynatorem jest
230Marc G. Fournier (scrappy@postgreSQL.org). Wymieniony wyżej zespół
231jest odpowiedzialny za aktualny i przyszły rozwój systemu PostgreSQL.
1f130e30 232
233Autorami PostgreSQL-a 1.01 byli Andrew Yu oraz Jolly Chen. Wielu
c76c631a
JR
234innych pomagało przenosząc na różne platformy, testując, analizując i
235rozszerzając kod. Oryginalny kod Postgres-a, na podstawie którego
236PostgreSQL powstał, był wysiłkiem wielu absolwentów, studentów oraz
237zespołu programistów, którzy pracowali pod kierunkiem profesora
1f130e30 238Michaela Stonebrakera z Uniwersytetu Kalifornii w Berkeley.
239
c76c631a
JR
240Nazwa oryginalna oprogramowania tworzonego w Berkeley brzmiała
241Postgres. W 1995 roku dodano język zapytań SQL i nazwę zmieniono na
242Postgres95. W końcu roku 1996 nazwę ostatecznie zmieniono na
1f130e30 243PostgreSQL.
244
c76c631a 245PostgreSQL może być uruchomiony pod następującymi systemami: Solaris,
67280bfd 246SunOS, HPUX, AIX, Linux, Irix, FreeBSD i innymi systemami uniksowymi.
b35e841d 247
c76c631a 248%description -l pt_BR.UTF-8
55747262 249Gerenciador de Banco de Dados PostgreSQL (conhecido anteriormente como
250Postgres, e depois como Postgres95).
251
c76c631a
JR
252O PostgreSQL é uma continuação melhorada do Sistema Gerenciador de
253Banco de Dados POSTGRES, que era um protótipo de pesquisa para um SGBD
254de nova geração. Enquanto o PostgreSQL mantém o poderoso modelo de
255dados e os vários tipos de dados do POSTGRES, ele substitui a
55747262 256linguagem de consulta PostQuel por um subconjunto estendido da SQL. O
c76c631a 257PostgreSQL é livre e tem os fontes disponíveis.
55747262 258
c76c631a 259O desenvolvimento do PostgreSQL está sendo executado por uma equipe de
55747262 260desenvolvedores da Internet, todos subscritores da lista de
c76c631a
JR
261desenvolvimento do PostgreSQL. O coordenador atual é Marc G. Fournier
262(scrappy@postgreSQL.org). Esta equipe é agora responsável pelo
55747262 263desenvolvimento atual e futuro do PostgreSQL.
264
c76c631a
JR
265%description -l ru.UTF-8
266PostgreSQL - система управления базами данных (прежде известная как
267Postgres, потом как Postgres95).
268
269PostgreSQL - это расширенная версия системы управления базами данных
270POSTGRES, исследовательского прототипа DBMS следующей генерации.
271Сохраняя мощную модель данных и богатый набор типов данных POSTGRES,
272она заменяет язык запросов PostQuel расширенным набором SQL.
273PostgreSQL бесплатен и поставляется в виде полного комплекта исходных
274текстов.
275
276PostgreSQL разрабатывался командой Internet-разработчиков, подписанных
277на список рассылки, посвященный разработке PostgreSQL. В настоящее
278время координатором является Marc G. Fournier
279(scrappy@postgreSQL.org). Эта команда в настоящее время отвечает за
280все текущие и будущие разработки PostgreSQL.
281
282Авторами PostgreSQL 1.01 были Andrew Yu и Jolly Chen. Многие внесли
283свой вклад в портирование, тестирование, отладку и улучшение кода.
284Оригинальный код Postgres, от которого произошел PostgreSQL, был
285создан усилиями студентов, аспирантов и персонала, работающего под
286руководством профессора Michael Stonebraker в University of
9f84dc01 287California, Berkeley.
288
c76c631a
JR
289Оригинальное название ПО в Berkeley было Postgres. Когда в 1995 году
290была добавлена функциональность SQL, название изменилось на
291Postgres95. В конце 1996 года оно еще раз изменилось и теперь это
9f84dc01 292PostgreSQL.
293
c76c631a
JR
294PostgreSQL работает на Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD
295и большинстве других разновидностей Unix.
9f84dc01 296
c76c631a
JR
297%description -l tr.UTF-8
298PostgreSQL, POSTGRES'den türemiş bir veri tabanı yönetim sistemidir
299(DBMS). Güçlü veri modeli ve zengin POSTGRES veri tiplerini
300desteklerken SQL'in genişletilmiş bir altkümesi yerine PostQuel
e59a0118 301sorgulama dilini koyar.
b35e841d 302
c76c631a
JR
303%description -l uk.UTF-8
304PostgreSQL - система керування базами даних (раніш відома як Postgres,
305потім як Postgres95).
306
307PostgreSQL - це розширена версія системи керування базами даних
308POSTGRES, дослідницького прототипу DBMS наступної генерації.
309Зберігаючи потужну модель даних та багатий набір типів даних POSTGRES,
310вона замінює мову запитів PostQuel розширеним набором SQL. PostgreSQL
311безкоштовна та поставляється у вигляді повного комплекту вихідних
312текстів.
313
314PostgreSQL розробляється командою Internet-програмістів, учасників
315списку розсилки, присвяченого розробці PostgreSQL. Наразі
316координатором є Marc G. Fournier (scrappy@postgreSQL.org). Ця команда
317відповідає за всі поточні та майбутні розробки PostgreSQL.
318
319Авторами PostgreSQL 1.01 були Andrew Yu та Jolly Chen. Багато людей
320внесли свій внесок в портування, тестування, відладку та покращення
321коду. Оригінальний код Postgres, від якого походить PostgreSQL, був
322створений зусиллями студентів, аспірантів та персоналу, який працював
323під керівництвом професора Michael Stonebraker в University of
9f84dc01 324California, Berkeley.
325
c76c631a
JR
326Оригінальна назва програми в Berkeley була Postgres. Коли в 1995 році
327було додано функціональність SQL, назва змінилася на Postgres95. В
328кінці 1996 року вона ще раз змінилась і зараз це PostgreSQL.
9f84dc01 329
c76c631a
JR
330PostgreSQL працює на Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD
331та більшості інших різновидів Unix.
9f84dc01 332
94b00d5a
JK
333%package upstart
334Summary: Upstart job description for PostgreSQL server
335Summary(pl.UTF-8): Opis zadania Upstart dla serwera PostgreSQL
336Group: Daemons
337Requires: %{name} = %{version}-%{release}
338Requires: upstart >= 0.6
562496af 339Conflicts: syslog-ng < 3.2.4-1
94b00d5a
JK
340
341%description upstart
342Upstart job description for PostgreSQL.
343
344%description upstart -l pl.UTF-8
345Opis zadania Upstart dla PostgreSQL.
346
b35e841d 347%package devel
016f481d 348Summary: PostgreSQL development header files and libraries
620f9138
ER
349Summary(de.UTF-8): PostgreSQL-Entwicklungs-Header-Dateien und Libraries
350Summary(es.UTF-8): Archivos de inclusión y bibliotecas PostgreSQL
351Summary(fr.UTF-8): En-têtes et bibliothèques de développement PostgreSQL
352Summary(pl.UTF-8): PostgreSQL - pliki nagłówkowe i biblioteki
353Summary(pt_BR.UTF-8): Arquivos de inclusão e bibliotecas para desenvolvimento com o PostgreSQL
354Summary(ru.UTF-8): PostgreSQL - хедеры и библиотеки разработчика
355Summary(tr.UTF-8): PostgreSQL başlık dosyaları ve kitaplıklar
356Summary(uk.UTF-8): PostgreSQL - хедери та бібліотеки програміста
016f481d 357Group: Development/Libraries
2bfb68de 358Requires: %{name}-libs = %{version}-%{release}
b35e841d 359
360%description devel
361This package contains header files and libraries required to compile
e59a0118 362applications that are talking directly to the PostgreSQL backend
363server.
b35e841d 364
c76c631a
JR
365%description devel -l de.UTF-8
366Dieses Paket enthält die Header-Dateien und Libraries, die zum
e59a0118 367Kompilieren von Applikationen notwendig sind, die direkt mit dem
b35e841d 368PostgreSQL-Backend-Server kommunizieren.
369
c76c631a
JR
370%description devel -l es.UTF-8
371Este paquete contiene archivos de inclusión y bibliotecas requeridas
372para compilación de aplicativos que se comunican directamente con el
55747262 373servidor backend PostgreSQL.
374
c76c631a
JR
375%description devel -l fr.UTF-8
376Ce package contient les fichiers d'en-tête et les bibliothéques
377nécessaires pour compiler des applications ayant des échanges directs
e59a0118 378avec le serveur du backend PostgreSQL.
b35e841d 379
c76c631a
JR
380%description devel -l pl.UTF-8
381Pakiet zawiera nagłówki oraz biblioteki wymagane do kompilacji
382aplikacji łączących się bezpośrednio z serwerem PostgreSQL.
b35e841d 383
c76c631a
JR
384%description devel -l pt_BR.UTF-8
385Este pacote contém arquivos de inclusão e bibliotecas requeridas para
386compilação de aplicativos que se comunicam diretamente com o servidor
55747262 387backend PostgreSQL.
388
c76c631a
JR
389%description devel -l ru.UTF-8
390Этот пакет содержит хедеры и библиотеки, необходимые для сборки
391приложений, непосредственно взаимодействующих с сервером PostgreSQL.
9f84dc01 392
c76c631a
JR
393%description devel -l tr.UTF-8
394Bu paket, PostgreSQL sunucusuyla konuşacak yazılımlar geliştirmek için
395gereken başlık dosyalarını ve kitaplıkları içerir.
b35e841d 396
c76c631a
JR
397%description devel -l uk.UTF-8
398Цей пакет містить хедери та бібліотеки, необхідні для розробки
399програм, які безпосередньо взаємодіють з сервером PostgreSQL.
9f84dc01 400
cb920eb9 401%package backend-devel
402Summary: PostgreSQL backend development header files
620f9138 403Summary(pl.UTF-8): PostgreSQL - pliki nagłówkowe dla backendu
cb920eb9 404Group: Development/Libraries
2bfb68de
JB
405Requires: %{name}-devel = %{version}-%{release}
406Requires: %{name}-libs = %{version}-%{release}
cb920eb9 407
408%description backend-devel
a9e3ed5f
JB
409This package contains header files required to compile functions that
410could be loaded directly by backend
cb920eb9 411
c76c631a
JR
412%description backend-devel -l pl.UTF-8
413Pakiet zawiera nagłówki wymagane do kompilacji funkcji ktore moga byc
a9e3ed5f 414bezposrednio ladowane przez beckend serwera PostgreSQL.
cb920eb9 415
b35e841d 416%package clients
a57096f6 417Summary: Clients needed to access a PostgreSQL server
620f9138
ER
418Summary(es.UTF-8): Clientes necesarios para acceder al servidor PostgreSQL
419Summary(pl.UTF-8): Klienci wymagani do dostępu do serwera PostgreSQL
420Summary(pt_BR.UTF-8): Clientes necessários para acessar o servidor PostgreSQL
421Summary(ru.UTF-8): Клиентские программы, необходимые для доступа к серверу PostgreSQL
422Summary(uk.UTF-8): Клієнтські програми, необхідні для доступу до сервера PostgreSQL
016f481d 423Group: Applications/Databases
2bfb68de 424Requires: %{name}-libs = %{version}-%{release}
b35e841d 425
426%description clients
aa1db817 427This package includes only the clients needed to access an PostgreSQL
1f130e30 428server. The server is included in the main package. If all you need is
429to connect to another PostgreSQL server, the this is the only package
430you need to install. Clients include several command-line utilities
431you can use to manage your databases on a remote PostgreSQL server.
b35e841d 432
c76c631a 433%description clients -l es.UTF-8
55747262 434Este paquete incluye solamente los clientes necesarios para acceder un
c76c631a 435servidor PostgreSQL. El servidor está en el paquete principal.
55747262 436
c76c631a
JR
437%description clients -l pl.UTF-8
438Pakiet zawiera programy klienckie potrzebne dla dostępu do serwera
439PostgreSQL oraz narzędzia do zarządzania bazami działające z linii
440poleceń. Serwer znajduje się w głównym pakiecie.
b35e841d 441
c76c631a
JR
442%description clients -l pt_BR.UTF-8
443Este pacote inclui somente os clientes necessários para acessar um
444servidor PostgreSQL. O servidor está no pacote principal.
55747262 445
c76c631a
JR
446%description clients -l ru.UTF-8
447Этот пакет включает только клиентские программы и библиотеки,
448необходимые для доступа к серверу PostgreSQL. Сервер входит в главный
449пакет. Если вам надо только работать с другим сервером PostgreSQL, это
450единственный пакет, который вам надо установить.
9f84dc01 451
c76c631a
JR
452Теперь пакеты с библиотеками для разных языков программирования (C,
453C++, Perl и Tcl) разделены. Этот пакет включает только библиотеки для
454языка C.
9f84dc01 455
c76c631a
JR
456%description clients -l uk.UTF-8
457Цей пакет містить тільки клієнтські програми та бібліотеки, необхідні
458для доступу до сервера PostgreSQL. Сервер міститься в головному
459пакеті. Якщо вам потрібно працювати з іншим сервером PostgreSQL, це
460єдиний пакет, який вам треба встановити.
9f84dc01 461
c76c631a
JR
462Тепер пакети з бібліотеками для різних мов програмування (C, C++, Perl
463і Tcl) розділені. Цей пакет містить тільки бібліотеки для мови C.
9f84dc01 464
b35e841d 465%package doc
016f481d 466Summary: Documentation for PostgreSQL
620f9138 467Summary(pl.UTF-8): Dodatkowa dokumantacja dla PostgreSQL
016f481d 468Group: Applications/Databases
b35e841d 469
470%description doc
e59a0118 471This package includes documentation and HOWTO for programmer, admin
472etc., in HTML format.
b35e841d 473
c76c631a
JR
474%description doc -l pl.UTF-8
475Pakiet ten zawiera dokumentację oraz HOWTO m.in. dla programistów,
476administratorów w formacie HTML.
b35e841d 477
9ea08160 478%package libs
479Summary: PostgreSQL libraries
620f9138
ER
480Summary(es.UTF-8): Biblioteca compartida del PostgreSQL
481Summary(pl.UTF-8): Biblioteki dzielone programu PostgreSQL
482Summary(pt_BR.UTF-8): Biblioteca compartilhada do PostgreSQL
483Summary(zh_CN.UTF-8): PostgreSQL 客户所需要的共享库
9ea08160 484Group: Libraries
9ea08160 485
486%description libs
aa1db817 487PostgreSQL shared libraries.
9ea08160 488
c76c631a 489%description libs -l es.UTF-8
55747262 490Este paquete contiene la biblioteca compartida para acceso al
832d7cf9 491PostgreSQL.
55747262 492
c76c631a 493%description libs -l pl.UTF-8
9ea08160 494Biblioteki dzielone programu PostgreSQL.
495
c76c631a
JR
496%description libs -l pt_BR.UTF-8
497Este pacote contém a biblioteca compartilhada para acesso ao
832d7cf9 498PostgreSQL.
55747262 499
6564a583 500%package ecpg
501Summary: Embedded SQL in C interface
620f9138 502Summary(pl.UTF-8): Interfejs wbudowanego SQL-a w język C
6564a583 503Group: Libraries
2bfb68de 504Requires: %{name}-libs = %{version}-%{release}
6564a583 505
506%description ecpg
507Embedded SQL in C interface.
508
c76c631a
JR
509%description ecpg -l pl.UTF-8
510Interfejs wbudowanego SQL-a w język C.
6564a583 511
512%package ecpg-devel
513Summary: Embedded SQL in C interface files
620f9138 514Summary(pl.UTF-8): Pliki programistyczne interfejsu wbudowanego SQL-a w język C
6564a583 515Group: Development/Libraries
2bfb68de
JB
516Requires: %{name}-devel = %{version}-%{release}
517Requires: %{name}-ecpg = %{version}-%{release}
6564a583 518
519%description ecpg-devel
520Embedded SQL in C interface files.
521
c76c631a
JR
522%description ecpg-devel -l pl.UTF-8
523Pliki programistyczne interfejsu wbudowanego SQL-a w język C.
6564a583 524
9ea08160 525%package static
526Summary: PostgreSQL static libraries
620f9138
ER
527Summary(es.UTF-8): Bibliotecas estaticas PostgreSQL
528Summary(pl.UTF-8): Biblioteki statyczne programu PostgreSQL
529Summary(pt_BR.UTF-8): Bibliotecas estáticas PostgreSQL
530Summary(ru.UTF-8): Статические библиотеки для программирования с PostgreSQL
531Summary(uk.UTF-8): Статичні бібліотеки для програмування з PostgreSQL
9ea08160 532Group: Development/Libraries
2bfb68de 533Requires: %{name}-devel = %{version}-%{release}
9ea08160 534
535%description static
536PostgreSQL static libraries.
537
c76c631a
JR
538%description static -l es.UTF-8
539Este paquete contiene bibliotecas estaticas requerida para compilación
55747262 540de aplicativos que se comunican directamente con el servidor backend
541PostgreSQL.
542
c76c631a 543%description static -l pl.UTF-8
9ea08160 544Biblioteki statyczne programu PostgreSQL.
545
c76c631a
JR
546%description static -l pt_BR.UTF-8
547Este pacote contém as bibliotecas estáticas requeridas para compilação
55747262 548de aplicativos que se comunicam diretamente com o servidor backend
549PostgreSQL.
550
c76c631a
JR
551%description static -l ru.UTF-8
552Это отдельный пакет со статическими библиотеками, которые больше не
553входят в %{name}-devel.
9f84dc01 554
c76c631a
JR
555%description static -l uk.UTF-8
556Це окремий пакет зі статичними бібліотеками, які більш не входять в
9f84dc01 557%{name}-devel.
558
00287bb7 559%package module-plperl
560Summary: PL/perl - PostgreSQL procedural language
620f9138 561Summary(pl.UTF-8): PL/perl - język proceduralny bazy danych PostgreSQL
00287bb7 562Group: Applications/Databases
2bfb68de 563Requires: %{name} = %{version}-%{release}
00287bb7 564
565%description module-plperl
a94ae93a 566From PostgreSQL documentation:
00287bb7 567
568Postgres supports the definition of procedural languages. In the case
569of a function or trigger procedure defined in a procedural language,
570the database has no built-in knowledge about how to interpret the
571function's source text. Instead, the task is passed to a handler that
572knows the details of the language. The handler itself is a special
573programming language function compiled into a shared object and loaded
574on demand.
575
dce5630b 576To enable PL/Perl procedural language for your database you have to
00287bb7 577run createlang command.
578
c76c631a 579%description module-plperl -l pl.UTF-8
a94ae93a 580Z dokumentacji PostgreSQL:
00287bb7 581
c76c631a
JR
582Postgres ma wsparcie dla języków proceduralnych. W przypadku, kiedy
583programista zdefiniuje procedurę wyzwalacza lub funkcję w języku
584proceduralnym, baza danych nie ma pojęcia jak interpretować tego typu
585funkcję. Funkcja lub procedura ta jest przekazywana do interpretera,
586który wie jak ją wykonać. Interpreter jest odpowiednią, specjalną
587funkcją, która jest skompilowana w obiekt dzielony i ładowany w razie
00287bb7 588potrzeby.
589
c76c631a 590Za pomocą polecenia createlang można dodać obsługę języka
dce5630b 591proceduralnego PL/Perl dla swojej bazy danych.
00287bb7 592
593%package module-plpython
dce5630b 594Summary: PL/Python - PostgreSQL procedural language
620f9138 595Summary(pl.UTF-8): PL/Python - język proceduralny bazy danych PostgreSQL
00287bb7 596Group: Applications/Databases
2bfb68de 597Requires: %{name} = %{version}-%{release}
6a64b227 598%pyrequires_eq python
00287bb7 599
600%description module-plpython
a94ae93a 601From PostgreSQL documentation:
00287bb7 602
603Postgres supports the definition of procedural languages. In the case
604of a function or trigger procedure defined in a procedural language,
605the database has no built-in knowledge about how to interpret the
606function's source text. Instead, the task is passed to a handler that
607knows the details of the language. The handler itself is a special
608programming language function compiled into a shared object and loaded
609on demand.
610
dce5630b 611To enable PL/Python procedural language for your database you have to
00287bb7 612run createlang command.
613
c76c631a 614%description module-plpython -l pl.UTF-8
a94ae93a 615Z dokumentacji PostgreSQL:
00287bb7 616
c76c631a
JR
617Postgres ma wsparcie dla języków proceduralnych. W przypadku, kiedy
618programista zdefiniuje procedurę wyzwalacza lub funkcję w języku
619proceduralnym, baza danych nie ma pojęcia jak interpretować tego typu
620funkcję. Funkcja lub procedura ta jest przekazywana do interpretera,
621który wie jak ją wykonać. Interpreter jest odpowiednią, specjalną
622funkcją, która jest skompilowana w obiekt dzielony i ładowany w razie
00287bb7 623potrzeby.
624
c76c631a 625Za pomocą polecenia createlang można dodać obsługę języka
dce5630b 626proceduralnego PL/Python dla swojej bazy danych.
00287bb7 627
4ddf546b 628%package module-pltcl
dce5630b 629Summary: PL/Tcl - PostgreSQL procedural language
620f9138 630Summary(pl.UTF-8): PL/Tcl - język proceduralny bazy danych PostgreSQL
4ddf546b 631Group: Applications/Databases
2bfb68de 632Requires: %{name} = %{version}-%{release}
7543e4a8 633Requires: tcl(Pgtcl)
4ddf546b 634
635%description module-pltcl
a94ae93a 636From PostgreSQL documentation:
4ddf546b 637
368587a1 638Postgres supports the definition of procedural languages. In the case
639of a function or trigger procedure defined in a procedural language,
640the database has no built-in knowledge about how to interpret the
641function's source text. Instead, the task is passed to a handler that
642knows the details of the language. The handler itself is a special
643programming language function compiled into a shared object and loaded
644on demand.
4ddf546b 645
dce5630b 646To enable PL/Tcl procedural language for your database you have to run
4ddf546b 647createlang command.
648
c76c631a 649%description module-pltcl -l pl.UTF-8
a94ae93a 650Z dokumentacji PostgreSQL:
4ddf546b 651
c76c631a
JR
652Postgres ma wsparcie dla języków proceduralnych. W przypadku, kiedy
653programista zdefiniuje procedurę wyzwalacza lub funkcję w języku
654proceduralnym, baza danych nie ma pojęcia jak interpretować tego typu
655funkcję. Funkcja lub procedura ta jest przekazywana do interpretera,
656który wie jak ją wykonać. Interpreter jest odpowiednią, specjalną
657funkcją, która jest skompilowana w obiekt dzielony i ładowany w razie
368587a1 658potrzeby.
4ddf546b 659
c76c631a 660Za pomocą polecenia createlang można dodać obsługę języka
dce5630b 661proceduralnego PL/Tcl dla swojej bazy danych.
4ddf546b 662
d8edd803
JB
663%package module-dblink
664Summary: dblink module for PostgreSQL
620f9138 665Summary(pl.UTF-8): Moduł dblink dla PostgreSQL-a
d8edd803
JB
666Group: Applications/Databases
667Requires: %{name} = %{version}-%{release}
668
669%description module-dblink
670dblink module for PostgreSQL provides functions returning results from
671remote database.
672
c76c631a
JR
673%description module-dblink -l pl.UTF-8
674Moduł dblink dla PostgreSQL-a udostępnia funkcje zwracające wyniki ze
d8edd803
JB
675zdalnej bazy danych.
676
8646766c
JB
677%package module-lo
678Summary: Large Objects module for PostgreSQL
620f9138 679Summary(pl.UTF-8): Moduł Large Objects dla PostgreSQL-a
8646766c
JB
680Group: Applications/Databases
681Requires: %{name} = %{version}-%{release}
682
683%description module-lo
684Large Objects module for PostgreSQL adds a new data type 'lo', some
685support functions and a trigger which handles the orphaning problem.
686
c76c631a
JR
687%description module-lo -l pl.UTF-8
688Moduł Large Objects dla PostgreSQL-a dodaje nowy typ danych 'lo',
689kilka funkcji pomocniczych i wyzwalacz rozwiązujący problem
690osieroconych obiektów.
8646766c 691
60fcd7d3
JB
692%package module-pg_trgm
693Summary: Trigram matching for PostgreSQL
694Summary(pl.UTF-8): Dopasowanie trigramowe dla PostgreSQL-a
695Group: Applications/Databases
696Requires: %{name} = %{version}-%{release}
697
698%description module-pg_trgm
699This module provides functions and index classes for determining the
700similarity of text based on trigram matching.
701
702%description module-pg_trgm -l pl.UTF-8
703Ten moduł dostarcza funkcje i klasy do rozpoznawania podobnych tekstów
704w oparciu o dopasowywanie trigramowe (trigram matching).
705
5b79623d 706%package module-pgcrypto
ff04b431 707Summary: Cryptographic functions for PostgreSQL
620f9138 708Summary(pl.UTF-8): Funkcje kryptograficzne dla PostgreSQL-a
ff04b431 709Group: Applications/Databases
2bfb68de 710Requires: %{name} = %{version}-%{release}
ff04b431 711
5b79623d 712%description module-pgcrypto
713Cryptographic functions for PostgreSQL.
ff04b431 714
c76c631a 715%description module-pgcrypto -l pl.UTF-8
5b79623d 716Funkcje kryptograficzne dla PostgreSQL.
ff04b431 717
60fcd7d3
JB
718%package module-sepgsql
719Summary: PostgreSQL external security provider using SELinux
720Summary(pl.UTF-8): Zewnętrzny moduł bezpieczeństwa PostgreSQL-a wykorzystujący SELinuksa
721Group: Applications/Databases
722Requires: %{name} = %{version}-%{release}
7f7f5e5b 723Requires: libselinux >= 2.0.99
60fcd7d3
JB
724
725%description module-sepgsql
726PostgreSQL external security provider using SELinux.
727
728%description module-sepgsql -l pl.UTF-8
729Zewnętrzny moduł bezpieczeństwa PostgreSQL-a wykorzystujący SELinuksa.
730
bc5c807d 731%package module-tablefunc
d8edd803 732Summary: crosstab functions for PostgreSQL
620f9138 733Summary(pl.UTF-8): Funkcje crosstab dla PostgreSQL-a
bc5c807d
PG
734Group: Applications/Databases
735Requires: %{name} = %{version}-%{release}
736
737%description module-tablefunc
d8edd803
JB
738crosstab functions for PostgreSQL.
739
c76c631a 740%description module-tablefunc -l pl.UTF-8
d8edd803 741Funkcje crosstab dla PostgreSQL-a.
bc5c807d 742
0b02f266 743%package module-xml2
744Summary: XML-handling functions for PostgreSQL
620f9138 745Summary(pl.UTF-8): Funkcje do obsługi XML-a dla PostgreSQL-a
0b02f266 746Group: Applications/Databases
747Requires: %{name} = %{version}-%{release}
748
749%description module-xml2
750Module with XML functions provides both XPath querying and XSLT
751functionality. There is also a new table function which allows the
752straightforward return of multiple XML results.
753
c76c631a
JR
754%description module-xml2 -l pl.UTF-8
755Moduł z funkcjami XML zapewniającymi obsługę zapytań XPath oraz
756funkcjonalność XSLT. Jest także nowa funkcja tabelowa pozwalająca na
757bezpośrednie zwracanie wielu wyników XML.
6a83c38f 758
c51da2b5 759%package contrib
01586e45
JB
760Summary: Miscellaneous PostgreSQL contrib modules
761Summary(pl.UTF-8): Różne moduły dołączone do PostgreSQL-a
c51da2b5 762Group: Applications/Databases
763Requires: %{name} = %{version}-%{release}
764
765%description contrib
01586e45
JB
766Miscellaneous PostgreSQL contrib modules.
767
768%description contrib -l pl.UTF-8
769Różne moduły dołączone do PostgreSQL-a.
c51da2b5 770
b35e841d 771%prep
b5d14337 772%setup -q
a1028a17 773%patch0 -p1
dc307bb4 774%{?with_absolute_dbpaths:%patch1 -p1}
c51da2b5 775%patch2 -p1
0fed4ed9 776%patch3 -p1
dc307bb4 777%patch4 -p1
2a4e3782 778%patch5 -p1
a1028a17 779
c51da2b5 780# force rebuild of bison/flex files
781find src -name \*.l -o -name \*.y | xargs touch
782
99e19e69 783# Erase all CVS dirs
dc307bb4 784#find contrib -type d -name CVS -exec rm -rf {} \;
48115857 785
b35e841d 786%build
0188dcac 787%{__aclocal} -I config
8204288a 788%{__autoconf}
99e19e69 789%configure \
c74c603d 790 CFLAGS="%{rpmcflags} -DNEED_REENTRANT_FUNCS `uuid-config --cflags`" \
12ff1bb8
JB
791 --disable-rpath \
792 --enable-depend \
793 --enable-integer-datetimes \
c51da2b5 794 --with-system-tzdata=%{_datadir}/zoneinfo \
eaf24b0b 795 --enable-nls \
12ff1bb8 796 --enable-thread-safety \
7a6f5720 797 %{?with_kerberos5:--with-gssapi} \
dc307bb4 798 %{?with_kerberos5:--with-krb5} \
4c35c6a5 799 %{?with_ldap:--with-ldap} \
40a8e4da 800 --with-openssl \
12ff1bb8 801 --with-pam \
55c59a48 802 --with-libxml \
e482b477 803 --with-libxslt \
12ff1bb8
JB
804 %{?with_perl:--with-perl} \
805 %{?with_python:--with-python} \
60fcd7d3 806 %{?with_selinux:--with-selinux} \
2477983b 807 %{?with_tcl:--with-tcl --with-tclconfig=%{_ulibdir}} \
c74c603d 808 --with-ossp-uuid \
b35e841d 809
40a8e4da 810%{__make}
c51da2b5 811
812for mod in %{contrib_modules}; do \
4614112f 813 flags="%{rpmcflags} %{rpmcppflags} -DNEED_REENTRANT_FUNCS"
c74c603d 814 if [ $mod = "xml2" ]; then flags="$flags -I/usr/include/libxml2"; fi
815 if [ $mod = "uuid-ossp" ]; then flags="$flags `uuid-config --cflags`"; fi
c7427375 816 %{__make} -C contrib/$mod CFLAGS="$flags"
c51da2b5 817done
818
12ff1bb8
JB
819%{__make} -C src/tutorial \
820 NO_PGXS=1
b4287983 821
f863bf87 822%ifnarch sparc sparcv9 sparc64 alpha
6ceb4ff1 823%{?with_tests:%{__make} -j1 check}
00287bb7 824%endif
b35e841d 825
826%install
827rm -rf $RPM_BUILD_ROOT
94b00d5a 828install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{rc.d/init.d,sysconfig,init/%{name}}} \
7dac5ffa 829 $RPM_BUILD_ROOT{/var/{lib/pgsql,log},%{_pgsqldir}} \
ee5a78dc 830 $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} \
d2bf084f 831 $RPM_BUILD_ROOT%{_mandir} \
320d02f0 832 $RPM_BUILD_ROOT/home/services/postgres
4f5dceb8 833
12ff1bb8 834install src/tutorial/*.sql $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
438eb355 835
dc307bb4 836%{__make} install \
00287bb7 837 DESTDIR=$RPM_BUILD_ROOT
500e26d8
AM
838%{__make} -C doc/src/sgml install-man \
839 DESTDIR=$RPM_BUILD_ROOT
00287bb7 840
99e19e69
JB
841%if %{with perl}
842%{__make} install -C src/pl/plperl \
843 DESTDIR=$RPM_BUILD_ROOT
844%endif
00287bb7 845
c51da2b5 846for mod in %{contrib_modules}; do \
847 %{__make} -C contrib/$mod install \
848 DESTDIR=$RPM_BUILD_ROOT
849done
0b02f266 850
048840cb 851touch $RPM_BUILD_ROOT/var/log/pgsql
b35e841d 852
9bf007d0 853install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/postgresql
b752f531 854install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/postgresql
b35e841d 855
94b00d5a
JK
856install %{SOURCE5} $RPM_BUILD_ROOT/etc/init/%{name}.conf
857install %{SOURCE6} $RPM_BUILD_ROOT/etc/init/%{name}/instance.conf
858
b35e841d 859install -d howto
4b61b2c1 860tar zxf %{SOURCE2} -C howto
b35e841d 861
f43486f3 862%if %{with python}
be3e6567 863%py_comp $RPM_BUILD_ROOT%{py_libdir}
864%py_ocomp $RPM_BUILD_ROOT%{py_libdir}
f43486f3 865%endif
40a8e4da 866
fe8440d2 867# find locales
6ceb4ff1 868for f in libpq5 pg_basebackup pg_controldata pg_dump pg_resetxlog pgscripts postgres psql initdb pg_ctl pg_config plpgsql ecpg ecpglib6 %{?with_perl:plperl} plpgsql %{?with_python: plpython}; do
055aa993 869 %find_lang $f-%{mver}
fe8440d2 870done
871# merge locales
055aa993
JR
872cat pgscripts-%{mver}.lang pg_resetxlog-%{mver}.lang \
873 postgres-%{mver}.lang pg_controldata-%{mver}.lang \
6d8da3ba 874 plpgsql-%{mver}.lang \
6ceb4ff1 875 pg_basebackup-%{mver}.lang \
055aa993
JR
876 > main-%{mver}.lang
877cat pg_dump-%{mver}.lang psql-%{mver}.lang initdb-%{mver}.lang \
878 pg_ctl-%{mver}.lang > clients-%{mver}.lang
3a90355c 879cat ecpg-%{mver}.lang ecpglib6-%{mver}.lang > ecpg.lang
dc307bb4 880
b86befb8
JR
881%if %{with tcl}
882%find_lang pltcl-%{mver}
883mv $RPM_BUILD_ROOT{%{_datadir}/postgresql,%{_pgsqldir}}/unknown.pltcl
884%endif
7543e4a8 885
60fcd7d3
JB
886%if %{with selinux}
887mv $RPM_BUILD_ROOT{%{_datadir}/postgresql/contrib,%{_pgsqldir}}/sepgsql.sql
888%endif
6ceb4ff1 889
e0ee9cb2 890install src/pl/plperl/ppport.h $RPM_BUILD_ROOT%{_includedir}/postgresql/server/
891
c74c603d 892# package it...? nah, why bother.
60fcd7d3 893%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/doc/postgresql/html
c74c603d 894
a9e3ed5f 895%clean
b5d14337 896rm -rf $RPM_BUILD_ROOT
a9e3ed5f 897
7949db6e 898%pre
4239f689
JB
899PG_DB_CLUSTERS=""
900if [ -f /etc/sysconfig/postgresql ]; then
901 . /etc/sysconfig/postgresql
902 if [ -z "$PG_DB_CLUSTERS" -a -n "$POSTGRES_DATA_DIR" ]; then
903 PG_DB_CLUSTERS="$POSTGRES_DATA_DIR"
904 fi
905fi
906foundold=0
907for pgdir in $PG_DB_CLUSTERS; do
908 if [ -f $pgdir/PG_VERSION ]; then
b5d14337 909 if [ $(cat $pgdir/PG_VERSION) != '9.2' ]; then
4239f689
JB
910 echo "Found database(s) in older, incompatible format in cluster $pgdir."
911 foundold=1
912 fi
913 fi
914done
915if [ "$foundold" = "1" ]; then
916 echo
917 echo "Dump all data from clusters mentioned above (using pg_dump or pg_dumpall)"
918 echo "and clean (or rename) those directories; then upgrade postgresql and"
919 echo "restore all data (using pg_restore or psql)."
920 echo "Remember to stop the daemon before upgrading!"
921 echo
d5ec79c4
AM
922 echo "Alternatively you can use pg_upgrade for 8.3+ online upgrade with"
923 echo "some restrictions: http://www.postgresql.org/docs/9.0/static/pgupgrade.html"
924 echo
4239f689
JB
925 echo "Warning for upgrade from version *before* 7.2."
926 echo "Please note, that postgresql module path changed from"
7949db6e 927 echo "%{_libdir}/pgsql/module to %{_libdir}/postgresql. Change the path"
4239f689
JB
928 echo "in dump file before restore."
929 echo
930 echo "Warning for upgrade from version *before* 7.3."
931 echo "Reading following webpage is encouraged:"
258750c1 932 echo "http://www.ca.postgresql.org/docs/momjian/upgrade_tips_7.3"
4239f689
JB
933 exit 1
934fi
4b61b2c1
ER
935%groupadd -g 88 -r postgres
936%useradd -M -o -r -u 88 -d /home/services/postgres -s /bin/sh -g postgres -c "PostgreSQL Server" postgres
937
3c7ef761 938%triggerpostun -- %{name} < 7.2-2
e76d3d1a 939if [ -n "`/bin/id -u postgres 2>/dev/null`" ]; then
320d02f0 940 /usr/sbin/usermod -d /home/services/postgres postgres
320d02f0 941fi
4a025d17 942
b35e841d 943%post
1bc01910 944/sbin/chkconfig --add postgresql
3a2e0fdd 945%service postgresql restart "postgresql server"
c1db913e 946
1bc01910 947%preun
948if [ "$1" = "0" ]; then
3a2e0fdd 949 %service postgresql stop
1bc01910 950 /sbin/chkconfig --del postgresql
951fi
016f481d 952
94b00d5a
JK
953%post upstart
954%upstart_post postgresql
955
956%postun upstart
957%upstart_postun postgresql
958
a0af78da 959%post libs -p /sbin/ldconfig
960%postun libs -p /sbin/ldconfig
48115857 961
a0af78da 962%post ecpg -p /sbin/ldconfig
963%postun ecpg -p /sbin/ldconfig
6564a583 964
055aa993 965%files -f main-%{mver}.lang
103c268d 966%defattr(644,root,root,755)
6ceb4ff1 967%doc COPYRIGHT README HISTORY doc/{bug.template,KNOWN_BUGS,MISSING_FEATURES,TODO}
bd011839 968%attr(754,root,root) /etc/rc.d/init.d/postgresql
63ca64a6 969%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/postgresql
b35e841d 970
e957782b 971%attr(755,root,root) %{_bindir}/initdb
6ceb4ff1 972%attr(755,root,root) %{_bindir}/pg_basebackup
084a7c24 973%attr(755,root,root) %{_bindir}/pg_controldata
974%attr(755,root,root) %{_bindir}/pg_ctl
084a7c24 975%attr(755,root,root) %{_bindir}/pg_resetxlog
ecdee535 976%attr(755,root,root) %{_bindir}/pg_receivexlog
b5d14337 977%attr(755,root,root) %{_bindir}/pg_upgrade
e957782b 978%attr(755,root,root) %{_bindir}/postgres
979%attr(755,root,root) %{_bindir}/postmaster
084a7c24 980
d24d2940
JB
981%attr(755,root,root) %{_pgmoduledir}/ascii_and_mic.so
982%attr(755,root,root) %{_pgmoduledir}/cyrillic_and_mic.so
983%attr(755,root,root) %{_pgmoduledir}/dict_int.so
984%attr(755,root,root) %{_pgmoduledir}/dict_snowball.so
985%attr(755,root,root) %{_pgmoduledir}/dict_xsyn.so
986%attr(755,root,root) %{_pgmoduledir}/euc*.so
987%attr(755,root,root) %{_pgmoduledir}/latin2_and_win1250.so
988%attr(755,root,root) %{_pgmoduledir}/latin_and_mic.so
989%attr(755,root,root) %{_pgmoduledir}/libpqwalreceiver.so
b5d14337 990%attr(755,root,root) %{_pgmoduledir}/pg_upgrade_support.so
d24d2940
JB
991%attr(755,root,root) %{_pgmoduledir}/plpgsql.so
992%attr(755,root,root) %{_pgmoduledir}/utf8_and_*.so
7386fb4a 993
00287bb7 994%dir %{_pgsqldir}
6ceb4ff1
AM
995%{_pgsqldir}/plpgsql--*.sql
996%{_pgsqldir}/plpgsql.control
997
1888f1fe 998%dir %{_datadir}/postgresql
c80000c0
JR
999%{_datadir}/postgresql/*.bki
1000%{_datadir}/postgresql/*.sample
1001%{_datadir}/postgresql/*.description
26925000 1002%{_datadir}/postgresql/*.shdescription
fd6c8fe0 1003%{_datadir}/postgresql/*.sql
16404f9a 1004%{_datadir}/postgresql/*.txt
687787e7 1005%{_datadir}/postgresql/timezonesets
c51da2b5 1006%{_datadir}/postgresql/tsearch_data
3786c16b 1007
587cbf9a
JR
1008%dir %{_datadir}/postgresql/contrib
1009
320d02f0 1010%attr(700,postgres,postgres) /home/services/postgres
af01ba47 1011%attr(700,postgres,postgres) %dir /var/lib/pgsql
63ca64a6 1012%attr(640,postgres,postgres) %config(noreplace) %verify(not md5 mtime size) /var/log/pgsql
048840cb 1013
7386fb4a 1014%{_mandir}/man1/initdb.1*
6ceb4ff1 1015%{_mandir}/man1/pg_basebackup.1*
084a7c24 1016%{_mandir}/man1/pg_controldata.1*
1017%{_mandir}/man1/pg_ctl.1*
1018%{_mandir}/man1/pg_resetxlog.1*
7386fb4a
AF
1019%{_mandir}/man1/postgres.1*
1020%{_mandir}/man1/postmaster.1*
ecdee535
ŁC
1021%{_mandir}/man1/oid2name.1.gz
1022%{_mandir}/man1/pg_archivecleanup.1.gz
1023%{_mandir}/man1/pg_receivexlog.1.gz
1024%{_mandir}/man1/pg_standby.1.gz
1025%{_mandir}/man1/pg_test_fsync.1.gz
1026%{_mandir}/man1/pg_test_timing.1.gz
ecdee535
ŁC
1027%{_mandir}/man1/pgbench.1.gz
1028%{_mandir}/man1/vacuumlo.1.gz
1029
084a7c24 1030
19055269 1031%if "%{pld_release}" != "ti"
94b00d5a
JK
1032%files upstart
1033%defattr(644,root,root,755)
1034%config(noreplace) %verify(not md5 mtime size) /etc/init/postgresql.conf
1035%dir /etc/init/postgresql
1036%config(noreplace) %verify(not md5 mtime size) /etc/init/postgresql/instance.conf
19055269 1037%endif
94b00d5a 1038
048840cb 1039%files doc
1040%defattr(644,root,root,755)
500e26d8 1041%doc doc/src/sgml/html howto
438eb355 1042%{_examplesdir}/%{name}-%{version}
5cb5ee80 1043
055aa993 1044%files libs -f libpq5-%{mver}.lang
7386fb4a 1045%defattr(644,root,root,755)
a28e2aa1 1046%attr(755,root,root) %{_libdir}/libpq.so.*.*
1909f764 1047%attr(755,root,root) %ghost %{_libdir}/libpq.so.5
12ff1bb8 1048%dir %{_pgmoduledir}
7386fb4a 1049
dc856210 1050%files ecpg -f ecpg.lang
016f481d 1051%defattr(644,root,root,755)
00287bb7 1052%attr(755,root,root) %{_bindir}/ecpg
6564a583 1053%attr(755,root,root) %{_libdir}/libecpg.so.*.*
1909f764 1054%attr(755,root,root) %ghost %{_libdir}/libecpg.so.6
6564a583 1055%attr(755,root,root) %{_libdir}/libecpg_compat.so.*.*
1909f764 1056%attr(755,root,root) %ghost %{_libdir}/libecpg_compat.so.3
6564a583 1057%attr(755,root,root) %{_libdir}/libpgtypes.so.*.*
1909f764 1058%attr(755,root,root) %ghost %{_libdir}/libpgtypes.so.3
6564a583 1059%{_mandir}/man1/ecpg.1*
1060
1061%files ecpg-devel
1062%defattr(644,root,root,755)
7386fb4a 1063%attr(755,root,root) %{_libdir}/libecpg.so
16404f9a 1064%attr(755,root,root) %{_libdir}/libecpg_compat.so
16404f9a 1065%attr(755,root,root) %{_libdir}/libpgtypes.so
687787e7 1066%{_includedir}/ecpg*
6564a583 1067
055aa993 1068%files devel -f pg_config-%{mver}.lang
6564a583 1069%defattr(644,root,root,755)
1070%attr(755,root,root) %{_bindir}/pg_config
1071%attr(755,root,root) %{_libdir}/libpq.so
1072%dir %{_includedir}/postgresql
ed4eae76 1073%{_includedir}/libpq-events.h
6564a583 1074%{_includedir}/libpq-fe.h
1075%{_includedir}/pg_config.h
6ec5e7a2 1076%{_includedir}/pg_config_manual.h
6564a583 1077%{_includedir}/pg_config_os.h
697ce059 1078%{_includedir}/postgres_ext.h
00287bb7 1079%dir %{_includedir}/postgresql/internal
1080%{_includedir}/postgresql/internal/c.h
1081%{_includedir}/postgresql/internal/libpq-int.h
6ec5e7a2 1082%{_includedir}/postgresql/internal/port.h
00287bb7 1083%{_includedir}/postgresql/internal/postgres_fe.h
1084%{_includedir}/postgresql/internal/pqexpbuffer.h
00287bb7 1085%{_includedir}/postgresql/internal/libpq
084a7c24 1086%{_includedir}/libpq
2b04c0fa 1087%{_mandir}/man1/pg_config.1*
7386fb4a 1088
cb920eb9 1089%files backend-devel
ec709611 1090%defattr(644,root,root,755)
00287bb7 1091%{_includedir}/postgresql/server
12ff1bb8
JB
1092%dir %{_pgmoduledir}/pgxs
1093%attr(755,root,root) %{_pgmoduledir}/pgxs/config
1094%{_pgmoduledir}/pgxs/src
dd3bd164 1095%{_mandir}/man3/SPI_*.3*
cb920eb9 1096
7386fb4a
AF
1097%files static
1098%defattr(644,root,root,755)
1099%{_libdir}/libecpg.a
16404f9a 1100%{_libdir}/libecpg_compat.a
7386fb4a 1101%{_libdir}/libpq.a
16404f9a 1102%{_libdir}/libpgtypes.a
dc307bb4 1103%{_libdir}/libpgport.a
b35e841d 1104
055aa993 1105%files clients -f clients-%{mver}.lang
103c268d 1106%defattr(644,root,root,755)
06095b90 1107%attr(755,root,root) %{_bindir}/clusterdb
1108%attr(755,root,root) %{_bindir}/createdb
1109%attr(755,root,root) %{_bindir}/createlang
1110%attr(755,root,root) %{_bindir}/createuser
1111%attr(755,root,root) %{_bindir}/dropdb
1112%attr(755,root,root) %{_bindir}/droplang
1113%attr(755,root,root) %{_bindir}/dropuser
e957782b 1114%attr(755,root,root) %{_bindir}/pg_dump
9bf007d0 1115%attr(755,root,root) %{_bindir}/pg_dumpall
c80000c0 1116%attr(755,root,root) %{_bindir}/pg_restore
e957782b 1117%attr(755,root,root) %{_bindir}/psql
af6badf5 1118%attr(755,root,root) %{_bindir}/reindexdb
5cb5ee80 1119%attr(755,root,root) %{_bindir}/vacuumdb
b35e841d 1120
06095b90 1121%{_mandir}/man1/clusterdb.1*
1122%{_mandir}/man1/createdb.1*
1123%{_mandir}/man1/createlang.1*
1124%{_mandir}/man1/createuser.1*
1125%{_mandir}/man1/dropdb.1*
1126%{_mandir}/man1/droplang.1*
1127%{_mandir}/man1/dropuser.1*
7386fb4a
AF
1128%{_mandir}/man1/pg_dump.1*
1129%{_mandir}/man1/pg_dumpall.1*
c80000c0 1130%{_mandir}/man1/pg_restore.1*
b5d14337 1131%{_mandir}/man1/pg_upgrade.1.gz
7386fb4a 1132%{_mandir}/man1/psql.1*
af6badf5 1133%{_mandir}/man1/reindexdb.1*
c80000c0 1134%{_mandir}/man1/vacuumdb.1*
7dac5ffa 1135%{_mandir}/man7/*.7*
7386fb4a 1136
c6b2c886 1137%if %{with perl}
500e26d8 1138%files module-plperl -f plperl-%{mver}.lang
00287bb7 1139%defattr(644,root,root,755)
1140%attr(755,root,root) %{_pgmoduledir}/plperl.so
6ceb4ff1
AM
1141%{_pgsqldir}/plperl--*.sql
1142%{_pgsqldir}/plperl.control
1143%{_pgsqldir}/plperlu--*.sql
1144%{_pgsqldir}/plperlu.control
c6b2c886 1145%endif
00287bb7 1146
c6b2c886 1147%if %{with python}
500e26d8 1148%files module-plpython -f plpython-%{mver}.lang
00287bb7 1149%defattr(644,root,root,755)
6d8da3ba 1150%attr(755,root,root) %{_pgmoduledir}/plpython2.so
6ceb4ff1
AM
1151%{_pgsqldir}/plpython*--*.sql
1152%{_pgsqldir}/plpython*.control
c6b2c886 1153%endif
4ddf546b 1154
16404f9a 1155%if %{with tcl}
500e26d8 1156%files module-pltcl -f pltcl-%{mver}.lang
4ddf546b 1157%defattr(644,root,root,755)
084a7c24 1158%attr(755,root,root) %{_bindir}/pltcl_*
00287bb7 1159%attr(755,root,root) %{_pgmoduledir}/pltcl.so
7543e4a8 1160%{_pgsqldir}/unknown.pltcl
6ceb4ff1
AM
1161%{_pgsqldir}/pltcl*--*.sql
1162%{_pgsqldir}/pltcl*.control
16404f9a 1163%endif
ff04b431 1164
d8edd803
JB
1165%files module-dblink
1166%defattr(644,root,root,755)
d8edd803 1167%attr(755,root,root) %{_pgmoduledir}/dblink.so
6ceb4ff1
AM
1168%{_pgsqldir}/dblink--*.sql
1169%{_pgsqldir}/dblink.control
75373ca4 1170%{_mandir}/man3/dblink*.3*
d8edd803 1171
8646766c
JB
1172%files module-lo
1173%defattr(644,root,root,755)
8646766c 1174%attr(755,root,root) %{_pgmoduledir}/lo.so
6ceb4ff1
AM
1175%{_pgsqldir}/lo--*.sql
1176%{_pgsqldir}/lo.control
8646766c 1177
60fcd7d3
JB
1178%files module-pg_trgm
1179%defattr(644,root,root,755)
1180%attr(755,root,root) %{_pgmoduledir}/pg_trgm.so
1181%{_pgsqldir}/pg_trgm--*.sql
1182%{_pgsqldir}/pg_trgm.control
1183
5b79623d 1184%files module-pgcrypto
ff04b431 1185%defattr(644,root,root,755)
5b79623d 1186%attr(755,root,root) %{_pgmoduledir}/pgcrypto.so
6ceb4ff1
AM
1187%{_pgsqldir}/pgcrypto--*.sql
1188%{_pgsqldir}/pgcrypto.control
ae08c8ad 1189
60fcd7d3
JB
1190%files module-sepgsql
1191%defattr(644,root,root,755)
1192%attr(755,root,root) %{_pgmoduledir}/sepgsql.so
1193%{_pgsqldir}/sepgsql.sql
1194
bc5c807d
PG
1195%files module-tablefunc
1196%defattr(644,root,root,755)
bc5c807d 1197%attr(755,root,root) %{_pgmoduledir}/tablefunc.so
6ceb4ff1
AM
1198%{_pgsqldir}/*tablefunc--*.sql
1199%{_pgsqldir}/*tablefunc.control
bc5c807d 1200
0b02f266 1201%files module-xml2
1202%defattr(644,root,root,755)
0b02f266 1203%attr(755,root,root) %{_pgmoduledir}/pgxml.so
6ceb4ff1
AM
1204%{_pgsqldir}/xml2--*.sql
1205%{_pgsqldir}/xml2.control
c51da2b5 1206
1207%files contrib
1208%defattr(644,root,root,755)
3be975a0 1209%doc contrib/README
3c7ef761 1210%attr(755,root,root) %{_bindir}/oid2name
d24d2940 1211%attr(755,root,root) %{_bindir}/pg_archivecleanup
c74c603d 1212%attr(755,root,root) %{_bindir}/pg_standby
3c7ef761
ER
1213%attr(755,root,root) %{_bindir}/pgbench
1214%attr(755,root,root) %{_bindir}/vacuumlo
c51da2b5 1215%attr(755,root,root) %{_pgmoduledir}/_int.so
1216%attr(755,root,root) %{_pgmoduledir}/adminpack.so
60fcd7d3 1217%attr(755,root,root) %{_pgmoduledir}/auth_delay.so
c74c603d 1218%attr(755,root,root) %{_pgmoduledir}/auto_explain.so
1219%attr(755,root,root) %{_pgmoduledir}/btree_gin.so
c51da2b5 1220%attr(755,root,root) %{_pgmoduledir}/btree_gist.so
1221%attr(755,root,root) %{_pgmoduledir}/chkpass.so
c74c603d 1222%attr(755,root,root) %{_pgmoduledir}/citext.so
1223%attr(755,root,root) %{_pgmoduledir}/cube.so
1224%attr(755,root,root) %{_pgmoduledir}/earthdistance.so
60fcd7d3 1225%attr(755,root,root) %{_pgmoduledir}/file_fdw.so
7caa0fe8 1226%attr(755,root,root) %{_pgmoduledir}/fuzzystrmatch.so
c51da2b5 1227%attr(755,root,root) %{_pgmoduledir}/hstore.so
c51da2b5 1228%attr(755,root,root) %{_pgmoduledir}/isn.so
1229%attr(755,root,root) %{_pgmoduledir}/ltree.so
1230%attr(755,root,root) %{_pgmoduledir}/pageinspect.so
d24d2940 1231%attr(755,root,root) %{_pgmoduledir}/passwordcheck.so
c51da2b5 1232%attr(755,root,root) %{_pgmoduledir}/pg_buffercache.so
1233%attr(755,root,root) %{_pgmoduledir}/pg_freespacemap.so
c74c603d 1234%attr(755,root,root) %{_pgmoduledir}/pg_stat_statements.so
c51da2b5 1235%attr(755,root,root) %{_pgmoduledir}/pgrowlocks.so
1236%attr(755,root,root) %{_pgmoduledir}/pgstattuple.so
c74c603d 1237%attr(755,root,root) %{_pgmoduledir}/seg.so
c51da2b5 1238%attr(755,root,root) %{_pgmoduledir}/sslinfo.so
d24d2940 1239%attr(755,root,root) %{_pgmoduledir}/unaccent.so
c74c603d 1240%attr(755,root,root) %{_pgmoduledir}/uuid-ossp.so
6ceb4ff1
AM
1241%{_pgsqldir}/adminpack--*.sql
1242%{_pgsqldir}/adminpack.control
1243%{_pgsqldir}/btree_gin--*.sql
1244%{_pgsqldir}/btree_gin.control
1245%{_pgsqldir}/btree_gist--*.sql
1246%{_pgsqldir}/btree_gist.control
1247%{_pgsqldir}/chkpass--*.sql
1248%{_pgsqldir}/chkpass.control
1249%{_pgsqldir}/citext--*.sql
1250%{_pgsqldir}/citext.control
1251%{_pgsqldir}/cube--*.sql
1252%{_pgsqldir}/cube.control
1253%{_pgsqldir}/dict_int--*.sql
1254%{_pgsqldir}/dict_int.control
1255%{_pgsqldir}/dict_xsyn--*.sql
1256%{_pgsqldir}/dict_xsyn.control
1257%{_pgsqldir}/earthdistance--*.sql
1258%{_pgsqldir}/earthdistance.control
60fcd7d3
JB
1259%{_pgsqldir}/file_fdw--*.sql
1260%{_pgsqldir}/file_fdw.control
1261%{_pgsqldir}/fuzzystrmatch--*.sql
6ceb4ff1
AM
1262%{_pgsqldir}/fuzzystrmatch.control
1263%{_pgsqldir}/hstore--*.sql
1264%{_pgsqldir}/hstore.control
1265%{_pgsqldir}/intarray--*.sql
1266%{_pgsqldir}/intarray.control
1267%{_pgsqldir}/intagg--*.sql
1268%{_pgsqldir}/intagg.control
1269%{_pgsqldir}/isn--*.sql
1270%{_pgsqldir}/isn.control
1271%{_pgsqldir}/ltree--*.sql
1272%{_pgsqldir}/ltree.control
1273%{_pgsqldir}/pageinspect--*.sql
1274%{_pgsqldir}/pageinspect.control
1275%{_pgsqldir}/pg_buffercache--*.sql
1276%{_pgsqldir}/pg_buffercache.control
1277%{_pgsqldir}/pg_freespacemap--*.sql
1278%{_pgsqldir}/pg_freespacemap.control
1279%{_pgsqldir}/pg_stat_statements--*.sql
1280%{_pgsqldir}/pg_stat_statements.control
1281%{_pgsqldir}/pgrowlocks--*.sql
1282%{_pgsqldir}/pgrowlocks.control
1283%{_pgsqldir}/pgstattuple--*.sql
1284%{_pgsqldir}/pgstattuple.control
6ceb4ff1
AM
1285%{_pgsqldir}/seg--*.sql
1286%{_pgsqldir}/seg.control
1287%{_pgsqldir}/sslinfo--*.sql
1288%{_pgsqldir}/sslinfo.control
1289%{_pgsqldir}/unaccent--*.sql
1290%{_pgsqldir}/unaccent.control
1291%{_pgsqldir}/uuid-ossp--*.sql
1292%{_pgsqldir}/uuid-ossp.control
9214a4d4 1293
This page took 0.366869 seconds and 4 git commands to generate.