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