]> TLD Linux GIT Repositories - packages/postgresql.git/blob - postgresql.spec
- forgot to update version in config patch
[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 13
18 %define pgsqlpriority 130
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}.1
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:  d843a4fcc0ed1493511028aa6c17117a
37 Source1:        postgresql.init
38 Source2:        pgsql-Database-HOWTO-html.tar.gz
39 # Source2-md5:  5b656ddf1db41965761f85204a14398e
40 Source3:        postgresql.sysconfig
41 Source4:        postgresql.logrotate
42 Patch0:         postgresql-conf.patch
43 Patch1:         postgresql-absolute_dbpaths.patch
44 Patch2:         postgresql-ecpg-includedir.patch
45 Patch3:         per-version-dirs.patch
46 Patch4:         postgresql-tests.patch
47 Patch5:         postgresql-heimdal.patch
48 Patch6:         postgresql-link.patch
49 Patch7:         socket-dir-fixes.patch
50 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_verifybackup 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_config pg_controldata pg_resetwal pg_rewind pg_test_fsync pg_test_timing pg_upgrade pg_verifybackup 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_verifybackup
877 %attr(755,root,root) %{pgsqllibdir}/bin/pg_waldump
878 %attr(755,root,root) %{pgsqllibdir}/bin/pgbench
879 %attr(755,root,root) %{pgsqllibdir}/bin/postgres
880 %attr(755,root,root) %{pgsqllibdir}/bin/postmaster
881
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}/*.sql
901 %{pgsqldatadir}/*.txt
902 %{pgsqldatadir}/timezonesets
903 %{pgsqldatadir}/tsearch_data
904
905 %dir %{pgsqldatadir}/contrib
906
907 %{pgsqldatadir}/man/man1/initdb.1*
908 %{pgsqldatadir}/man/man1/pg_basebackup.1*
909 %{pgsqldatadir}/man/man1/pg_checksums.1*
910 %{pgsqldatadir}/man/man1/pg_controldata.1*
911 %{pgsqldatadir}/man/man1/pg_ctl.1*
912 %{pgsqldatadir}/man/man1/pg_resetwal.1*
913 %{pgsqldatadir}/man/man1/pg_receivewal.1*
914 %{pgsqldatadir}/man/man1/pg_recvlogical.1*
915 %{pgsqldatadir}/man/man1/pg_rewind.1*
916 %{pgsqldatadir}/man/man1/pg_verifybackup.1*
917 %{pgsqldatadir}/man/man1/pg_waldump.1*
918 %{pgsqldatadir}/man/man1/pg_test_fsync.1*
919 %{pgsqldatadir}/man/man1/pg_test_timing.1*
920 %{pgsqldatadir}/man/man1/pg_upgrade.1*
921 %{pgsqldatadir}/man/man1/pgbench.1*
922 %{pgsqldatadir}/man/man1/postgres.1*
923 %{pgsqldatadir}/man/man1/postmaster.1*
924
925 %files -n postgresql-common
926 %defattr(644,root,root,755)
927 %dir %{_libdir}/postgresql
928 %dir %{_datadir}/postgresql
929 %attr(700,postgres,postgres) %dir /var/lib/postgresql
930 %attr(750,postgres,postgres) %dir /var/log/postgresql
931 %attr(750,postgres,postgres) %dir /var/log/archive/postgresql
932 %attr(700,postgres,postgres) %dir /var/run/postgresql
933 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/postgresql
934
935 %files dirs
936 %defattr(644,root,root,755)
937 %dir %{pgsqllibdir}
938 %dir %{pgsqllibdir}/bin
939 %dir %{pgsqllibdir}/lib
940 %dir %{pgsqldatadir}
941 %dir %{pgsqldatadir}/man
942 %dir %{pgsqldatadir}/man/man1
943 %dir %{pgsqldatadir}/man/man3
944 %dir %{pgsqldatadir}/man/man7
945 %attr(700,postgres,postgres) %dir /var/lib/postgresql/%{pgsqlversion}
946
947 %files doc
948 %defattr(644,root,root,755)
949 %doc doc/src/sgml/html howto
950 %{_examplesdir}/%{name}-%{version}
951
952 %files -n postgresql-libs -f libpq5-%{pgsqlversion}.lang
953 %defattr(644,root,root,755)
954 %attr(755,root,root) %{_libdir}/libpq.so.*.*
955 %attr(755,root,root) %ghost %{_libdir}/libpq.so.5
956
957 %files ecpg -f ecpg-%{pgsqlversion}.lang
958 %defattr(644,root,root,755)
959 %attr(755,root,root) %{pgsqllibdir}/bin/ecpg
960 %{pgsqldatadir}/man/man1/ecpg.1*
961
962 %files -n postgresql-ecpg-libs -f ecpglib6-%{pgsqlversion}.lang
963 %attr(755,root,root) %{_libdir}/libecpg.so.*.*
964 %attr(755,root,root) %ghost %{_libdir}/libecpg.so.6
965 %attr(755,root,root) %{_libdir}/libecpg_compat.so.*.*
966 %attr(755,root,root) %ghost %{_libdir}/libecpg_compat.so.3
967 %attr(755,root,root) %{_libdir}/libpgtypes.so.*.*
968 %attr(755,root,root) %ghost %{_libdir}/libpgtypes.so.3
969
970 %files -n postgresql-ecpg-devel
971 %defattr(644,root,root,755)
972 %attr(755,root,root) %{_libdir}/libecpg.so
973 %attr(755,root,root) %{_libdir}/libecpg_compat.so
974 %attr(755,root,root) %{_libdir}/libpgtypes.so
975 %{_includedir}/ecpg*
976 %{_libdir}/pkgconfig/libecpg.pc
977 %{_libdir}/pkgconfig/libecpg_compat.pc
978 %{_libdir}/pkgconfig/libpgtypes.pc
979
980 %files -n postgresql-ecpg-static
981 %defattr(644,root,root,755)
982 %{_libdir}/libecpg.a
983 %{_libdir}/libecpg_compat.a
984 %{_libdir}/libpgtypes.a
985
986 %files -n postgresql-devel -f pg_config-%{pgsqlversion}.lang
987 %defattr(644,root,root,755)
988 %attr(755,root,root) %{_bindir}/pg_config
989 %attr(755,root,root) %{_libdir}/libpq.so
990 %dir %{_includedir}/postgresql
991 %{_includedir}/libpq-events.h
992 %{_includedir}/libpq-fe.h
993 %{_includedir}/pg_config.h
994 %{_includedir}/pg_config_ext.h
995 %{_includedir}/pg_config_manual.h
996 %{_includedir}/pg_config_os.h
997 %{_includedir}/postgres_ext.h
998 %dir %{_includedir}/postgresql/internal
999 %{_includedir}/postgresql/internal/c.h
1000 %{_includedir}/postgresql/internal/libpq-int.h
1001 %{_includedir}/postgresql/internal/port.h
1002 %{_includedir}/postgresql/internal/postgres_fe.h
1003 %{_includedir}/postgresql/internal/pqexpbuffer.h
1004 %{_includedir}/postgresql/internal/libpq
1005 %{_includedir}/libpq
1006 %{_libdir}/pkgconfig/libpq.pc
1007 %{_mandir}/man1/pg_config.1*
1008
1009 %files backend-devel
1010 %defattr(644,root,root,755)
1011 %dir %{_includedir}/postgresql/%{pgsqlversion}
1012 %{_includedir}/postgresql/%{pgsqlversion}/server
1013 %dir %{moduledir}/pgxs
1014 %attr(755,root,root) %{moduledir}/pgxs/config
1015 %{moduledir}/pgxs/src
1016 %{pgsqldatadir}/man/man3/SPI_*.3*
1017
1018 %files -n postgresql-static
1019 %defattr(644,root,root,755)
1020 %{_libdir}/libpq.a
1021 %{_libdir}/libpgcommon.a
1022 %{_libdir}/libpgfeutils.a
1023 %{_libdir}/libpgport.a
1024 %{_libdir}/libpgcommon_shlib.a
1025 %{_libdir}/libpgport_shlib.a
1026
1027 %files clients -f clients.lang
1028 %defattr(644,root,root,755)
1029 %attr(755,root,root) %{pgsqllibdir}/bin/clusterdb
1030 %attr(755,root,root) %{pgsqllibdir}/bin/createdb
1031 %attr(755,root,root) %{pgsqllibdir}/bin/createuser
1032 %attr(755,root,root) %{pgsqllibdir}/bin/dropdb
1033 %attr(755,root,root) %{pgsqllibdir}/bin/dropuser
1034 %attr(755,root,root) %{pgsqllibdir}/bin/pg_archivecleanup
1035 %attr(755,root,root) %{pgsqllibdir}/bin/pg_dump
1036 %attr(755,root,root) %{pgsqllibdir}/bin/pg_dumpall
1037 %attr(755,root,root) %{pgsqllibdir}/bin/pg_isready
1038 %attr(755,root,root) %{pgsqllibdir}/bin/pg_restore
1039 %attr(755,root,root) %{pgsqllibdir}/bin/psql
1040 %attr(755,root,root) %{pgsqllibdir}/bin/reindexdb
1041 %attr(755,root,root) %{pgsqllibdir}/bin/vacuumdb
1042
1043 %{pgsqldatadir}/man/man1/clusterdb.1*
1044 %{pgsqldatadir}/man/man1/createdb.1*
1045 %{pgsqldatadir}/man/man1/createuser.1*
1046 %{pgsqldatadir}/man/man1/dropdb.1*
1047 %{pgsqldatadir}/man/man1/dropuser.1*
1048 %{pgsqldatadir}/man/man1/pg_archivecleanup.1*
1049 %{pgsqldatadir}/man/man1/pg_dump.1*
1050 %{pgsqldatadir}/man/man1/pg_dumpall.1*
1051 %{pgsqldatadir}/man/man1/pg_isready.1*
1052 %{pgsqldatadir}/man/man1/pg_restore.1*
1053 %{pgsqldatadir}/man/man1/psql.1*
1054 %{pgsqldatadir}/man/man1/reindexdb.1*
1055 %{pgsqldatadir}/man/man1/vacuumdb.1*
1056 %{pgsqldatadir}/man/man7/*.7*
1057
1058 %if %{with perl}
1059 %files module-plperl -f plperl-%{pgsqlversion}.lang
1060 %defattr(644,root,root,755)
1061 %attr(755,root,root) %{moduledir}/plperl.so
1062 %{extensiondir}/plperl--*.sql
1063 %{extensiondir}/plperl.control
1064 %{extensiondir}/plperlu--*.sql
1065 %{extensiondir}/plperlu.control
1066 %endif
1067
1068 %if %{with python}
1069 %files module-plpython -f plpython-%{pgsqlversion}.lang
1070 %defattr(644,root,root,755)
1071 %attr(755,root,root) %{moduledir}/plpython2.so
1072 %{extensiondir}/plpython*--*.sql
1073 %{extensiondir}/plpython*.control
1074 %endif
1075
1076 %if %{with tcl}
1077 %files module-pltcl -f pltcl-%{pgsqlversion}.lang
1078 %defattr(644,root,root,755)
1079 %attr(755,root,root) %{moduledir}/pltcl.so
1080 %{extensiondir}/pltcl*--*.sql
1081 %{extensiondir}/pltcl*.control
1082 %endif
1083
1084 %files module-dblink
1085 %defattr(644,root,root,755)
1086 %attr(755,root,root) %{moduledir}/dblink.so
1087 %{extensiondir}/dblink--*.sql
1088 %{extensiondir}/dblink.control
1089 %{pgsqldatadir}/man/man3/dblink*.3*
1090
1091 %files module-lo
1092 %defattr(644,root,root,755)
1093 %attr(755,root,root) %{moduledir}/lo.so
1094 %{extensiondir}/lo--*.sql
1095 %{extensiondir}/lo.control
1096
1097 %files module-pg_trgm
1098 %defattr(644,root,root,755)
1099 %attr(755,root,root) %{moduledir}/pg_trgm.so
1100 %{extensiondir}/pg_trgm--*.sql
1101 %{extensiondir}/pg_trgm.control
1102
1103 %files module-pgcrypto
1104 %defattr(644,root,root,755)
1105 %attr(755,root,root) %{moduledir}/pgcrypto.so
1106 %{extensiondir}/pgcrypto--*.sql
1107 %{extensiondir}/pgcrypto.control
1108
1109 %if %{with selinux}
1110 %files module-sepgsql
1111 %defattr(644,root,root,755)
1112 %attr(755,root,root) %{moduledir}/sepgsql.so
1113 %{extensiondir}/sepgsql.sql
1114 %endif
1115
1116 %files module-tablefunc
1117 %defattr(644,root,root,755)
1118 %attr(755,root,root) %{moduledir}/tablefunc.so
1119 %{extensiondir}/*tablefunc--*.sql
1120 %{extensiondir}/*tablefunc.control
1121
1122 %files module-xml2
1123 %defattr(644,root,root,755)
1124 %attr(755,root,root) %{moduledir}/pgxml.so
1125 %{extensiondir}/xml2--*.sql
1126 %{extensiondir}/xml2.control
1127
1128 %files contrib
1129 %defattr(644,root,root,755)
1130 %doc contrib/README
1131 %attr(755,root,root) %{pgsqllibdir}/bin/oid2name
1132 %attr(755,root,root) %{pgsqllibdir}/bin/pg_standby
1133 %attr(755,root,root) %{pgsqllibdir}/bin/vacuumlo
1134 %attr(755,root,root) %{moduledir}/_int.so
1135 %attr(755,root,root) %{moduledir}/adminpack.so
1136 %attr(755,root,root) %{moduledir}/auth_delay.so
1137 %attr(755,root,root) %{moduledir}/auto_explain.so
1138 %attr(755,root,root) %{moduledir}/bloom.so
1139 %attr(755,root,root) %{moduledir}/btree_gin.so
1140 %attr(755,root,root) %{moduledir}/btree_gist.so
1141 %attr(755,root,root) %{moduledir}/citext.so
1142 %attr(755,root,root) %{moduledir}/cube.so
1143 %attr(755,root,root) %{moduledir}/earthdistance.so
1144 %attr(755,root,root) %{moduledir}/file_fdw.so
1145 %attr(755,root,root) %{moduledir}/fuzzystrmatch.so
1146 %attr(755,root,root) %{moduledir}/hstore.so
1147 %attr(755,root,root) %{moduledir}/isn.so
1148 %attr(755,root,root) %{moduledir}/ltree.so
1149 %attr(755,root,root) %{moduledir}/pageinspect.so
1150 %attr(755,root,root) %{moduledir}/passwordcheck.so
1151 %attr(755,root,root) %{moduledir}/pg_buffercache.so
1152 %attr(755,root,root) %{moduledir}/pg_freespacemap.so
1153 %attr(755,root,root) %{moduledir}/pg_prewarm.so
1154 %attr(755,root,root) %{moduledir}/pg_stat_statements.so
1155 %attr(755,root,root) %{moduledir}/pg_visibility.so
1156 %attr(755,root,root) %{moduledir}/pgrowlocks.so
1157 %attr(755,root,root) %{moduledir}/pgstattuple.so
1158 %attr(755,root,root) %{moduledir}/postgres_fdw.so
1159 %attr(755,root,root) %{moduledir}/seg.so
1160 %attr(755,root,root) %{moduledir}/sslinfo.so
1161 %attr(755,root,root) %{moduledir}/tcn.so
1162 %attr(755,root,root) %{moduledir}/tsm_system_rows.so
1163 %attr(755,root,root) %{moduledir}/tsm_system_time.so
1164 %attr(755,root,root) %{moduledir}/unaccent.so
1165 %attr(755,root,root) %{moduledir}/uuid-ossp.so
1166 %{extensiondir}/adminpack--*.sql
1167 %{extensiondir}/adminpack.control
1168 %{extensiondir}/bloom--*.sql
1169 %{extensiondir}/bloom.control
1170 %{extensiondir}/btree_gin--*.sql
1171 %{extensiondir}/btree_gin.control
1172 %{extensiondir}/btree_gist--*.sql
1173 %{extensiondir}/btree_gist.control
1174 %{extensiondir}/citext--*.sql
1175 %{extensiondir}/citext.control
1176 %{extensiondir}/cube--*.sql
1177 %{extensiondir}/cube.control
1178 %{extensiondir}/dict_int--*.sql
1179 %{extensiondir}/dict_int.control
1180 %{extensiondir}/dict_xsyn--*.sql
1181 %{extensiondir}/dict_xsyn.control
1182 %{extensiondir}/earthdistance--*.sql
1183 %{extensiondir}/earthdistance.control
1184 %{extensiondir}/file_fdw--*.sql
1185 %{extensiondir}/file_fdw.control
1186 %{extensiondir}/fuzzystrmatch--*.sql
1187 %{extensiondir}/fuzzystrmatch.control
1188 %{extensiondir}/hstore--*.sql
1189 %{extensiondir}/hstore.control
1190 %{extensiondir}/intarray--*.sql
1191 %{extensiondir}/intarray.control
1192 %{extensiondir}/intagg--*.sql
1193 %{extensiondir}/intagg.control
1194 %{extensiondir}/isn--*.sql
1195 %{extensiondir}/isn.control
1196 %{extensiondir}/ltree--*.sql
1197 %{extensiondir}/ltree.control
1198 %{extensiondir}/pageinspect--*.sql
1199 %{extensiondir}/pageinspect.control
1200 %{extensiondir}/pg_buffercache--*.sql
1201 %{extensiondir}/pg_buffercache.control
1202 %{extensiondir}/pg_freespacemap--*.sql
1203 %{extensiondir}/pg_freespacemap.control
1204 %{extensiondir}/pg_prewarm--*.sql
1205 %{extensiondir}/pg_prewarm.control
1206 %{extensiondir}/pg_stat_statements--*.sql
1207 %{extensiondir}/pg_stat_statements.control
1208 %{extensiondir}/pg_visibility--*.sql
1209 %{extensiondir}/pg_visibility.control
1210 %{extensiondir}/pgrowlocks--*.sql
1211 %{extensiondir}/pgrowlocks.control
1212 %{extensiondir}/pgstattuple--*.sql
1213 %{extensiondir}/pgstattuple.control
1214 %{extensiondir}/postgres_fdw--*.sql
1215 %{extensiondir}/postgres_fdw.control
1216 %{extensiondir}/seg--*.sql
1217 %{extensiondir}/seg.control
1218 %{extensiondir}/sslinfo--*.sql
1219 %{extensiondir}/sslinfo.control
1220 %{extensiondir}/tcn--*.sql
1221 %{extensiondir}/tcn.control
1222 %{extensiondir}/tsm_system_rows--*.sql
1223 %{extensiondir}/tsm_system_rows.control
1224 %{extensiondir}/tsm_system_time--*.sql
1225 %{extensiondir}/tsm_system_time.control
1226 %{extensiondir}/unaccent--*.sql
1227 %{extensiondir}/unaccent.control
1228 %{extensiondir}/uuid-ossp--*.sql
1229 %{extensiondir}/uuid-ossp.control
1230 %if %{with perl}
1231 %attr(755,root,root) %{moduledir}/hstore_plperl.so
1232 %{extensiondir}/hstore_plperl--*.sql
1233 %{extensiondir}/hstore_plperl.control
1234 %{extensiondir}/hstore_plperlu--*.sql
1235 %{extensiondir}/hstore_plperlu.control
1236 %endif
1237 %if %{with python}
1238 %attr(755,root,root) %{moduledir}/hstore_plpython2.so
1239 %attr(755,root,root) %{moduledir}/ltree_plpython2.so
1240 %{extensiondir}/hstore_plpythonu--*.sql
1241 %{extensiondir}/hstore_plpythonu.control
1242 %{extensiondir}/hstore_plpython2u--*.sql
1243 %{extensiondir}/hstore_plpython2u.control
1244 %{extensiondir}/hstore_plpython3u--*.sql
1245 %{extensiondir}/hstore_plpython3u.control
1246 %{extensiondir}/ltree_plpythonu--*.sql
1247 %{extensiondir}/ltree_plpythonu.control
1248 %{extensiondir}/ltree_plpython2u--*.sql
1249 %{extensiondir}/ltree_plpython2u.control
1250 %{extensiondir}/ltree_plpython3u--*.sql
1251 %{extensiondir}/ltree_plpython3u.control
1252 %endif
1253 %{pgsqldatadir}/man/man1/oid2name.1*
1254 %{pgsqldatadir}/man/man1/pg_standby.1*
1255 %{pgsqldatadir}/man/man1/vacuumlo.1*