]> TLD Linux GIT Repositories - packages/postgresql.git/blob - postgresql.spec
2293b1b1b87972833e3cc88f867a69e9b5d8d433
[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 pgversion 10
18 %define pgsuffix 10
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-%{pgversion}
31 Version:        %{pgversion}.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/%{pgversion}
102 %define         pgsqllibdir     %{_libdir}/postgresql/%{pgversion}
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 %{pgversion}
190 Summary(pl.UTF-8):      Wspólne pliki i katalogi dla PostgreSQL %{pgversion}
191 Group:          Applicataion/Databases
192
193 %description dirs
194 Common directories for PostgresSQL %{pgversion}
195
196 %description dirs -l pl.UTF-8
197 Wspólne pliki i katalogi dla PostgreSQL %{pgversion}
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         --disable-rpath \
622         --enable-depend \
623         %{?with_systemtap:--enable-dtrace} \
624         --enable-integer-datetimes \
625         --enable-nls \
626         --enable-thread-safety \
627         %{?with_bonjour:--with-bonjour} \
628         %{?with_kerberos5:--with-gssapi} \
629         %{?with_ldap:--with-ldap} \
630         --with-libxml \
631         --with-libxslt \
632         --with-openssl \
633         --with-pam \
634         %{?with_perl:--with-perl} \
635         %{?with_python:--with-python} \
636         %{?with_selinux:--with-selinux} \
637         --with-system-tzdata=%{_datadir}/zoneinfo \
638         --without-systemd \
639         %{?with_tcl:--with-tcl --with-tclconfig=%{_ulibdir}} \
640         --with-uuid=e2fs
641
642 %{__make}
643
644 for mod in %{contrib_modules}; do \
645         flags="%{rpmcflags} %{rpmcppflags} -DNEED_REENTRANT_FUNCS"
646         if [ $mod = "xml2"      ]; then flags="$flags -I/usr/include/libxml2"; fi
647         if [ $mod = "uuid-ossp" ]; then flags="$flags `uuid-config --cflags`"; fi
648         %{__make} -C contrib/$mod CFLAGS="$flags"
649 done
650
651 %{__make} -C src/tutorial \
652         NO_PGXS=1
653
654 %ifnarch sparc sparcv9 sparc64 alpha
655 %{?with_tests:%{__make} -j1 check}
656 %endif
657
658 %install
659 rm -rf $RPM_BUILD_ROOT
660 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{rc.d/init.d,sysconfig}} \
661         $RPM_BUILD_ROOT/var/{lib/pgsql,log,run/postgresql} \
662         $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} \
663         $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
664
665 install src/tutorial/*.sql $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
666
667 %{__make} install \
668         DESTDIR=$RPM_BUILD_ROOT
669 %{__make} -C doc/src/sgml install-man \
670         DESTDIR=$RPM_BUILD_ROOT
671
672 %if %{with perl}
673 %{__make} install -C src/pl/plperl \
674         DESTDIR=$RPM_BUILD_ROOT
675 %endif
676
677 for mod in %{contrib_modules}; do \
678         %{__make} -C contrib/$mod install \
679                 DESTDIR=$RPM_BUILD_ROOT
680 done
681
682 touch $RPM_BUILD_ROOT/var/log/pgsql
683
684 sed -e 's,@pgsqlbindir@,%{pgsqllibdir}/bin,g; s,@pgsqlversion@,%{pgversion},g;' %{SOURCE1} >$RPM_BUILD_ROOT/etc/rc.d/init.d/postgresql-%{pgversion}
685 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/postgresql-%{pgversion}
686
687 install -d howto
688 tar zxf %{SOURCE2} -C howto
689
690 %if %{with python}
691 %py_comp $RPM_BUILD_ROOT%{py_libdir}
692 %py_ocomp $RPM_BUILD_ROOT%{py_libdir}
693 %endif
694
695 # find locales
696 for f in libpq5 pgscripts postgres psql initdb ecpg ecpglib6 \
697         plpgsql %{?with_perl:plperl} %{?with_python:plpython} \
698         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
699         %find_lang $f-%{pgversion}
700 done
701 # merge locales
702 merge_lang() {
703         cat $(for f in $@; do echo ${f}-%{pgversion}.lang ; done)
704 }
705 merge_lang pgscripts postgres plpgsql \
706         pg_basebackup pg_controldata pg_resetwal pg_rewind pg_upgrade pg_test_fsync pg_test_timing pg_waldump > main.lang
707 merge_lang psql initdb \
708         pg_archivecleanup pg_ctl pg_dump > clients.lang
709
710 %if %{with tcl}
711 %find_lang pltcl-%{pgversion}
712 %endif
713
714 %if %{with selinux}
715 %{__mv} $RPM_BUILD_ROOT{%{pgsqldatadir}/contrib,%{extensiondir}}/sepgsql.sql
716 %endif
717
718 cp -p src/pl/plperl/ppport.h $RPM_BUILD_ROOT%{_includedir}/postgresql/%{pgversion}/server/
719
720 %{__mv} $RPM_BUILD_ROOT{%{pgsqllibdir}/bin,%{_bindir}}/pg_config
721 %{__mv} $RPM_BUILD_ROOT{%{pgsqldatadir}/man,%{_mandir}}/man1/pg_config.1
722
723 # package it...?  nah, why bother.
724 %{__rm} -r $RPM_BUILD_ROOT%{pgsqldatadir}/doc/html
725
726 %clean
727 rm -rf $RPM_BUILD_ROOT
728
729 %pre
730 PG_DB_CLUSTERS=""
731 if [ -f /etc/sysconfig/postgresql-%{pgversion} ]; then
732         . /etc/sysconfig/postgresql-%{pgversion}
733         if [ -z "$PG_DB_CLUSTERS" -a -n "$POSTGRES_DATA_DIR" ]; then
734                 PG_DB_CLUSTERS="$POSTGRES_DATA_DIR"
735         fi
736 fi
737 foundold=0
738 for pgdir in $PG_DB_CLUSTERS; do
739         if [ -f $pgdir/PG_VERSION ]; then
740                 if [ $(cat $pgdir/PG_VERSION) != '%{pgversion}' ]; then
741                         echo "Found database(s) in older, incompatible format in cluster $pgdir."
742                         foundold=1
743                 fi
744         fi
745 done
746 if [ "$foundold" = "1" ]; then
747         echo
748         echo "Dump all data from clusters mentioned above (using pg_dump or pg_dumpall)"
749         echo "and clean (or rename) those directories; then upgrade postgresql and"
750         echo "restore all data (using pg_restore or psql)."
751         echo "Remember to stop the daemon before upgrading!"
752         echo
753         echo "Alternatively you can use pg_upgrade for 8.3+ online upgrade with"
754         echo "some restrictions: http://www.postgresql.org/docs/10.0/static/pgupgrade.html"
755         echo
756         exit 1
757 fi
758
759 %triggerpostun -- postgresql < 10.5-2
760 if [ -n "`/bin/id -u postgres 2>/dev/null`" ]; then
761         /usr/sbin/usermod -d /var/lib/pgsql postgres
762 fi
763 echo
764 echo "This version of PostgreSQL uses new default location for database clusters."
765 echo "Please move your existing clusters before starting PostgreSQL so they follow"
766 echo "below scheme:"
767 echo
768 echo "/var/lib/pgsql/<version>/<name>"
769 echo
770 echo "where <version> means PostgreSQL version like 9.6 or 10 and name is cluster"
771 echo "name of your choice. When done, be sure to update /etc/sysconfig/postgresql*"
772 echo "files so they reflect your changes."
773 echo
774
775 %post
776 /sbin/chkconfig --add postgresql-%{pgversion}
777 %service postgresql-%{pgversion} restart "postgresql-%{pgversion} server"
778
779 %preun
780 if [ "$1" = "0" ]; then
781         %service postgresql-%{pgversion} stop
782         /sbin/chkconfig --del postgresql-%{pgversion}
783 fi
784
785 %pre    -n postgresql-common
786 %groupadd -g 88 -r postgres
787 %useradd -M -o -r -u 88 -d /var/lib/pgsql -s /bin/sh -g postgres -c "PostgreSQL Server" postgres
788
789 %posttrans      clients
790 update-alternatives \
791         --install %{_bindir}/clusterdb clusterdb %{pgsqllibdir}/bin/clusterdb %{pgsuffix} \
792         --slave %{_mandir}/man1/clusterdb.1 clusterdb.1 %{pgsqldatadir}/man/man1/clusterdb.1* || :
793 update-alternatives \
794         --install %{_bindir}/createdb createdb %{pgsqllibdir}/bin/createdb %{pgsuffix} \
795         --slave %{_mandir}/man1/createdb.1 createdb.1 %{pgsqldatadir}/man/man1/createdb.1* || :
796 update-alternatives \
797         --install %{_bindir}/createuser createuser %{pgsqllibdir}/bin/createuser %{pgsuffix} \
798         --slave %{_mandir}/man1/createuser.1 createuser.1 %{pgsqldatadir}/man/man1/createuser.1* || :
799 update-alternatives \
800         --install %{_bindir}/dropdb dropdb %{pgsqllibdir}/bin/dropdb %{pgsuffix} \
801         --slave %{_mandir}/man1/dropdb.1 dropdb.1 %{pgsqldatadir}/man/man1/dropdb.1* || :
802 update-alternatives \
803         --install %{_bindir}/dropuser dropuser %{pgsqllibdir}/bin/dropuser %{pgsuffix} \
804         --slave %{_mandir}/man1/dropuser.1 dropuser.1 %{pgsqldatadir}/man/man1/dropuser.1* || :
805 update-alternatives \
806         --install %{_bindir}/pg_archivecleanup pg_archivecleanup %{pgsqllibdir}/bin/pg_archivecleanup %{pgsuffix} \
807         --slave %{_mandir}/man1/pg_archivecleanup.1 pg_archivecleanup.1 %{pgsqldatadir}/man/man1/pg_archivecleanup.1* || :
808 update-alternatives \
809         --install %{_bindir}/pg_dump pg_dump %{pgsqllibdir}/bin/pg_dump %{pgsuffix} \
810         --slave %{_mandir}/man1/pg_dump.1 pg_dump.1 %{pgsqldatadir}/man/man1/pg_dump.1* || :
811 update-alternatives \
812         --install %{_bindir}/pg_dumpall pg_dumpall %{pgsqllibdir}/bin/pg_dumpall %{pgsuffix} \
813         --slave %{_mandir}/man1/pg_dumpall.1 pg_dumpall.1 %{pgsqldatadir}/man/man1/pg_dumpall.1* || :
814 update-alternatives \
815         --install %{_bindir}/pg_isready pg_isready %{pgsqllibdir}/bin/pg_isready %{pgsuffix} \
816         --slave %{_mandir}/man1/pg_isready.1 pg_isready.1 %{pgsqldatadir}/man/man1/pg_isready.1* || :
817 update-alternatives \
818         --install %{_bindir}/pg_restore pg_restore %{pgsqllibdir}/bin/pg_restore %{pgsuffix} \
819         --slave %{_mandir}/man1/pg_restore.1 pg_restore.1 %{pgsqldatadir}/man/man1/pg_restore.1* || :
820 update-alternatives \
821         --install %{_bindir}/psql psql %{pgsqllibdir}/bin/psql %{pgsuffix} \
822         --slave %{_mandir}/man1/psql.1 pgsql.1 %{pgsqldatadir}/man/man1/psql.1* || :
823 update-alternatives \
824         --install %{_bindir}/reindexdb reindexdb %{pgsqllibdir}/bin/reindexdb %{pgsuffix} \
825         --slave %{_mandir}/man1/reindexdb.1 reindexdb.1 %{pgsqldatadir}/man/man1/reindexdb.1* || :
826 update-alternatives \
827         --install %{_bindir}/vacuumdb vacuumdb %{pgsqllibdir}/bin/vacuumdb %{pgsuffix} \
828         --slave %{_mandir}/man1/vacuumdb.1 vacuumdb.1 %{pgsqldatadir}/man/man1/vacuumdb.1* || :
829
830 %postun clients
831 if [ $1 -eq 0 ]; then
832         update-alternatives --remove clusterdb %{pgsqllibdir}/bin/clusterdb || :
833         update-alternatives --remove createdb %{pgsqllibdir}/bin/createdb || :
834         update-alternatives --remove createuser %{pgsqllibdir}/bin/createuser || :
835         update-alternatives --remove dropdb %{pgsqllibdir}/bin/dropdb || :
836         update-alternatives --remove dropuser %{pgsqllibdir}/bin/dropuser || :
837         update-alternatives --remove pg_archivecleanup %{pgsqllibdir}/bin/pg_archivecleanup || :
838         update-alternatives --remove pg_dump %{pgsqllibdir}/bin/pg_dump || :
839         update-alternatives --remove pg_dumpall %{pgsqllibdir}/bin/pg_dumpall || :
840         update-alternatives --remove pg_isready %{pgsqllibdir}/bin/pg_isready || :
841         update-alternatives --remove pg_restore %{pgsqllibdir}/bin/pg_restore || :
842         update-alternatives --remove psql %{pgsqllibdir}/bin/psql || :
843         update-alternatives --remove reindexdb %{pgsqllibdir}/bin/reindexdb || :
844         update-alternatives --remove vacuumdb %{pgsqllibdir}/bin/vacuumdb || :
845 fi
846
847 %postun -n postgresql-devel
848         update-alternatives --remove pg_config %{pgsqllibdir}/bin/pg_config || :
849
850 %post   -n postgresql-libs -p /sbin/ldconfig
851 %postun -n postgresql-libs -p /sbin/ldconfig
852
853 %post   -n postgresql-ecpg-libs -p /sbin/ldconfig
854 %postun -n postgresql-ecpg-libs -p /sbin/ldconfig
855
856 %files -f main.lang
857 %defattr(644,root,root,755)
858 %doc COPYRIGHT README HISTORY doc/{bug.template,KNOWN_BUGS,MISSING_FEATURES,TODO}
859 %attr(754,root,root) /etc/rc.d/init.d/postgresql-%{pgversion}
860 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/postgresql-%{pgversion}
861
862 %attr(755,root,root) %{pgsqllibdir}/bin/initdb
863 %attr(755,root,root) %{pgsqllibdir}/bin/pg_basebackup
864 %attr(755,root,root) %{pgsqllibdir}/bin/pg_controldata
865 %attr(755,root,root) %{pgsqllibdir}/bin/pg_ctl
866 %attr(755,root,root) %{pgsqllibdir}/bin/pg_resetwal
867 %attr(755,root,root) %{pgsqllibdir}/bin/pg_receivewal
868 %attr(755,root,root) %{pgsqllibdir}/bin/pg_recvlogical
869 %attr(755,root,root) %{pgsqllibdir}/bin/pg_rewind
870 %attr(755,root,root) %{pgsqllibdir}/bin/pg_test_fsync
871 %attr(755,root,root) %{pgsqllibdir}/bin/pg_test_timing
872 %attr(755,root,root) %{pgsqllibdir}/bin/pg_upgrade
873 %attr(755,root,root) %{pgsqllibdir}/bin/pg_waldump
874 %attr(755,root,root) %{pgsqllibdir}/bin/pgbench
875 %attr(755,root,root) %{pgsqllibdir}/bin/postgres
876 %attr(755,root,root) %{pgsqllibdir}/bin/postmaster
877
878 %attr(755,root,root) %{moduledir}/ascii_and_mic.so
879 %attr(755,root,root) %{moduledir}/cyrillic_and_mic.so
880 %attr(755,root,root) %{moduledir}/dict_int.so
881 %attr(755,root,root) %{moduledir}/dict_snowball.so
882 %attr(755,root,root) %{moduledir}/dict_xsyn.so
883 %attr(755,root,root) %{moduledir}/euc*.so
884 %attr(755,root,root) %{moduledir}/latin2_and_win1250.so
885 %attr(755,root,root) %{moduledir}/latin_and_mic.so
886 %attr(755,root,root) %{moduledir}/libpqwalreceiver.so
887 %attr(755,root,root) %{moduledir}/pgoutput.so
888 %attr(755,root,root) %{moduledir}/plpgsql.so
889 %attr(755,root,root) %{moduledir}/utf8_and_*.so
890
891 %dir %{extensiondir}
892 %{extensiondir}/plpgsql--*.sql
893 %{extensiondir}/plpgsql.control
894
895 %{pgsqldatadir}/*.bki
896 %{pgsqldatadir}/*.sample
897 %{pgsqldatadir}/*.description
898 %{pgsqldatadir}/*.shdescription
899 %{pgsqldatadir}/*.sql
900 %{pgsqldatadir}/*.txt
901 %{pgsqldatadir}/timezonesets
902 %{pgsqldatadir}/tsearch_data
903
904 %dir %{pgsqldatadir}/contrib
905
906 %attr(640,postgres,postgres) %config(noreplace) %verify(not md5 mtime size) /var/log/pgsql
907
908 %{pgsqldatadir}/man/man1/initdb.1*
909 %{pgsqldatadir}/man/man1/pg_basebackup.1*
910 %{pgsqldatadir}/man/man1/pg_controldata.1*
911 %{pgsqldatadir}/man/man1/pg_ctl.1*
912 %{pgsqldatadir}/man/man1/pg_resetwal.1*
913 %{pgsqldatadir}/man/man1/pg_receivewal.1*
914 %{pgsqldatadir}/man/man1/pg_recvlogical.1*
915 %{pgsqldatadir}/man/man1/pg_rewind.1*
916 %{pgsqldatadir}/man/man1/pg_waldump.1*
917 %{pgsqldatadir}/man/man1/pg_test_fsync.1*
918 %{pgsqldatadir}/man/man1/pg_test_timing.1*
919 %{pgsqldatadir}/man/man1/pg_upgrade.1*
920 %{pgsqldatadir}/man/man1/pgbench.1*
921 %{pgsqldatadir}/man/man1/postgres.1*
922 %{pgsqldatadir}/man/man1/postmaster.1*
923
924 %files -n postgresql-common
925 %defattr(644,root,root,755)
926 %dir %{_libdir}/postgresql
927 %dir %{_datadir}/postgresql
928 %attr(700,postgres,postgres) %dir /var/lib/pgsql
929 %attr(700,postgres,postgres) %dir /var/run/postgresql
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-%{pgversion}.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-%{pgversion}.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-%{pgversion}.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-%{pgversion}.lang
982 %defattr(644,root,root,755)
983 %attr(755,root,root) %{_bindir}/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 %{_mandir}/man1/pg_config.1*
1003
1004 %files backend-devel
1005 %defattr(644,root,root,755)
1006 %dir %{_includedir}/postgresql/%{pgversion}
1007 %{_includedir}/postgresql/%{pgversion}/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-%{pgversion}.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-%{pgversion}.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-%{pgversion}.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*