]> TLD Linux GIT Repositories - packages/postgresql.git/blob - postgresql.spec
- updated to 11.0
[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 11
18 %define pgsqlpriority 110
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}.0
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:  338ede84c0443db02ff6e8c4c8cbc5e9
37 Source1:        postgresql.init
38 Source2:        pgsql-Database-HOWTO-html.tar.gz
39 # Source2-md5:  5b656ddf1db41965761f85204a14398e
40 Source3:        postgresql.sysconfig
41 Patch0:         postgresql-conf.patch
42 Patch1:         postgresql-absolute_dbpaths.patch
43 Patch2:         postgresql-ecpg-includedir.patch
44 Patch3:         per-version-dirs.patch
45 Patch4:         postgresql-disable_horology_test.patch
46 Patch5:         postgresql-heimdal.patch
47 Patch6:         postgresql-link.patch
48 Patch7:         socket-dir-fixes.patch
49 URL:            http://www.postgresql.org/
50 BuildRequires:  autoconf >= 2.69
51 BuildRequires:  automake
52 %{?with_bonjour:BuildRequires:  avahi-compat-libdns_sd-devel}
53 # not needed for releases... but fixes something in snapshot
54 BuildRequires:  bison >= 1.875
55 BuildRequires:  docbook-dtd42-sgml
56 BuildRequires:  docbook-dtd42-xml
57 BuildRequires:  docbook-style-xsl
58 BuildRequires:  flex >= 2.5.31
59 BuildRequires:  gettext-tools
60 BuildRequires:  gnome-doc-tools
61 %{?with_kerberos5:BuildRequires:        heimdal-devel}
62 %{?with_selinux:BuildRequires:  libselinux-devel >= 2.1.10}
63 BuildRequires:  libtool
64 BuildRequires:  libxml2-devel >= 1:2.6.23
65 BuildRequires:  libxslt-devel
66 BuildRequires:  libxslt-progs
67 BuildRequires:  ncurses-devel >= 5.0
68 %{?with_ldap:BuildRequires:     openldap-devel}
69 BuildRequires:  openssl-devel >= 0.9.7d
70 BuildRequires:  ossp-uuid-devel
71 BuildRequires:  pam-devel
72 %{?with_perl:BuildRequires:     perl-devel}
73 %if %{with python}
74 BuildRequires:  python >= 1:2.3
75 BuildRequires:  python-devel >= 1:2.3
76 BuildRequires:  python-modules >= 1:2.3
77 %endif
78 BuildRequires:  readline-devel >= 4.2
79 BuildRequires:  rpmbuild(macros) >= 1.671
80 %{?with_systemtap:BuildRequires:        systemtap-sdt-devel}
81 %{?with_tcl:BuildRequires:      tcl-devel >= 8.4.3}
82 %{?with_tests:BuildRequires:    tzdata}
83 BuildRequires:  zlib-devel
84 Requires(post,preun):   /sbin/chkconfig
85 Requires(pre):  /bin/id
86 Requires(pre):  /usr/bin/getgid
87 Requires(triggerpostun):        /bin/id
88 Requires(triggerpostun):        /usr/sbin/usermod
89 Requires:       %{name}-clients = %{version}-%{release}
90 Requires:       %{name}-dirs = %{version}-%{release}
91 Requires:       postgresql-libs >= %{version}-%{release}
92 Requires:       rc-scripts >= 0.4.3.0
93 Requires:       tzdata
94 Obsoletes:      postgresql
95 Obsoletes:      postgresql-module-plpgsql
96 Obsoletes:      postgresql-module-tsearch2
97 Obsoletes:      postgresql-server
98 Obsoletes:      postgresql-test
99 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
100
101 %define         pgsqldatadir    %{_datadir}/postgresql/%{pgsqlversion}
102 %define         pgsqllibdir     %{_libdir}/postgresql/%{pgsqlversion}
103 %define         moduledir       %{pgsqllibdir}/lib
104 %define         extensiondir    %{pgsqldatadir}/extension
105
106 %define         _ulibdir        /usr/lib
107
108 # omitted contribs:
109 # spi, test_decoding, worker_spi - examples/tests
110 # tsearch2 - old module for compatibility only
111 %define contrib_modules adminpack auth_delay auto_explain bloom btree_gin btree_gist citext cube dblink dict_int dict_xsyn earthdistance file_fdw fuzzystrmatch hstore %{?with_perl:hstore_plperl} %{?with_python:hstore_plpython} intagg intarray isn lo ltree %{?with_python:ltree_plpython} oid2name pageinspect passwordcheck pg_buffercache pg_freespacemap pg_prewarm pg_standby pg_stat_statements pg_trgm pg_visibility pgcrypto pgrowlocks pgstattuple postgres_fdw seg %{?with_selinux:sepgsql} sslinfo tablefunc tcn tsm_system_rows tsm_system_time unaccent uuid-ossp vacuumlo xml2
112
113 %description
114 PostgreSQL Data Base Management System (formerly known as Postgres,
115 then as Postgres95).
116
117 PostgreSQL is an enhancement of the POSTGRES database management
118 system, a next-generation DBMS research prototype. While PostgreSQL
119 retains the powerful data model and rich data types of POSTGRES, it
120 replaces the PostQuel query language with an extended subset of SQL.
121 PostgreSQL is free and the complete source is available.
122
123 PostgreSQL development is being performed by a team of Internet
124 developers who all subscribe to the PostgreSQL development mailing
125 list. The current coordinator is Marc G. Fournier
126 (scrappy@postgreSQL.org). This team is now responsible for all current
127 and future development of PostgreSQL.
128
129 The authors of PostgreSQL 1.01 were Andrew Yu and Jolly Chen. Many
130 others have contributed to the porting, testing, debugging and
131 enhancement of the code. The original Postgres code, from which
132 PostgreSQL is derived, was the effort of many graduate students,
133 undergraduate students, and staff programmers working under the
134 direction of Professor Michael Stonebraker at the University of
135 California, Berkeley.
136
137 The original name of the software at Berkeley was Postgres. When SQL
138 functionality was added in 1995, its name was changed to Postgres95.
139 The name was changed at the end of 1996 to PostgreSQL.
140
141 PostgreSQL runs on Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD,
142 and most flavours of Unix.
143
144 %description -l pl.UTF-8
145 System Zarządzania Bazą Danych PostgreSQL (dawniej znany jako
146 Postgres, następnie jako Postgres95).
147
148 PostgreSQL jest rozszerzeniem systemu zarządzania baz danych POSTGRES,
149 prototypu DBMS następnej generacji. Co prawda PostgreSQL odziedziczył
150 model danych oraz bogaty zbiór różnych typów danych, to jednak język
151 zapytań PostQuel został zastąpiony rozszerzonym SQL-em. PostgreSQL
152 jest wolnym oprogramowaniem i kody źródłowe tego oprogramowania są w
153 pełni dostępne.
154
155 System PostgreSQL jest tworzony przez zespół ludzi, którzy są zapisani
156 na listę dyskusyjną dotyczącą PostgreSQL-a. Obecnym koordynatorem jest
157 Marc G. Fournier (scrappy@postgreSQL.org). Wymieniony wyżej zespół
158 jest odpowiedzialny za aktualny i przyszły rozwój systemu PostgreSQL.
159
160 Autorami PostgreSQL-a 1.01 byli Andrew Yu oraz Jolly Chen. Wielu
161 innych pomagało przenosząc na różne platformy, testując, analizując i
162 rozszerzając kod. Oryginalny kod Postgres-a, na podstawie którego
163 PostgreSQL powstał, był wysiłkiem wielu absolwentów, studentów oraz
164 zespołu programistów, którzy pracowali pod kierunkiem profesora
165 Michaela Stonebrakera z Uniwersytetu Kalifornii w Berkeley.
166
167 Nazwa oryginalna oprogramowania tworzonego w Berkeley brzmiała
168 Postgres. W 1995 roku dodano język zapytań SQL i nazwę zmieniono na
169 Postgres95. W końcu roku 1996 nazwę ostatecznie zmieniono na
170 PostgreSQL.
171
172 PostgreSQL może być uruchomiony pod następującymi systemami: Solaris,
173 SunOS, HPUX, AIX, Linux, Irix, FreeBSD i innymi systemami uniksowymi.
174
175 %package -n postgresql-common
176 Summary:        Common PostgreSQL files and directories
177 Summary(pl.UTF-8):      PostgreSQL - wspólne pliki i katalogi
178 Group:          Applicataion/Databases
179 Requires(pre):  /usr/sbin/groupadd
180 Requires(pre):  /usr/sbin/useradd
181
182 %description -n postgresql-common
183 Common PostgreSQL files and directories.
184
185 %description -n postgresql-common -l pl.UTF-8
186 PostgreSQL - wspólne pliki i katalogi.
187
188 %package dirs
189 Summary:        Common directories for PostgresSQL %{pgsqlversion}
190 Summary(pl.UTF-8):      Wspólne pliki i katalogi dla PostgreSQL %{pgsqlversion}
191 Group:          Applicataion/Databases
192 Requires:       postgresql-common >= %{version}-%{release}
193
194 %description dirs
195 Common directories for PostgresSQL %{pgsqlversion}
196
197 %description dirs -l pl.UTF-8
198 Wspólne pliki i katalogi dla PostgreSQL %{pgsqlversion}
199
200 %package -n postgresql-devel
201 Summary:        PostgreSQL development header files and libraries
202 Summary(de.UTF-8):      PostgreSQL-Entwicklungs-Header-Dateien und Libraries
203 Summary(es.UTF-8):      Archivos de inclusión y bibliotecas PostgreSQL
204 Summary(fr.UTF-8):      En-têtes et bibliothèques de développement PostgreSQL
205 Summary(pl.UTF-8):      PostgreSQL - pliki nagłówkowe i biblioteki
206 Summary(pt_BR.UTF-8):   Arquivos de inclusão e bibliotecas para desenvolvimento com o PostgreSQL
207 Summary(ru.UTF-8):      PostgreSQL - хедеры и библиотеки разработчика
208 Summary(tr.UTF-8):      PostgreSQL başlık dosyaları ve kitaplıklar
209 Summary(uk.UTF-8):      PostgreSQL - хедери та бібліотеки програміста
210 Group:          Development/Libraries
211 Requires:       alternatives
212 Requires:       postgresql-libs >= %{version}-%{release}
213
214 %description -n postgresql-devel
215 This package contains header files and libraries required to compile
216 applications that are talking directly to the PostgreSQL backend
217 server.
218
219 %description -n postgresql-devel -l pl.UTF-8
220 Pakiet zawiera nagłówki oraz biblioteki wymagane do kompilacji
221 aplikacji łączących się bezpośrednio z serwerem PostgreSQL.
222
223 %package backend-devel
224 Summary:        PostgreSQL backend development header files
225 Summary(pl.UTF-8):      PostgreSQL - pliki nagłówkowe dla backendu
226 Group:          Development/Libraries
227 Requires:       postgresql-devel >= %{version}-%{release}
228 Requires:       postgresql-libs >= %{version}-%{release}
229 Obsoletes:      postgresql-backend-devel
230
231 %description backend-devel
232 This package contains header files required to compile functions that
233 could be loaded directly by backend
234
235 %description backend-devel -l pl.UTF-8
236 Pakiet zawiera nagłówki wymagane do kompilacji funkcji ktore moga byc
237 bezposrednio ladowane przez beckend serwera PostgreSQL.
238
239 %package clients
240 Summary:        Clients needed to access a PostgreSQL server
241 Summary(es.UTF-8):      Clientes necesarios para acceder al servidor PostgreSQL
242 Summary(pl.UTF-8):      Klienci wymagani do dostępu do serwera PostgreSQL
243 Summary(pt_BR.UTF-8):   Clientes necessários para acessar o servidor PostgreSQL
244 Summary(ru.UTF-8):      Клиентские программы, необходимые для доступа к серверу PostgreSQL
245 Summary(uk.UTF-8):      Клієнтські програми, необхідні для доступу до сервера PostgreSQL
246 Group:          Applications/Databases
247 Requires:       alternatives
248 Requires:       %{name}-dirs = %{version}-%{release}
249 Requires:       postgresql-libs >= %{version}-%{release}
250 Obsoletes:      postgresql-clients
251
252 %description clients
253 This package includes only the clients needed to access an PostgreSQL
254 server. The server is included in the main package. If all you need is
255 to connect to another PostgreSQL server, the this is the only package
256 you need to install. Clients include several command-line utilities
257 you can use to manage your databases on a remote PostgreSQL server.
258
259 %description clients -l pl.UTF-8
260 Pakiet zawiera programy klienckie potrzebne dla dostępu do serwera
261 PostgreSQL oraz narzędzia do zarządzania bazami działające z linii
262 poleceń. Serwer znajduje się w głównym pakiecie.
263
264 %package doc
265 Summary:        Documentation for PostgreSQL
266 Summary(pl.UTF-8):      Dodatkowa dokumantacja dla PostgreSQL
267 Group:          Applications/Databases
268 Obsoletes:      postgresql-doc
269
270 %description doc
271 This package includes documentation and HOWTO for programmer, admin
272 etc., in HTML format.
273
274 %description doc -l pl.UTF-8
275 Pakiet ten zawiera dokumentację oraz HOWTO m.in. dla programistów,
276 administratorów w formacie HTML.
277
278 %package -n postgresql-libs
279 Summary:        PostgreSQL libraries
280 Summary(es.UTF-8):      Biblioteca compartida del PostgreSQL
281 Summary(pl.UTF-8):      Biblioteki dzielone programu PostgreSQL
282 Summary(pt_BR.UTF-8):   Biblioteca compartilhada do PostgreSQL
283 Summary(zh_CN.UTF-8):   PostgreSQL 客户所需要的共享库
284 Group:          Libraries
285 Requires:       postgresql-common >= %{version}-%{release}
286
287 %description -n postgresql-libs
288 PostgreSQL shared libraries.
289
290 %description -n postgresql-libs -l pl.UTF-8
291 Biblioteki dzielone programu PostgreSQL.
292
293 %package ecpg
294 Summary:        Embedded SQL in C interface
295 Summary(pl.UTF-8):      Interfejs wbudowanego SQL-a w język C
296 Group:          Libraries
297 Requires:       %{name}-dirs = %{version}-%{release}
298 Requires:       postgresql-libs >= %{version}-%{release}
299 Requires:       postgresql-ecpg-libs >= %{version}-%{release}
300 Obsoletes:      postgresql-ecpg
301
302 %description ecpg
303 Embedded SQL in C interface.
304
305 %description ecpg -l pl.UTF-8
306 Interfejs wbudowanego SQL-a w język C.
307
308 %package -n postgresql-ecpg-libs
309 Summary:        PostgreSQL libraries
310 Summary(es.UTF-8):      Biblioteca compartida del PostgreSQL
311 Summary(pl.UTF-8):      Biblioteki dzielone programu PostgreSQL
312 Summary(pt_BR.UTF-8):   Biblioteca compartilhada do PostgreSQL
313 Summary(zh_CN.UTF-8):   PostgreSQL 客户所需要的共享库
314 Group:          Libraries
315
316 %description -n postgresql-ecpg-libs
317 PostgreSQL shared libraries.
318
319 %description -n postgresql-ecpg-libs -l pl.UTF-8
320 Biblioteki dzielone programu PostgreSQL.
321
322 %package -n postgresql-ecpg-devel
323 Summary:        Embedded SQL in C interface files
324 Summary(pl.UTF-8):      Pliki programistyczne interfejsu wbudowanego SQL-a w język C
325 Group:          Development/Libraries
326 Requires:       postgresql-devel >= %{version}-%{release}
327 Requires:       postgresql-ecpg-devel >= %{version}-%{release}
328
329 %description -n postgresql-ecpg-devel
330 Embedded SQL in C interface files.
331
332 %description -n postgresql-ecpg-devel -l pl.UTF-8
333 Pliki programistyczne interfejsu wbudowanego SQL-a w język C.
334
335 %package -n postgresql-ecpg-static
336 Summary:        PostgreSQL static libraries
337 Summary(es.UTF-8):      Bibliotecas estaticas PostgreSQL
338 Summary(pl.UTF-8):      Biblioteki statyczne programu PostgreSQL
339 Summary(pt_BR.UTF-8):   Bibliotecas estáticas PostgreSQL
340 Summary(ru.UTF-8):      Статические библиотеки для программирования с PostgreSQL
341 Summary(uk.UTF-8):      Статичні бібліотеки для програмування з PostgreSQL
342 Group:          Development/Libraries
343 Requires:       postgresql-devel >= %{version}-%{release}
344
345 %description -n postgresql-ecpg-static
346 PostgreSQL static libraries.
347
348 %description -n postgresql-ecpg-static -l pl.UTF-8
349 Biblioteki statyczne programu PostgreSQL.
350
351 %package -n postgresql-static
352 Summary:        PostgreSQL static libraries
353 Summary(es.UTF-8):      Bibliotecas estaticas PostgreSQL
354 Summary(pl.UTF-8):      Biblioteki statyczne programu PostgreSQL
355 Summary(pt_BR.UTF-8):   Bibliotecas estáticas PostgreSQL
356 Summary(ru.UTF-8):      Статические библиотеки для программирования с PostgreSQL
357 Summary(uk.UTF-8):      Статичні бібліотеки для програмування з PostgreSQL
358 Group:          Development/Libraries
359 Requires:       postgresql-devel >= %{version}-%{release}
360
361 %description -n postgresql-static
362 PostgreSQL static libraries.
363
364 %description -n postgresql-static -l pl.UTF-8
365 Biblioteki statyczne programu PostgreSQL.
366
367 %package module-plperl
368 Summary:        PL/perl - PostgreSQL procedural language
369 Summary(pl.UTF-8):      PL/perl - język proceduralny bazy danych PostgreSQL
370 Group:          Applications/Databases
371 Requires:       %{name} = %{version}-%{release}
372 Obsoletes:      postgresql-module-plperl
373
374 %description module-plperl
375 From PostgreSQL documentation:
376
377 Postgres supports the definition of procedural languages. In the case
378 of a function or trigger procedure defined in a procedural language,
379 the database has no built-in knowledge about how to interpret the
380 function's source text. Instead, the task is passed to a handler that
381 knows the details of the language. The handler itself is a special
382 programming language function compiled into a shared object and loaded
383 on demand.
384
385 To enable PL/Perl procedural language for your database you have to
386 run createlang command.
387
388 %description module-plperl -l pl.UTF-8
389 Z dokumentacji PostgreSQL:
390
391 Postgres ma wsparcie dla języków proceduralnych. W przypadku, kiedy
392 programista zdefiniuje procedurę wyzwalacza lub funkcję w języku
393 proceduralnym, baza danych nie ma pojęcia jak interpretować tego typu
394 funkcję. Funkcja lub procedura ta jest przekazywana do interpretera,
395 który wie jak ją wykonać. Interpreter jest odpowiednią, specjalną
396 funkcją, która jest skompilowana w obiekt dzielony i ładowany w razie
397 potrzeby.
398
399 Za pomocą polecenia createlang można dodać obsługę języka
400 proceduralnego PL/Perl dla swojej bazy danych.
401
402 %package module-plpython
403 Summary:        PL/Python - PostgreSQL procedural language
404 Summary(pl.UTF-8):      PL/Python - język proceduralny bazy danych PostgreSQL
405 Group:          Applications/Databases
406 Requires:       %{name} = %{version}-%{release}
407 %pyrequires_eq  python
408 Obsoletes:      postgresql-module-plpython
409
410 %description module-plpython
411 From PostgreSQL documentation:
412
413 Postgres supports the definition of procedural languages. In the case
414 of a function or trigger procedure defined in a procedural language,
415 the database has no built-in knowledge about how to interpret the
416 function's source text. Instead, the task is passed to a handler that
417 knows the details of the language. The handler itself is a special
418 programming language function compiled into a shared object and loaded
419 on demand.
420
421 To enable PL/Python procedural language for your database you have to
422 run createlang command.
423
424 %description module-plpython -l pl.UTF-8
425 Z dokumentacji PostgreSQL:
426
427 Postgres ma wsparcie dla języków proceduralnych. W przypadku, kiedy
428 programista zdefiniuje procedurę wyzwalacza lub funkcję w języku
429 proceduralnym, baza danych nie ma pojęcia jak interpretować tego typu
430 funkcję. Funkcja lub procedura ta jest przekazywana do interpretera,
431 który wie jak ją wykonać. Interpreter jest odpowiednią, specjalną
432 funkcją, która jest skompilowana w obiekt dzielony i ładowany w razie
433 potrzeby.
434
435 Za pomocą polecenia createlang można dodać obsługę języka
436 proceduralnego PL/Python dla swojej bazy danych.
437
438 %package module-pltcl
439 Summary:        PL/Tcl - PostgreSQL procedural language
440 Summary(pl.UTF-8):      PL/Tcl - język proceduralny bazy danych PostgreSQL
441 Group:          Applications/Databases
442 Requires:       %{name} = %{version}-%{release}
443 Requires:       tcl(Pgtcl)
444 Obsoletes:      postgresql-module-pltcl
445
446 %description module-pltcl
447 From PostgreSQL documentation:
448
449 Postgres supports the definition of procedural languages. In the case
450 of a function or trigger procedure defined in a procedural language,
451 the database has no built-in knowledge about how to interpret the
452 function's source text. Instead, the task is passed to a handler that
453 knows the details of the language. The handler itself is a special
454 programming language function compiled into a shared object and loaded
455 on demand.
456
457 To enable PL/Tcl procedural language for your database you have to run
458 createlang command.
459
460 %description module-pltcl -l pl.UTF-8
461 Z dokumentacji PostgreSQL:
462
463 Postgres ma wsparcie dla języków proceduralnych. W przypadku, kiedy
464 programista zdefiniuje procedurę wyzwalacza lub funkcję w języku
465 proceduralnym, baza danych nie ma pojęcia jak interpretować tego typu
466 funkcję. Funkcja lub procedura ta jest przekazywana do interpretera,
467 który wie jak ją wykonać. Interpreter jest odpowiednią, specjalną
468 funkcją, która jest skompilowana w obiekt dzielony i ładowany w razie
469 potrzeby.
470
471 Za pomocą polecenia createlang można dodać obsługę języka
472 proceduralnego PL/Tcl dla swojej bazy danych.
473
474 %package module-dblink
475 Summary:        dblink module for PostgreSQL
476 Summary(pl.UTF-8):      Moduł dblink dla PostgreSQL-a
477 Group:          Applications/Databases
478 Requires:       %{name} = %{version}-%{release}
479 Obsoletes:      postgresql-module-dblink
480
481 %description module-dblink
482 dblink module for PostgreSQL provides functions returning results from
483 remote database.
484
485 %description module-dblink -l pl.UTF-8
486 Moduł dblink dla PostgreSQL-a udostępnia funkcje zwracające wyniki ze
487 zdalnej bazy danych.
488
489 %package module-lo
490 Summary:        Large Objects module for PostgreSQL
491 Summary(pl.UTF-8):      Moduł Large Objects dla PostgreSQL-a
492 Group:          Applications/Databases
493 Requires:       %{name} = %{version}-%{release}
494 Obsoletes:      postgresql-module-lo
495
496 %description module-lo
497 Large Objects module for PostgreSQL adds a new data type 'lo', some
498 support functions and a trigger which handles the orphaning problem.
499
500 %description module-lo -l pl.UTF-8
501 Moduł Large Objects dla PostgreSQL-a dodaje nowy typ danych 'lo',
502 kilka funkcji pomocniczych i wyzwalacz rozwiązujący problem
503 osieroconych obiektów.
504
505 %package module-pg_trgm
506 Summary:        Trigram matching for PostgreSQL
507 Summary(pl.UTF-8):      Dopasowanie trigramowe dla PostgreSQL-a
508 Group:          Applications/Databases
509 Requires:       %{name} = %{version}-%{release}
510 Obsoletes:      postgresql-module-pg_trgm
511
512 %description module-pg_trgm
513 This module provides functions and index classes for determining the
514 similarity of text based on trigram matching.
515
516 %description module-pg_trgm -l pl.UTF-8
517 Ten moduł dostarcza funkcje i klasy do rozpoznawania podobnych tekstów
518 w oparciu o dopasowywanie trigramowe (trigram matching).
519
520 %package module-pgcrypto
521 Summary:        Cryptographic functions for PostgreSQL
522 Summary(pl.UTF-8):      Funkcje kryptograficzne dla PostgreSQL-a
523 Group:          Applications/Databases
524 Requires:       %{name} = %{version}-%{release}
525 Obsoletes:      postgresql-module-pgcrypto
526
527 %description module-pgcrypto
528 Cryptographic functions for PostgreSQL.
529
530 %description module-pgcrypto -l pl.UTF-8
531 Funkcje kryptograficzne dla PostgreSQL.
532
533 %package module-sepgsql
534 Summary:        PostgreSQL external security provider using SELinux
535 Summary(pl.UTF-8):      Zewnętrzny moduł bezpieczeństwa PostgreSQL-a wykorzystujący SELinuksa
536 Group:          Applications/Databases
537 Requires:       %{name} = %{version}-%{release}
538 Requires:       libselinux >= 2.1.10
539 Obsoletes:      postgresql-module-sepgsql
540
541 %description module-sepgsql
542 PostgreSQL external security provider using SELinux.
543
544 %description module-sepgsql -l pl.UTF-8
545 Zewnętrzny moduł bezpieczeństwa PostgreSQL-a wykorzystujący SELinuksa.
546
547 %package module-tablefunc
548 Summary:        crosstab functions for PostgreSQL
549 Summary(pl.UTF-8):      Funkcje crosstab dla PostgreSQL-a
550 Group:          Applications/Databases
551 Requires:       %{name} = %{version}-%{release}
552 Obsoletes:      postgresql-module-tablefunc
553
554 %description module-tablefunc
555 crosstab functions for PostgreSQL.
556
557 %description module-tablefunc -l pl.UTF-8
558 Funkcje crosstab dla PostgreSQL-a.
559
560 %package module-xml2
561 Summary:        XML-handling functions for PostgreSQL
562 Summary(pl.UTF-8):      Funkcje do obsługi XML-a dla PostgreSQL-a
563 Group:          Applications/Databases
564 Requires:       %{name} = %{version}-%{release}
565 Requires:       libxml2 >= 1:2.6.23
566 Obsoletes:      postgresql-module-xml2
567
568 %description module-xml2
569 Module with XML functions provides both XPath querying and XSLT
570 functionality. There is also a new table function which allows the
571 straightforward return of multiple XML results.
572
573 %description module-xml2 -l pl.UTF-8
574 Moduł z funkcjami XML zapewniającymi obsługę zapytań XPath oraz
575 funkcjonalność XSLT. Jest także nowa funkcja tabelowa pozwalająca na
576 bezpośrednie zwracanie wielu wyników XML.
577
578 %package contrib
579 Summary:        Miscellaneous PostgreSQL contrib modules
580 Summary(pl.UTF-8):      Różne moduły dołączone do PostgreSQL-a
581 Group:          Applications/Databases
582 Requires:       %{name} = %{version}-%{release}
583 Obsoletes:      postgresql-contrib
584
585 %description contrib
586 Miscellaneous PostgreSQL contrib modules.
587
588 %description contrib -l pl.UTF-8
589 Różne moduły dołączone do PostgreSQL-a.
590
591 %prep
592 %setup -q -n postgresql-%{version}
593 %patch0 -p1
594 %{?with_absolute_dbpaths:%patch1 -p1}
595 %patch2 -p1
596 %patch3 -p1
597 %patch4 -p1
598 %patch5 -p1
599 %patch6 -p1
600 %patch7 -p1
601
602 # force rebuild of bison/flex files
603 find src -name \*.l -o -name \*.y | xargs touch
604
605 # Erase all CVS dirs
606 #find contrib -type d -name CVS -exec rm -rf {} \;
607
608 %build
609 %{__aclocal} -I config
610 %{__autoconf}
611 %{__autoheader}
612 %configure \
613         CFLAGS="%{rpmcflags} -DNEED_REENTRANT_FUNCS `uuid-config --cflags`" \
614         --prefix=%{pgsqldatadir} \
615         --bindir=%{pgsqllibdir}/bin \
616         --sbindir=%{pgsqllibdir}/sbin \
617         --includedir=%{_includedir} \
618         --mandir=%{pgsqldatadir}/man \
619         --datadir=%{pgsqldatadir} \
620         --libdir=%{_libdir} \
621         --docdir=%{pgsqldatadir}/doc \
622         --localedir=%{_datadir}/locale \
623         --disable-rpath \
624         --enable-depend \
625         %{?with_systemtap:--enable-dtrace} \
626         --enable-integer-datetimes \
627         --enable-nls \
628         --enable-thread-safety \
629         %{?with_bonjour:--with-bonjour} \
630         %{?with_kerberos5:--with-gssapi} \
631         %{?with_ldap:--with-ldap} \
632         --with-libxml \
633         --with-libxslt \
634         --with-openssl \
635         --with-pam \
636         %{?with_perl:--with-perl} \
637         %{?with_python:--with-python} \
638         %{?with_selinux:--with-selinux} \
639         --with-system-tzdata=%{_datadir}/zoneinfo \
640         --without-systemd \
641         %{?with_tcl:--with-tcl --with-tclconfig=%{_ulibdir}} \
642         --with-uuid=e2fs
643
644 %{__make}
645
646 for mod in %{contrib_modules}; do \
647         flags="%{rpmcflags} %{rpmcppflags} -DNEED_REENTRANT_FUNCS"
648         if [ $mod = "xml2"      ]; then flags="$flags -I/usr/include/libxml2"; fi
649         if [ $mod = "uuid-ossp" ]; then flags="$flags `uuid-config --cflags`"; fi
650         %{__make} -C contrib/$mod CFLAGS="$flags"
651 done
652
653 %{__make} -C src/tutorial \
654         NO_PGXS=1
655
656 %ifnarch sparc sparcv9 sparc64 alpha
657 %{?with_tests:%{__make} -j1 check}
658 %endif
659
660 %install
661 rm -rf $RPM_BUILD_ROOT
662 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{rc.d/init.d,sysconfig}} \
663         $RPM_BUILD_ROOT/var/{lib/postgresql/%{pgsqlversion},log,run/postgresql} \
664         $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} \
665         $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
666
667 install src/tutorial/*.sql $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
668
669 %{__make} install \
670         DESTDIR=$RPM_BUILD_ROOT
671 %{__make} -C doc/src/sgml install-man \
672         DESTDIR=$RPM_BUILD_ROOT
673
674 %if %{with perl}
675 %{__make} install -C src/pl/plperl \
676         DESTDIR=$RPM_BUILD_ROOT
677 %endif
678
679 for mod in %{contrib_modules}; do \
680         %{__make} -C contrib/$mod install \
681                 DESTDIR=$RPM_BUILD_ROOT
682 done
683
684 touch $RPM_BUILD_ROOT/var/log/pgsql
685
686 sed -e 's,@pgsqlbindir@,%{pgsqllibdir}/bin,g; s,@pgsqlversion@,%{pgsqlversion},g;' %{SOURCE1} >$RPM_BUILD_ROOT/etc/rc.d/init.d/postgresql-%{pgsqlversion}
687 sed -e 's,@pgsqlversion@,%{pgsqlversion},g;' %{SOURCE3} >$RPM_BUILD_ROOT/etc/sysconfig/postgresql-%{pgsqlversion}
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_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_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/{bug.template,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_controldata
867 %attr(755,root,root) %{pgsqllibdir}/bin/pg_ctl
868 %attr(755,root,root) %{pgsqllibdir}/bin/pg_resetwal
869 %attr(755,root,root) %{pgsqllibdir}/bin/pg_receivewal
870 %attr(755,root,root) %{pgsqllibdir}/bin/pg_recvlogical
871 %attr(755,root,root) %{pgsqllibdir}/bin/pg_rewind
872 %attr(755,root,root) %{pgsqllibdir}/bin/pg_test_fsync
873 %attr(755,root,root) %{pgsqllibdir}/bin/pg_test_timing
874 %attr(755,root,root) %{pgsqllibdir}/bin/pg_upgrade
875 %attr(755,root,root) %{pgsqllibdir}/bin/pg_verify_checksums
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 %attr(640,postgres,postgres) %config(noreplace) %verify(not md5 mtime size) /var/log/pgsql
910
911 %{pgsqldatadir}/man/man1/initdb.1*
912 %{pgsqldatadir}/man/man1/pg_basebackup.1*
913 %{pgsqldatadir}/man/man1/pg_controldata.1*
914 %{pgsqldatadir}/man/man1/pg_ctl.1*
915 %{pgsqldatadir}/man/man1/pg_resetwal.1*
916 %{pgsqldatadir}/man/man1/pg_receivewal.1*
917 %{pgsqldatadir}/man/man1/pg_recvlogical.1*
918 %{pgsqldatadir}/man/man1/pg_rewind.1*
919 %{pgsqldatadir}/man/man1/pg_waldump.1*
920 %{pgsqldatadir}/man/man1/pg_test_fsync.1*
921 %{pgsqldatadir}/man/man1/pg_test_timing.1*
922 %{pgsqldatadir}/man/man1/pg_upgrade.1*
923 %{pgsqldatadir}/man/man1/pg_verify_checksums.1*
924 %{pgsqldatadir}/man/man1/pgbench.1*
925 %{pgsqldatadir}/man/man1/postgres.1*
926 %{pgsqldatadir}/man/man1/postmaster.1*
927
928 %files -n postgresql-common
929 %defattr(644,root,root,755)
930 %dir %{_libdir}/postgresql
931 %dir %{_datadir}/postgresql
932 %attr(700,postgres,postgres) %dir /var/lib/postgresql
933 %attr(700,postgres,postgres) %dir /var/run/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
1025 %files clients -f clients.lang
1026 %defattr(644,root,root,755)
1027 %attr(755,root,root) %{pgsqllibdir}/bin/clusterdb
1028 %attr(755,root,root) %{pgsqllibdir}/bin/createdb
1029 %attr(755,root,root) %{pgsqllibdir}/bin/createuser
1030 %attr(755,root,root) %{pgsqllibdir}/bin/dropdb
1031 %attr(755,root,root) %{pgsqllibdir}/bin/dropuser
1032 %attr(755,root,root) %{pgsqllibdir}/bin/pg_archivecleanup
1033 %attr(755,root,root) %{pgsqllibdir}/bin/pg_dump
1034 %attr(755,root,root) %{pgsqllibdir}/bin/pg_dumpall
1035 %attr(755,root,root) %{pgsqllibdir}/bin/pg_isready
1036 %attr(755,root,root) %{pgsqllibdir}/bin/pg_restore
1037 %attr(755,root,root) %{pgsqllibdir}/bin/psql
1038 %attr(755,root,root) %{pgsqllibdir}/bin/reindexdb
1039 %attr(755,root,root) %{pgsqllibdir}/bin/vacuumdb
1040
1041 %{pgsqldatadir}/man/man1/clusterdb.1*
1042 %{pgsqldatadir}/man/man1/createdb.1*
1043 %{pgsqldatadir}/man/man1/createuser.1*
1044 %{pgsqldatadir}/man/man1/dropdb.1*
1045 %{pgsqldatadir}/man/man1/dropuser.1*
1046 %{pgsqldatadir}/man/man1/pg_archivecleanup.1*
1047 %{pgsqldatadir}/man/man1/pg_dump.1*
1048 %{pgsqldatadir}/man/man1/pg_dumpall.1*
1049 %{pgsqldatadir}/man/man1/pg_isready.1*
1050 %{pgsqldatadir}/man/man1/pg_restore.1*
1051 %{pgsqldatadir}/man/man1/psql.1*
1052 %{pgsqldatadir}/man/man1/reindexdb.1*
1053 %{pgsqldatadir}/man/man1/vacuumdb.1*
1054 %{pgsqldatadir}/man/man7/*.7*
1055
1056 %if %{with perl}
1057 %files module-plperl -f plperl-%{pgsqlversion}.lang
1058 %defattr(644,root,root,755)
1059 %attr(755,root,root) %{moduledir}/plperl.so
1060 %{extensiondir}/plperl--*.sql
1061 %{extensiondir}/plperl.control
1062 %{extensiondir}/plperlu--*.sql
1063 %{extensiondir}/plperlu.control
1064 %endif
1065
1066 %if %{with python}
1067 %files module-plpython -f plpython-%{pgsqlversion}.lang
1068 %defattr(644,root,root,755)
1069 %attr(755,root,root) %{moduledir}/plpython2.so
1070 %{extensiondir}/plpython*--*.sql
1071 %{extensiondir}/plpython*.control
1072 %endif
1073
1074 %if %{with tcl}
1075 %files module-pltcl -f pltcl-%{pgsqlversion}.lang
1076 %defattr(644,root,root,755)
1077 %attr(755,root,root) %{moduledir}/pltcl.so
1078 %{extensiondir}/pltcl*--*.sql
1079 %{extensiondir}/pltcl*.control
1080 %endif
1081
1082 %files module-dblink
1083 %defattr(644,root,root,755)
1084 %attr(755,root,root) %{moduledir}/dblink.so
1085 %{extensiondir}/dblink--*.sql
1086 %{extensiondir}/dblink.control
1087 %{pgsqldatadir}/man/man3/dblink*.3*
1088
1089 %files module-lo
1090 %defattr(644,root,root,755)
1091 %attr(755,root,root) %{moduledir}/lo.so
1092 %{extensiondir}/lo--*.sql
1093 %{extensiondir}/lo.control
1094
1095 %files module-pg_trgm
1096 %defattr(644,root,root,755)
1097 %attr(755,root,root) %{moduledir}/pg_trgm.so
1098 %{extensiondir}/pg_trgm--*.sql
1099 %{extensiondir}/pg_trgm.control
1100
1101 %files module-pgcrypto
1102 %defattr(644,root,root,755)
1103 %attr(755,root,root) %{moduledir}/pgcrypto.so
1104 %{extensiondir}/pgcrypto--*.sql
1105 %{extensiondir}/pgcrypto.control
1106
1107 %if %{with selinux}
1108 %files module-sepgsql
1109 %defattr(644,root,root,755)
1110 %attr(755,root,root) %{moduledir}/sepgsql.so
1111 %{extensiondir}/sepgsql.sql
1112 %endif
1113
1114 %files module-tablefunc
1115 %defattr(644,root,root,755)
1116 %attr(755,root,root) %{moduledir}/tablefunc.so
1117 %{extensiondir}/*tablefunc--*.sql
1118 %{extensiondir}/*tablefunc.control
1119
1120 %files module-xml2
1121 %defattr(644,root,root,755)
1122 %attr(755,root,root) %{moduledir}/pgxml.so
1123 %{extensiondir}/xml2--*.sql
1124 %{extensiondir}/xml2.control
1125
1126 %files contrib
1127 %defattr(644,root,root,755)
1128 %doc contrib/README
1129 %attr(755,root,root) %{pgsqllibdir}/bin/oid2name
1130 %attr(755,root,root) %{pgsqllibdir}/bin/pg_standby
1131 %attr(755,root,root) %{pgsqllibdir}/bin/vacuumlo
1132 %attr(755,root,root) %{moduledir}/_int.so
1133 %attr(755,root,root) %{moduledir}/adminpack.so
1134 %attr(755,root,root) %{moduledir}/auth_delay.so
1135 %attr(755,root,root) %{moduledir}/auto_explain.so
1136 %attr(755,root,root) %{moduledir}/bloom.so
1137 %attr(755,root,root) %{moduledir}/btree_gin.so
1138 %attr(755,root,root) %{moduledir}/btree_gist.so
1139 %attr(755,root,root) %{moduledir}/citext.so
1140 %attr(755,root,root) %{moduledir}/cube.so
1141 %attr(755,root,root) %{moduledir}/earthdistance.so
1142 %attr(755,root,root) %{moduledir}/file_fdw.so
1143 %attr(755,root,root) %{moduledir}/fuzzystrmatch.so
1144 %attr(755,root,root) %{moduledir}/hstore.so
1145 %attr(755,root,root) %{moduledir}/isn.so
1146 %attr(755,root,root) %{moduledir}/ltree.so
1147 %attr(755,root,root) %{moduledir}/pageinspect.so
1148 %attr(755,root,root) %{moduledir}/passwordcheck.so
1149 %attr(755,root,root) %{moduledir}/pg_buffercache.so
1150 %attr(755,root,root) %{moduledir}/pg_freespacemap.so
1151 %attr(755,root,root) %{moduledir}/pg_prewarm.so
1152 %attr(755,root,root) %{moduledir}/pg_stat_statements.so
1153 %attr(755,root,root) %{moduledir}/pg_visibility.so
1154 %attr(755,root,root) %{moduledir}/pgrowlocks.so
1155 %attr(755,root,root) %{moduledir}/pgstattuple.so
1156 %attr(755,root,root) %{moduledir}/postgres_fdw.so
1157 %attr(755,root,root) %{moduledir}/seg.so
1158 %attr(755,root,root) %{moduledir}/sslinfo.so
1159 %attr(755,root,root) %{moduledir}/tcn.so
1160 %attr(755,root,root) %{moduledir}/tsm_system_rows.so
1161 %attr(755,root,root) %{moduledir}/tsm_system_time.so
1162 %attr(755,root,root) %{moduledir}/unaccent.so
1163 %attr(755,root,root) %{moduledir}/uuid-ossp.so
1164 %{extensiondir}/adminpack--*.sql
1165 %{extensiondir}/adminpack.control
1166 %{extensiondir}/bloom--*.sql
1167 %{extensiondir}/bloom.control
1168 %{extensiondir}/btree_gin--*.sql
1169 %{extensiondir}/btree_gin.control
1170 %{extensiondir}/btree_gist--*.sql
1171 %{extensiondir}/btree_gist.control
1172 %{extensiondir}/citext--*.sql
1173 %{extensiondir}/citext.control
1174 %{extensiondir}/cube--*.sql
1175 %{extensiondir}/cube.control
1176 %{extensiondir}/dict_int--*.sql
1177 %{extensiondir}/dict_int.control
1178 %{extensiondir}/dict_xsyn--*.sql
1179 %{extensiondir}/dict_xsyn.control
1180 %{extensiondir}/earthdistance--*.sql
1181 %{extensiondir}/earthdistance.control
1182 %{extensiondir}/file_fdw--*.sql
1183 %{extensiondir}/file_fdw.control
1184 %{extensiondir}/fuzzystrmatch--*.sql
1185 %{extensiondir}/fuzzystrmatch.control
1186 %{extensiondir}/hstore--*.sql
1187 %{extensiondir}/hstore.control
1188 %{extensiondir}/intarray--*.sql
1189 %{extensiondir}/intarray.control
1190 %{extensiondir}/intagg--*.sql
1191 %{extensiondir}/intagg.control
1192 %{extensiondir}/isn--*.sql
1193 %{extensiondir}/isn.control
1194 %{extensiondir}/ltree--*.sql
1195 %{extensiondir}/ltree.control
1196 %{extensiondir}/pageinspect--*.sql
1197 %{extensiondir}/pageinspect.control
1198 %{extensiondir}/pg_buffercache--*.sql
1199 %{extensiondir}/pg_buffercache.control
1200 %{extensiondir}/pg_freespacemap--*.sql
1201 %{extensiondir}/pg_freespacemap.control
1202 %{extensiondir}/pg_prewarm--*.sql
1203 %{extensiondir}/pg_prewarm.control
1204 %{extensiondir}/pg_stat_statements--*.sql
1205 %{extensiondir}/pg_stat_statements.control
1206 %{extensiondir}/pg_visibility--*.sql
1207 %{extensiondir}/pg_visibility.control
1208 %{extensiondir}/pgrowlocks--*.sql
1209 %{extensiondir}/pgrowlocks.control
1210 %{extensiondir}/pgstattuple--*.sql
1211 %{extensiondir}/pgstattuple.control
1212 %{extensiondir}/postgres_fdw--*.sql
1213 %{extensiondir}/postgres_fdw.control
1214 %{extensiondir}/seg--*.sql
1215 %{extensiondir}/seg.control
1216 %{extensiondir}/sslinfo--*.sql
1217 %{extensiondir}/sslinfo.control
1218 %{extensiondir}/tcn--*.sql
1219 %{extensiondir}/tcn.control
1220 %{extensiondir}/tsm_system_rows--*.sql
1221 %{extensiondir}/tsm_system_rows.control
1222 %{extensiondir}/tsm_system_time--*.sql
1223 %{extensiondir}/tsm_system_time.control
1224 %{extensiondir}/unaccent--*.sql
1225 %{extensiondir}/unaccent.control
1226 %{extensiondir}/uuid-ossp--*.sql
1227 %{extensiondir}/uuid-ossp.control
1228 %if %{with perl}
1229 %attr(755,root,root) %{moduledir}/hstore_plperl.so
1230 %{extensiondir}/hstore_plperl--*.sql
1231 %{extensiondir}/hstore_plperl.control
1232 %{extensiondir}/hstore_plperlu--*.sql
1233 %{extensiondir}/hstore_plperlu.control
1234 %endif
1235 %if %{with python}
1236 %attr(755,root,root) %{moduledir}/hstore_plpython2.so
1237 %attr(755,root,root) %{moduledir}/ltree_plpython2.so
1238 %{extensiondir}/hstore_plpythonu--*.sql
1239 %{extensiondir}/hstore_plpythonu.control
1240 %{extensiondir}/hstore_plpython2u--*.sql
1241 %{extensiondir}/hstore_plpython2u.control
1242 %{extensiondir}/hstore_plpython3u--*.sql
1243 %{extensiondir}/hstore_plpython3u.control
1244 %{extensiondir}/ltree_plpythonu--*.sql
1245 %{extensiondir}/ltree_plpythonu.control
1246 %{extensiondir}/ltree_plpython2u--*.sql
1247 %{extensiondir}/ltree_plpython2u.control
1248 %{extensiondir}/ltree_plpython3u--*.sql
1249 %{extensiondir}/ltree_plpython3u.control
1250 %endif
1251 %{pgsqldatadir}/man/man1/oid2name.1*
1252 %{pgsqldatadir}/man/man1/pg_standby.1*
1253 %{pgsqldatadir}/man/man1/vacuumlo.1*