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