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