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