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