]> TLD Linux GIT Repositories - packages/postgresql.git/blob - postgresql.spec
- switched to direct file logging, added logrotate
[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.3
18 %define pgsqlpriority 93
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}.25
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:  8a7c673ece44f6e3cd124676b704cc48
37 Source1:        postgresql.init
38 Source2:        pgsql-Database-HOWTO-html.tar.gz
39 # Source2-md5:  5b656ddf1db41965761f85204a14398e
40 Source3:        postgresql.sysconfig
41 Source4:        postgresql.logrotate
42 Patch0:         postgresql-conf.patch
43 Patch1:         postgresql-absolute_dbpaths.patch
44 Patch2:         postgresql-ecpg-includedir.patch
45 Patch3:         per-version-dirs.patch
46 Patch4:         postgresql-disable_horology_test.patch
47 Patch5:         postgresql-heimdal.patch
48 Patch6:         postgresql-ac_version.patch
49 Patch7:         socket-dir-fixes.patch
50 Patch8:         postgresql-ossp_uuid.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:  python >= 1:2.3
77 BuildRequires:  python-devel >= 1:2.3
78 BuildRequires:  python-modules >= 1:2.3
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(triggerpostun):        /bin/id
90 Requires(triggerpostun):        /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 btree_gin btree_gist chkpass citext cube dblink dict_int dict_xsyn earthdistance file_fdw fuzzystrmatch hstore intagg intarray isn lo ltree oid2name pageinspect passwordcheck pg_archivecleanup pg_buffercache pg_freespacemap pg_standby pg_stat_statements pg_trgm pg_test_fsync pg_test_timing pg_upgrade pg_xlogdump pgbench pgcrypto pgrowlocks pgstattuple postgres_fdw seg %{?with_selinux:sepgsql} sslinfo tablefunc tcn 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  python
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
495 # force rebuild of bison/flex files
496 find src -name \*.l -o -name \*.y | xargs touch
497
498 # Erase all CVS dirs
499 #find contrib -type d -name CVS -exec rm -rf {} \;
500
501 %build
502 %{__aclocal} -I config
503 %{__autoconf}
504 %{__autoheader}
505 %configure \
506         CFLAGS="%{rpmcflags} -DNEED_REENTRANT_FUNCS `uuid-config --cflags`" \
507         --prefix=%{pgsqldatadir} \
508         --bindir=%{pgsqllibdir}/bin \
509         --sbindir=%{pgsqllibdir}/sbin \
510         --includedir=%{_includedir} \
511         --mandir=%{pgsqldatadir}/man \
512         --datadir=%{pgsqldatadir} \
513         --libdir=%{_libdir} \
514         --docdir=%{pgsqldatadir}/doc \
515         --localedir=%{_datadir}/locale \
516         --disable-rpath \
517         --enable-depend \
518         %{?with_systemtap:--enable-dtrace} \
519         --enable-integer-datetimes \
520         --enable-nls \
521         --enable-thread-safety \
522         %{?with_bonjour:--with-bonjour} \
523         %{?with_kerberos5:--with-gssapi} \
524         %{?with_ldap:--with-ldap} \
525         --with-libxml \
526         --with-libxslt \
527         --with-openssl \
528         --with-pam \
529         %{?with_perl:--with-perl} \
530         %{?with_python:--with-python} \
531         %{?with_selinux:--with-selinux} \
532         --with-system-tzdata=%{_datadir}/zoneinfo \
533         %{?with_tcl:--with-tcl --with-tclconfig=%{_ulibdir}} \
534         --with-ossp-uuid
535
536 %{__make}
537
538 for mod in %{contrib_modules}; do \
539         flags="%{rpmcflags} %{rpmcppflags} -DNEED_REENTRANT_FUNCS"
540         if [ $mod = "xml2"      ]; then flags="$flags -I/usr/include/libxml2"; fi
541         if [ $mod = "uuid-ossp" ]; then flags="$flags `uuid-config --cflags`"; fi
542         %{__make} -C contrib/$mod CFLAGS="$flags"
543 done
544
545 %{__make} -C src/tutorial \
546         NO_PGXS=1
547
548 %ifnarch sparc sparcv9 sparc64 alpha
549 %{?with_tests:%{__make} -j1 check}
550 %endif
551
552 %install
553 rm -rf $RPM_BUILD_ROOT
554 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{logrotate.d,rc.d/init.d,sysconfig}} \
555         $RPM_BUILD_ROOT/var/{lib/postgresql/%{pgsqlversion},log/{archive,}/postgresql,run/postgresql} \
556         $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} \
557         $RPM_BUILD_ROOT%{_mandir}
558
559 install src/tutorial/*.sql $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
560
561 %{__make} install \
562         DESTDIR=$RPM_BUILD_ROOT
563 %{__make} -C doc/src/sgml install-man \
564         DESTDIR=$RPM_BUILD_ROOT
565
566 %if %{with perl}
567 %{__make} install -C src/pl/plperl \
568         DESTDIR=$RPM_BUILD_ROOT
569 %endif
570
571 for mod in %{contrib_modules}; do \
572         %{__make} -C contrib/$mod install \
573                 DESTDIR=$RPM_BUILD_ROOT
574 done
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 cp -a %{SOURCE4} $RPM_BUILD_ROOT/etc/logrotate.d/postgresql
579
580 install -d howto
581 tar zxf %{SOURCE2} -C howto
582
583 %if %{with python}
584 %py_comp $RPM_BUILD_ROOT%{py_libdir}
585 %py_ocomp $RPM_BUILD_ROOT%{py_libdir}
586 %endif
587
588 # find locales
589 for f in libpq5 pgscripts postgres psql initdb ecpg ecpglib6 \
590         plpgsql %{?with_perl:plperl} %{?with_python:plpython} \
591         pg_basebackup pg_config pg_controldata pg_ctl pg_dump pg_resetxlog; do
592         %find_lang $f-%{pgsqlversion}
593 done
594 # merge locales
595 merge_lang() {
596         cat $(for f in $@; do echo ${f}-%{pgsqlversion}.lang ; done)
597 }
598 merge_lang pgscripts postgres plpgsql \
599         pg_basebackup pg_controldata pg_resetxlog > main.lang
600 merge_lang psql initdb \
601         pg_ctl pg_dump > clients.lang
602
603 %if %{with tcl}
604 %find_lang pltcl-%{pgsqlversion}
605 %endif
606
607 %if %{with selinux}
608 %{__mv} $RPM_BUILD_ROOT{%{pgsqldatadir}/contrib,%{extensiondir}}/sepgsql.sql
609 %endif
610
611 cp -p src/pl/plperl/ppport.h $RPM_BUILD_ROOT%{_includedir}/postgresql/%{pgsqlversion}/server/
612
613 # package it...?  nah, why bother.
614 %{__rm} -r $RPM_BUILD_ROOT%{pgsqldatadir}/doc/html
615
616 # remove common files provided by PostgreSQL from master branch
617 %{__rm} -r $RPM_BUILD_ROOT%{_includedir}/{ecpg*,libpq*,pg_config*,postgres_ext.h,postgresql/internal}
618 %{__rm} -r $RPM_BUILD_ROOT{%{_libdir}/{libecpg*,libpg*,libpq*,pkgconfig},%{pgsqllibdir}/bin/pg_config,%{pgsqldatadir}/man/man1/pg_config.1*}
619 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/*/LC_MESSAGES/{ecpglib*,libpq*,pg_config*}
620
621 %clean
622 rm -rf $RPM_BUILD_ROOT
623
624 %pre
625 PG_DB_CLUSTERS=""
626 if [ -f /etc/sysconfig/postgresql-%{pgsqlversion} ]; then
627         . /etc/sysconfig/postgresql-%{pgsqlversion}
628         if [ -z "$PG_DB_CLUSTERS" -a -n "$POSTGRES_DATA_DIR" ]; then
629                 PG_DB_CLUSTERS="$POSTGRES_DATA_DIR"
630         fi
631 fi
632 foundold=0
633 for pgdir in $PG_DB_CLUSTERS; do
634         if [ -f $pgdir/PG_VERSION ]; then
635                 if [ $(cat $pgdir/PG_VERSION) != '%{pgsqlversion}' ]; then
636                         echo "Found database(s) in older, incompatible format in cluster $pgdir."
637                         foundold=1
638                 fi
639         fi
640 done
641 if [ "$foundold" = "1" ]; then
642         echo
643         echo "Dump all data from clusters mentioned above (using pg_dump or pg_dumpall)"
644         echo "and clean (or rename) those directories; then upgrade postgresql and"
645         echo "restore all data (using pg_restore or psql)."
646         echo "Remember to stop the daemon before upgrading!"
647         echo
648         echo "Alternatively you can use pg_upgrade for 8.3+ online upgrade with"
649         echo "some restrictions: http://www.postgresql.org/docs/10.0/static/pgupgrade.html"
650         echo
651         exit 1
652 fi
653
654 %post
655 /sbin/chkconfig --add postgresql-%{pgsqlversion}
656 %service postgresql-%{pgsqlversion} restart "postgresql-%{pgsqlversion} server"
657
658 %preun
659 if [ "$1" = "0" ]; then
660         %service postgresql-%{pgsqlversion} stop
661         /sbin/chkconfig --del postgresql-%{pgsqlversion}
662 fi
663
664 %posttrans      clients
665 update-alternatives \
666         --install %{_bindir}/clusterdb clusterdb %{pgsqllibdir}/bin/clusterdb %{pgsqlpriority} \
667         --slave %{_mandir}/man1/clusterdb.1 clusterdb.1 %{pgsqldatadir}/man/man1/clusterdb.1* || :
668 update-alternatives \
669         --install %{_bindir}/createdb createdb %{pgsqllibdir}/bin/createdb %{pgsqlpriority} \
670         --slave %{_mandir}/man1/createdb.1 createdb.1 %{pgsqldatadir}/man/man1/createdb.1* || :
671 update-alternatives \
672         --install %{_bindir}/createuser createuser %{pgsqllibdir}/bin/createuser %{pgsqlpriority} \
673         --slave %{_mandir}/man1/createuser.1 createuser.1 %{pgsqldatadir}/man/man1/createuser.1* || :
674 update-alternatives \
675         --install %{_bindir}/dropdb dropdb %{pgsqllibdir}/bin/dropdb %{pgsqlpriority} \
676         --slave %{_mandir}/man1/dropdb.1 dropdb.1 %{pgsqldatadir}/man/man1/dropdb.1* || :
677 update-alternatives \
678         --install %{_bindir}/dropuser dropuser %{pgsqllibdir}/bin/dropuser %{pgsqlpriority} \
679         --slave %{_mandir}/man1/dropuser.1 dropuser.1 %{pgsqldatadir}/man/man1/dropuser.1* || :
680 update-alternatives \
681         --install %{_bindir}/pg_dump pg_dump %{pgsqllibdir}/bin/pg_dump %{pgsqlpriority} \
682         --slave %{_mandir}/man1/pg_dump.1 pg_dump.1 %{pgsqldatadir}/man/man1/pg_dump.1* || :
683 update-alternatives \
684         --install %{_bindir}/pg_dumpall pg_dumpall %{pgsqllibdir}/bin/pg_dumpall %{pgsqlpriority} \
685         --slave %{_mandir}/man1/pg_dumpall.1 pg_dumpall.1 %{pgsqldatadir}/man/man1/pg_dumpall.1* || :
686 update-alternatives \
687         --install %{_bindir}/pg_isready pg_isready %{pgsqllibdir}/bin/pg_isready %{pgsqlpriority} \
688         --slave %{_mandir}/man1/pg_isready.1 pg_isready.1 %{pgsqldatadir}/man/man1/pg_isready.1* || :
689 update-alternatives \
690         --install %{_bindir}/pg_restore pg_restore %{pgsqllibdir}/bin/pg_restore %{pgsqlpriority} \
691         --slave %{_mandir}/man1/pg_restore.1 pg_restore.1 %{pgsqldatadir}/man/man1/pg_restore.1* || :
692 update-alternatives \
693         --install %{_bindir}/psql psql %{pgsqllibdir}/bin/psql %{pgsqlpriority} \
694         --slave %{_mandir}/man1/psql.1 pgsql.1 %{pgsqldatadir}/man/man1/psql.1* || :
695 update-alternatives \
696         --install %{_bindir}/reindexdb reindexdb %{pgsqllibdir}/bin/reindexdb %{pgsqlpriority} \
697         --slave %{_mandir}/man1/reindexdb.1 reindexdb.1 %{pgsqldatadir}/man/man1/reindexdb.1* || :
698 update-alternatives \
699         --install %{_bindir}/vacuumdb vacuumdb %{pgsqllibdir}/bin/vacuumdb %{pgsqlpriority} \
700         --slave %{_mandir}/man1/vacuumdb.1 vacuumdb.1 %{pgsqldatadir}/man/man1/vacuumdb.1* || :
701
702 %postun clients
703 if [ $1 -eq 0 ]; then
704         update-alternatives --remove clusterdb %{pgsqllibdir}/bin/clusterdb || :
705         update-alternatives --remove createdb %{pgsqllibdir}/bin/createdb || :
706         update-alternatives --remove createuser %{pgsqllibdir}/bin/createuser || :
707         update-alternatives --remove dropdb %{pgsqllibdir}/bin/dropdb || :
708         update-alternatives --remove dropuser %{pgsqllibdir}/bin/dropuser || :
709         update-alternatives --remove pg_dump %{pgsqllibdir}/bin/pg_dump || :
710         update-alternatives --remove pg_dumpall %{pgsqllibdir}/bin/pg_dumpall || :
711         update-alternatives --remove pg_isready %{pgsqllibdir}/bin/pg_isready || :
712         update-alternatives --remove pg_restore %{pgsqllibdir}/bin/pg_restore || :
713         update-alternatives --remove psql %{pgsqllibdir}/bin/psql || :
714         update-alternatives --remove reindexdb %{pgsqllibdir}/bin/reindexdb || :
715         update-alternatives --remove vacuumdb %{pgsqllibdir}/bin/vacuumdb || :
716 fi
717
718 %files -f main.lang
719 %defattr(644,root,root,755)
720 %doc COPYRIGHT README HISTORY doc/{bug.template,KNOWN_BUGS,MISSING_FEATURES,TODO}
721 %attr(754,root,root) /etc/rc.d/init.d/postgresql-%{pgsqlversion}
722 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/postgresql-%{pgsqlversion}
723
724 %attr(755,root,root) %{pgsqllibdir}/bin/initdb
725 %attr(755,root,root) %{pgsqllibdir}/bin/pg_basebackup
726 %attr(755,root,root) %{pgsqllibdir}/bin/pg_controldata
727 %attr(755,root,root) %{pgsqllibdir}/bin/pg_ctl
728 %attr(755,root,root) %{pgsqllibdir}/bin/pg_resetxlog
729 %attr(755,root,root) %{pgsqllibdir}/bin/pg_receivexlog
730 %attr(755,root,root) %{pgsqllibdir}/bin/pg_test_fsync
731 %attr(755,root,root) %{pgsqllibdir}/bin/pg_test_timing
732 %attr(755,root,root) %{pgsqllibdir}/bin/pg_upgrade
733 %attr(755,root,root) %{pgsqllibdir}/bin/pg_xlogdump
734 %attr(755,root,root) %{pgsqllibdir}/bin/pgbench
735 %attr(755,root,root) %{pgsqllibdir}/bin/postgres
736 %attr(755,root,root) %{pgsqllibdir}/bin/postmaster
737
738 %attr(755,root,root) %{moduledir}/ascii_and_mic.so
739 %attr(755,root,root) %{moduledir}/cyrillic_and_mic.so
740 %attr(755,root,root) %{moduledir}/dict_int.so
741 %attr(755,root,root) %{moduledir}/dict_snowball.so
742 %attr(755,root,root) %{moduledir}/dict_xsyn.so
743 %attr(755,root,root) %{moduledir}/euc*.so
744 %attr(755,root,root) %{moduledir}/latin2_and_win1250.so
745 %attr(755,root,root) %{moduledir}/latin_and_mic.so
746 %attr(755,root,root) %{moduledir}/libpqwalreceiver.so
747 %attr(755,root,root) %{moduledir}/plpgsql.so
748 %attr(755,root,root) %{moduledir}/utf8_and_*.so
749
750 %dir %{extensiondir}
751 %{extensiondir}/plpgsql--*.sql
752 %{extensiondir}/plpgsql.control
753
754 %{pgsqldatadir}/*.bki
755 %{pgsqldatadir}/*.sample
756 %{pgsqldatadir}/*.description
757 %{pgsqldatadir}/*.shdescription
758 %{pgsqldatadir}/*.sql
759 %{pgsqldatadir}/*.txt
760 %{pgsqldatadir}/timezonesets
761 %{pgsqldatadir}/tsearch_data
762
763 %dir %{pgsqldatadir}/contrib
764
765 %{pgsqldatadir}/man/man1/initdb.1*
766 %{pgsqldatadir}/man/man1/pg_basebackup.1*
767 %{pgsqldatadir}/man/man1/pg_controldata.1*
768 %{pgsqldatadir}/man/man1/pg_ctl.1*
769 %{pgsqldatadir}/man/man1/pg_resetxlog.1*
770 %{pgsqldatadir}/man/man1/pg_receivexlog.1*
771 %{pgsqldatadir}/man/man1/pg_test_fsync.1*
772 %{pgsqldatadir}/man/man1/pg_test_timing.1*
773 %{pgsqldatadir}/man/man1/pg_test_timing.1*
774 %{pgsqldatadir}/man/man1/pg_upgrade.1*
775 %{pgsqldatadir}/man/man1/pg_xlogdump.1*
776 %{pgsqldatadir}/man/man1/pgbench.1*
777 %{pgsqldatadir}/man/man1/postgres.1*
778 %{pgsqldatadir}/man/man1/postmaster.1*
779
780 %files dirs
781 %defattr(644,root,root,755)
782 %dir %{pgsqllibdir}
783 %dir %{pgsqllibdir}/bin
784 %dir %{pgsqllibdir}/lib
785 %dir %{pgsqldatadir}
786 %dir %{pgsqldatadir}/man
787 %dir %{pgsqldatadir}/man/man1
788 %dir %{pgsqldatadir}/man/man3
789 %dir %{pgsqldatadir}/man/man7
790 %attr(700,postgres,postgres) %dir /var/lib/postgresql/%{pgsqlversion}
791
792 %files doc
793 %defattr(644,root,root,755)
794 %doc doc/src/sgml/html howto
795 %{_examplesdir}/%{name}-%{version}
796
797 %files ecpg -f ecpg-%{pgsqlversion}.lang
798 %defattr(644,root,root,755)
799 %attr(755,root,root) %{pgsqllibdir}/bin/ecpg
800 %{pgsqldatadir}/man/man1/ecpg.1*
801
802 %files backend-devel
803 %defattr(644,root,root,755)
804 %dir %{_includedir}/postgresql/%{pgsqlversion}
805 %{_includedir}/postgresql/%{pgsqlversion}/server
806 %dir %{moduledir}/pgxs
807 %attr(755,root,root) %{moduledir}/pgxs/config
808 %{moduledir}/pgxs/src
809 %{pgsqldatadir}/man/man3/SPI_*.3*
810
811 %files clients -f clients.lang
812 %defattr(644,root,root,755)
813 %attr(755,root,root) %{pgsqllibdir}/bin/clusterdb
814 %attr(755,root,root) %{pgsqllibdir}/bin/createdb
815 %attr(755,root,root) %{pgsqllibdir}/bin/createlang
816 %attr(755,root,root) %{pgsqllibdir}/bin/createuser
817 %attr(755,root,root) %{pgsqllibdir}/bin/dropdb
818 %attr(755,root,root) %{pgsqllibdir}/bin/droplang
819 %attr(755,root,root) %{pgsqllibdir}/bin/dropuser
820 %attr(755,root,root) %{pgsqllibdir}/bin/pg_archivecleanup
821 %attr(755,root,root) %{pgsqllibdir}/bin/pg_dump
822 %attr(755,root,root) %{pgsqllibdir}/bin/pg_dumpall
823 %attr(755,root,root) %{pgsqllibdir}/bin/pg_isready
824 %attr(755,root,root) %{pgsqllibdir}/bin/pg_restore
825 %attr(755,root,root) %{pgsqllibdir}/bin/psql
826 %attr(755,root,root) %{pgsqllibdir}/bin/reindexdb
827 %attr(755,root,root) %{pgsqllibdir}/bin/vacuumdb
828
829 %{pgsqldatadir}/man/man1/clusterdb.1*
830 %{pgsqldatadir}/man/man1/createdb.1*
831 %{pgsqldatadir}/man/man1/createlang.1*
832 %{pgsqldatadir}/man/man1/createuser.1*
833 %{pgsqldatadir}/man/man1/dropdb.1*
834 %{pgsqldatadir}/man/man1/droplang.1*
835 %{pgsqldatadir}/man/man1/dropuser.1*
836 %{pgsqldatadir}/man/man1/pg_archivecleanup.1*
837 %{pgsqldatadir}/man/man1/pg_dump.1*
838 %{pgsqldatadir}/man/man1/pg_dumpall.1*
839 %{pgsqldatadir}/man/man1/pg_isready.1*
840 %{pgsqldatadir}/man/man1/pg_restore.1*
841 %{pgsqldatadir}/man/man1/psql.1*
842 %{pgsqldatadir}/man/man1/reindexdb.1*
843 %{pgsqldatadir}/man/man1/vacuumdb.1*
844 %{pgsqldatadir}/man/man7/*.7*
845
846 %if %{with perl}
847 %files module-plperl -f plperl-%{pgsqlversion}.lang
848 %defattr(644,root,root,755)
849 %attr(755,root,root) %{moduledir}/plperl.so
850 %{extensiondir}/plperl--*.sql
851 %{extensiondir}/plperl.control
852 %{extensiondir}/plperlu--*.sql
853 %{extensiondir}/plperlu.control
854 %endif
855
856 %if %{with python}
857 %files module-plpython -f plpython-%{pgsqlversion}.lang
858 %defattr(644,root,root,755)
859 %attr(755,root,root) %{moduledir}/plpython2.so
860 %{extensiondir}/plpython*--*.sql
861 %{extensiondir}/plpython*.control
862 %endif
863
864 %if %{with tcl}
865 %files module-pltcl -f pltcl-%{pgsqlversion}.lang
866 %defattr(644,root,root,755)
867 %attr(755,root,root) %{pgsqllibdir}/bin/pltcl_*
868 %attr(755,root,root) %{moduledir}/pltcl.so
869 %{pgsqldatadir}/unknown.pltcl
870 %{extensiondir}/pltcl*--*.sql
871 %{extensiondir}/pltcl*.control
872 %endif
873
874 %files module-dblink
875 %defattr(644,root,root,755)
876 %attr(755,root,root) %{moduledir}/dblink.so
877 %{extensiondir}/dblink--*.sql
878 %{extensiondir}/dblink.control
879 %{pgsqldatadir}/man/man3/dblink*.3*
880
881 %files module-lo
882 %defattr(644,root,root,755)
883 %attr(755,root,root) %{moduledir}/lo.so
884 %{extensiondir}/lo--*.sql
885 %{extensiondir}/lo.control
886
887 %files module-pg_trgm
888 %defattr(644,root,root,755)
889 %attr(755,root,root) %{moduledir}/pg_trgm.so
890 %{extensiondir}/pg_trgm--*.sql
891 %{extensiondir}/pg_trgm.control
892
893 %files module-pgcrypto
894 %defattr(644,root,root,755)
895 %attr(755,root,root) %{moduledir}/pgcrypto.so
896 %{extensiondir}/pgcrypto--*.sql
897 %{extensiondir}/pgcrypto.control
898
899 %if %{with selinux}
900 %files module-sepgsql
901 %defattr(644,root,root,755)
902 %attr(755,root,root) %{moduledir}/sepgsql.so
903 %{extensiondir}/sepgsql.sql
904 %endif
905
906 %files module-tablefunc
907 %defattr(644,root,root,755)
908 %attr(755,root,root) %{moduledir}/tablefunc.so
909 %{extensiondir}/*tablefunc--*.sql
910 %{extensiondir}/*tablefunc.control
911
912 %files module-xml2
913 %defattr(644,root,root,755)
914 %attr(755,root,root) %{moduledir}/pgxml.so
915 %{extensiondir}/xml2--*.sql
916 %{extensiondir}/xml2.control
917
918 %files contrib
919 %defattr(644,root,root,755)
920 %doc contrib/README
921 %attr(755,root,root) %{pgsqllibdir}/bin/oid2name
922 %attr(755,root,root) %{pgsqllibdir}/bin/pg_standby
923 %attr(755,root,root) %{pgsqllibdir}/bin/vacuumlo
924 %attr(755,root,root) %{moduledir}/_int.so
925 %attr(755,root,root) %{moduledir}/adminpack.so
926 %attr(755,root,root) %{moduledir}/auth_delay.so
927 %attr(755,root,root) %{moduledir}/auto_explain.so
928 %attr(755,root,root) %{moduledir}/btree_gin.so
929 %attr(755,root,root) %{moduledir}/btree_gist.so
930 %attr(755,root,root) %{moduledir}/chkpass.so
931 %attr(755,root,root) %{moduledir}/citext.so
932 %attr(755,root,root) %{moduledir}/cube.so
933 %attr(755,root,root) %{moduledir}/earthdistance.so
934 %attr(755,root,root) %{moduledir}/file_fdw.so
935 %attr(755,root,root) %{moduledir}/fuzzystrmatch.so
936 %attr(755,root,root) %{moduledir}/hstore.so
937 %attr(755,root,root) %{moduledir}/isn.so
938 %attr(755,root,root) %{moduledir}/ltree.so
939 %attr(755,root,root) %{moduledir}/pageinspect.so
940 %attr(755,root,root) %{moduledir}/passwordcheck.so
941 %attr(755,root,root) %{moduledir}/pg_buffercache.so
942 %attr(755,root,root) %{moduledir}/pg_freespacemap.so
943 %attr(755,root,root) %{moduledir}/pg_stat_statements.so
944 %attr(755,root,root) %{moduledir}/pgrowlocks.so
945 %attr(755,root,root) %{moduledir}/pgstattuple.so
946 %attr(755,root,root) %{moduledir}/postgres_fdw.so
947 %attr(755,root,root) %{moduledir}/seg.so
948 %attr(755,root,root) %{moduledir}/sslinfo.so
949 %attr(755,root,root) %{moduledir}/tcn.so
950 %attr(755,root,root) %{moduledir}/unaccent.so
951 %attr(755,root,root) %{moduledir}/uuid-ossp.so
952 %{extensiondir}/adminpack--*.sql
953 %{extensiondir}/adminpack.control
954 %{extensiondir}/btree_gin--*.sql
955 %{extensiondir}/btree_gin.control
956 %{extensiondir}/btree_gist--*.sql
957 %{extensiondir}/btree_gist.control
958 %{extensiondir}/chkpass--*.sql
959 %{extensiondir}/chkpass.control
960 %{extensiondir}/citext--*.sql
961 %{extensiondir}/citext.control
962 %{extensiondir}/cube--*.sql
963 %{extensiondir}/cube.control
964 %{extensiondir}/dict_int--*.sql
965 %{extensiondir}/dict_int.control
966 %{extensiondir}/dict_xsyn--*.sql
967 %{extensiondir}/dict_xsyn.control
968 %{extensiondir}/earthdistance--*.sql
969 %{extensiondir}/earthdistance.control
970 %{extensiondir}/file_fdw--*.sql
971 %{extensiondir}/file_fdw.control
972 %{extensiondir}/fuzzystrmatch--*.sql
973 %{extensiondir}/fuzzystrmatch.control
974 %{extensiondir}/hstore--*.sql
975 %{extensiondir}/hstore.control
976 %{extensiondir}/intarray--*.sql
977 %{extensiondir}/intarray.control
978 %{extensiondir}/intagg--*.sql
979 %{extensiondir}/intagg.control
980 %{extensiondir}/isn--*.sql
981 %{extensiondir}/isn.control
982 %{extensiondir}/ltree--*.sql
983 %{extensiondir}/ltree.control
984 %{extensiondir}/pageinspect--*.sql
985 %{extensiondir}/pageinspect.control
986 %{extensiondir}/pg_buffercache--*.sql
987 %{extensiondir}/pg_buffercache.control
988 %{extensiondir}/pg_freespacemap--*.sql
989 %{extensiondir}/pg_freespacemap.control
990 %{extensiondir}/pg_stat_statements--*.sql
991 %{extensiondir}/pg_stat_statements.control
992 %{extensiondir}/pgrowlocks--*.sql
993 %{extensiondir}/pgrowlocks.control
994 %{extensiondir}/pgstattuple--*.sql
995 %{extensiondir}/pgstattuple.control
996 %{extensiondir}/postgres_fdw--*.sql
997 %{extensiondir}/postgres_fdw.control
998 %{extensiondir}/seg--*.sql
999 %{extensiondir}/seg.control
1000 %{extensiondir}/sslinfo--*.sql
1001 %{extensiondir}/sslinfo.control
1002 %{extensiondir}/tcn--*.sql
1003 %{extensiondir}/tcn.control
1004 %{extensiondir}/unaccent--*.sql
1005 %{extensiondir}/unaccent.control
1006 %{extensiondir}/uuid-ossp--*.sql
1007 %{extensiondir}/uuid-ossp.control
1008 %{pgsqldatadir}/man/man1/oid2name.1*
1009 %{pgsqldatadir}/man/man1/pg_standby.1*
1010 %{pgsqldatadir}/man/man1/vacuumlo.1*