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