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