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