]> TLD Linux GIT Repositories - packages/postgresql.git/blob - postgresql.spec
- really prefer python3 over python2
[packages/postgresql.git] / postgresql.spec
1 #
2 # Conditional build:
3 %bcond_without  tests                   # disable testing
4 %bcond_without  tcl                     # disable Tcl support
5 %bcond_without  kerberos5               # disable kerberos5 support
6 %bcond_without  perl                    # disable Perl support
7 %bcond_without  python                  # disable Python support
8 %bcond_with     bonjour                 # Bonjour/DNS_SD support
9 %bcond_without  ldap                    # disable LDAP support
10 %bcond_without  selinux                 # sepgsql contrib module
11 %bcond_with     systemtap               # systemtap/dtrace probes
12 %bcond_with     absolute_dbpaths        # enable absolute paths to create database
13                                         # (disabled by default because it is a security risk)
14 #
15
16 %define beta %{nil}
17 %define pgsqlversion 14
18 %define pgsqlpriority 140
19
20 Summary:        PostgreSQL Data Base Management System
21 Summary(de.UTF-8):      PostgreSQL Datenbankverwaltungssystem
22 Summary(es.UTF-8):      Gestor de Banco de Datos PostgreSQL
23 Summary(fr.UTF-8):      Sysème de gestion de base de données PostgreSQL
24 Summary(pl.UTF-8):      PostgreSQL - system bazodanowy
25 Summary(pt_BR.UTF-8):   Gerenciador de Banco de Dados PostgreSQL
26 Summary(ru.UTF-8):      PostgreSQL - система управления базами данных
27 Summary(tr.UTF-8):      Veri Tabanı Yönetim Sistemi
28 Summary(uk.UTF-8):      PostgreSQL - система керування базами даних
29 Summary(zh_CN.UTF-8):   PostgreSQL 客户端程序和库文件
30 Name:           postgresql-%{pgsqlversion}
31 Version:        %{pgsqlversion}.3
32 Release:        2
33 License:        BSD
34 Group:          Applications/Databases
35 Source0:        http://ftp.postgresql.org/pub/source/v%{version}/postgresql-%{version}.tar.bz2
36 # Source0-md5:  c83c28c774dd55b078f7dae0e30163be
37 Source1:        postgresql.init
38 Source2:        pgsql-Database-HOWTO-html.tar.gz
39 # Source2-md5:  5b656ddf1db41965761f85204a14398e
40 Source3:        postgresql.sysconfig
41 Source4:        postgresql.logrotate
42 Patch0:         postgresql-conf.patch
43 Patch1:         postgresql-absolute_dbpaths.patch
44 Patch2:         postgresql-ecpg-includedir.patch
45 Patch3:         per-version-dirs.patch
46 Patch4:         postgresql-tests.patch
47 Patch5:         postgresql-heimdal.patch
48 Patch6:         postgresql-link.patch
49 Patch7:         socket-dir-fixes.patch
50 Patch8:         postgresql-autoconf.patch
51 Patch9:         postgresql-python3.patch
52 URL:            http://www.postgresql.org/
53 BuildRequires:  autoconf >= 2.69
54 BuildRequires:  automake
55 %{?with_bonjour:BuildRequires:  avahi-compat-libdns_sd-devel}
56 # not needed for releases... but fixes something in snapshot
57 BuildRequires:  bison >= 1.875
58 BuildRequires:  docbook-dtd42-sgml
59 BuildRequires:  docbook-dtd42-xml
60 BuildRequires:  docbook-style-xsl
61 BuildRequires:  flex >= 2.5.31
62 BuildRequires:  gettext-tools
63 BuildRequires:  gnome-doc-tools
64 %{?with_kerberos5:BuildRequires:        heimdal-devel}
65 %{?with_selinux:BuildRequires:  libselinux-devel >= 2.1.10}
66 BuildRequires:  libtool
67 BuildRequires:  libxml2-devel >= 1:2.6.23
68 BuildRequires:  libxslt-devel
69 BuildRequires:  libxslt-progs
70 BuildRequires:  ncurses-devel >= 5.0
71 %{?with_ldap:BuildRequires:     openldap-devel}
72 BuildRequires:  openssl-devel >= 0.9.7d
73 BuildRequires:  ossp-uuid-devel
74 BuildRequires:  pam-devel
75 %{?with_perl:BuildRequires:     perl-devel}
76 %if %{with python}
77 BuildRequires:  python3
78 BuildRequires:  python3-devel
79 BuildRequires:  python3-modules
80 %endif
81 BuildRequires:  readline-devel >= 4.2
82 BuildRequires:  rpmbuild(macros) >= 1.671
83 %{?with_systemtap:BuildRequires:        systemtap-sdt-devel}
84 %{?with_tcl:BuildRequires:      tcl-devel >= 8.4.3}
85 %{?with_tests:BuildRequires:    tzdata}
86 BuildRequires:  zlib-devel
87 Requires(post,preun):   /sbin/chkconfig
88 Requires(pre):  /bin/id
89 Requires(pre):  /usr/bin/getgid
90 Requires(post): /bin/id
91 Requires(post): /usr/sbin/usermod
92 Requires:       %{name}-clients = %{version}-%{release}
93 Requires:       %{name}-dirs = %{version}-%{release}
94 Requires:       postgresql-libs >= %{version}-%{release}
95 Requires:       rc-scripts >= 0.4.3.0
96 Requires:       tzdata
97 Obsoletes:      postgresql
98 Obsoletes:      postgresql-module-plpgsql
99 Obsoletes:      postgresql-module-tsearch2
100 Obsoletes:      postgresql-server
101 Obsoletes:      postgresql-test
102 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
103
104 %define         pgsqldatadir    %{_datadir}/postgresql/%{pgsqlversion}
105 %define         pgsqllibdir     %{_libdir}/postgresql/%{pgsqlversion}
106 %define         moduledir       %{pgsqllibdir}/lib
107 %define         extensiondir    %{pgsqldatadir}/extension
108
109 %define         _ulibdir        /usr/lib
110
111 # omitted contribs:
112 # spi, test_decoding, worker_spi - examples/tests
113 # tsearch2 - old module for compatibility only
114 %define contrib_modules adminpack amcheck auth_delay auto_explain bloom %{?with_perl:bool_plperl} 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 old_snapshot pageinspect passwordcheck pg_buffercache pg_freespacemap pg_prewarm pg_stat_statements pg_surgery pg_trgm pg_visibility pgcrypto pgrowlocks pgstattuple postgres_fdw seg %{?with_selinux:sepgsql} spi sslinfo tablefunc tcn tsm_system_rows tsm_system_time unaccent uuid-ossp vacuumlo xml2
115
116 %description
117 PostgreSQL Data Base Management System (formerly known as Postgres,
118 then as Postgres95).
119
120 PostgreSQL is an enhancement of the POSTGRES database management
121 system, a next-generation DBMS research prototype. While PostgreSQL
122 retains the powerful data model and rich data types of POSTGRES, it
123 replaces the PostQuel query language with an extended subset of SQL.
124 PostgreSQL is free and the complete source is available.
125
126 PostgreSQL development is being performed by a team of Internet
127 developers who all subscribe to the PostgreSQL development mailing
128 list. The current coordinator is Marc G. Fournier
129 (scrappy@postgreSQL.org). This team is now responsible for all current
130 and future development of PostgreSQL.
131
132 The authors of PostgreSQL 1.01 were Andrew Yu and Jolly Chen. Many
133 others have contributed to the porting, testing, debugging and
134 enhancement of the code. The original Postgres code, from which
135 PostgreSQL is derived, was the effort of many graduate students,
136 undergraduate students, and staff programmers working under the
137 direction of Professor Michael Stonebraker at the University of
138 California, Berkeley.
139
140 The original name of the software at Berkeley was Postgres. When SQL
141 functionality was added in 1995, its name was changed to Postgres95.
142 The name was changed at the end of 1996 to PostgreSQL.
143
144 PostgreSQL runs on Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD,
145 and most flavours of Unix.
146
147 %description -l pl.UTF-8
148 System Zarządzania Bazą Danych PostgreSQL (dawniej znany jako
149 Postgres, następnie jako Postgres95).
150
151 PostgreSQL jest rozszerzeniem systemu zarządzania baz danych POSTGRES,
152 prototypu DBMS następnej generacji. Co prawda PostgreSQL odziedziczył
153 model danych oraz bogaty zbiór różnych typów danych, to jednak język
154 zapytań PostQuel został zastąpiony rozszerzonym SQL-em. PostgreSQL
155 jest wolnym oprogramowaniem i kody źródłowe tego oprogramowania są w
156 pełni dostępne.
157
158 System PostgreSQL jest tworzony przez zespół ludzi, którzy są zapisani
159 na listę dyskusyjną dotyczącą PostgreSQL-a. Obecnym koordynatorem jest
160 Marc G. Fournier (scrappy@postgreSQL.org). Wymieniony wyżej zespół
161 jest odpowiedzialny za aktualny i przyszły rozwój systemu PostgreSQL.
162
163 Autorami PostgreSQL-a 1.01 byli Andrew Yu oraz Jolly Chen. Wielu
164 innych pomagało przenosząc na różne platformy, testując, analizując i
165 rozszerzając kod. Oryginalny kod Postgres-a, na podstawie którego
166 PostgreSQL powstał, był wysiłkiem wielu absolwentów, studentów oraz
167 zespołu programistów, którzy pracowali pod kierunkiem profesora
168 Michaela Stonebrakera z Uniwersytetu Kalifornii w Berkeley.
169
170 Nazwa oryginalna oprogramowania tworzonego w Berkeley brzmiała
171 Postgres. W 1995 roku dodano język zapytań SQL i nazwę zmieniono na
172 Postgres95. W końcu roku 1996 nazwę ostatecznie zmieniono na
173 PostgreSQL.
174
175 PostgreSQL może być uruchomiony pod następującymi systemami: Solaris,
176 SunOS, HPUX, AIX, Linux, Irix, FreeBSD i innymi systemami uniksowymi.
177
178 %package -n postgresql-common
179 Summary:        Common PostgreSQL files and directories
180 Summary(pl.UTF-8):      PostgreSQL - wspólne pliki i katalogi
181 Group:          Applicataion/Databases
182 Requires(pre):  /usr/sbin/groupadd
183 Requires(pre):  /usr/sbin/useradd
184
185 %description -n postgresql-common
186 Common PostgreSQL files and directories.
187
188 %description -n postgresql-common -l pl.UTF-8
189 PostgreSQL - wspólne pliki i katalogi.
190
191 %package dirs
192 Summary:        Common directories for PostgresSQL %{pgsqlversion}
193 Summary(pl.UTF-8):      Wspólne pliki i katalogi dla PostgreSQL %{pgsqlversion}
194 Group:          Applicataion/Databases
195 Requires:       postgresql-common >= %{version}-%{release}
196
197 %description dirs
198 Common directories for PostgresSQL %{pgsqlversion}
199
200 %description dirs -l pl.UTF-8
201 Wspólne pliki i katalogi dla PostgreSQL %{pgsqlversion}
202
203 %package -n postgresql-devel
204 Summary:        PostgreSQL development header files and libraries
205 Summary(de.UTF-8):      PostgreSQL-Entwicklungs-Header-Dateien und Libraries
206 Summary(es.UTF-8):      Archivos de inclusión y bibliotecas PostgreSQL
207 Summary(fr.UTF-8):      En-têtes et bibliothèques de développement PostgreSQL
208 Summary(pl.UTF-8):      PostgreSQL - pliki nagłówkowe i biblioteki
209 Summary(pt_BR.UTF-8):   Arquivos de inclusão e bibliotecas para desenvolvimento com o PostgreSQL
210 Summary(ru.UTF-8):      PostgreSQL - хедеры и библиотеки разработчика
211 Summary(tr.UTF-8):      PostgreSQL başlık dosyaları ve kitaplıklar
212 Summary(uk.UTF-8):      PostgreSQL - хедери та бібліотеки програміста
213 Group:          Development/Libraries
214 Requires:       alternatives
215 Requires:       postgresql-libs >= %{version}-%{release}
216
217 %description -n postgresql-devel
218 This package contains header files and libraries required to compile
219 applications that are talking directly to the PostgreSQL backend
220 server.
221
222 %description -n postgresql-devel -l pl.UTF-8
223 Pakiet zawiera nagłówki oraz biblioteki wymagane do kompilacji
224 aplikacji łączących się bezpośrednio z serwerem PostgreSQL.
225
226 %package backend-devel
227 Summary:        PostgreSQL backend development header files
228 Summary(pl.UTF-8):      PostgreSQL - pliki nagłówkowe dla backendu
229 Group:          Development/Libraries
230 Requires:       postgresql-devel >= %{version}-%{release}
231 Requires:       postgresql-libs >= %{version}-%{release}
232 Obsoletes:      postgresql-backend-devel
233
234 %description backend-devel
235 This package contains header files required to compile functions that
236 could be loaded directly by backend
237
238 %description backend-devel -l pl.UTF-8
239 Pakiet zawiera nagłówki wymagane do kompilacji funkcji ktore moga byc
240 bezposrednio ladowane przez beckend serwera PostgreSQL.
241
242 %package clients
243 Summary:        Clients needed to access a PostgreSQL server
244 Summary(es.UTF-8):      Clientes necesarios para acceder al servidor PostgreSQL
245 Summary(pl.UTF-8):      Klienci wymagani do dostępu do serwera PostgreSQL
246 Summary(pt_BR.UTF-8):   Clientes necessários para acessar o servidor PostgreSQL
247 Summary(ru.UTF-8):      Клиентские программы, необходимые для доступа к серверу PostgreSQL
248 Summary(uk.UTF-8):      Клієнтські програми, необхідні для доступу до сервера PostgreSQL
249 Group:          Applications/Databases
250 Requires:       alternatives
251 Requires:       %{name}-dirs = %{version}-%{release}
252 Requires:       postgresql-libs >= %{version}-%{release}
253 Obsoletes:      postgresql-clients
254
255 %description clients
256 This package includes only the clients needed to access an PostgreSQL
257 server. The server is included in the main package. If all you need is
258 to connect to another PostgreSQL server, the this is the only package
259 you need to install. Clients include several command-line utilities
260 you can use to manage your databases on a remote PostgreSQL server.
261
262 %description clients -l pl.UTF-8
263 Pakiet zawiera programy klienckie potrzebne dla dostępu do serwera
264 PostgreSQL oraz narzędzia do zarządzania bazami działające z linii
265 poleceń. Serwer znajduje się w głównym pakiecie.
266
267 %package doc
268 Summary:        Documentation for PostgreSQL
269 Summary(pl.UTF-8):      Dodatkowa dokumantacja dla PostgreSQL
270 Group:          Applications/Databases
271 Obsoletes:      postgresql-doc
272
273 %description doc
274 This package includes documentation and HOWTO for programmer, admin
275 etc., in HTML format.
276
277 %description doc -l pl.UTF-8
278 Pakiet ten zawiera dokumentację oraz HOWTO m.in. dla programistów,
279 administratorów w formacie HTML.
280
281 %package -n postgresql-libs
282 Summary:        PostgreSQL libraries
283 Summary(es.UTF-8):      Biblioteca compartida del PostgreSQL
284 Summary(pl.UTF-8):      Biblioteki dzielone programu PostgreSQL
285 Summary(pt_BR.UTF-8):   Biblioteca compartilhada do PostgreSQL
286 Summary(zh_CN.UTF-8):   PostgreSQL 客户所需要的共享库
287 Group:          Libraries
288 Requires:       postgresql-common >= %{version}-%{release}
289
290 %description -n postgresql-libs
291 PostgreSQL shared libraries.
292
293 %description -n postgresql-libs -l pl.UTF-8
294 Biblioteki dzielone programu PostgreSQL.
295
296 %package ecpg
297 Summary:        Embedded SQL in C interface
298 Summary(pl.UTF-8):      Interfejs wbudowanego SQL-a w język C
299 Group:          Libraries
300 Requires:       %{name}-dirs = %{version}-%{release}
301 Requires:       postgresql-libs >= %{version}-%{release}
302 Requires:       postgresql-ecpg-libs >= %{version}-%{release}
303 Obsoletes:      postgresql-ecpg
304
305 %description ecpg
306 Embedded SQL in C interface.
307
308 %description ecpg -l pl.UTF-8
309 Interfejs wbudowanego SQL-a w język C.
310
311 %package -n postgresql-ecpg-libs
312 Summary:        PostgreSQL libraries
313 Summary(es.UTF-8):      Biblioteca compartida del PostgreSQL
314 Summary(pl.UTF-8):      Biblioteki dzielone programu PostgreSQL
315 Summary(pt_BR.UTF-8):   Biblioteca compartilhada do PostgreSQL
316 Summary(zh_CN.UTF-8):   PostgreSQL 客户所需要的共享库
317 Group:          Libraries
318
319 %description -n postgresql-ecpg-libs
320 PostgreSQL shared libraries.
321
322 %description -n postgresql-ecpg-libs -l pl.UTF-8
323 Biblioteki dzielone programu PostgreSQL.
324
325 %package -n postgresql-ecpg-devel
326 Summary:        Embedded SQL in C interface files
327 Summary(pl.UTF-8):      Pliki programistyczne interfejsu wbudowanego SQL-a w język C
328 Group:          Development/Libraries
329 Requires:       postgresql-devel >= %{version}-%{release}
330 Requires:       postgresql-ecpg-devel >= %{version}-%{release}
331
332 %description -n postgresql-ecpg-devel
333 Embedded SQL in C interface files.
334
335 %description -n postgresql-ecpg-devel -l pl.UTF-8
336 Pliki programistyczne interfejsu wbudowanego SQL-a w język C.
337
338 %package -n postgresql-ecpg-static
339 Summary:        PostgreSQL static libraries
340 Summary(es.UTF-8):      Bibliotecas estaticas PostgreSQL
341 Summary(pl.UTF-8):      Biblioteki statyczne programu PostgreSQL
342 Summary(pt_BR.UTF-8):   Bibliotecas estáticas PostgreSQL
343 Summary(ru.UTF-8):      Статические библиотеки для программирования с PostgreSQL
344 Summary(uk.UTF-8):      Статичні бібліотеки для програмування з PostgreSQL
345 Group:          Development/Libraries
346 Requires:       postgresql-devel >= %{version}-%{release}
347
348 %description -n postgresql-ecpg-static
349 PostgreSQL static libraries.
350
351 %description -n postgresql-ecpg-static -l pl.UTF-8
352 Biblioteki statyczne programu PostgreSQL.
353
354 %package -n postgresql-static
355 Summary:        PostgreSQL static libraries
356 Summary(es.UTF-8):      Bibliotecas estaticas PostgreSQL
357 Summary(pl.UTF-8):      Biblioteki statyczne programu PostgreSQL
358 Summary(pt_BR.UTF-8):   Bibliotecas estáticas PostgreSQL
359 Summary(ru.UTF-8):      Статические библиотеки для программирования с PostgreSQL
360 Summary(uk.UTF-8):      Статичні бібліотеки для програмування з PostgreSQL
361 Group:          Development/Libraries
362 Requires:       postgresql-devel >= %{version}-%{release}
363
364 %description -n postgresql-static
365 PostgreSQL static libraries.
366
367 %description -n postgresql-static -l pl.UTF-8
368 Biblioteki statyczne programu PostgreSQL.
369
370 %package module-plperl
371 Summary:        PL/perl - PostgreSQL procedural language
372 Summary(pl.UTF-8):      PL/perl - język proceduralny bazy danych PostgreSQL
373 Group:          Applications/Databases
374 Requires:       %{name} = %{version}-%{release}
375 Obsoletes:      postgresql-module-plperl
376
377 %description module-plperl
378 From PostgreSQL documentation:
379
380 Postgres supports the definition of procedural languages. In the case
381 of a function or trigger procedure defined in a procedural language,
382 the database has no built-in knowledge about how to interpret the
383 function's source text. Instead, the task is passed to a handler that
384 knows the details of the language. The handler itself is a special
385 programming language function compiled into a shared object and loaded
386 on demand.
387
388 To enable PL/Perl procedural language for your database you have to
389 run createlang command.
390
391 %description module-plperl -l pl.UTF-8
392 Z dokumentacji PostgreSQL:
393
394 Postgres ma wsparcie dla języków proceduralnych. W przypadku, kiedy
395 programista zdefiniuje procedurę wyzwalacza lub funkcję w języku
396 proceduralnym, baza danych nie ma pojęcia jak interpretować tego typu
397 funkcję. Funkcja lub procedura ta jest przekazywana do interpretera,
398 który wie jak ją wykonać. Interpreter jest odpowiednią, specjalną
399 funkcją, która jest skompilowana w obiekt dzielony i ładowany w razie
400 potrzeby.
401
402 Za pomocą polecenia createlang można dodać obsługę języka
403 proceduralnego PL/Perl dla swojej bazy danych.
404
405 %package module-plpython
406 Summary:        PL/Python - PostgreSQL procedural language
407 Summary(pl.UTF-8):      PL/Python - język proceduralny bazy danych PostgreSQL
408 Group:          Applications/Databases
409 Requires:       %{name} = %{version}-%{release}
410 %pyrequires_eq  python3
411 Obsoletes:      postgresql-module-plpython
412
413 %description module-plpython
414 From PostgreSQL documentation:
415
416 Postgres supports the definition of procedural languages. In the case
417 of a function or trigger procedure defined in a procedural language,
418 the database has no built-in knowledge about how to interpret the
419 function's source text. Instead, the task is passed to a handler that
420 knows the details of the language. The handler itself is a special
421 programming language function compiled into a shared object and loaded
422 on demand.
423
424 To enable PL/Python procedural language for your database you have to
425 run createlang command.
426
427 %description module-plpython -l pl.UTF-8
428 Z dokumentacji PostgreSQL:
429
430 Postgres ma wsparcie dla języków proceduralnych. W przypadku, kiedy
431 programista zdefiniuje procedurę wyzwalacza lub funkcję w języku
432 proceduralnym, baza danych nie ma pojęcia jak interpretować tego typu
433 funkcję. Funkcja lub procedura ta jest przekazywana do interpretera,
434 który wie jak ją wykonać. Interpreter jest odpowiednią, specjalną
435 funkcją, która jest skompilowana w obiekt dzielony i ładowany w razie
436 potrzeby.
437
438 Za pomocą polecenia createlang można dodać obsługę języka
439 proceduralnego PL/Python dla swojej bazy danych.
440
441 %package module-pltcl
442 Summary:        PL/Tcl - PostgreSQL procedural language
443 Summary(pl.UTF-8):      PL/Tcl - język proceduralny bazy danych PostgreSQL
444 Group:          Applications/Databases
445 Requires:       %{name} = %{version}-%{release}
446 Requires:       tcl(Pgtcl)
447 Obsoletes:      postgresql-module-pltcl
448
449 %description module-pltcl
450 From PostgreSQL documentation:
451
452 Postgres supports the definition of procedural languages. In the case
453 of a function or trigger procedure defined in a procedural language,
454 the database has no built-in knowledge about how to interpret the
455 function's source text. Instead, the task is passed to a handler that
456 knows the details of the language. The handler itself is a special
457 programming language function compiled into a shared object and loaded
458 on demand.
459
460 To enable PL/Tcl procedural language for your database you have to run
461 createlang command.
462
463 %description module-pltcl -l pl.UTF-8
464 Z dokumentacji PostgreSQL:
465
466 Postgres ma wsparcie dla języków proceduralnych. W przypadku, kiedy
467 programista zdefiniuje procedurę wyzwalacza lub funkcję w języku
468 proceduralnym, baza danych nie ma pojęcia jak interpretować tego typu
469 funkcję. Funkcja lub procedura ta jest przekazywana do interpretera,
470 który wie jak ją wykonać. Interpreter jest odpowiednią, specjalną
471 funkcją, która jest skompilowana w obiekt dzielony i ładowany w razie
472 potrzeby.
473
474 Za pomocą polecenia createlang można dodać obsługę języka
475 proceduralnego PL/Tcl dla swojej bazy danych.
476
477 %package module-dblink
478 Summary:        dblink module for PostgreSQL
479 Summary(pl.UTF-8):      Moduł dblink dla PostgreSQL-a
480 Group:          Applications/Databases
481 Requires:       %{name} = %{version}-%{release}
482 Obsoletes:      postgresql-module-dblink
483
484 %description module-dblink
485 dblink module for PostgreSQL provides functions returning results from
486 remote database.
487
488 %description module-dblink -l pl.UTF-8
489 Moduł dblink dla PostgreSQL-a udostępnia funkcje zwracające wyniki ze
490 zdalnej bazy danych.
491
492 %package module-lo
493 Summary:        Large Objects module for PostgreSQL
494 Summary(pl.UTF-8):      Moduł Large Objects dla PostgreSQL-a
495 Group:          Applications/Databases
496 Requires:       %{name} = %{version}-%{release}
497 Obsoletes:      postgresql-module-lo
498
499 %description module-lo
500 Large Objects module for PostgreSQL adds a new data type 'lo', some
501 support functions and a trigger which handles the orphaning problem.
502
503 %description module-lo -l pl.UTF-8
504 Moduł Large Objects dla PostgreSQL-a dodaje nowy typ danych 'lo',
505 kilka funkcji pomocniczych i wyzwalacz rozwiązujący problem
506 osieroconych obiektów.
507
508 %package module-pg_trgm
509 Summary:        Trigram matching for PostgreSQL
510 Summary(pl.UTF-8):      Dopasowanie trigramowe dla PostgreSQL-a
511 Group:          Applications/Databases
512 Requires:       %{name} = %{version}-%{release}
513 Obsoletes:      postgresql-module-pg_trgm
514
515 %description module-pg_trgm
516 This module provides functions and index classes for determining the
517 similarity of text based on trigram matching.
518
519 %description module-pg_trgm -l pl.UTF-8
520 Ten moduł dostarcza funkcje i klasy do rozpoznawania podobnych tekstów
521 w oparciu o dopasowywanie trigramowe (trigram matching).
522
523 %package module-pgcrypto
524 Summary:        Cryptographic functions for PostgreSQL
525 Summary(pl.UTF-8):      Funkcje kryptograficzne dla PostgreSQL-a
526 Group:          Applications/Databases
527 Requires:       %{name} = %{version}-%{release}
528 Obsoletes:      postgresql-module-pgcrypto
529
530 %description module-pgcrypto
531 Cryptographic functions for PostgreSQL.
532
533 %description module-pgcrypto -l pl.UTF-8
534 Funkcje kryptograficzne dla PostgreSQL.
535
536 %package module-sepgsql
537 Summary:        PostgreSQL external security provider using SELinux
538 Summary(pl.UTF-8):      Zewnętrzny moduł bezpieczeństwa PostgreSQL-a wykorzystujący SELinuksa
539 Group:          Applications/Databases
540 Requires:       %{name} = %{version}-%{release}
541 Requires:       libselinux >= 2.1.10
542 Obsoletes:      postgresql-module-sepgsql
543
544 %description module-sepgsql
545 PostgreSQL external security provider using SELinux.
546
547 %description module-sepgsql -l pl.UTF-8
548 Zewnętrzny moduł bezpieczeństwa PostgreSQL-a wykorzystujący SELinuksa.
549
550 %package module-tablefunc
551 Summary:        crosstab functions for PostgreSQL
552 Summary(pl.UTF-8):      Funkcje crosstab dla PostgreSQL-a
553 Group:          Applications/Databases
554 Requires:       %{name} = %{version}-%{release}
555 Obsoletes:      postgresql-module-tablefunc
556
557 %description module-tablefunc
558 crosstab functions for PostgreSQL.
559
560 %description module-tablefunc -l pl.UTF-8
561 Funkcje crosstab dla PostgreSQL-a.
562
563 %package module-xml2
564 Summary:        XML-handling functions for PostgreSQL
565 Summary(pl.UTF-8):      Funkcje do obsługi XML-a dla PostgreSQL-a
566 Group:          Applications/Databases
567 Requires:       %{name} = %{version}-%{release}
568 Requires:       libxml2 >= 1:2.6.23
569 Obsoletes:      postgresql-module-xml2
570
571 %description module-xml2
572 Module with XML functions provides both XPath querying and XSLT
573 functionality. There is also a new table function which allows the
574 straightforward return of multiple XML results.
575
576 %description module-xml2 -l pl.UTF-8
577 Moduł z funkcjami XML zapewniającymi obsługę zapytań XPath oraz
578 funkcjonalność XSLT. Jest także nowa funkcja tabelowa pozwalająca na
579 bezpośrednie zwracanie wielu wyników XML.
580
581 %package contrib
582 Summary:        Miscellaneous PostgreSQL contrib modules
583 Summary(pl.UTF-8):      Różne moduły dołączone do PostgreSQL-a
584 Group:          Applications/Databases
585 Requires:       %{name} = %{version}-%{release}
586 Obsoletes:      postgresql-contrib
587
588 %description contrib
589 Miscellaneous PostgreSQL contrib modules.
590
591 %description contrib -l pl.UTF-8
592 Różne moduły dołączone do PostgreSQL-a.
593
594 %prep
595 %setup -q -n postgresql-%{version}
596 %patch0 -p1
597 %{?with_absolute_dbpaths:%patch1 -p1}
598 %patch2 -p1
599 %patch3 -p1
600 %patch4 -p1
601 %patch5 -p1
602 %patch6 -p1
603 %patch7 -p1
604 %patch8 -p1
605 %patch9 -p1
606
607 # force rebuild of bison/flex files
608 find src -name \*.l -o -name \*.y | xargs touch
609
610 # Erase all CVS dirs
611 #find contrib -type d -name CVS -exec rm -rf {} \;
612
613 %build
614 %{__aclocal} -I config
615 %{__autoconf}
616 %{__autoheader}
617 %configure \
618         CFLAGS="%{rpmcflags} -DNEED_REENTRANT_FUNCS `uuid-config --cflags`" \
619         --prefix=%{pgsqldatadir} \
620         --bindir=%{pgsqllibdir}/bin \
621         --sbindir=%{pgsqllibdir}/sbin \
622         --includedir=%{_includedir} \
623         --mandir=%{pgsqldatadir}/man \
624         --datadir=%{pgsqldatadir} \
625         --libdir=%{_libdir} \
626         --docdir=%{pgsqldatadir}/doc \
627         --localedir=%{_datadir}/locale \
628         --disable-rpath \
629         --enable-depend \
630         %{?with_systemtap:--enable-dtrace} \
631         --enable-integer-datetimes \
632         --enable-nls \
633         --enable-thread-safety \
634         %{?with_bonjour:--with-bonjour} \
635         %{?with_kerberos5:--with-gssapi} \
636         %{?with_ldap:--with-ldap} \
637         --with-libxml \
638         --with-libxslt \
639         --with-openssl \
640         --with-pam \
641         %{?with_perl:--with-perl} \
642         %{?with_python:--with-python} \
643         %{?with_selinux:--with-selinux} \
644         --with-system-tzdata=%{_datadir}/zoneinfo \
645         --without-systemd \
646         %{?with_tcl:--with-tcl --with-tclconfig=%{_ulibdir}} \
647         --with-uuid=e2fs
648
649 %{__make}
650
651 for mod in %{contrib_modules}; do \
652         flags="%{rpmcflags} %{rpmcppflags} -DNEED_REENTRANT_FUNCS"
653         if [ $mod = "xml2"      ]; then flags="$flags -I/usr/include/libxml2"; fi
654         if [ $mod = "uuid-ossp" ]; then flags="$flags `uuid-config --cflags`"; fi
655         %{__make} -C contrib/$mod CFLAGS="$flags"
656 done
657
658 %{__make} -C src/tutorial \
659         NO_PGXS=1
660
661 %ifnarch sparc sparcv9 sparc64 alpha
662 %{?with_tests:%{__make} -j1 check}
663 %endif
664
665 %install
666 rm -rf $RPM_BUILD_ROOT
667 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{logrotate.d,rc.d/init.d,sysconfig}} \
668         $RPM_BUILD_ROOT/var/{lib/postgresql/%{pgsqlversion},log/{archive,}/postgresql,run/postgresql} \
669         $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} \
670         $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
671
672 install src/tutorial/*.sql $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
673
674 %{__make} install \
675         DESTDIR=$RPM_BUILD_ROOT
676 %{__make} -C doc/src/sgml install-man \
677         DESTDIR=$RPM_BUILD_ROOT
678
679 %if %{with perl}
680 %{__make} install -C src/pl/plperl \
681         DESTDIR=$RPM_BUILD_ROOT
682 %endif
683
684 for mod in %{contrib_modules}; do \
685         %{__make} -C contrib/$mod install \
686                 DESTDIR=$RPM_BUILD_ROOT
687 done
688
689 sed -e 's,@pgsqlbindir@,%{pgsqllibdir}/bin,g; s,@pgsqlversion@,%{pgsqlversion},g;' %{SOURCE1} >$RPM_BUILD_ROOT/etc/rc.d/init.d/postgresql-%{pgsqlversion}
690 sed -e 's,@pgsqlversion@,%{pgsqlversion},g;' %{SOURCE3} >$RPM_BUILD_ROOT/etc/sysconfig/postgresql-%{pgsqlversion}
691 cp -a %{SOURCE4} $RPM_BUILD_ROOT/etc/logrotate.d/postgresql
692
693 install -d howto
694 tar zxf %{SOURCE2} -C howto
695
696 %if %{with python}
697 %py3_comp $RPM_BUILD_ROOT%{py3_libdir}
698 %py3_ocomp $RPM_BUILD_ROOT%{py3_libdir}
699 %endif
700
701 # find locales
702 for f in libpq5 pgscripts postgres psql initdb ecpg ecpglib6 \
703         plpgsql %{?with_perl:plperl} %{?with_python:plpython} \
704         pg_amcheck pg_archivecleanup pg_basebackup pg_checksums pg_config pg_controldata pg_ctl pg_dump pg_resetwal pg_rewind pg_test_fsync pg_test_timing pg_upgrade pg_verifybackup pg_waldump; do
705         %find_lang $f-%{pgsqlversion}
706 done
707 # merge locales
708 merge_lang() {
709         cat $(for f in $@; do echo ${f}-%{pgsqlversion}.lang ; done)
710 }
711 merge_lang pgscripts postgres plpgsql \
712         pg_amcheck pg_basebackup pg_checksums pg_config pg_controldata pg_resetwal pg_rewind pg_test_fsync pg_test_timing pg_upgrade pg_verifybackup pg_waldump > main.lang
713 merge_lang psql initdb \
714         pg_archivecleanup pg_ctl pg_dump > clients.lang
715
716 %if %{with tcl}
717 %find_lang pltcl-%{pgsqlversion}
718 %endif
719
720 %if %{with selinux}
721 %{__mv} $RPM_BUILD_ROOT{%{pgsqldatadir}/contrib,%{extensiondir}}/sepgsql.sql
722 %endif
723
724 cp -p src/pl/plperl/ppport.h $RPM_BUILD_ROOT%{_includedir}/postgresql/%{pgsqlversion}/server/
725
726 %{__mv} $RPM_BUILD_ROOT{%{pgsqllibdir}/bin,%{_bindir}}/pg_config
727 %{__mv} $RPM_BUILD_ROOT{%{pgsqldatadir}/man,%{_mandir}}/man1/pg_config.1
728
729 # package it...?  nah, why bother.
730 %{__rm} -r $RPM_BUILD_ROOT%{pgsqldatadir}/doc/html
731 %{__rm} -r $RPM_BUILD_ROOT%{pgsqldatadir}/doc/extension/*.example
732
733 %clean
734 rm -rf $RPM_BUILD_ROOT
735
736 %pre
737 PG_DB_CLUSTERS=""
738 if [ -f /etc/sysconfig/postgresql-%{pgsqlversion} ]; then
739         . /etc/sysconfig/postgresql-%{pgsqlversion}
740         if [ -z "$PG_DB_CLUSTERS" -a -n "$POSTGRES_DATA_DIR" ]; then
741                 PG_DB_CLUSTERS="$POSTGRES_DATA_DIR"
742         fi
743 fi
744 foundold=0
745 for pgdir in $PG_DB_CLUSTERS; do
746         if [ -f $pgdir/PG_VERSION ]; then
747                 if [ $(cat $pgdir/PG_VERSION) != '%{pgsqlversion}' ]; then
748                         echo "Found database(s) in older, incompatible format in cluster $pgdir."
749                         foundold=1
750                 fi
751         fi
752 done
753 if [ "$foundold" = "1" ]; then
754         echo
755         echo "Dump all data from clusters mentioned above (using pg_dump or pg_dumpall)"
756         echo "and clean (or rename) those directories; then upgrade postgresql and"
757         echo "restore all data (using pg_restore or psql)."
758         echo "Remember to stop the daemon before upgrading!"
759         echo
760         echo "Alternatively you can use pg_upgrade for 8.3+ online upgrade with"
761         echo "some restrictions: http://www.postgresql.org/docs/10.0/static/pgupgrade.html"
762         echo
763         exit 1
764 fi
765
766 %triggerpostun -- postgresql < 10.5-2
767 if [ -n "`/bin/id -u postgres 2>/dev/null`" ]; then
768         /usr/sbin/usermod -d /var/lib/postgresql postgres
769 fi
770 echo
771 echo "This version of PostgreSQL uses new default location for database clusters."
772 echo "Please move your existing clusters before starting PostgreSQL so they follow"
773 echo "below scheme:"
774 echo
775 echo "/var/lib/postgresql/<version>/<name>"
776 echo
777 echo "where <version> means PostgreSQL version like 9.6 or 10 and name is cluster"
778 echo "name of your choice. When done, be sure to update /etc/sysconfig/postgresql*"
779 echo "files so they reflect your changes."
780 echo
781
782 %post
783 /sbin/chkconfig --add postgresql-%{pgsqlversion}
784 %service postgresql-%{pgsqlversion} restart "postgresql-%{pgsqlversion} server"
785
786 %preun
787 if [ "$1" = "0" ]; then
788         %service postgresql-%{pgsqlversion} stop
789         /sbin/chkconfig --del postgresql-%{pgsqlversion}
790 fi
791
792 %pre    -n postgresql-common
793 %groupadd -g 88 -r postgres
794 %useradd -M -o -r -u 88 -d /var/lib/postgresql -s /bin/sh -g postgres -c "PostgreSQL Server" postgres
795
796 %posttrans      clients
797 update-alternatives \
798         --install %{_bindir}/clusterdb clusterdb %{pgsqllibdir}/bin/clusterdb %{pgsqlpriority} \
799         --slave %{_mandir}/man1/clusterdb.1 clusterdb.1 %{pgsqldatadir}/man/man1/clusterdb.1* || :
800 update-alternatives \
801         --install %{_bindir}/createdb createdb %{pgsqllibdir}/bin/createdb %{pgsqlpriority} \
802         --slave %{_mandir}/man1/createdb.1 createdb.1 %{pgsqldatadir}/man/man1/createdb.1* || :
803 update-alternatives \
804         --install %{_bindir}/createuser createuser %{pgsqllibdir}/bin/createuser %{pgsqlpriority} \
805         --slave %{_mandir}/man1/createuser.1 createuser.1 %{pgsqldatadir}/man/man1/createuser.1* || :
806 update-alternatives \
807         --install %{_bindir}/dropdb dropdb %{pgsqllibdir}/bin/dropdb %{pgsqlpriority} \
808         --slave %{_mandir}/man1/dropdb.1 dropdb.1 %{pgsqldatadir}/man/man1/dropdb.1* || :
809 update-alternatives \
810         --install %{_bindir}/dropuser dropuser %{pgsqllibdir}/bin/dropuser %{pgsqlpriority} \
811         --slave %{_mandir}/man1/dropuser.1 dropuser.1 %{pgsqldatadir}/man/man1/dropuser.1* || :
812 update-alternatives \
813         --install %{_bindir}/pg_archivecleanup pg_archivecleanup %{pgsqllibdir}/bin/pg_archivecleanup %{pgsqlpriority} \
814         --slave %{_mandir}/man1/pg_archivecleanup.1 pg_archivecleanup.1 %{pgsqldatadir}/man/man1/pg_archivecleanup.1* || :
815 update-alternatives \
816         --install %{_bindir}/pg_dump pg_dump %{pgsqllibdir}/bin/pg_dump %{pgsqlpriority} \
817         --slave %{_mandir}/man1/pg_dump.1 pg_dump.1 %{pgsqldatadir}/man/man1/pg_dump.1* || :
818 update-alternatives \
819         --install %{_bindir}/pg_dumpall pg_dumpall %{pgsqllibdir}/bin/pg_dumpall %{pgsqlpriority} \
820         --slave %{_mandir}/man1/pg_dumpall.1 pg_dumpall.1 %{pgsqldatadir}/man/man1/pg_dumpall.1* || :
821 update-alternatives \
822         --install %{_bindir}/pg_isready pg_isready %{pgsqllibdir}/bin/pg_isready %{pgsqlpriority} \
823         --slave %{_mandir}/man1/pg_isready.1 pg_isready.1 %{pgsqldatadir}/man/man1/pg_isready.1* || :
824 update-alternatives \
825         --install %{_bindir}/pg_restore pg_restore %{pgsqllibdir}/bin/pg_restore %{pgsqlpriority} \
826         --slave %{_mandir}/man1/pg_restore.1 pg_restore.1 %{pgsqldatadir}/man/man1/pg_restore.1* || :
827 update-alternatives \
828         --install %{_bindir}/psql psql %{pgsqllibdir}/bin/psql %{pgsqlpriority} \
829         --slave %{_mandir}/man1/psql.1 pgsql.1 %{pgsqldatadir}/man/man1/psql.1* || :
830 update-alternatives \
831         --install %{_bindir}/reindexdb reindexdb %{pgsqllibdir}/bin/reindexdb %{pgsqlpriority} \
832         --slave %{_mandir}/man1/reindexdb.1 reindexdb.1 %{pgsqldatadir}/man/man1/reindexdb.1* || :
833 update-alternatives \
834         --install %{_bindir}/vacuumdb vacuumdb %{pgsqllibdir}/bin/vacuumdb %{pgsqlpriority} \
835         --slave %{_mandir}/man1/vacuumdb.1 vacuumdb.1 %{pgsqldatadir}/man/man1/vacuumdb.1* || :
836
837 %postun clients
838 if [ $1 -eq 0 ]; then
839         update-alternatives --remove clusterdb %{pgsqllibdir}/bin/clusterdb || :
840         update-alternatives --remove createdb %{pgsqllibdir}/bin/createdb || :
841         update-alternatives --remove createuser %{pgsqllibdir}/bin/createuser || :
842         update-alternatives --remove dropdb %{pgsqllibdir}/bin/dropdb || :
843         update-alternatives --remove dropuser %{pgsqllibdir}/bin/dropuser || :
844         update-alternatives --remove pg_archivecleanup %{pgsqllibdir}/bin/pg_archivecleanup || :
845         update-alternatives --remove pg_dump %{pgsqllibdir}/bin/pg_dump || :
846         update-alternatives --remove pg_dumpall %{pgsqllibdir}/bin/pg_dumpall || :
847         update-alternatives --remove pg_isready %{pgsqllibdir}/bin/pg_isready || :
848         update-alternatives --remove pg_restore %{pgsqllibdir}/bin/pg_restore || :
849         update-alternatives --remove psql %{pgsqllibdir}/bin/psql || :
850         update-alternatives --remove reindexdb %{pgsqllibdir}/bin/reindexdb || :
851         update-alternatives --remove vacuumdb %{pgsqllibdir}/bin/vacuumdb || :
852 fi
853
854 %postun -n postgresql-devel
855         update-alternatives --remove pg_config %{pgsqllibdir}/bin/pg_config || :
856
857 %post   -n postgresql-libs -p /sbin/ldconfig
858 %postun -n postgresql-libs -p /sbin/ldconfig
859
860 %post   -n postgresql-ecpg-libs -p /sbin/ldconfig
861 %postun -n postgresql-ecpg-libs -p /sbin/ldconfig
862
863 %files -f main.lang
864 %defattr(644,root,root,755)
865 %doc COPYRIGHT README HISTORY doc/{KNOWN_BUGS,MISSING_FEATURES,TODO}
866 %attr(754,root,root) /etc/rc.d/init.d/postgresql-%{pgsqlversion}
867 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/postgresql-%{pgsqlversion}
868
869 %attr(755,root,root) %{pgsqllibdir}/bin/initdb
870 %attr(755,root,root) %{pgsqllibdir}/bin/pg_amcheck
871 %attr(755,root,root) %{pgsqllibdir}/bin/pg_basebackup
872 %attr(755,root,root) %{pgsqllibdir}/bin/pg_checksums
873 %attr(755,root,root) %{pgsqllibdir}/bin/pg_controldata
874 %attr(755,root,root) %{pgsqllibdir}/bin/pg_ctl
875 %attr(755,root,root) %{pgsqllibdir}/bin/pg_resetwal
876 %attr(755,root,root) %{pgsqllibdir}/bin/pg_receivewal
877 %attr(755,root,root) %{pgsqllibdir}/bin/pg_recvlogical
878 %attr(755,root,root) %{pgsqllibdir}/bin/pg_rewind
879 %attr(755,root,root) %{pgsqllibdir}/bin/pg_test_fsync
880 %attr(755,root,root) %{pgsqllibdir}/bin/pg_test_timing
881 %attr(755,root,root) %{pgsqllibdir}/bin/pg_upgrade
882 %attr(755,root,root) %{pgsqllibdir}/bin/pg_verifybackup
883 %attr(755,root,root) %{pgsqllibdir}/bin/pg_waldump
884 %attr(755,root,root) %{pgsqllibdir}/bin/pgbench
885 %attr(755,root,root) %{pgsqllibdir}/bin/postgres
886 %attr(755,root,root) %{pgsqllibdir}/bin/postmaster
887
888 %attr(755,root,root) %{moduledir}/cyrillic_and_mic.so
889 %attr(755,root,root) %{moduledir}/dict_int.so
890 %attr(755,root,root) %{moduledir}/dict_snowball.so
891 %attr(755,root,root) %{moduledir}/dict_xsyn.so
892 %attr(755,root,root) %{moduledir}/euc*.so
893 %attr(755,root,root) %{moduledir}/latin2_and_win1250.so
894 %attr(755,root,root) %{moduledir}/latin_and_mic.so
895 %attr(755,root,root) %{moduledir}/libpqwalreceiver.so
896 %attr(755,root,root) %{moduledir}/pgoutput.so
897 %attr(755,root,root) %{moduledir}/plpgsql.so
898 %attr(755,root,root) %{moduledir}/utf8_and_*.so
899
900 %dir %{extensiondir}
901 %{extensiondir}/plpgsql--*.sql
902 %{extensiondir}/plpgsql.control
903
904 %{pgsqldatadir}/*.bki
905 %{pgsqldatadir}/*.sample
906 %{pgsqldatadir}/*.sql
907 %{pgsqldatadir}/*.txt
908 %{pgsqldatadir}/timezonesets
909 %{pgsqldatadir}/tsearch_data
910
911 %dir %{pgsqldatadir}/contrib
912
913 %{pgsqldatadir}/man/man1/initdb.1*
914 %{pgsqldatadir}/man/man1/pg_amcheck.1*
915 %{pgsqldatadir}/man/man1/pg_basebackup.1*
916 %{pgsqldatadir}/man/man1/pg_checksums.1*
917 %{pgsqldatadir}/man/man1/pg_controldata.1*
918 %{pgsqldatadir}/man/man1/pg_ctl.1*
919 %{pgsqldatadir}/man/man1/pg_resetwal.1*
920 %{pgsqldatadir}/man/man1/pg_receivewal.1*
921 %{pgsqldatadir}/man/man1/pg_recvlogical.1*
922 %{pgsqldatadir}/man/man1/pg_rewind.1*
923 %{pgsqldatadir}/man/man1/pg_verifybackup.1*
924 %{pgsqldatadir}/man/man1/pg_waldump.1*
925 %{pgsqldatadir}/man/man1/pg_test_fsync.1*
926 %{pgsqldatadir}/man/man1/pg_test_timing.1*
927 %{pgsqldatadir}/man/man1/pg_upgrade.1*
928 %{pgsqldatadir}/man/man1/pgbench.1*
929 %{pgsqldatadir}/man/man1/postgres.1*
930 %{pgsqldatadir}/man/man1/postmaster.1*
931
932 %files -n postgresql-common
933 %defattr(644,root,root,755)
934 %dir %{_libdir}/postgresql
935 %dir %{_datadir}/postgresql
936 %attr(700,postgres,postgres) %dir /var/lib/postgresql
937 %attr(750,postgres,postgres) %dir /var/log/postgresql
938 %attr(750,postgres,postgres) %dir /var/log/archive/postgresql
939 %attr(700,postgres,postgres) %dir /var/run/postgresql
940 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/postgresql
941
942 %files dirs
943 %defattr(644,root,root,755)
944 %dir %{pgsqllibdir}
945 %dir %{pgsqllibdir}/bin
946 %dir %{pgsqllibdir}/lib
947 %dir %{pgsqldatadir}
948 %dir %{pgsqldatadir}/man
949 %dir %{pgsqldatadir}/man/man1
950 %dir %{pgsqldatadir}/man/man3
951 %dir %{pgsqldatadir}/man/man7
952 %attr(700,postgres,postgres) %dir /var/lib/postgresql/%{pgsqlversion}
953
954 %files doc
955 %defattr(644,root,root,755)
956 %doc doc/src/sgml/html howto
957 %{_examplesdir}/%{name}-%{version}
958
959 %files -n postgresql-libs -f libpq5-%{pgsqlversion}.lang
960 %defattr(644,root,root,755)
961 %attr(755,root,root) %{_libdir}/libpq.so.*.*
962 %attr(755,root,root) %ghost %{_libdir}/libpq.so.5
963
964 %files ecpg -f ecpg-%{pgsqlversion}.lang
965 %defattr(644,root,root,755)
966 %attr(755,root,root) %{pgsqllibdir}/bin/ecpg
967 %{pgsqldatadir}/man/man1/ecpg.1*
968
969 %files -n postgresql-ecpg-libs -f ecpglib6-%{pgsqlversion}.lang
970 %attr(755,root,root) %{_libdir}/libecpg.so.*.*
971 %attr(755,root,root) %ghost %{_libdir}/libecpg.so.6
972 %attr(755,root,root) %{_libdir}/libecpg_compat.so.*.*
973 %attr(755,root,root) %ghost %{_libdir}/libecpg_compat.so.3
974 %attr(755,root,root) %{_libdir}/libpgtypes.so.*.*
975 %attr(755,root,root) %ghost %{_libdir}/libpgtypes.so.3
976
977 %files -n postgresql-ecpg-devel
978 %defattr(644,root,root,755)
979 %attr(755,root,root) %{_libdir}/libecpg.so
980 %attr(755,root,root) %{_libdir}/libecpg_compat.so
981 %attr(755,root,root) %{_libdir}/libpgtypes.so
982 %{_includedir}/ecpg*
983 %{_libdir}/pkgconfig/libecpg.pc
984 %{_libdir}/pkgconfig/libecpg_compat.pc
985 %{_libdir}/pkgconfig/libpgtypes.pc
986
987 %files -n postgresql-ecpg-static
988 %defattr(644,root,root,755)
989 %{_libdir}/libecpg.a
990 %{_libdir}/libecpg_compat.a
991 %{_libdir}/libpgtypes.a
992
993 %files -n postgresql-devel -f pg_config-%{pgsqlversion}.lang
994 %defattr(644,root,root,755)
995 %attr(755,root,root) %{_bindir}/pg_config
996 %attr(755,root,root) %{_libdir}/libpq.so
997 %dir %{_includedir}/postgresql
998 %{_includedir}/libpq-events.h
999 %{_includedir}/libpq-fe.h
1000 %{_includedir}/pg_config.h
1001 %{_includedir}/pg_config_ext.h
1002 %{_includedir}/pg_config_manual.h
1003 %{_includedir}/pg_config_os.h
1004 %{_includedir}/postgres_ext.h
1005 %dir %{_includedir}/postgresql/internal
1006 %{_includedir}/postgresql/internal/c.h
1007 %{_includedir}/postgresql/internal/libpq-int.h
1008 %{_includedir}/postgresql/internal/port.h
1009 %{_includedir}/postgresql/internal/postgres_fe.h
1010 %{_includedir}/postgresql/internal/pqexpbuffer.h
1011 %{_includedir}/postgresql/internal/libpq
1012 %{_includedir}/libpq
1013 %{_libdir}/pkgconfig/libpq.pc
1014 %{_mandir}/man1/pg_config.1*
1015
1016 %files backend-devel
1017 %defattr(644,root,root,755)
1018 %dir %{_includedir}/postgresql/%{pgsqlversion}
1019 %{_includedir}/postgresql/%{pgsqlversion}/server
1020 %dir %{moduledir}/pgxs
1021 %attr(755,root,root) %{moduledir}/pgxs/config
1022 %{moduledir}/pgxs/src
1023 %{pgsqldatadir}/man/man3/SPI_*.3*
1024
1025 %files -n postgresql-static
1026 %defattr(644,root,root,755)
1027 %{_libdir}/libpq.a
1028 %{_libdir}/libpgcommon.a
1029 %{_libdir}/libpgfeutils.a
1030 %{_libdir}/libpgport.a
1031 %{_libdir}/libpgcommon_shlib.a
1032 %{_libdir}/libpgport_shlib.a
1033
1034 %files clients -f clients.lang
1035 %defattr(644,root,root,755)
1036 %attr(755,root,root) %{pgsqllibdir}/bin/clusterdb
1037 %attr(755,root,root) %{pgsqllibdir}/bin/createdb
1038 %attr(755,root,root) %{pgsqllibdir}/bin/createuser
1039 %attr(755,root,root) %{pgsqllibdir}/bin/dropdb
1040 %attr(755,root,root) %{pgsqllibdir}/bin/dropuser
1041 %attr(755,root,root) %{pgsqllibdir}/bin/pg_archivecleanup
1042 %attr(755,root,root) %{pgsqllibdir}/bin/pg_dump
1043 %attr(755,root,root) %{pgsqllibdir}/bin/pg_dumpall
1044 %attr(755,root,root) %{pgsqllibdir}/bin/pg_isready
1045 %attr(755,root,root) %{pgsqllibdir}/bin/pg_restore
1046 %attr(755,root,root) %{pgsqllibdir}/bin/psql
1047 %attr(755,root,root) %{pgsqllibdir}/bin/reindexdb
1048 %attr(755,root,root) %{pgsqllibdir}/bin/vacuumdb
1049
1050 %{pgsqldatadir}/man/man1/clusterdb.1*
1051 %{pgsqldatadir}/man/man1/createdb.1*
1052 %{pgsqldatadir}/man/man1/createuser.1*
1053 %{pgsqldatadir}/man/man1/dropdb.1*
1054 %{pgsqldatadir}/man/man1/dropuser.1*
1055 %{pgsqldatadir}/man/man1/pg_archivecleanup.1*
1056 %{pgsqldatadir}/man/man1/pg_dump.1*
1057 %{pgsqldatadir}/man/man1/pg_dumpall.1*
1058 %{pgsqldatadir}/man/man1/pg_isready.1*
1059 %{pgsqldatadir}/man/man1/pg_restore.1*
1060 %{pgsqldatadir}/man/man1/psql.1*
1061 %{pgsqldatadir}/man/man1/reindexdb.1*
1062 %{pgsqldatadir}/man/man1/vacuumdb.1*
1063 %{pgsqldatadir}/man/man7/*.7*
1064
1065 %if %{with perl}
1066 %files module-plperl -f plperl-%{pgsqlversion}.lang
1067 %defattr(644,root,root,755)
1068 %attr(755,root,root) %{moduledir}/plperl.so
1069 %{extensiondir}/plperl--*.sql
1070 %{extensiondir}/plperl.control
1071 %{extensiondir}/plperlu--*.sql
1072 %{extensiondir}/plperlu.control
1073 %endif
1074
1075 %if %{with python}
1076 %files module-plpython -f plpython-%{pgsqlversion}.lang
1077 %defattr(644,root,root,755)
1078 %attr(755,root,root) %{moduledir}/plpython3.so
1079 %{extensiondir}/plpython*--*.sql
1080 %{extensiondir}/plpython*.control
1081 %endif
1082
1083 %if %{with tcl}
1084 %files module-pltcl -f pltcl-%{pgsqlversion}.lang
1085 %defattr(644,root,root,755)
1086 %attr(755,root,root) %{moduledir}/pltcl.so
1087 %{extensiondir}/pltcl*--*.sql
1088 %{extensiondir}/pltcl*.control
1089 %endif
1090
1091 %files module-dblink
1092 %defattr(644,root,root,755)
1093 %attr(755,root,root) %{moduledir}/dblink.so
1094 %{extensiondir}/dblink--*.sql
1095 %{extensiondir}/dblink.control
1096 %{pgsqldatadir}/man/man3/dblink*.3*
1097
1098 %files module-lo
1099 %defattr(644,root,root,755)
1100 %attr(755,root,root) %{moduledir}/lo.so
1101 %{extensiondir}/lo--*.sql
1102 %{extensiondir}/lo.control
1103
1104 %files module-pg_trgm
1105 %defattr(644,root,root,755)
1106 %attr(755,root,root) %{moduledir}/pg_trgm.so
1107 %{extensiondir}/pg_trgm--*.sql
1108 %{extensiondir}/pg_trgm.control
1109
1110 %files module-pgcrypto
1111 %defattr(644,root,root,755)
1112 %attr(755,root,root) %{moduledir}/pgcrypto.so
1113 %{extensiondir}/pgcrypto--*.sql
1114 %{extensiondir}/pgcrypto.control
1115
1116 %if %{with selinux}
1117 %files module-sepgsql
1118 %defattr(644,root,root,755)
1119 %attr(755,root,root) %{moduledir}/sepgsql.so
1120 %{extensiondir}/sepgsql.sql
1121 %endif
1122
1123 %files module-tablefunc
1124 %defattr(644,root,root,755)
1125 %attr(755,root,root) %{moduledir}/tablefunc.so
1126 %{extensiondir}/*tablefunc--*.sql
1127 %{extensiondir}/*tablefunc.control
1128
1129 %files module-xml2
1130 %defattr(644,root,root,755)
1131 %attr(755,root,root) %{moduledir}/pgxml.so
1132 %{extensiondir}/xml2--*.sql
1133 %{extensiondir}/xml2.control
1134
1135 %files contrib
1136 %defattr(644,root,root,755)
1137 %doc contrib/README contrib/spi/*.example
1138 %attr(755,root,root) %{pgsqllibdir}/bin/oid2name
1139 %attr(755,root,root) %{pgsqllibdir}/bin/vacuumlo
1140 %attr(755,root,root) %{moduledir}/_int.so
1141 %attr(755,root,root) %{moduledir}/adminpack.so
1142 %attr(755,root,root) %{moduledir}/amcheck.so
1143 %attr(755,root,root) %{moduledir}/auth_delay.so
1144 %attr(755,root,root) %{moduledir}/auto_explain.so
1145 %attr(755,root,root) %{moduledir}/autoinc.so
1146 %attr(755,root,root) %{moduledir}/bloom.so
1147 %attr(755,root,root) %{moduledir}/btree_gin.so
1148 %attr(755,root,root) %{moduledir}/btree_gist.so
1149 %attr(755,root,root) %{moduledir}/citext.so
1150 %attr(755,root,root) %{moduledir}/cube.so
1151 %attr(755,root,root) %{moduledir}/earthdistance.so
1152 %attr(755,root,root) %{moduledir}/file_fdw.so
1153 %attr(755,root,root) %{moduledir}/fuzzystrmatch.so
1154 %attr(755,root,root) %{moduledir}/hstore.so
1155 %attr(755,root,root) %{moduledir}/insert_username.so
1156 %attr(755,root,root) %{moduledir}/isn.so
1157 %attr(755,root,root) %{moduledir}/ltree.so
1158 %attr(755,root,root) %{moduledir}/moddatetime.so
1159 %attr(755,root,root) %{moduledir}/old_snapshot.so
1160 %attr(755,root,root) %{moduledir}/pageinspect.so
1161 %attr(755,root,root) %{moduledir}/passwordcheck.so
1162 %attr(755,root,root) %{moduledir}/pg_buffercache.so
1163 %attr(755,root,root) %{moduledir}/pg_freespacemap.so
1164 %attr(755,root,root) %{moduledir}/pg_prewarm.so
1165 %attr(755,root,root) %{moduledir}/pg_stat_statements.so
1166 %attr(755,root,root) %{moduledir}/pg_surgery.so
1167 %attr(755,root,root) %{moduledir}/pg_visibility.so
1168 %attr(755,root,root) %{moduledir}/pgrowlocks.so
1169 %attr(755,root,root) %{moduledir}/pgstattuple.so
1170 %attr(755,root,root) %{moduledir}/postgres_fdw.so
1171 %attr(755,root,root) %{moduledir}/refint.so
1172 %attr(755,root,root) %{moduledir}/seg.so
1173 %attr(755,root,root) %{moduledir}/sslinfo.so
1174 %attr(755,root,root) %{moduledir}/tcn.so
1175 %attr(755,root,root) %{moduledir}/tsm_system_rows.so
1176 %attr(755,root,root) %{moduledir}/tsm_system_time.so
1177 %attr(755,root,root) %{moduledir}/unaccent.so
1178 %attr(755,root,root) %{moduledir}/uuid-ossp.so
1179 %{extensiondir}/adminpack--*.sql
1180 %{extensiondir}/adminpack.control
1181 %{extensiondir}/amcheck--*.sql
1182 %{extensiondir}/amcheck.control
1183 %{extensiondir}/autoinc--*.sql
1184 %{extensiondir}/autoinc.control
1185 %{extensiondir}/bloom--*.sql
1186 %{extensiondir}/bloom.control
1187 %{extensiondir}/btree_gin--*.sql
1188 %{extensiondir}/btree_gin.control
1189 %{extensiondir}/btree_gist--*.sql
1190 %{extensiondir}/btree_gist.control
1191 %{extensiondir}/citext--*.sql
1192 %{extensiondir}/citext.control
1193 %{extensiondir}/cube--*.sql
1194 %{extensiondir}/cube.control
1195 %{extensiondir}/dict_int--*.sql
1196 %{extensiondir}/dict_int.control
1197 %{extensiondir}/dict_xsyn--*.sql
1198 %{extensiondir}/dict_xsyn.control
1199 %{extensiondir}/earthdistance--*.sql
1200 %{extensiondir}/earthdistance.control
1201 %{extensiondir}/file_fdw--*.sql
1202 %{extensiondir}/file_fdw.control
1203 %{extensiondir}/fuzzystrmatch--*.sql
1204 %{extensiondir}/fuzzystrmatch.control
1205 %{extensiondir}/hstore--*.sql
1206 %{extensiondir}/hstore.control
1207 %{extensiondir}/insert_username--*.sql
1208 %{extensiondir}/insert_username.control
1209 %{extensiondir}/intarray--*.sql
1210 %{extensiondir}/intarray.control
1211 %{extensiondir}/intagg--*.sql
1212 %{extensiondir}/intagg.control
1213 %{extensiondir}/isn--*.sql
1214 %{extensiondir}/isn.control
1215 %{extensiondir}/ltree--*.sql
1216 %{extensiondir}/ltree.control
1217 %{extensiondir}/moddatetime--*.sql
1218 %{extensiondir}/moddatetime.control
1219 %{extensiondir}/old_snapshot--*.sql
1220 %{extensiondir}/old_snapshot.control
1221 %{extensiondir}/pageinspect--*.sql
1222 %{extensiondir}/pageinspect.control
1223 %{extensiondir}/pg_buffercache--*.sql
1224 %{extensiondir}/pg_buffercache.control
1225 %{extensiondir}/pg_freespacemap--*.sql
1226 %{extensiondir}/pg_freespacemap.control
1227 %{extensiondir}/pg_prewarm--*.sql
1228 %{extensiondir}/pg_prewarm.control
1229 %{extensiondir}/pg_stat_statements--*.sql
1230 %{extensiondir}/pg_stat_statements.control
1231 %{extensiondir}/pg_surgery--*.sql
1232 %{extensiondir}/pg_surgery.control
1233 %{extensiondir}/pg_visibility--*.sql
1234 %{extensiondir}/pg_visibility.control
1235 %{extensiondir}/pgrowlocks--*.sql
1236 %{extensiondir}/pgrowlocks.control
1237 %{extensiondir}/pgstattuple--*.sql
1238 %{extensiondir}/pgstattuple.control
1239 %{extensiondir}/postgres_fdw--*.sql
1240 %{extensiondir}/postgres_fdw.control
1241 %{extensiondir}/refint--*.sql
1242 %{extensiondir}/refint.control
1243 %{extensiondir}/seg--*.sql
1244 %{extensiondir}/seg.control
1245 %{extensiondir}/sslinfo--*.sql
1246 %{extensiondir}/sslinfo.control
1247 %{extensiondir}/tcn--*.sql
1248 %{extensiondir}/tcn.control
1249 %{extensiondir}/tsm_system_rows--*.sql
1250 %{extensiondir}/tsm_system_rows.control
1251 %{extensiondir}/tsm_system_time--*.sql
1252 %{extensiondir}/tsm_system_time.control
1253 %{extensiondir}/unaccent--*.sql
1254 %{extensiondir}/unaccent.control
1255 %{extensiondir}/uuid-ossp--*.sql
1256 %{extensiondir}/uuid-ossp.control
1257 %if %{with perl}
1258 %attr(755,root,root) %{moduledir}/bool_plperl.so
1259 %attr(755,root,root) %{moduledir}/hstore_plperl.so
1260 %attr(755,root,root) %{moduledir}/jsonb_plperl.so
1261 %{extensiondir}/bool_plperl--*.sql
1262 %{extensiondir}/bool_plperl.control
1263 %{extensiondir}/bool_plperlu--*.sql
1264 %{extensiondir}/bool_plperlu.control
1265 %{extensiondir}/hstore_plperl--*.sql
1266 %{extensiondir}/hstore_plperl.control
1267 %{extensiondir}/hstore_plperlu--*.sql
1268 %{extensiondir}/hstore_plperlu.control
1269 %{extensiondir}/jsonb_plperl--*.sql
1270 %{extensiondir}/jsonb_plperl.control
1271 %{extensiondir}/jsonb_plperlu--*.sql
1272 %{extensiondir}/jsonb_plperlu.control
1273 %endif
1274 %if %{with python}
1275 %attr(755,root,root) %{moduledir}/hstore_plpython3.so
1276 %attr(755,root,root) %{moduledir}/jsonb_plpython3.so
1277 %attr(755,root,root) %{moduledir}/ltree_plpython3.so
1278 %{extensiondir}/hstore_plpythonu--*.sql
1279 %{extensiondir}/hstore_plpythonu.control
1280 %{extensiondir}/hstore_plpython2u--*.sql
1281 %{extensiondir}/hstore_plpython2u.control
1282 %{extensiondir}/hstore_plpython3u--*.sql
1283 %{extensiondir}/hstore_plpython3u.control
1284 %{extensiondir}/jsonb_plpythonu--*.sql
1285 %{extensiondir}/jsonb_plpythonu.control
1286 %{extensiondir}/jsonb_plpython2u--*.sql
1287 %{extensiondir}/jsonb_plpython2u.control
1288 %{extensiondir}/jsonb_plpython3u--*.sql
1289 %{extensiondir}/jsonb_plpython3u.control
1290 %{extensiondir}/ltree_plpythonu--*.sql
1291 %{extensiondir}/ltree_plpythonu.control
1292 %{extensiondir}/ltree_plpython2u--*.sql
1293 %{extensiondir}/ltree_plpython2u.control
1294 %{extensiondir}/ltree_plpython3u--*.sql
1295 %{extensiondir}/ltree_plpython3u.control
1296 %endif
1297 %{pgsqldatadir}/man/man1/oid2name.1*
1298 %{pgsqldatadir}/man/man1/vacuumlo.1*