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