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