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