]> TLD Linux GIT Repositories - packages/postgresql.git/blob - postgresql.spec
- updated to 10.3
[packages/postgresql.git] / postgresql.spec
1 # TODO:
2 # - python 3 and python 2 subpackages?
3 # - subpackage *_plperl and *_plpython contribs?
4 # - think about pg_upgrade integration (sysconfig variable to allow upgrade from 8.3+ without dump/restore?)
5 #   create postgresqlM.N packages with parts of old pgsql required by pg_upgrade
6 # - test init script (db initialization)
7 #
8 # Conditional build:
9 %bcond_without  tests                   # disable testing
10 %bcond_without  tcl                     # disable Tcl support
11 %bcond_without  kerberos5               # disable kerberos5 support
12 %bcond_without  perl                    # disable Perl support
13 %bcond_without  python                  # disable Python support
14 %bcond_with     bonjour                 # Bonjour/DNS_SD support
15 %bcond_without  ldap                    # disable LDAP support
16 %bcond_without  selinux                 # sepgsql contrib module
17 %bcond_with     systemtap               # systemtap/dtrace probes
18 %bcond_with     absolute_dbpaths        # enable absolute paths to create database
19                                         # (disabled by default because it is a security risk)
20 #
21
22 %define beta %{nil}
23 %define mver 10
24
25 Summary:        PostgreSQL Data Base Management System
26 Summary(de.UTF-8):      PostgreSQL Datenbankverwaltungssystem
27 Summary(es.UTF-8):      Gestor de Banco de Datos PostgreSQL
28 Summary(fr.UTF-8):      Sysème de gestion de base de données PostgreSQL
29 Summary(pl.UTF-8):      PostgreSQL - system bazodanowy
30 Summary(pt_BR.UTF-8):   Gerenciador de Banco de Dados PostgreSQL
31 Summary(ru.UTF-8):      PostgreSQL - система управления базами данных
32 Summary(tr.UTF-8):      Veri Tabanı Yönetim Sistemi
33 Summary(uk.UTF-8):      PostgreSQL - система керування базами даних
34 Summary(zh_CN.UTF-8):   PostgreSQL 客户端程序和库文件
35 Name:           postgresql
36 Version:        %{mver}.3
37 Release:        1
38 License:        BSD
39 Group:          Applications/Databases
40 Source0:        http://ftp.postgresql.org/pub/source/v%{version}/%{name}-%{version}.tar.bz2
41 # Source0-md5:  506498796a314c549388cafb3d5c717a
42 Source1:        %{name}.init
43 Source2:        pgsql-Database-HOWTO-html.tar.gz
44 # Source2-md5:  5b656ddf1db41965761f85204a14398e
45 Source3:        %{name}.sysconfig
46 Patch0:         %{name}-conf.patch
47 Patch1:         %{name}-absolute_dbpaths.patch
48 Patch2:         %{name}-ecpg-includedir.patch
49
50 Patch4:         %{name}-disable_horology_test.patch
51 Patch5:         %{name}-heimdal.patch
52 Patch6:         %{name}-link.patch
53 URL:            http://www.postgresql.org/
54 BuildRequires:  autoconf >= 2.69
55 BuildRequires:  automake
56 %{?with_bonjour:BuildRequires:  avahi-compat-libdns_sd-devel}
57 # not needed for releases... but fixes something in snapshot
58 BuildRequires:  bison >= 1.875
59 BuildRequires:  docbook-dtd42-sgml
60 BuildRequires:  docbook-dtd42-xml
61 BuildRequires:  docbook-style-xsl
62 BuildRequires:  flex >= 2.5.31
63 BuildRequires:  gettext-tools
64 BuildRequires:  gnome-doc-tools
65 %{?with_kerberos5:BuildRequires:        heimdal-devel}
66 %{?with_selinux:BuildRequires:  libselinux-devel >= 2.1.10}
67 BuildRequires:  libtool
68 BuildRequires:  libxml2-devel >= 1:2.6.23
69 BuildRequires:  libxslt-devel
70 BuildRequires:  libxslt-progs
71 BuildRequires:  ncurses-devel >= 5.0
72 %{?with_ldap:BuildRequires:     openldap-devel}
73 BuildRequires:  openssl-devel >= 0.9.7d
74 BuildRequires:  ossp-uuid-devel
75 BuildRequires:  pam-devel
76 %{?with_perl:BuildRequires:     perl-devel}
77 %if %{with python}
78 BuildRequires:  python >= 1:2.3
79 BuildRequires:  python-devel >= 1:2.3
80 BuildRequires:  python-modules >= 1:2.3
81 %endif
82 BuildRequires:  readline-devel >= 4.2
83 BuildRequires:  rpmbuild(macros) >= 1.671
84 %{?with_systemtap:BuildRequires:        systemtap-sdt-devel}
85 %{?with_tcl:BuildRequires:      tcl-devel >= 8.4.3}
86 %{?with_tests:BuildRequires:    tzdata}
87 BuildRequires:  zlib-devel
88 Requires(post,preun):   /sbin/chkconfig
89 Requires(pre):  /bin/id
90 Requires(pre):  /usr/bin/getgid
91 Requires(pre):  /usr/sbin/groupadd
92 Requires(pre):  /usr/sbin/useradd
93 Requires(triggerpostun):        /bin/id
94 Requires(triggerpostun):        /usr/sbin/usermod
95 Requires:       %{name}-clients >= %{version}-%{release}
96 Requires:       %{name}-libs = %{version}-%{release}
97 Requires:       rc-scripts >= 0.4.3.0
98 Requires:       tzdata
99 Obsoletes:      postgresql-module-plpgsql
100 Obsoletes:      postgresql-module-tsearch2
101 Obsoletes:      postgresql-server
102 Obsoletes:      postgresql-test
103 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
104
105 %define         _pgmoduledir    %{_libdir}/postgresql
106 %define         _pgsqldir       %{_datadir}/postgresql/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 de.UTF-8
147 PostgreSQL Datenbank-Managementsystem (früher als Postgres, dann als
148 Postgres95 bekannt).
149
150 PostgreSQL ist eine Verbesserung des POSTGRES-DB-Managementsystems,
151 ein DBMS-Forschungsprototyp der nächsten Generation. Während es das
152 leistungsfähige Datenmodell und die reichhaltigen Datentypen von
153 POSTGRES beibehält, ersetzt es die PostQuel-Abfragesprache durch ein
154 Subset von SQL. PostgreSQL ist gratis, der gesamte Quellcode ist
155 verfügbar.
156
157 Ein Team von Internet-Entwicklern befaßt sich mit PostgreSQL. Sie alle
158 sind auf der PostgreSQL-Entwickleradreßliste. Koordinator ist Marc G.
159 Fournier (scrappy@postgreSQL.org). Das Team ist verantwortlich für
160 alle aktuellen und künftigen Entwicklungen von PostgreSQL.
161
162 Die Autoren von PostgreSQL 1.01 waren Andrew Yu und Jolly Chen.
163 Zahlreiche andere haben zur Portierung, zum Testen, Debugging und zur
164 Verbesserung des Code beigetragen. Den Original-Postgres-Code, von dem
165 sich PostgreSQL ableitet, verdanken wir der Arbeit vieler Doktoranden,
166 Studenten und Programmierern unter der Leitung von Professor Michael
167 Stonebraker an der University of California, Berkeley.
168
169 Der ursprüngliche Name war Postgres. Als 1995 SQL-Funktionalität
170 hinzukam, wurde der Name in Postgres95 geändert. Ende 1996 schließlich
171 entschied man sich für PostgreSQL.
172
173 PostgreSQL läuft auf Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD
174 und den meisten Unix-Systemen.
175
176 %description -l es.UTF-8
177 Administrador de Banco de Datos PostgreSQL (conocido anteriormente
178 como Postgres, y después como Postgres95). PostgreSQL es una
179 continuación mejorada del Sistema Administrador de Banco de Datos
180 POSTGRES, que era un prototipo de pesquisa para un SGBD de nueva
181 generación. Mientras PostgreSQL mantiene el potente modelo de datos y
182 los varios tipos de datos del POSTGRES, substituye el lenguaje de
183 consulta PostQuel por un subconjunto extendido de la SQL. PostgreSQL
184 es libre y tiene los fuentes disponibles. El desarrollo del PostgreSQL
185 se ejecutado por un equipo de estudiosos de Internet, todos suscritos
186 en la lista de desarrollo del PostgreSQL. El coordinador actual es
187 Marc G. Fournier (scrappy@postgreSQL.org). Este equipo es ahora
188 responsable por el desarrollo actual y futuro del PostgreSQL.
189
190 %description -l fr.UTF-8
191 Système de gestion de bases de données PostgreSQL (D'abord nommé
192 Postgres, puis Postgres95).
193
194 PostgreSQL est une amélioration du système de gestion de bases de
195 données POSTGRES, un prototype de recherche de la génération suivant
196 DBMS. Tout en conservant le puissant modèle de donnée de et les types
197 de donée riches de Postgres, il remplace le langage de requêtes de
198 Postgres par un sous ensemble etendu de commandes SQL. PosrgreSQL est
199 libre, et ses sources sont disponibles.
200
201 Le développement de PostgreSQL est actuellement réalisé via internet
202 parune équipe de développeurs inscrits sur la mailing-list de
203 développement de PostgreSQL. Le coordinateur actuel est Marc G
204 Fournier (scrappy@postgreSQL.org). Cette équipe est responsable du
205 développemen actuel et à venir de PostgreSQL.
206
207 Les auteurs de PostgreSQL 1.01 étaient Andrew Yu et Jolly Chen.
208 Beaucoup d'autres ont contribué au portage, au test, au débogage et à
209 l'amélioration du code. Le code original de Postgres, duquel
210 PostgreSQL est dérivé, a été l'oeuvre d'étudiants de haut niveau, de
211 moins haut niveau, et de programmeurs travaillant sous la direction du
212 professeur Michael Stonebraker à l'université de Berkeley Californie.
213
214 Le nom original du logiciel était Postgres. Quand les fonctionnalitées
215 SQL furent ajoutées en 1995, son nom est devenu Postgres95. Il a été
216 rebaptisé PostgreSQL en 1996.
217
218 PostgreSQL tourne sur Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD,
219 et la plupart des Unix.
220
221 %description -l pl.UTF-8
222 System Zarządzania Bazą Danych PostgreSQL (dawniej znany jako
223 Postgres, następnie jako Postgres95).
224
225 PostgreSQL jest rozszerzeniem systemu zarządzania baz danych POSTGRES,
226 prototypu DBMS następnej generacji. Co prawda PostgreSQL odziedziczył
227 model danych oraz bogaty zbiór różnych typów danych, to jednak język
228 zapytań PostQuel został zastąpiony rozszerzonym SQL-em. PostgreSQL
229 jest wolnym oprogramowaniem i kody źródłowe tego oprogramowania są w
230 pełni dostępne.
231
232 System PostgreSQL jest tworzony przez zespół ludzi, którzy są zapisani
233 na listę dyskusyjną dotyczącą PostgreSQL-a. Obecnym koordynatorem jest
234 Marc G. Fournier (scrappy@postgreSQL.org). Wymieniony wyżej zespół
235 jest odpowiedzialny za aktualny i przyszły rozwój systemu PostgreSQL.
236
237 Autorami PostgreSQL-a 1.01 byli Andrew Yu oraz Jolly Chen. Wielu
238 innych pomagało przenosząc na różne platformy, testując, analizując i
239 rozszerzając kod. Oryginalny kod Postgres-a, na podstawie którego
240 PostgreSQL powstał, był wysiłkiem wielu absolwentów, studentów oraz
241 zespołu programistów, którzy pracowali pod kierunkiem profesora
242 Michaela Stonebrakera z Uniwersytetu Kalifornii w Berkeley.
243
244 Nazwa oryginalna oprogramowania tworzonego w Berkeley brzmiała
245 Postgres. W 1995 roku dodano język zapytań SQL i nazwę zmieniono na
246 Postgres95. W końcu roku 1996 nazwę ostatecznie zmieniono na
247 PostgreSQL.
248
249 PostgreSQL może być uruchomiony pod następującymi systemami: Solaris,
250 SunOS, HPUX, AIX, Linux, Irix, FreeBSD i innymi systemami uniksowymi.
251
252 %description -l pt_BR.UTF-8
253 Gerenciador de Banco de Dados PostgreSQL (conhecido anteriormente como
254 Postgres, e depois como Postgres95).
255
256 O PostgreSQL é uma continuação melhorada do Sistema Gerenciador de
257 Banco de Dados POSTGRES, que era um protótipo de pesquisa para um SGBD
258 de nova geração. Enquanto o PostgreSQL mantém o poderoso modelo de
259 dados e os vários tipos de dados do POSTGRES, ele substitui a
260 linguagem de consulta PostQuel por um subconjunto estendido da SQL. O
261 PostgreSQL é livre e tem os fontes disponíveis.
262
263 O desenvolvimento do PostgreSQL está sendo executado por uma equipe de
264 desenvolvedores da Internet, todos subscritores da lista de
265 desenvolvimento do PostgreSQL. O coordenador atual é Marc G. Fournier
266 (scrappy@postgreSQL.org). Esta equipe é agora responsável pelo
267 desenvolvimento atual e futuro do PostgreSQL.
268
269 %description -l ru.UTF-8
270 PostgreSQL - система управления базами данных (прежде известная как
271 Postgres, потом как Postgres95).
272
273 PostgreSQL - это расширенная версия системы управления базами данных
274 POSTGRES, исследовательского прототипа DBMS следующей генерации.
275 Сохраняя мощную модель данных и богатый набор типов данных POSTGRES,
276 она заменяет язык запросов PostQuel расширенным набором SQL.
277 PostgreSQL бесплатен и поставляется в виде полного комплекта исходных
278 текстов.
279
280 PostgreSQL разрабатывался командой Internet-разработчиков, подписанных
281 на список рассылки, посвященный разработке PostgreSQL. В настоящее
282 время координатором является Marc G. Fournier
283 (scrappy@postgreSQL.org). Эта команда в настоящее время отвечает за
284 все текущие и будущие разработки PostgreSQL.
285
286 Авторами PostgreSQL 1.01 были Andrew Yu и Jolly Chen. Многие внесли
287 свой вклад в портирование, тестирование, отладку и улучшение кода.
288 Оригинальный код Postgres, от которого произошел PostgreSQL, был
289 создан усилиями студентов, аспирантов и персонала, работающего под
290 руководством профессора Michael Stonebraker в University of
291 California, Berkeley.
292
293 Оригинальное название ПО в Berkeley было Postgres. Когда в 1995 году
294 была добавлена функциональность SQL, название изменилось на
295 Postgres95. В конце 1996 года оно еще раз изменилось и теперь это
296 PostgreSQL.
297
298 PostgreSQL работает на Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD
299 и большинстве других разновидностей Unix.
300
301 %description -l tr.UTF-8
302 PostgreSQL, POSTGRES'den türemiş bir veri tabanı yönetim sistemidir
303 (DBMS). Güçlü veri modeli ve zengin POSTGRES veri tiplerini
304 desteklerken SQL'in genişletilmiş bir altkümesi yerine PostQuel
305 sorgulama dilini koyar.
306
307 %description -l uk.UTF-8
308 PostgreSQL - система керування базами даних (раніш відома як Postgres,
309 потім як Postgres95).
310
311 PostgreSQL - це розширена версія системи керування базами даних
312 POSTGRES, дослідницького прототипу DBMS наступної генерації.
313 Зберігаючи потужну модель даних та багатий набір типів даних POSTGRES,
314 вона замінює мову запитів PostQuel розширеним набором SQL. PostgreSQL
315 безкоштовна та поставляється у вигляді повного комплекту вихідних
316 текстів.
317
318 PostgreSQL розробляється командою Internet-програмістів, учасників
319 списку розсилки, присвяченого розробці PostgreSQL. Наразі
320 координатором є Marc G. Fournier (scrappy@postgreSQL.org). Ця команда
321 відповідає за всі поточні та майбутні розробки PostgreSQL.
322
323 Авторами PostgreSQL 1.01 були Andrew Yu та Jolly Chen. Багато людей
324 внесли свій внесок в портування, тестування, відладку та покращення
325 коду. Оригінальний код Postgres, від якого походить PostgreSQL, був
326 створений зусиллями студентів, аспірантів та персоналу, який працював
327 під керівництвом професора Michael Stonebraker в University of
328 California, Berkeley.
329
330 Оригінальна назва програми в Berkeley була Postgres. Коли в 1995 році
331 було додано функціональність SQL, назва змінилася на Postgres95. В
332 кінці 1996 року вона ще раз змінилась і зараз це PostgreSQL.
333
334 PostgreSQL працює на Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD
335 та більшості інших різновидів Unix.
336
337 %package devel
338 Summary:        PostgreSQL development header files and libraries
339 Summary(de.UTF-8):      PostgreSQL-Entwicklungs-Header-Dateien und Libraries
340 Summary(es.UTF-8):      Archivos de inclusión y bibliotecas PostgreSQL
341 Summary(fr.UTF-8):      En-têtes et bibliothèques de développement PostgreSQL
342 Summary(pl.UTF-8):      PostgreSQL - pliki nagłówkowe i biblioteki
343 Summary(pt_BR.UTF-8):   Arquivos de inclusão e bibliotecas para desenvolvimento com o PostgreSQL
344 Summary(ru.UTF-8):      PostgreSQL - хедеры и библиотеки разработчика
345 Summary(tr.UTF-8):      PostgreSQL başlık dosyaları ve kitaplıklar
346 Summary(uk.UTF-8):      PostgreSQL - хедери та бібліотеки програміста
347 Group:          Development/Libraries
348 Requires:       %{name}-libs = %{version}-%{release}
349
350 %description devel
351 This package contains header files and libraries required to compile
352 applications that are talking directly to the PostgreSQL backend
353 server.
354
355 %description devel -l de.UTF-8
356 Dieses Paket enthält die Header-Dateien und Libraries, die zum
357 Kompilieren von Applikationen notwendig sind, die direkt mit dem
358 PostgreSQL-Backend-Server kommunizieren.
359
360 %description devel -l es.UTF-8
361 Este paquete contiene archivos de inclusión y bibliotecas requeridas
362 para compilación de aplicativos que se comunican directamente con el
363 servidor backend PostgreSQL.
364
365 %description devel -l fr.UTF-8
366 Ce package contient les fichiers d'en-tête et les bibliothéques
367 nécessaires pour compiler des applications ayant des échanges directs
368 avec le serveur du backend PostgreSQL.
369
370 %description devel -l pl.UTF-8
371 Pakiet zawiera nagłówki oraz biblioteki wymagane do kompilacji
372 aplikacji łączących się bezpośrednio z serwerem PostgreSQL.
373
374 %description devel -l pt_BR.UTF-8
375 Este pacote contém arquivos de inclusão e bibliotecas requeridas para
376 compilação de aplicativos que se comunicam diretamente com o servidor
377 backend PostgreSQL.
378
379 %description devel -l ru.UTF-8
380 Этот пакет содержит хедеры и библиотеки, необходимые для сборки
381 приложений, непосредственно взаимодействующих с сервером PostgreSQL.
382
383 %description devel -l tr.UTF-8
384 Bu paket, PostgreSQL sunucusuyla konuşacak yazılımlar geliştirmek için
385 gereken başlık dosyalarını ve kitaplıkları içerir.
386
387 %description devel -l uk.UTF-8
388 Цей пакет містить хедери та бібліотеки, необхідні для розробки
389 програм, які безпосередньо взаємодіють з сервером PostgreSQL.
390
391 %package backend-devel
392 Summary:        PostgreSQL backend development header files
393 Summary(pl.UTF-8):      PostgreSQL - pliki nagłówkowe dla backendu
394 Group:          Development/Libraries
395 Requires:       %{name}-devel = %{version}-%{release}
396 Requires:       %{name}-libs = %{version}-%{release}
397
398 %description backend-devel
399 This package contains header files required to compile functions that
400 could be loaded directly by backend
401
402 %description backend-devel -l pl.UTF-8
403 Pakiet zawiera nagłówki wymagane do kompilacji funkcji ktore moga byc
404 bezposrednio ladowane przez beckend serwera PostgreSQL.
405
406 %package clients
407 Summary:        Clients needed to access a PostgreSQL server
408 Summary(es.UTF-8):      Clientes necesarios para acceder al servidor PostgreSQL
409 Summary(pl.UTF-8):      Klienci wymagani do dostępu do serwera PostgreSQL
410 Summary(pt_BR.UTF-8):   Clientes necessários para acessar o servidor PostgreSQL
411 Summary(ru.UTF-8):      Клиентские программы, необходимые для доступа к серверу PostgreSQL
412 Summary(uk.UTF-8):      Клієнтські програми, необхідні для доступу до сервера PostgreSQL
413 Group:          Applications/Databases
414 Requires:       %{name}-libs = %{version}-%{release}
415
416 %description clients
417 This package includes only the clients needed to access an PostgreSQL
418 server. The server is included in the main package. If all you need is
419 to connect to another PostgreSQL server, the this is the only package
420 you need to install. Clients include several command-line utilities
421 you can use to manage your databases on a remote PostgreSQL server.
422
423 %description clients -l es.UTF-8
424 Este paquete incluye solamente los clientes necesarios para acceder un
425 servidor PostgreSQL. El servidor está en el paquete principal.
426
427 %description clients -l pl.UTF-8
428 Pakiet zawiera programy klienckie potrzebne dla dostępu do serwera
429 PostgreSQL oraz narzędzia do zarządzania bazami działające z linii
430 poleceń. Serwer znajduje się w głównym pakiecie.
431
432 %description clients -l pt_BR.UTF-8
433 Este pacote inclui somente os clientes necessários para acessar um
434 servidor PostgreSQL. O servidor está no pacote principal.
435
436 %description clients -l ru.UTF-8
437 Этот пакет включает только клиентские программы и библиотеки,
438 необходимые для доступа к серверу PostgreSQL. Сервер входит в главный
439 пакет. Если вам надо только работать с другим сервером PostgreSQL, это
440 единственный пакет, который вам надо установить.
441
442 Теперь пакеты с библиотеками для разных языков программирования (C,
443 C++, Perl и Tcl) разделены. Этот пакет включает только библиотеки для
444 языка C.
445
446 %description clients -l uk.UTF-8
447 Цей пакет містить тільки клієнтські програми та бібліотеки, необхідні
448 для доступу до сервера PostgreSQL. Сервер міститься в головному
449 пакеті. Якщо вам потрібно працювати з іншим сервером PostgreSQL, це
450 єдиний пакет, який вам треба встановити.
451
452 Тепер пакети з бібліотеками для різних мов програмування (C, C++, Perl
453 і Tcl) розділені. Цей пакет містить тільки бібліотеки для мови C.
454
455 %package doc
456 Summary:        Documentation for PostgreSQL
457 Summary(pl.UTF-8):      Dodatkowa dokumantacja dla PostgreSQL
458 Group:          Applications/Databases
459
460 %description doc
461 This package includes documentation and HOWTO for programmer, admin
462 etc., in HTML format.
463
464 %description doc -l pl.UTF-8
465 Pakiet ten zawiera dokumentację oraz HOWTO m.in. dla programistów,
466 administratorów w formacie HTML.
467
468 %package libs
469 Summary:        PostgreSQL libraries
470 Summary(es.UTF-8):      Biblioteca compartida del PostgreSQL
471 Summary(pl.UTF-8):      Biblioteki dzielone programu PostgreSQL
472 Summary(pt_BR.UTF-8):   Biblioteca compartilhada do PostgreSQL
473 Summary(zh_CN.UTF-8):   PostgreSQL 客户所需要的共享库
474 Group:          Libraries
475
476 %description libs
477 PostgreSQL shared libraries.
478
479 %description libs -l es.UTF-8
480 Este paquete contiene la biblioteca compartida para acceso al
481 PostgreSQL.
482
483 %description libs -l pl.UTF-8
484 Biblioteki dzielone programu PostgreSQL.
485
486 %description libs -l pt_BR.UTF-8
487 Este pacote contém a biblioteca compartilhada para acesso ao
488 PostgreSQL.
489
490 %package ecpg
491 Summary:        Embedded SQL in C interface
492 Summary(pl.UTF-8):      Interfejs wbudowanego SQL-a w język C
493 Group:          Libraries
494 Requires:       %{name}-libs = %{version}-%{release}
495
496 %description ecpg
497 Embedded SQL in C interface.
498
499 %description ecpg -l pl.UTF-8
500 Interfejs wbudowanego SQL-a w język C.
501
502 %package ecpg-devel
503 Summary:        Embedded SQL in C interface files
504 Summary(pl.UTF-8):      Pliki programistyczne interfejsu wbudowanego SQL-a w język C
505 Group:          Development/Libraries
506 Requires:       %{name}-devel = %{version}-%{release}
507 Requires:       %{name}-ecpg = %{version}-%{release}
508
509 %description ecpg-devel
510 Embedded SQL in C interface files.
511
512 %description ecpg-devel -l pl.UTF-8
513 Pliki programistyczne interfejsu wbudowanego SQL-a w język C.
514
515 %package static
516 Summary:        PostgreSQL static libraries
517 Summary(es.UTF-8):      Bibliotecas estaticas PostgreSQL
518 Summary(pl.UTF-8):      Biblioteki statyczne programu PostgreSQL
519 Summary(pt_BR.UTF-8):   Bibliotecas estáticas PostgreSQL
520 Summary(ru.UTF-8):      Статические библиотеки для программирования с PostgreSQL
521 Summary(uk.UTF-8):      Статичні бібліотеки для програмування з PostgreSQL
522 Group:          Development/Libraries
523 Requires:       %{name}-devel = %{version}-%{release}
524
525 %description static
526 PostgreSQL static libraries.
527
528 %description static -l es.UTF-8
529 Este paquete contiene bibliotecas estaticas requerida para compilación
530 de aplicativos que se comunican directamente con el servidor backend
531 PostgreSQL.
532
533 %description static -l pl.UTF-8
534 Biblioteki statyczne programu PostgreSQL.
535
536 %description static -l pt_BR.UTF-8
537 Este pacote contém as bibliotecas estáticas requeridas para compilação
538 de aplicativos que se comunicam diretamente com o servidor backend
539 PostgreSQL.
540
541 %description static -l ru.UTF-8
542 Это отдельный пакет со статическими библиотеками, которые больше не
543 входят в %{name}-devel.
544
545 %description static -l uk.UTF-8
546 Це окремий пакет зі статичними бібліотеками, які більш не входять в
547 %{name}-devel.
548
549 %package module-plperl
550 Summary:        PL/perl - PostgreSQL procedural language
551 Summary(pl.UTF-8):      PL/perl - język proceduralny bazy danych PostgreSQL
552 Group:          Applications/Databases
553 Requires:       %{name} = %{version}-%{release}
554
555 %description module-plperl
556 From PostgreSQL documentation:
557
558 Postgres supports the definition of procedural languages. In the case
559 of a function or trigger procedure defined in a procedural language,
560 the database has no built-in knowledge about how to interpret the
561 function's source text. Instead, the task is passed to a handler that
562 knows the details of the language. The handler itself is a special
563 programming language function compiled into a shared object and loaded
564 on demand.
565
566 To enable PL/Perl procedural language for your database you have to
567 run createlang command.
568
569 %description module-plperl -l pl.UTF-8
570 Z dokumentacji PostgreSQL:
571
572 Postgres ma wsparcie dla języków proceduralnych. W przypadku, kiedy
573 programista zdefiniuje procedurę wyzwalacza lub funkcję w języku
574 proceduralnym, baza danych nie ma pojęcia jak interpretować tego typu
575 funkcję. Funkcja lub procedura ta jest przekazywana do interpretera,
576 który wie jak ją wykonać. Interpreter jest odpowiednią, specjalną
577 funkcją, która jest skompilowana w obiekt dzielony i ładowany w razie
578 potrzeby.
579
580 Za pomocą polecenia createlang można dodać obsługę języka
581 proceduralnego PL/Perl dla swojej bazy danych.
582
583 %package module-plpython
584 Summary:        PL/Python - PostgreSQL procedural language
585 Summary(pl.UTF-8):      PL/Python - język proceduralny bazy danych PostgreSQL
586 Group:          Applications/Databases
587 Requires:       %{name} = %{version}-%{release}
588 %pyrequires_eq  python
589
590 %description module-plpython
591 From PostgreSQL documentation:
592
593 Postgres supports the definition of procedural languages. In the case
594 of a function or trigger procedure defined in a procedural language,
595 the database has no built-in knowledge about how to interpret the
596 function's source text. Instead, the task is passed to a handler that
597 knows the details of the language. The handler itself is a special
598 programming language function compiled into a shared object and loaded
599 on demand.
600
601 To enable PL/Python procedural language for your database you have to
602 run createlang command.
603
604 %description module-plpython -l pl.UTF-8
605 Z dokumentacji PostgreSQL:
606
607 Postgres ma wsparcie dla języków proceduralnych. W przypadku, kiedy
608 programista zdefiniuje procedurę wyzwalacza lub funkcję w języku
609 proceduralnym, baza danych nie ma pojęcia jak interpretować tego typu
610 funkcję. Funkcja lub procedura ta jest przekazywana do interpretera,
611 który wie jak ją wykonać. Interpreter jest odpowiednią, specjalną
612 funkcją, która jest skompilowana w obiekt dzielony i ładowany w razie
613 potrzeby.
614
615 Za pomocą polecenia createlang można dodać obsługę języka
616 proceduralnego PL/Python dla swojej bazy danych.
617
618 %package module-pltcl
619 Summary:        PL/Tcl - PostgreSQL procedural language
620 Summary(pl.UTF-8):      PL/Tcl - język proceduralny bazy danych PostgreSQL
621 Group:          Applications/Databases
622 Requires:       %{name} = %{version}-%{release}
623 Requires:       tcl(Pgtcl)
624
625 %description module-pltcl
626 From PostgreSQL documentation:
627
628 Postgres supports the definition of procedural languages. In the case
629 of a function or trigger procedure defined in a procedural language,
630 the database has no built-in knowledge about how to interpret the
631 function's source text. Instead, the task is passed to a handler that
632 knows the details of the language. The handler itself is a special
633 programming language function compiled into a shared object and loaded
634 on demand.
635
636 To enable PL/Tcl procedural language for your database you have to run
637 createlang command.
638
639 %description module-pltcl -l pl.UTF-8
640 Z dokumentacji PostgreSQL:
641
642 Postgres ma wsparcie dla języków proceduralnych. W przypadku, kiedy
643 programista zdefiniuje procedurę wyzwalacza lub funkcję w języku
644 proceduralnym, baza danych nie ma pojęcia jak interpretować tego typu
645 funkcję. Funkcja lub procedura ta jest przekazywana do interpretera,
646 który wie jak ją wykonać. Interpreter jest odpowiednią, specjalną
647 funkcją, która jest skompilowana w obiekt dzielony i ładowany w razie
648 potrzeby.
649
650 Za pomocą polecenia createlang można dodać obsługę języka
651 proceduralnego PL/Tcl dla swojej bazy danych.
652
653 %package module-dblink
654 Summary:        dblink module for PostgreSQL
655 Summary(pl.UTF-8):      Moduł dblink dla PostgreSQL-a
656 Group:          Applications/Databases
657 Requires:       %{name} = %{version}-%{release}
658
659 %description module-dblink
660 dblink module for PostgreSQL provides functions returning results from
661 remote database.
662
663 %description module-dblink -l pl.UTF-8
664 Moduł dblink dla PostgreSQL-a udostępnia funkcje zwracające wyniki ze
665 zdalnej bazy danych.
666
667 %package module-lo
668 Summary:        Large Objects module for PostgreSQL
669 Summary(pl.UTF-8):      Moduł Large Objects dla PostgreSQL-a
670 Group:          Applications/Databases
671 Requires:       %{name} = %{version}-%{release}
672
673 %description module-lo
674 Large Objects module for PostgreSQL adds a new data type 'lo', some
675 support functions and a trigger which handles the orphaning problem.
676
677 %description module-lo -l pl.UTF-8
678 Moduł Large Objects dla PostgreSQL-a dodaje nowy typ danych 'lo',
679 kilka funkcji pomocniczych i wyzwalacz rozwiązujący problem
680 osieroconych obiektów.
681
682 %package module-pg_trgm
683 Summary:        Trigram matching for PostgreSQL
684 Summary(pl.UTF-8):      Dopasowanie trigramowe dla PostgreSQL-a
685 Group:          Applications/Databases
686 Requires:       %{name} = %{version}-%{release}
687
688 %description module-pg_trgm
689 This module provides functions and index classes for determining the
690 similarity of text based on trigram matching.
691
692 %description module-pg_trgm -l pl.UTF-8
693 Ten moduł dostarcza funkcje i klasy do rozpoznawania podobnych tekstów
694 w oparciu o dopasowywanie trigramowe (trigram matching).
695
696 %package module-pgcrypto
697 Summary:        Cryptographic functions for PostgreSQL
698 Summary(pl.UTF-8):      Funkcje kryptograficzne dla PostgreSQL-a
699 Group:          Applications/Databases
700 Requires:       %{name} = %{version}-%{release}
701
702 %description module-pgcrypto
703 Cryptographic functions for PostgreSQL.
704
705 %description module-pgcrypto -l pl.UTF-8
706 Funkcje kryptograficzne dla PostgreSQL.
707
708 %package module-sepgsql
709 Summary:        PostgreSQL external security provider using SELinux
710 Summary(pl.UTF-8):      Zewnętrzny moduł bezpieczeństwa PostgreSQL-a wykorzystujący SELinuksa
711 Group:          Applications/Databases
712 Requires:       %{name} = %{version}-%{release}
713 Requires:       libselinux >= 2.1.10
714
715 %description module-sepgsql
716 PostgreSQL external security provider using SELinux.
717
718 %description module-sepgsql -l pl.UTF-8
719 Zewnętrzny moduł bezpieczeństwa PostgreSQL-a wykorzystujący SELinuksa.
720
721 %package module-tablefunc
722 Summary:        crosstab functions for PostgreSQL
723 Summary(pl.UTF-8):      Funkcje crosstab dla PostgreSQL-a
724 Group:          Applications/Databases
725 Requires:       %{name} = %{version}-%{release}
726
727 %description module-tablefunc
728 crosstab functions for PostgreSQL.
729
730 %description module-tablefunc -l pl.UTF-8
731 Funkcje crosstab dla PostgreSQL-a.
732
733 %package module-xml2
734 Summary:        XML-handling functions for PostgreSQL
735 Summary(pl.UTF-8):      Funkcje do obsługi XML-a dla PostgreSQL-a
736 Group:          Applications/Databases
737 Requires:       %{name} = %{version}-%{release}
738 Requires:       libxml2 >= 1:2.6.23
739
740 %description module-xml2
741 Module with XML functions provides both XPath querying and XSLT
742 functionality. There is also a new table function which allows the
743 straightforward return of multiple XML results.
744
745 %description module-xml2 -l pl.UTF-8
746 Moduł z funkcjami XML zapewniającymi obsługę zapytań XPath oraz
747 funkcjonalność XSLT. Jest także nowa funkcja tabelowa pozwalająca na
748 bezpośrednie zwracanie wielu wyników XML.
749
750 %package contrib
751 Summary:        Miscellaneous PostgreSQL contrib modules
752 Summary(pl.UTF-8):      Różne moduły dołączone do PostgreSQL-a
753 Group:          Applications/Databases
754 Requires:       %{name} = %{version}-%{release}
755
756 %description contrib
757 Miscellaneous PostgreSQL contrib modules.
758
759 %description contrib -l pl.UTF-8
760 Różne moduły dołączone do PostgreSQL-a.
761
762 %prep
763 %setup -q
764 %patch0 -p1
765 %{?with_absolute_dbpaths:%patch1 -p1}
766 %patch2 -p1
767
768 %patch4 -p1
769 %patch5 -p1
770 %patch6 -p1
771
772 # force rebuild of bison/flex files
773 find src -name \*.l -o -name \*.y | xargs touch
774
775 # Erase all CVS dirs
776 #find contrib -type d -name CVS -exec rm -rf {} \;
777
778 %build
779 %{__aclocal} -I config
780 %{__autoconf}
781 %{__autoheader}
782 %configure \
783         CFLAGS="%{rpmcflags} -DNEED_REENTRANT_FUNCS `uuid-config --cflags`" \
784         --disable-rpath \
785         --enable-depend \
786         %{?with_systemtap:--enable-dtrace} \
787         --enable-integer-datetimes \
788         --enable-nls \
789         --enable-thread-safety \
790         %{?with_bonjour:--with-bonjour} \
791         %{?with_kerberos5:--with-gssapi} \
792         %{?with_ldap:--with-ldap} \
793         --with-libxml \
794         --with-libxslt \
795         --with-openssl \
796         --with-pam \
797         %{?with_perl:--with-perl} \
798         %{?with_python:--with-python} \
799         %{?with_selinux:--with-selinux} \
800         --with-system-tzdata=%{_datadir}/zoneinfo \
801         --without-systemd \
802         %{?with_tcl:--with-tcl --with-tclconfig=%{_ulibdir}} \
803         --with-uuid=e2fs
804
805 %{__make}
806
807 for mod in %{contrib_modules}; do \
808         flags="%{rpmcflags} %{rpmcppflags} -DNEED_REENTRANT_FUNCS"
809         if [ $mod = "xml2"      ]; then flags="$flags -I/usr/include/libxml2"; fi
810         if [ $mod = "uuid-ossp" ]; then flags="$flags `uuid-config --cflags`"; fi
811         %{__make} -C contrib/$mod CFLAGS="$flags"
812 done
813
814 %{__make} -C src/tutorial \
815         NO_PGXS=1
816
817 %ifnarch sparc sparcv9 sparc64 alpha
818 %{?with_tests:%{__make} -j1 check}
819 %endif
820
821 %install
822 rm -rf $RPM_BUILD_ROOT
823 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{rc.d/init.d,sysconfig}} \
824         $RPM_BUILD_ROOT{/var/{lib/pgsql,log},%{_pgsqldir}} \
825         $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} \
826         $RPM_BUILD_ROOT%{_mandir} \
827         $RPM_BUILD_ROOT/home/services/postgres
828
829 install src/tutorial/*.sql $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
830
831 %{__make} install \
832         DESTDIR=$RPM_BUILD_ROOT
833 %{__make} -C doc/src/sgml install-man \
834         DESTDIR=$RPM_BUILD_ROOT
835
836 %if %{with perl}
837 %{__make} install -C src/pl/plperl \
838         DESTDIR=$RPM_BUILD_ROOT
839 %endif
840
841 for mod in %{contrib_modules}; do \
842         %{__make} -C contrib/$mod install \
843                 DESTDIR=$RPM_BUILD_ROOT
844 done
845
846 touch $RPM_BUILD_ROOT/var/log/pgsql
847
848 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/postgresql
849 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/postgresql
850
851 install -d howto
852 tar zxf %{SOURCE2} -C howto
853
854 %if %{with python}
855 %py_comp $RPM_BUILD_ROOT%{py_libdir}
856 %py_ocomp $RPM_BUILD_ROOT%{py_libdir}
857 %endif
858
859 # find locales
860 for f in libpq5 pgscripts postgres psql initdb ecpg ecpglib6 \
861         plpgsql %{?with_perl:plperl} %{?with_python:plpython} \
862         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
863         %find_lang $f-%{mver}
864 done
865 # merge locales
866 merge_lang() {
867         cat $(for f in $@; do echo ${f}-%{mver}.lang ; done)
868 }
869 merge_lang pgscripts postgres plpgsql \
870         pg_basebackup pg_controldata pg_resetwal pg_rewind pg_upgrade pg_test_fsync pg_test_timing pg_waldump > main.lang
871 merge_lang psql initdb \
872         pg_archivecleanup pg_ctl pg_dump > clients.lang
873 merge_lang ecpg ecpglib6 > ecpg.lang
874
875 %if %{with tcl}
876 %find_lang pltcl-%{mver}
877 %endif
878
879 %if %{with selinux}
880 %{__mv} $RPM_BUILD_ROOT{%{_datadir}/postgresql/contrib,%{_pgsqldir}}/sepgsql.sql
881 %endif
882
883 cp -p src/pl/plperl/ppport.h $RPM_BUILD_ROOT%{_includedir}/postgresql/server/
884
885 # package it...?  nah, why bother.
886 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/doc/postgresql/html
887
888 %clean
889 rm -rf $RPM_BUILD_ROOT
890
891 %pre
892 PG_DB_CLUSTERS=""
893 if [ -f /etc/sysconfig/postgresql ]; then
894         . /etc/sysconfig/postgresql
895         if [ -z "$PG_DB_CLUSTERS" -a -n "$POSTGRES_DATA_DIR" ]; then
896                 PG_DB_CLUSTERS="$POSTGRES_DATA_DIR"
897         fi
898 fi
899 foundold=0
900 for pgdir in $PG_DB_CLUSTERS; do
901         if [ -f $pgdir/PG_VERSION ]; then
902                 if [ $(cat $pgdir/PG_VERSION) != '%{mver}' ]; then
903                         echo "Found database(s) in older, incompatible format in cluster $pgdir."
904                         foundold=1
905                 fi
906         fi
907 done
908 if [ "$foundold" = "1" ]; then
909         echo
910         echo "Dump all data from clusters mentioned above (using pg_dump or pg_dumpall)"
911         echo "and clean (or rename) those directories; then upgrade postgresql and"
912         echo "restore all data (using pg_restore or psql)."
913         echo "Remember to stop the daemon before upgrading!"
914         echo
915         echo "Alternatively you can use pg_upgrade for 8.3+ online upgrade with"
916         echo "some restrictions: http://www.postgresql.org/docs/10.0/static/pgupgrade.html"
917         echo
918         echo "Warning for upgrade from version *before* 7.2."
919         echo "Please note, that postgresql module path changed from"
920         echo "%{_libdir}/pgsql/module to %{_libdir}/postgresql. Change the path"
921         echo "in dump file before restore."
922         echo
923         echo "Warning for upgrade from version *before* 7.3."
924         echo "Reading following webpage is encouraged:"
925         echo "http://www.ca.postgresql.org/docs/momjian/upgrade_tips_7.3"
926         exit 1
927 fi
928 %groupadd -g 88 -r postgres
929 %useradd -M -o -r -u 88 -d /home/services/postgres -s /bin/sh -g postgres -c "PostgreSQL Server" postgres
930
931 %triggerpostun -- %{name} < 7.2-2
932 if [ -n "`/bin/id -u postgres 2>/dev/null`" ]; then
933         /usr/sbin/usermod -d /home/services/postgres postgres
934 fi
935
936 %post
937 /sbin/chkconfig --add postgresql
938 %service postgresql restart "postgresql server"
939
940 %preun
941 if [ "$1" = "0" ]; then
942         %service postgresql stop
943         /sbin/chkconfig --del postgresql
944 fi
945
946 %post   libs -p /sbin/ldconfig
947 %postun libs -p /sbin/ldconfig
948
949 %post   ecpg -p /sbin/ldconfig
950 %postun ecpg -p /sbin/ldconfig
951
952 %files -f main.lang
953 %defattr(644,root,root,755)
954 %doc COPYRIGHT README HISTORY doc/{bug.template,KNOWN_BUGS,MISSING_FEATURES,TODO}
955 %attr(754,root,root) /etc/rc.d/init.d/postgresql
956 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/postgresql
957
958 %attr(755,root,root) %{_bindir}/initdb
959 %attr(755,root,root) %{_bindir}/pg_basebackup
960 %attr(755,root,root) %{_bindir}/pg_controldata
961 %attr(755,root,root) %{_bindir}/pg_ctl
962 %attr(755,root,root) %{_bindir}/pg_resetwal
963 %attr(755,root,root) %{_bindir}/pg_receivewal
964 %attr(755,root,root) %{_bindir}/pg_recvlogical
965 %attr(755,root,root) %{_bindir}/pg_rewind
966 %attr(755,root,root) %{_bindir}/pg_test_fsync
967 %attr(755,root,root) %{_bindir}/pg_test_timing
968 %attr(755,root,root) %{_bindir}/pg_upgrade
969 %attr(755,root,root) %{_bindir}/pg_waldump
970 %attr(755,root,root) %{_bindir}/pgbench
971 %attr(755,root,root) %{_bindir}/postgres
972 %attr(755,root,root) %{_bindir}/postmaster
973
974 %attr(755,root,root) %{_pgmoduledir}/ascii_and_mic.so
975 %attr(755,root,root) %{_pgmoduledir}/cyrillic_and_mic.so
976 %attr(755,root,root) %{_pgmoduledir}/dict_int.so
977 %attr(755,root,root) %{_pgmoduledir}/dict_snowball.so
978 %attr(755,root,root) %{_pgmoduledir}/dict_xsyn.so
979 %attr(755,root,root) %{_pgmoduledir}/euc*.so
980 %attr(755,root,root) %{_pgmoduledir}/latin2_and_win1250.so
981 %attr(755,root,root) %{_pgmoduledir}/latin_and_mic.so
982 %attr(755,root,root) %{_pgmoduledir}/libpqwalreceiver.so
983 %attr(755,root,root) %{_pgmoduledir}/pgoutput.so
984 %attr(755,root,root) %{_pgmoduledir}/plpgsql.so
985 %attr(755,root,root) %{_pgmoduledir}/utf8_and_*.so
986
987 %dir %{_pgsqldir}
988 %{_pgsqldir}/plpgsql--*.sql
989 %{_pgsqldir}/plpgsql.control
990
991 %dir %{_datadir}/postgresql
992 %{_datadir}/postgresql/*.bki
993 %{_datadir}/postgresql/*.sample
994 %{_datadir}/postgresql/*.description
995 %{_datadir}/postgresql/*.shdescription
996 %{_datadir}/postgresql/*.sql
997 %{_datadir}/postgresql/*.txt
998 %{_datadir}/postgresql/timezonesets
999 %{_datadir}/postgresql/tsearch_data
1000
1001 %dir %{_datadir}/postgresql/contrib
1002
1003 %attr(700,postgres,postgres) /home/services/postgres
1004 %attr(700,postgres,postgres) %dir /var/lib/pgsql
1005 %attr(640,postgres,postgres) %config(noreplace) %verify(not md5 mtime size) /var/log/pgsql
1006
1007 %{_mandir}/man1/initdb.1*
1008 %{_mandir}/man1/pg_basebackup.1*
1009 %{_mandir}/man1/pg_controldata.1*
1010 %{_mandir}/man1/pg_ctl.1*
1011 %{_mandir}/man1/pg_resetwal.1*
1012 %{_mandir}/man1/pg_receivewal.1*
1013 %{_mandir}/man1/pg_recvlogical.1*
1014 %{_mandir}/man1/pg_rewind.1*
1015 %{_mandir}/man1/pg_waldump.1*
1016 %{_mandir}/man1/pg_test_fsync.1*
1017 %{_mandir}/man1/pg_test_timing.1*
1018 %{_mandir}/man1/pg_upgrade.1*
1019 %{_mandir}/man1/pgbench.1*
1020 %{_mandir}/man1/postgres.1*
1021 %{_mandir}/man1/postmaster.1*
1022
1023 %files doc
1024 %defattr(644,root,root,755)
1025 %doc doc/src/sgml/html howto
1026 %{_examplesdir}/%{name}-%{version}
1027
1028 %files libs -f libpq5-%{mver}.lang
1029 %defattr(644,root,root,755)
1030 %attr(755,root,root) %{_libdir}/libpq.so.*.*
1031 %attr(755,root,root) %ghost %{_libdir}/libpq.so.5
1032 %dir %{_pgmoduledir}
1033
1034 %files ecpg -f ecpg.lang
1035 %defattr(644,root,root,755)
1036 %attr(755,root,root) %{_bindir}/ecpg
1037 %attr(755,root,root) %{_libdir}/libecpg.so.*.*
1038 %attr(755,root,root) %ghost %{_libdir}/libecpg.so.6
1039 %attr(755,root,root) %{_libdir}/libecpg_compat.so.*.*
1040 %attr(755,root,root) %ghost %{_libdir}/libecpg_compat.so.3
1041 %attr(755,root,root) %{_libdir}/libpgtypes.so.*.*
1042 %attr(755,root,root) %ghost %{_libdir}/libpgtypes.so.3
1043 %{_mandir}/man1/ecpg.1*
1044
1045 %files ecpg-devel
1046 %defattr(644,root,root,755)
1047 %attr(755,root,root) %{_libdir}/libecpg.so
1048 %attr(755,root,root) %{_libdir}/libecpg_compat.so
1049 %attr(755,root,root) %{_libdir}/libpgtypes.so
1050 %{_includedir}/ecpg*
1051 %{_pkgconfigdir}/libecpg.pc
1052 %{_pkgconfigdir}/libecpg_compat.pc
1053 %{_pkgconfigdir}/libpgtypes.pc
1054
1055 %files devel -f pg_config-%{mver}.lang
1056 %defattr(644,root,root,755)
1057 %attr(755,root,root) %{_bindir}/pg_config
1058 %attr(755,root,root) %{_libdir}/libpq.so
1059 %dir %{_includedir}/postgresql
1060 %{_includedir}/libpq-events.h
1061 %{_includedir}/libpq-fe.h
1062 %{_includedir}/pg_config.h
1063 %{_includedir}/pg_config_ext.h
1064 %{_includedir}/pg_config_manual.h
1065 %{_includedir}/pg_config_os.h
1066 %{_includedir}/postgres_ext.h
1067 %dir %{_includedir}/postgresql/internal
1068 %{_includedir}/postgresql/internal/c.h
1069 %{_includedir}/postgresql/internal/libpq-int.h
1070 %{_includedir}/postgresql/internal/port.h
1071 %{_includedir}/postgresql/internal/postgres_fe.h
1072 %{_includedir}/postgresql/internal/pqexpbuffer.h
1073 %{_includedir}/postgresql/internal/libpq
1074 %{_includedir}/libpq
1075 %{_pkgconfigdir}/libpq.pc
1076 %{_mandir}/man1/pg_config.1*
1077
1078 %files backend-devel
1079 %defattr(644,root,root,755)
1080 %{_includedir}/postgresql/server
1081 %dir %{_pgmoduledir}/pgxs
1082 %attr(755,root,root) %{_pgmoduledir}/pgxs/config
1083 %{_pgmoduledir}/pgxs/src
1084 %{_mandir}/man3/SPI_*.3*
1085
1086 %files static
1087 %defattr(644,root,root,755)
1088 %{_libdir}/libecpg.a
1089 %{_libdir}/libecpg_compat.a
1090 %{_libdir}/libpq.a
1091 %{_libdir}/libpgcommon.a
1092 %{_libdir}/libpgfeutils.a
1093 %{_libdir}/libpgtypes.a
1094 %{_libdir}/libpgport.a
1095
1096 %files clients -f clients.lang
1097 %defattr(644,root,root,755)
1098 %attr(755,root,root) %{_bindir}/clusterdb
1099 %attr(755,root,root) %{_bindir}/createdb
1100 %attr(755,root,root) %{_bindir}/createuser
1101 %attr(755,root,root) %{_bindir}/dropdb
1102 %attr(755,root,root) %{_bindir}/dropuser
1103 %attr(755,root,root) %{_bindir}/pg_archivecleanup
1104 %attr(755,root,root) %{_bindir}/pg_dump
1105 %attr(755,root,root) %{_bindir}/pg_dumpall
1106 %attr(755,root,root) %{_bindir}/pg_isready
1107 %attr(755,root,root) %{_bindir}/pg_restore
1108 %attr(755,root,root) %{_bindir}/psql
1109 %attr(755,root,root) %{_bindir}/reindexdb
1110 %attr(755,root,root) %{_bindir}/vacuumdb
1111
1112 %{_mandir}/man1/clusterdb.1*
1113 %{_mandir}/man1/createdb.1*
1114 %{_mandir}/man1/createuser.1*
1115 %{_mandir}/man1/dropdb.1*
1116 %{_mandir}/man1/dropuser.1*
1117 %{_mandir}/man1/pg_archivecleanup.1*
1118 %{_mandir}/man1/pg_dump.1*
1119 %{_mandir}/man1/pg_dumpall.1*
1120 %{_mandir}/man1/pg_isready.1*
1121 %{_mandir}/man1/pg_restore.1*
1122 %{_mandir}/man1/psql.1*
1123 %{_mandir}/man1/reindexdb.1*
1124 %{_mandir}/man1/vacuumdb.1*
1125 %{_mandir}/man7/*.7*
1126
1127 %if %{with perl}
1128 %files module-plperl -f plperl-%{mver}.lang
1129 %defattr(644,root,root,755)
1130 %attr(755,root,root) %{_pgmoduledir}/plperl.so
1131 %{_pgsqldir}/plperl--*.sql
1132 %{_pgsqldir}/plperl.control
1133 %{_pgsqldir}/plperlu--*.sql
1134 %{_pgsqldir}/plperlu.control
1135 %endif
1136
1137 %if %{with python}
1138 %files module-plpython -f plpython-%{mver}.lang
1139 %defattr(644,root,root,755)
1140 %attr(755,root,root) %{_pgmoduledir}/plpython2.so
1141 %{_pgsqldir}/plpython*--*.sql
1142 %{_pgsqldir}/plpython*.control
1143 %endif
1144
1145 %if %{with tcl}
1146 %files module-pltcl -f pltcl-%{mver}.lang
1147 %defattr(644,root,root,755)
1148 %attr(755,root,root) %{_pgmoduledir}/pltcl.so
1149 %{_pgsqldir}/pltcl*--*.sql
1150 %{_pgsqldir}/pltcl*.control
1151 %endif
1152
1153 %files module-dblink
1154 %defattr(644,root,root,755)
1155 %attr(755,root,root) %{_pgmoduledir}/dblink.so
1156 %{_pgsqldir}/dblink--*.sql
1157 %{_pgsqldir}/dblink.control
1158 %{_mandir}/man3/dblink*.3*
1159
1160 %files module-lo
1161 %defattr(644,root,root,755)
1162 %attr(755,root,root) %{_pgmoduledir}/lo.so
1163 %{_pgsqldir}/lo--*.sql
1164 %{_pgsqldir}/lo.control
1165
1166 %files module-pg_trgm
1167 %defattr(644,root,root,755)
1168 %attr(755,root,root) %{_pgmoduledir}/pg_trgm.so
1169 %{_pgsqldir}/pg_trgm--*.sql
1170 %{_pgsqldir}/pg_trgm.control
1171
1172 %files module-pgcrypto
1173 %defattr(644,root,root,755)
1174 %attr(755,root,root) %{_pgmoduledir}/pgcrypto.so
1175 %{_pgsqldir}/pgcrypto--*.sql
1176 %{_pgsqldir}/pgcrypto.control
1177
1178 %if %{with selinux}
1179 %files module-sepgsql
1180 %defattr(644,root,root,755)
1181 %attr(755,root,root) %{_pgmoduledir}/sepgsql.so
1182 %{_pgsqldir}/sepgsql.sql
1183 %endif
1184
1185 %files module-tablefunc
1186 %defattr(644,root,root,755)
1187 %attr(755,root,root) %{_pgmoduledir}/tablefunc.so
1188 %{_pgsqldir}/*tablefunc--*.sql
1189 %{_pgsqldir}/*tablefunc.control
1190
1191 %files module-xml2
1192 %defattr(644,root,root,755)
1193 %attr(755,root,root) %{_pgmoduledir}/pgxml.so
1194 %{_pgsqldir}/xml2--*.sql
1195 %{_pgsqldir}/xml2.control
1196
1197 %files contrib
1198 %defattr(644,root,root,755)
1199 %doc contrib/README
1200 %attr(755,root,root) %{_bindir}/oid2name
1201 %attr(755,root,root) %{_bindir}/pg_standby
1202 %attr(755,root,root) %{_bindir}/vacuumlo
1203 %attr(755,root,root) %{_pgmoduledir}/_int.so
1204 %attr(755,root,root) %{_pgmoduledir}/adminpack.so
1205 %attr(755,root,root) %{_pgmoduledir}/auth_delay.so
1206 %attr(755,root,root) %{_pgmoduledir}/auto_explain.so
1207 %attr(755,root,root) %{_pgmoduledir}/bloom.so
1208 %attr(755,root,root) %{_pgmoduledir}/btree_gin.so
1209 %attr(755,root,root) %{_pgmoduledir}/btree_gist.so
1210 %attr(755,root,root) %{_pgmoduledir}/chkpass.so
1211 %attr(755,root,root) %{_pgmoduledir}/citext.so
1212 %attr(755,root,root) %{_pgmoduledir}/cube.so
1213 %attr(755,root,root) %{_pgmoduledir}/earthdistance.so
1214 %attr(755,root,root) %{_pgmoduledir}/file_fdw.so
1215 %attr(755,root,root) %{_pgmoduledir}/fuzzystrmatch.so
1216 %attr(755,root,root) %{_pgmoduledir}/hstore.so
1217 %attr(755,root,root) %{_pgmoduledir}/isn.so
1218 %attr(755,root,root) %{_pgmoduledir}/ltree.so
1219 %attr(755,root,root) %{_pgmoduledir}/pageinspect.so
1220 %attr(755,root,root) %{_pgmoduledir}/passwordcheck.so
1221 %attr(755,root,root) %{_pgmoduledir}/pg_buffercache.so
1222 %attr(755,root,root) %{_pgmoduledir}/pg_freespacemap.so
1223 %attr(755,root,root) %{_pgmoduledir}/pg_prewarm.so
1224 %attr(755,root,root) %{_pgmoduledir}/pg_stat_statements.so
1225 %attr(755,root,root) %{_pgmoduledir}/pg_visibility.so
1226 %attr(755,root,root) %{_pgmoduledir}/pgrowlocks.so
1227 %attr(755,root,root) %{_pgmoduledir}/pgstattuple.so
1228 %attr(755,root,root) %{_pgmoduledir}/postgres_fdw.so
1229 %attr(755,root,root) %{_pgmoduledir}/seg.so
1230 %attr(755,root,root) %{_pgmoduledir}/sslinfo.so
1231 %attr(755,root,root) %{_pgmoduledir}/tcn.so
1232 %attr(755,root,root) %{_pgmoduledir}/tsm_system_rows.so
1233 %attr(755,root,root) %{_pgmoduledir}/tsm_system_time.so
1234 %attr(755,root,root) %{_pgmoduledir}/unaccent.so
1235 %attr(755,root,root) %{_pgmoduledir}/uuid-ossp.so
1236 %{_pgsqldir}/adminpack--*.sql
1237 %{_pgsqldir}/adminpack.control
1238 %{_pgsqldir}/bloom--*.sql
1239 %{_pgsqldir}/bloom.control
1240 %{_pgsqldir}/btree_gin--*.sql
1241 %{_pgsqldir}/btree_gin.control
1242 %{_pgsqldir}/btree_gist--*.sql
1243 %{_pgsqldir}/btree_gist.control
1244 %{_pgsqldir}/chkpass--*.sql
1245 %{_pgsqldir}/chkpass.control
1246 %{_pgsqldir}/citext--*.sql
1247 %{_pgsqldir}/citext.control
1248 %{_pgsqldir}/cube--*.sql
1249 %{_pgsqldir}/cube.control
1250 %{_pgsqldir}/dict_int--*.sql
1251 %{_pgsqldir}/dict_int.control
1252 %{_pgsqldir}/dict_xsyn--*.sql
1253 %{_pgsqldir}/dict_xsyn.control
1254 %{_pgsqldir}/earthdistance--*.sql
1255 %{_pgsqldir}/earthdistance.control
1256 %{_pgsqldir}/file_fdw--*.sql
1257 %{_pgsqldir}/file_fdw.control
1258 %{_pgsqldir}/fuzzystrmatch--*.sql
1259 %{_pgsqldir}/fuzzystrmatch.control
1260 %{_pgsqldir}/hstore--*.sql
1261 %{_pgsqldir}/hstore.control
1262 %{_pgsqldir}/intarray--*.sql
1263 %{_pgsqldir}/intarray.control
1264 %{_pgsqldir}/intagg--*.sql
1265 %{_pgsqldir}/intagg.control
1266 %{_pgsqldir}/isn--*.sql
1267 %{_pgsqldir}/isn.control
1268 %{_pgsqldir}/ltree--*.sql
1269 %{_pgsqldir}/ltree.control
1270 %{_pgsqldir}/pageinspect--*.sql
1271 %{_pgsqldir}/pageinspect.control
1272 %{_pgsqldir}/pg_buffercache--*.sql
1273 %{_pgsqldir}/pg_buffercache.control
1274 %{_pgsqldir}/pg_freespacemap--*.sql
1275 %{_pgsqldir}/pg_freespacemap.control
1276 %{_pgsqldir}/pg_prewarm--*.sql
1277 %{_pgsqldir}/pg_prewarm.control
1278 %{_pgsqldir}/pg_stat_statements--*.sql
1279 %{_pgsqldir}/pg_stat_statements.control
1280 %{_pgsqldir}/pg_visibility--*.sql
1281 %{_pgsqldir}/pg_visibility.control
1282 %{_pgsqldir}/pgrowlocks--*.sql
1283 %{_pgsqldir}/pgrowlocks.control
1284 %{_pgsqldir}/pgstattuple--*.sql
1285 %{_pgsqldir}/pgstattuple.control
1286 %{_pgsqldir}/postgres_fdw--*.sql
1287 %{_pgsqldir}/postgres_fdw.control
1288 %{_pgsqldir}/seg--*.sql
1289 %{_pgsqldir}/seg.control
1290 %{_pgsqldir}/sslinfo--*.sql
1291 %{_pgsqldir}/sslinfo.control
1292 %{_pgsqldir}/tcn--*.sql
1293 %{_pgsqldir}/tcn.control
1294 %{_pgsqldir}/tsm_system_rows--*.sql
1295 %{_pgsqldir}/tsm_system_rows.control
1296 %{_pgsqldir}/tsm_system_time--*.sql
1297 %{_pgsqldir}/tsm_system_time.control
1298 %{_pgsqldir}/unaccent--*.sql
1299 %{_pgsqldir}/unaccent.control
1300 %{_pgsqldir}/uuid-ossp--*.sql
1301 %{_pgsqldir}/uuid-ossp.control
1302 %if %{with perl}
1303 %attr(755,root,root) %{_pgmoduledir}/hstore_plperl.so
1304 %{_pgsqldir}/hstore_plperl--*.sql
1305 %{_pgsqldir}/hstore_plperl.control
1306 %{_pgsqldir}/hstore_plperlu--*.sql
1307 %{_pgsqldir}/hstore_plperlu.control
1308 %endif
1309 %if %{with python}
1310 %attr(755,root,root) %{_pgmoduledir}/hstore_plpython2.so
1311 %attr(755,root,root) %{_pgmoduledir}/ltree_plpython2.so
1312 %{_pgsqldir}/hstore_plpythonu--*.sql
1313 %{_pgsqldir}/hstore_plpythonu.control
1314 %{_pgsqldir}/hstore_plpython2u--*.sql
1315 %{_pgsqldir}/hstore_plpython2u.control
1316 %{_pgsqldir}/hstore_plpython3u--*.sql
1317 %{_pgsqldir}/hstore_plpython3u.control
1318 %{_pgsqldir}/ltree_plpythonu--*.sql
1319 %{_pgsqldir}/ltree_plpythonu.control
1320 %{_pgsqldir}/ltree_plpython2u--*.sql
1321 %{_pgsqldir}/ltree_plpython2u.control
1322 %{_pgsqldir}/ltree_plpython3u--*.sql
1323 %{_pgsqldir}/ltree_plpython3u.control
1324 %endif
1325 %{_mandir}/man1/oid2name.1*
1326 %{_mandir}/man1/pg_standby.1*
1327 %{_mandir}/man1/vacuumlo.1*