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