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