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