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