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