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