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