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