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