]> TLD Linux GIT Repositories - packages/postgresql.git/blob - postgresql.spec
- updated to 9.5.4
[packages/postgresql.git] / postgresql.spec
1 # TODO:
2 # - python 3 and python 2 subpackages?
3 # - think about pg_upgrade integration (sysconfig variable to allow upgrade from 8.3+ without dump/restore?)
4 #   create postgresqlM.N packages with parts of old pgsql required by pg_upgrade
5 # - test init script (db initialization)
6 #
7 # Conditional build:
8 %bcond_without  tests                   # disable testing
9 %bcond_without  tcl                     # disable Tcl support
10 %bcond_without  kerberos5               # disable kerberos5 support
11 %bcond_without  perl                    # disable Perl support
12 %bcond_without  python                  # disable Python support
13 %bcond_with     bonjour                 # Bonjour/DNS_SD support
14 %bcond_without  ldap                    # disable LDAP support
15 %bcond_without  selinux                 # sepgsql contrib module
16 %bcond_with     systemtap               # systemtap/dtrace probes
17 %bcond_with     absolute_dbpaths        # enable absolute paths to create database
18                                         # (disabled by default because it is a security risk)
19 #
20
21 %define beta %{nil}
22 %define mver 9.5
23
24 Summary:        PostgreSQL Data Base Management System
25 Summary(de.UTF-8):      PostgreSQL Datenbankverwaltungssystem
26 Summary(es.UTF-8):      Gestor de Banco de Datos PostgreSQL
27 Summary(fr.UTF-8):      Sysème de gestion de base de données PostgreSQL
28 Summary(pl.UTF-8):      PostgreSQL - system bazodanowy
29 Summary(pt_BR.UTF-8):   Gerenciador de Banco de Dados PostgreSQL
30 Summary(ru.UTF-8):      PostgreSQL - система управления базами данных
31 Summary(tr.UTF-8):      Veri Tabanı Yönetim Sistemi
32 Summary(uk.UTF-8):      PostgreSQL - система керування базами даних
33 Summary(zh_CN.UTF-8):   PostgreSQL 客户端程序和库文件
34 Name:           postgresql
35 Version:        %{mver}.4
36 Release:        1
37 License:        BSD
38 Group:          Applications/Databases
39 Source0:        ftp://ftp.postgresql.org/pub/source/v%{version}/%{name}-%{version}.tar.bz2
40 # Source0-md5:  ad36fcf624748b8ed67783ad04529f43
41 Source1:        %{name}.init
42 Source2:        pgsql-Database-HOWTO-html.tar.gz
43 # Source2-md5:  5b656ddf1db41965761f85204a14398e
44 Source3:        %{name}.sysconfig
45 Patch0:         %{name}-conf.patch
46 Patch1:         %{name}-absolute_dbpaths.patch
47 Patch2:         %{name}-ecpg-includedir.patch
48 Patch3:         %{name}-ac_version.patch
49 Patch4:         %{name}-disable_horology_test.patch
50 Patch5:         %{name}-heimdal.patch
51 Patch6:         %{name}-ossp_uuid.patch
52 Patch7:         %{name}-link.patch
53 URL:            http://www.postgresql.org/
54 BuildRequires:  autoconf
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 # dummy_seclabel, spi, test_parser, 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_buffercache pg_freespacemap pg_prewarm pg_standby pg_stat_statements pg_trgm 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 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 %patch3 -p1
768 %patch4 -p1
769 %patch5 -p1
770 %patch6 -p1
771 %patch7 -p1
772
773 # force rebuild of bison/flex files
774 find src -name \*.l -o -name \*.y | xargs touch
775
776 # Erase all CVS dirs
777 #find contrib -type d -name CVS -exec rm -rf {} \;
778
779 %build
780 %{__aclocal} -I config
781 %{__autoconf}
782 %{__autoheader}
783 %configure \
784         CFLAGS="%{rpmcflags} -DNEED_REENTRANT_FUNCS `uuid-config --cflags`" \
785         --disable-rpath \
786         --enable-depend \
787         %{?with_systemtap:--enable-dtrace} \
788         --enable-integer-datetimes \
789         --enable-nls \
790         --enable-thread-safety \
791         %{?with_bonjour:--with-bonjour} \
792         %{?with_kerberos5:--with-gssapi} \
793         %{?with_ldap:--with-ldap} \
794         --with-libxml \
795         --with-libxslt \
796         --with-openssl \
797         --with-pam \
798         %{?with_perl:--with-perl} \
799         %{?with_python:--with-python} \
800         %{?with_selinux:--with-selinux} \
801         --with-system-tzdata=%{_datadir}/zoneinfo \
802         %{?with_tcl:--with-tcl --with-tclconfig=%{_ulibdir}} \
803         --with-uuid=ossp
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 pg_basebackup pg_controldata pg_dump pg_resetxlog pg_rewind pgscripts postgres psql initdb pg_ctl pg_config plpgsql ecpg ecpglib6 %{?with_perl:plperl} plpgsql %{?with_python: plpython}; do
861         %find_lang $f-%{mver}
862 done
863 # merge locales
864 cat pgscripts-%{mver}.lang pg_resetxlog-%{mver}.lang \
865     postgres-%{mver}.lang pg_controldata-%{mver}.lang \
866     plpgsql-%{mver}.lang pg_rewind-%{mver}.lang \
867     pg_basebackup-%{mver}.lang \
868     > main-%{mver}.lang
869 cat pg_dump-%{mver}.lang psql-%{mver}.lang initdb-%{mver}.lang \
870     pg_ctl-%{mver}.lang > clients-%{mver}.lang
871 cat ecpg-%{mver}.lang ecpglib6-%{mver}.lang > ecpg.lang
872
873 %if %{with tcl}
874 %find_lang pltcl-%{mver}
875 mv $RPM_BUILD_ROOT{%{_datadir}/postgresql,%{_pgsqldir}}/unknown.pltcl
876 %endif
877
878 %if %{with selinux}
879 mv $RPM_BUILD_ROOT{%{_datadir}/postgresql/contrib,%{_pgsqldir}}/sepgsql.sql
880 %endif
881
882 install src/pl/plperl/ppport.h $RPM_BUILD_ROOT%{_includedir}/postgresql/server/
883
884 # package it...?  nah, why bother.
885 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/doc/postgresql/html
886
887 %clean
888 rm -rf $RPM_BUILD_ROOT
889
890 %pre
891 PG_DB_CLUSTERS=""
892 if [ -f /etc/sysconfig/postgresql ]; then
893         . /etc/sysconfig/postgresql
894         if [ -z "$PG_DB_CLUSTERS" -a -n "$POSTGRES_DATA_DIR" ]; then
895                 PG_DB_CLUSTERS="$POSTGRES_DATA_DIR"
896         fi
897 fi
898 foundold=0
899 for pgdir in $PG_DB_CLUSTERS; do
900         if [ -f $pgdir/PG_VERSION ]; then
901                 if [ $(cat $pgdir/PG_VERSION) != '%{mver}' ]; then
902                         echo "Found database(s) in older, incompatible format in cluster $pgdir."
903                         foundold=1
904                 fi
905         fi
906 done
907 if [ "$foundold" = "1" ]; then
908         echo
909         echo "Dump all data from clusters mentioned above (using pg_dump or pg_dumpall)"
910         echo "and clean (or rename) those directories; then upgrade postgresql and"
911         echo "restore all data (using pg_restore or psql)."
912         echo "Remember to stop the daemon before upgrading!"
913         echo
914         echo "Alternatively you can use pg_upgrade for 8.3+ online upgrade with"
915         echo "some restrictions: http://www.postgresql.org/docs/9.0/static/pgupgrade.html"
916         echo
917         echo "Warning for upgrade from version *before* 7.2."
918         echo "Please note, that postgresql module path changed from"
919         echo "%{_libdir}/pgsql/module to %{_libdir}/postgresql. Change the path"
920         echo "in dump file before restore."
921         echo
922         echo "Warning for upgrade from version *before* 7.3."
923         echo "Reading following webpage is encouraged:"
924         echo "http://www.ca.postgresql.org/docs/momjian/upgrade_tips_7.3"
925         exit 1
926 fi
927 %groupadd -g 88 -r postgres
928 %useradd -M -o -r -u 88 -d /home/services/postgres -s /bin/sh -g postgres -c "PostgreSQL Server" postgres
929
930 %triggerpostun -- %{name} < 7.2-2
931 if [ -n "`/bin/id -u postgres 2>/dev/null`" ]; then
932         /usr/sbin/usermod -d /home/services/postgres postgres
933 fi
934
935 %post
936 /sbin/chkconfig --add postgresql
937 %service postgresql restart "postgresql server"
938
939 %preun
940 if [ "$1" = "0" ]; then
941         %service postgresql stop
942         /sbin/chkconfig --del postgresql
943 fi
944
945 %post   libs -p /sbin/ldconfig
946 %postun libs -p /sbin/ldconfig
947
948 %post   ecpg -p /sbin/ldconfig
949 %postun ecpg -p /sbin/ldconfig
950
951 %files -f main-%{mver}.lang
952 %defattr(644,root,root,755)
953 %doc COPYRIGHT README HISTORY doc/{bug.template,KNOWN_BUGS,MISSING_FEATURES,TODO}
954 %attr(754,root,root) /etc/rc.d/init.d/postgresql
955 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/postgresql
956
957 %attr(755,root,root) %{_bindir}/initdb
958 %attr(755,root,root) %{_bindir}/pg_basebackup
959 %attr(755,root,root) %{_bindir}/pg_controldata
960 %attr(755,root,root) %{_bindir}/pg_ctl
961 %attr(755,root,root) %{_bindir}/pg_resetxlog
962 %attr(755,root,root) %{_bindir}/pg_receivexlog
963 %attr(755,root,root) %{_bindir}/pg_recvlogical
964 %attr(755,root,root) %{_bindir}/pg_rewind
965 %attr(755,root,root) %{_bindir}/pg_test_fsync
966 %attr(755,root,root) %{_bindir}/pg_test_timing
967 %attr(755,root,root) %{_bindir}/pg_upgrade
968 %attr(755,root,root) %{_bindir}/pg_xlogdump
969 %attr(755,root,root) %{_bindir}/pgbench
970 %attr(755,root,root) %{_bindir}/postgres
971 %attr(755,root,root) %{_bindir}/postmaster
972
973 %attr(755,root,root) %{_pgmoduledir}/ascii_and_mic.so
974 %attr(755,root,root) %{_pgmoduledir}/cyrillic_and_mic.so
975 %attr(755,root,root) %{_pgmoduledir}/dict_int.so
976 %attr(755,root,root) %{_pgmoduledir}/dict_snowball.so
977 %attr(755,root,root) %{_pgmoduledir}/dict_xsyn.so
978 %attr(755,root,root) %{_pgmoduledir}/euc*.so
979 %attr(755,root,root) %{_pgmoduledir}/latin2_and_win1250.so
980 %attr(755,root,root) %{_pgmoduledir}/latin_and_mic.so
981 %attr(755,root,root) %{_pgmoduledir}/libpqwalreceiver.so
982 %attr(755,root,root) %{_pgmoduledir}/plpgsql.so
983 %attr(755,root,root) %{_pgmoduledir}/utf8_and_*.so
984
985 %dir %{_pgsqldir}
986 %{_pgsqldir}/plpgsql--*.sql
987 %{_pgsqldir}/plpgsql.control
988
989 %dir %{_datadir}/postgresql
990 %{_datadir}/postgresql/*.bki
991 %{_datadir}/postgresql/*.sample
992 %{_datadir}/postgresql/*.description
993 %{_datadir}/postgresql/*.shdescription
994 %{_datadir}/postgresql/*.sql
995 %{_datadir}/postgresql/*.txt
996 %{_datadir}/postgresql/timezonesets
997 %{_datadir}/postgresql/tsearch_data
998
999 %dir %{_datadir}/postgresql/contrib
1000
1001 %attr(700,postgres,postgres) /home/services/postgres
1002 %attr(700,postgres,postgres) %dir /var/lib/pgsql
1003 %attr(640,postgres,postgres) %config(noreplace) %verify(not md5 mtime size) /var/log/pgsql
1004
1005 %{_mandir}/man1/initdb.1*
1006 %{_mandir}/man1/pg_basebackup.1*
1007 %{_mandir}/man1/pg_controldata.1*
1008 %{_mandir}/man1/pg_ctl.1*
1009 %{_mandir}/man1/pg_resetxlog.1*
1010 %{_mandir}/man1/pg_receivexlog.1*
1011 %{_mandir}/man1/pg_recvlogical.1*
1012 %{_mandir}/man1/pg_rewind.1*
1013 %{_mandir}/man1/pg_xlogdump.1*
1014 %{_mandir}/man1/pg_test_fsync.1*
1015 %{_mandir}/man1/pg_test_timing.1*
1016 %{_mandir}/man1/pg_upgrade.1*
1017 %{_mandir}/man1/pgbench.1*
1018 %{_mandir}/man1/postgres.1*
1019 %{_mandir}/man1/postmaster.1*
1020
1021 %files doc
1022 %defattr(644,root,root,755)
1023 %doc doc/src/sgml/html howto
1024 %{_examplesdir}/%{name}-%{version}
1025
1026 %files libs -f libpq5-%{mver}.lang
1027 %defattr(644,root,root,755)
1028 %attr(755,root,root) %{_libdir}/libpq.so.*.*
1029 %attr(755,root,root) %ghost %{_libdir}/libpq.so.5
1030 %dir %{_pgmoduledir}
1031
1032 %files ecpg -f ecpg.lang
1033 %defattr(644,root,root,755)
1034 %attr(755,root,root) %{_bindir}/ecpg
1035 %attr(755,root,root) %{_libdir}/libecpg.so.*.*
1036 %attr(755,root,root) %ghost %{_libdir}/libecpg.so.6
1037 %attr(755,root,root) %{_libdir}/libecpg_compat.so.*.*
1038 %attr(755,root,root) %ghost %{_libdir}/libecpg_compat.so.3
1039 %attr(755,root,root) %{_libdir}/libpgtypes.so.*.*
1040 %attr(755,root,root) %ghost %{_libdir}/libpgtypes.so.3
1041 %{_mandir}/man1/ecpg.1*
1042
1043 %files ecpg-devel
1044 %defattr(644,root,root,755)
1045 %attr(755,root,root) %{_libdir}/libecpg.so
1046 %attr(755,root,root) %{_libdir}/libecpg_compat.so
1047 %attr(755,root,root) %{_libdir}/libpgtypes.so
1048 %{_includedir}/ecpg*
1049 %{_pkgconfigdir}/libecpg.pc
1050 %{_pkgconfigdir}/libecpg_compat.pc
1051 %{_pkgconfigdir}/libpgtypes.pc
1052
1053 %files devel -f pg_config-%{mver}.lang
1054 %defattr(644,root,root,755)
1055 %attr(755,root,root) %{_bindir}/pg_config
1056 %attr(755,root,root) %{_libdir}/libpq.so
1057 %dir %{_includedir}/postgresql
1058 %{_includedir}/libpq-events.h
1059 %{_includedir}/libpq-fe.h
1060 %{_includedir}/pg_config.h
1061 %{_includedir}/pg_config_ext.h
1062 %{_includedir}/pg_config_manual.h
1063 %{_includedir}/pg_config_os.h
1064 %{_includedir}/postgres_ext.h
1065 %dir %{_includedir}/postgresql/internal
1066 %{_includedir}/postgresql/internal/c.h
1067 %{_includedir}/postgresql/internal/libpq-int.h
1068 %{_includedir}/postgresql/internal/port.h
1069 %{_includedir}/postgresql/internal/postgres_fe.h
1070 %{_includedir}/postgresql/internal/pqexpbuffer.h
1071 %{_includedir}/postgresql/internal/libpq
1072 %{_includedir}/libpq
1073 %{_pkgconfigdir}/libpq.pc
1074 %{_mandir}/man1/pg_config.1*
1075
1076 %files backend-devel
1077 %defattr(644,root,root,755)
1078 %{_includedir}/postgresql/server
1079 %dir %{_pgmoduledir}/pgxs
1080 %attr(755,root,root) %{_pgmoduledir}/pgxs/config
1081 %{_pgmoduledir}/pgxs/src
1082 %{_mandir}/man3/SPI_*.3*
1083
1084 %files static
1085 %defattr(644,root,root,755)
1086 %{_libdir}/libecpg.a
1087 %{_libdir}/libecpg_compat.a
1088 %{_libdir}/libpq.a
1089 %{_libdir}/libpgcommon.a
1090 %{_libdir}/libpgtypes.a
1091 %{_libdir}/libpgport.a
1092
1093 %files clients -f clients-%{mver}.lang
1094 %defattr(644,root,root,755)
1095 %attr(755,root,root) %{_bindir}/clusterdb
1096 %attr(755,root,root) %{_bindir}/createdb
1097 %attr(755,root,root) %{_bindir}/createlang
1098 %attr(755,root,root) %{_bindir}/createuser
1099 %attr(755,root,root) %{_bindir}/dropdb
1100 %attr(755,root,root) %{_bindir}/droplang
1101 %attr(755,root,root) %{_bindir}/dropuser
1102 %attr(755,root,root) %{_bindir}/pg_archivecleanup
1103 %attr(755,root,root) %{_bindir}/pg_dump
1104 %attr(755,root,root) %{_bindir}/pg_dumpall
1105 %attr(755,root,root) %{_bindir}/pg_isready
1106 %attr(755,root,root) %{_bindir}/pg_restore
1107 %attr(755,root,root) %{_bindir}/psql
1108 %attr(755,root,root) %{_bindir}/reindexdb
1109 %attr(755,root,root) %{_bindir}/vacuumdb
1110
1111 %{_mandir}/man1/clusterdb.1*
1112 %{_mandir}/man1/createdb.1*
1113 %{_mandir}/man1/createlang.1*
1114 %{_mandir}/man1/createuser.1*
1115 %{_mandir}/man1/dropdb.1*
1116 %{_mandir}/man1/droplang.1*
1117 %{_mandir}/man1/dropuser.1*
1118 %{_mandir}/man1/pg_archivecleanup.1*
1119 %{_mandir}/man1/pg_dump.1*
1120 %{_mandir}/man1/pg_dumpall.1*
1121 %{_mandir}/man1/pg_isready.1*
1122 %{_mandir}/man1/pg_restore.1*
1123 %{_mandir}/man1/psql.1*
1124 %{_mandir}/man1/reindexdb.1*
1125 %{_mandir}/man1/vacuumdb.1*
1126 %{_mandir}/man7/*.7*
1127
1128 %if %{with perl}
1129 %files module-plperl -f plperl-%{mver}.lang
1130 %defattr(644,root,root,755)
1131 %attr(755,root,root) %{_pgmoduledir}/plperl.so
1132 %{_pgsqldir}/plperl--*.sql
1133 %{_pgsqldir}/plperl.control
1134 %{_pgsqldir}/plperlu--*.sql
1135 %{_pgsqldir}/plperlu.control
1136 %endif
1137
1138 %if %{with python}
1139 %files module-plpython -f plpython-%{mver}.lang
1140 %defattr(644,root,root,755)
1141 %attr(755,root,root) %{_pgmoduledir}/plpython2.so
1142 %{_pgsqldir}/plpython*--*.sql
1143 %{_pgsqldir}/plpython*.control
1144 %endif
1145
1146 %if %{with tcl}
1147 %files module-pltcl -f pltcl-%{mver}.lang
1148 %defattr(644,root,root,755)
1149 %attr(755,root,root) %{_bindir}/pltcl_*
1150 %attr(755,root,root) %{_pgmoduledir}/pltcl.so
1151 %{_pgsqldir}/unknown.pltcl
1152 %{_pgsqldir}/pltcl*--*.sql
1153 %{_pgsqldir}/pltcl*.control
1154 %endif
1155
1156 %files module-dblink
1157 %defattr(644,root,root,755)
1158 %attr(755,root,root) %{_pgmoduledir}/dblink.so
1159 %{_pgsqldir}/dblink--*.sql
1160 %{_pgsqldir}/dblink.control
1161 %{_mandir}/man3/dblink*.3*
1162
1163 %files module-lo
1164 %defattr(644,root,root,755)
1165 %attr(755,root,root) %{_pgmoduledir}/lo.so
1166 %{_pgsqldir}/lo--*.sql
1167 %{_pgsqldir}/lo.control
1168
1169 %files module-pg_trgm
1170 %defattr(644,root,root,755)
1171 %attr(755,root,root) %{_pgmoduledir}/pg_trgm.so
1172 %{_pgsqldir}/pg_trgm--*.sql
1173 %{_pgsqldir}/pg_trgm.control
1174
1175 %files module-pgcrypto
1176 %defattr(644,root,root,755)
1177 %attr(755,root,root) %{_pgmoduledir}/pgcrypto.so
1178 %{_pgsqldir}/pgcrypto--*.sql
1179 %{_pgsqldir}/pgcrypto.control
1180
1181 %if %{with selinux}
1182 %files module-sepgsql
1183 %defattr(644,root,root,755)
1184 %attr(755,root,root) %{_pgmoduledir}/sepgsql.so
1185 %{_pgsqldir}/sepgsql.sql
1186 %endif
1187
1188 %files module-tablefunc
1189 %defattr(644,root,root,755)
1190 %attr(755,root,root) %{_pgmoduledir}/tablefunc.so
1191 %{_pgsqldir}/*tablefunc--*.sql
1192 %{_pgsqldir}/*tablefunc.control
1193
1194 %files module-xml2
1195 %defattr(644,root,root,755)
1196 %attr(755,root,root) %{_pgmoduledir}/pgxml.so
1197 %{_pgsqldir}/xml2--*.sql
1198 %{_pgsqldir}/xml2.control
1199
1200 %files contrib
1201 %defattr(644,root,root,755)
1202 %doc contrib/README
1203 %attr(755,root,root) %{_bindir}/oid2name
1204 %attr(755,root,root) %{_bindir}/pg_standby
1205 %attr(755,root,root) %{_bindir}/vacuumlo
1206 %attr(755,root,root) %{_pgmoduledir}/_int.so
1207 %attr(755,root,root) %{_pgmoduledir}/adminpack.so
1208 %attr(755,root,root) %{_pgmoduledir}/auth_delay.so
1209 %attr(755,root,root) %{_pgmoduledir}/auto_explain.so
1210 %attr(755,root,root) %{_pgmoduledir}/btree_gin.so
1211 %attr(755,root,root) %{_pgmoduledir}/btree_gist.so
1212 %attr(755,root,root) %{_pgmoduledir}/chkpass.so
1213 %attr(755,root,root) %{_pgmoduledir}/citext.so
1214 %attr(755,root,root) %{_pgmoduledir}/cube.so
1215 %attr(755,root,root) %{_pgmoduledir}/earthdistance.so
1216 %attr(755,root,root) %{_pgmoduledir}/file_fdw.so
1217 %attr(755,root,root) %{_pgmoduledir}/fuzzystrmatch.so
1218 %attr(755,root,root) %{_pgmoduledir}/hstore.so
1219 %attr(755,root,root) %{_pgmoduledir}/isn.so
1220 %attr(755,root,root) %{_pgmoduledir}/ltree.so
1221 %attr(755,root,root) %{_pgmoduledir}/pageinspect.so
1222 %attr(755,root,root) %{_pgmoduledir}/passwordcheck.so
1223 %attr(755,root,root) %{_pgmoduledir}/pg_buffercache.so
1224 %attr(755,root,root) %{_pgmoduledir}/pg_freespacemap.so
1225 %attr(755,root,root) %{_pgmoduledir}/pg_prewarm.so
1226 %attr(755,root,root) %{_pgmoduledir}/pg_stat_statements.so
1227 %attr(755,root,root) %{_pgmoduledir}/pgrowlocks.so
1228 %attr(755,root,root) %{_pgmoduledir}/pgstattuple.so
1229 %attr(755,root,root) %{_pgmoduledir}/postgres_fdw.so
1230 %attr(755,root,root) %{_pgmoduledir}/seg.so
1231 %attr(755,root,root) %{_pgmoduledir}/sslinfo.so
1232 %attr(755,root,root) %{_pgmoduledir}/tcn.so
1233 %attr(755,root,root) %{_pgmoduledir}/unaccent.so
1234 %attr(755,root,root) %{_pgmoduledir}/uuid-ossp.so
1235 %{_pgsqldir}/adminpack--*.sql
1236 %{_pgsqldir}/adminpack.control
1237 %{_pgsqldir}/btree_gin--*.sql
1238 %{_pgsqldir}/btree_gin.control
1239 %{_pgsqldir}/btree_gist--*.sql
1240 %{_pgsqldir}/btree_gist.control
1241 %{_pgsqldir}/chkpass--*.sql
1242 %{_pgsqldir}/chkpass.control
1243 %{_pgsqldir}/citext--*.sql
1244 %{_pgsqldir}/citext.control
1245 %{_pgsqldir}/cube--*.sql
1246 %{_pgsqldir}/cube.control
1247 %{_pgsqldir}/dict_int--*.sql
1248 %{_pgsqldir}/dict_int.control
1249 %{_pgsqldir}/dict_xsyn--*.sql
1250 %{_pgsqldir}/dict_xsyn.control
1251 %{_pgsqldir}/earthdistance--*.sql
1252 %{_pgsqldir}/earthdistance.control
1253 %{_pgsqldir}/file_fdw--*.sql
1254 %{_pgsqldir}/file_fdw.control
1255 %{_pgsqldir}/fuzzystrmatch--*.sql
1256 %{_pgsqldir}/fuzzystrmatch.control
1257 %{_pgsqldir}/hstore--*.sql
1258 %{_pgsqldir}/hstore.control
1259 %{_pgsqldir}/intarray--*.sql
1260 %{_pgsqldir}/intarray.control
1261 %{_pgsqldir}/intagg--*.sql
1262 %{_pgsqldir}/intagg.control
1263 %{_pgsqldir}/isn--*.sql
1264 %{_pgsqldir}/isn.control
1265 %{_pgsqldir}/ltree--*.sql
1266 %{_pgsqldir}/ltree.control
1267 %{_pgsqldir}/pageinspect--*.sql
1268 %{_pgsqldir}/pageinspect.control
1269 %{_pgsqldir}/pg_buffercache--*.sql
1270 %{_pgsqldir}/pg_buffercache.control
1271 %{_pgsqldir}/pg_freespacemap--*.sql
1272 %{_pgsqldir}/pg_freespacemap.control
1273 %{_pgsqldir}/pg_prewarm--*.sql
1274 %{_pgsqldir}/pg_prewarm.control
1275 %{_pgsqldir}/pg_stat_statements--*.sql
1276 %{_pgsqldir}/pg_stat_statements.control
1277 %{_pgsqldir}/pgrowlocks--*.sql
1278 %{_pgsqldir}/pgrowlocks.control
1279 %{_pgsqldir}/pgstattuple--*.sql
1280 %{_pgsqldir}/pgstattuple.control
1281 %{_pgsqldir}/postgres_fdw--*.sql
1282 %{_pgsqldir}/postgres_fdw.control
1283 %{_pgsqldir}/seg--*.sql
1284 %{_pgsqldir}/seg.control
1285 %{_pgsqldir}/sslinfo--*.sql
1286 %{_pgsqldir}/sslinfo.control
1287 %{_pgsqldir}/tcn--*.sql
1288 %{_pgsqldir}/tcn.control
1289 %{_pgsqldir}/unaccent--*.sql
1290 %{_pgsqldir}/unaccent.control
1291 %{_pgsqldir}/uuid-ossp--*.sql
1292 %{_pgsqldir}/uuid-ossp.control
1293 %{_mandir}/man1/oid2name.1*
1294 %{_mandir}/man1/pg_standby.1*
1295 %{_mandir}/man1/vacuumlo.1*