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