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