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