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