]> git.pld-linux.org Git - packages/postgresql.git/blob - postgresql.spec
- up to 9.3.14
[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.3
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}.14
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:  209c8dc862c36a87fd905e2c8d97b61e
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 Source7:        %{name}.upstart
49 Source8:        %{name}-instance.upstart
50 Patch0:         %{name}-conf.patch
51 Patch1:         %{name}-absolute_dbpaths.patch
52 Patch2:         %{name}-ecpg-includedir.patch
53 Patch3:         %{name}-ac_version.patch
54 Patch4:         %{name}-disable_horology_test.patch
55 Patch5:         %{name}-heimdal.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-devel
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, 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_standby pg_stat_statements pg_test_timing 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 upstart
340 Summary:        Upstart job description for PostgreSQL server
341 Summary(pl.UTF-8):      Opis zadania Upstart dla serwera PostgreSQL
342 Group:          Daemons
343 Requires:       %{name} = %{version}-%{release}
344 Requires:       upstart >= 0.6
345 Conflicts:      syslog-ng < 3.2.4-1
346
347 %description upstart
348 Upstart job description for PostgreSQL.
349
350 %description upstart -l pl.UTF-8
351 Opis zadania Upstart dla PostgreSQL.
352
353 %package devel
354 Summary:        PostgreSQL development header files and libraries
355 Summary(de.UTF-8):      PostgreSQL-Entwicklungs-Header-Dateien und Libraries
356 Summary(es.UTF-8):      Archivos de inclusión y bibliotecas PostgreSQL
357 Summary(fr.UTF-8):      En-têtes et bibliothèques de développement PostgreSQL
358 Summary(pl.UTF-8):      PostgreSQL - pliki nagłówkowe i biblioteki
359 Summary(pt_BR.UTF-8):   Arquivos de inclusão e bibliotecas para desenvolvimento com o PostgreSQL
360 Summary(ru.UTF-8):      PostgreSQL - хедеры и библиотеки разработчика
361 Summary(tr.UTF-8):      PostgreSQL başlık dosyaları ve kitaplıklar
362 Summary(uk.UTF-8):      PostgreSQL - хедери та бібліотеки програміста
363 Group:          Development/Libraries
364 Requires:       %{name}-libs = %{version}-%{release}
365
366 %description devel
367 This package contains header files and libraries required to compile
368 applications that are talking directly to the PostgreSQL backend
369 server.
370
371 %description devel -l de.UTF-8
372 Dieses Paket enthält die Header-Dateien und Libraries, die zum
373 Kompilieren von Applikationen notwendig sind, die direkt mit dem
374 PostgreSQL-Backend-Server kommunizieren.
375
376 %description devel -l es.UTF-8
377 Este paquete contiene archivos de inclusión y bibliotecas requeridas
378 para compilación de aplicativos que se comunican directamente con el
379 servidor backend PostgreSQL.
380
381 %description devel -l fr.UTF-8
382 Ce package contient les fichiers d'en-tête et les bibliothéques
383 nécessaires pour compiler des applications ayant des échanges directs
384 avec le serveur du backend PostgreSQL.
385
386 %description devel -l pl.UTF-8
387 Pakiet zawiera nagłówki oraz biblioteki wymagane do kompilacji
388 aplikacji łączących się bezpośrednio z serwerem PostgreSQL.
389
390 %description devel -l pt_BR.UTF-8
391 Este pacote contém arquivos de inclusão e bibliotecas requeridas para
392 compilação de aplicativos que se comunicam diretamente com o servidor
393 backend PostgreSQL.
394
395 %description devel -l ru.UTF-8
396 Этот пакет содержит хедеры и библиотеки, необходимые для сборки
397 приложений, непосредственно взаимодействующих с сервером PostgreSQL.
398
399 %description devel -l tr.UTF-8
400 Bu paket, PostgreSQL sunucusuyla konuşacak yazılımlar geliştirmek için
401 gereken başlık dosyalarını ve kitaplıkları içerir.
402
403 %description devel -l uk.UTF-8
404 Цей пакет містить хедери та бібліотеки, необхідні для розробки
405 програм, які безпосередньо взаємодіють з сервером PostgreSQL.
406
407 %package backend-devel
408 Summary:        PostgreSQL backend development header files
409 Summary(pl.UTF-8):      PostgreSQL - pliki nagłówkowe dla backendu
410 Group:          Development/Libraries
411 Requires:       %{name}-devel = %{version}-%{release}
412 Requires:       %{name}-libs = %{version}-%{release}
413
414 %description backend-devel
415 This package contains header files required to compile functions that
416 could be loaded directly by backend
417
418 %description backend-devel -l pl.UTF-8
419 Pakiet zawiera nagłówki wymagane do kompilacji funkcji ktore moga byc
420 bezposrednio ladowane przez beckend serwera PostgreSQL.
421
422 %package clients
423 Summary:        Clients needed to access a PostgreSQL server
424 Summary(es.UTF-8):      Clientes necesarios para acceder al servidor PostgreSQL
425 Summary(pl.UTF-8):      Klienci wymagani do dostępu do serwera PostgreSQL
426 Summary(pt_BR.UTF-8):   Clientes necessários para acessar o servidor PostgreSQL
427 Summary(ru.UTF-8):      Клиентские программы, необходимые для доступа к серверу PostgreSQL
428 Summary(uk.UTF-8):      Клієнтські програми, необхідні для доступу до сервера PostgreSQL
429 Group:          Applications/Databases
430 Requires:       %{name}-libs = %{version}-%{release}
431
432 %description clients
433 This package includes only the clients needed to access an PostgreSQL
434 server. The server is included in the main package. If all you need is
435 to connect to another PostgreSQL server, the this is the only package
436 you need to install. Clients include several command-line utilities
437 you can use to manage your databases on a remote PostgreSQL server.
438
439 %description clients -l es.UTF-8
440 Este paquete incluye solamente los clientes necesarios para acceder un
441 servidor PostgreSQL. El servidor está en el paquete principal.
442
443 %description clients -l pl.UTF-8
444 Pakiet zawiera programy klienckie potrzebne dla dostępu do serwera
445 PostgreSQL oraz narzędzia do zarządzania bazami działające z linii
446 poleceń. Serwer znajduje się w głównym pakiecie.
447
448 %description clients -l pt_BR.UTF-8
449 Este pacote inclui somente os clientes necessários para acessar um
450 servidor PostgreSQL. O servidor está no pacote principal.
451
452 %description clients -l ru.UTF-8
453 Этот пакет включает только клиентские программы и библиотеки,
454 необходимые для доступа к серверу PostgreSQL. Сервер входит в главный
455 пакет. Если вам надо только работать с другим сервером PostgreSQL, это
456 единственный пакет, который вам надо установить.
457
458 Теперь пакеты с библиотеками для разных языков программирования (C,
459 C++, Perl и Tcl) разделены. Этот пакет включает только библиотеки для
460 языка C.
461
462 %description clients -l uk.UTF-8
463 Цей пакет містить тільки клієнтські програми та бібліотеки, необхідні
464 для доступу до сервера PostgreSQL. Сервер міститься в головному
465 пакеті. Якщо вам потрібно працювати з іншим сервером PostgreSQL, це
466 єдиний пакет, який вам треба встановити.
467
468 Тепер пакети з бібліотеками для різних мов програмування (C, C++, Perl
469 і Tcl) розділені. Цей пакет містить тільки бібліотеки для мови C.
470
471 %package doc
472 Summary:        Documentation for PostgreSQL
473 Summary(pl.UTF-8):      Dodatkowa dokumantacja dla PostgreSQL
474 Group:          Applications/Databases
475
476 %description doc
477 This package includes documentation and HOWTO for programmer, admin
478 etc., in HTML format.
479
480 %description doc -l pl.UTF-8
481 Pakiet ten zawiera dokumentację oraz HOWTO m.in. dla programistów,
482 administratorów w formacie HTML.
483
484 %package libs
485 Summary:        PostgreSQL libraries
486 Summary(es.UTF-8):      Biblioteca compartida del PostgreSQL
487 Summary(pl.UTF-8):      Biblioteki dzielone programu PostgreSQL
488 Summary(pt_BR.UTF-8):   Biblioteca compartilhada do PostgreSQL
489 Summary(zh_CN.UTF-8):   PostgreSQL 客户所需要的共享库
490 Group:          Libraries
491
492 %description libs
493 PostgreSQL shared libraries.
494
495 %description libs -l es.UTF-8
496 Este paquete contiene la biblioteca compartida para acceso al
497 PostgreSQL.
498
499 %description libs -l pl.UTF-8
500 Biblioteki dzielone programu PostgreSQL.
501
502 %description libs -l pt_BR.UTF-8
503 Este pacote contém a biblioteca compartilhada para acesso ao
504 PostgreSQL.
505
506 %package ecpg
507 Summary:        Embedded SQL in C interface
508 Summary(pl.UTF-8):      Interfejs wbudowanego SQL-a w język C
509 Group:          Libraries
510 Requires:       %{name}-libs = %{version}-%{release}
511
512 %description ecpg
513 Embedded SQL in C interface.
514
515 %description ecpg -l pl.UTF-8
516 Interfejs wbudowanego SQL-a w język C.
517
518 %package ecpg-devel
519 Summary:        Embedded SQL in C interface files
520 Summary(pl.UTF-8):      Pliki programistyczne interfejsu wbudowanego SQL-a w język C
521 Group:          Development/Libraries
522 Requires:       %{name}-devel = %{version}-%{release}
523 Requires:       %{name}-ecpg = %{version}-%{release}
524
525 %description ecpg-devel
526 Embedded SQL in C interface files.
527
528 %description ecpg-devel -l pl.UTF-8
529 Pliki programistyczne interfejsu wbudowanego SQL-a w język C.
530
531 %package static
532 Summary:        PostgreSQL static libraries
533 Summary(es.UTF-8):      Bibliotecas estaticas PostgreSQL
534 Summary(pl.UTF-8):      Biblioteki statyczne programu PostgreSQL
535 Summary(pt_BR.UTF-8):   Bibliotecas estáticas PostgreSQL
536 Summary(ru.UTF-8):      Статические библиотеки для программирования с PostgreSQL
537 Summary(uk.UTF-8):      Статичні бібліотеки для програмування з PostgreSQL
538 Group:          Development/Libraries
539 Requires:       %{name}-devel = %{version}-%{release}
540
541 %description static
542 PostgreSQL static libraries.
543
544 %description static -l es.UTF-8
545 Este paquete contiene bibliotecas estaticas requerida para compilación
546 de aplicativos que se comunican directamente con el servidor backend
547 PostgreSQL.
548
549 %description static -l pl.UTF-8
550 Biblioteki statyczne programu PostgreSQL.
551
552 %description static -l pt_BR.UTF-8
553 Este pacote contém as bibliotecas estáticas requeridas para compilação
554 de aplicativos que se comunicam diretamente com o servidor backend
555 PostgreSQL.
556
557 %description static -l ru.UTF-8
558 Это отдельный пакет со статическими библиотеками, которые больше не
559 входят в %{name}-devel.
560
561 %description static -l uk.UTF-8
562 Це окремий пакет зі статичними бібліотеками, які більш не входять в
563 %{name}-devel.
564
565 %package module-plperl
566 Summary:        PL/perl - PostgreSQL procedural language
567 Summary(pl.UTF-8):      PL/perl - język proceduralny bazy danych PostgreSQL
568 Group:          Applications/Databases
569 Requires:       %{name} = %{version}-%{release}
570
571 %description module-plperl
572 From PostgreSQL documentation:
573
574 Postgres supports the definition of procedural languages. In the case
575 of a function or trigger procedure defined in a procedural language,
576 the database has no built-in knowledge about how to interpret the
577 function's source text. Instead, the task is passed to a handler that
578 knows the details of the language. The handler itself is a special
579 programming language function compiled into a shared object and loaded
580 on demand.
581
582 To enable PL/Perl procedural language for your database you have to
583 run createlang command.
584
585 %description module-plperl -l pl.UTF-8
586 Z dokumentacji PostgreSQL:
587
588 Postgres ma wsparcie dla języków proceduralnych. W przypadku, kiedy
589 programista zdefiniuje procedurę wyzwalacza lub funkcję w języku
590 proceduralnym, baza danych nie ma pojęcia jak interpretować tego typu
591 funkcję. Funkcja lub procedura ta jest przekazywana do interpretera,
592 który wie jak ją wykonać. Interpreter jest odpowiednią, specjalną
593 funkcją, która jest skompilowana w obiekt dzielony i ładowany w razie
594 potrzeby.
595
596 Za pomocą polecenia createlang można dodać obsługę języka
597 proceduralnego PL/Perl dla swojej bazy danych.
598
599 %package module-plpython
600 Summary:        PL/Python - PostgreSQL procedural language
601 Summary(pl.UTF-8):      PL/Python - język proceduralny bazy danych PostgreSQL
602 Group:          Applications/Databases
603 Requires:       %{name} = %{version}-%{release}
604 %pyrequires_eq  python
605
606 %description module-plpython
607 From PostgreSQL documentation:
608
609 Postgres supports the definition of procedural languages. In the case
610 of a function or trigger procedure defined in a procedural language,
611 the database has no built-in knowledge about how to interpret the
612 function's source text. Instead, the task is passed to a handler that
613 knows the details of the language. The handler itself is a special
614 programming language function compiled into a shared object and loaded
615 on demand.
616
617 To enable PL/Python procedural language for your database you have to
618 run createlang command.
619
620 %description module-plpython -l pl.UTF-8
621 Z dokumentacji PostgreSQL:
622
623 Postgres ma wsparcie dla języków proceduralnych. W przypadku, kiedy
624 programista zdefiniuje procedurę wyzwalacza lub funkcję w języku
625 proceduralnym, baza danych nie ma pojęcia jak interpretować tego typu
626 funkcję. Funkcja lub procedura ta jest przekazywana do interpretera,
627 który wie jak ją wykonać. Interpreter jest odpowiednią, specjalną
628 funkcją, która jest skompilowana w obiekt dzielony i ładowany w razie
629 potrzeby.
630
631 Za pomocą polecenia createlang można dodać obsługę języka
632 proceduralnego PL/Python dla swojej bazy danych.
633
634 %package module-pltcl
635 Summary:        PL/Tcl - PostgreSQL procedural language
636 Summary(pl.UTF-8):      PL/Tcl - język proceduralny bazy danych PostgreSQL
637 Group:          Applications/Databases
638 Requires:       %{name} = %{version}-%{release}
639 Requires:       tcl(Pgtcl)
640
641 %description module-pltcl
642 From PostgreSQL documentation:
643
644 Postgres supports the definition of procedural languages. In the case
645 of a function or trigger procedure defined in a procedural language,
646 the database has no built-in knowledge about how to interpret the
647 function's source text. Instead, the task is passed to a handler that
648 knows the details of the language. The handler itself is a special
649 programming language function compiled into a shared object and loaded
650 on demand.
651
652 To enable PL/Tcl procedural language for your database you have to run
653 createlang command.
654
655 %description module-pltcl -l pl.UTF-8
656 Z dokumentacji PostgreSQL:
657
658 Postgres ma wsparcie dla języków proceduralnych. W przypadku, kiedy
659 programista zdefiniuje procedurę wyzwalacza lub funkcję w języku
660 proceduralnym, baza danych nie ma pojęcia jak interpretować tego typu
661 funkcję. Funkcja lub procedura ta jest przekazywana do interpretera,
662 który wie jak ją wykonać. Interpreter jest odpowiednią, specjalną
663 funkcją, która jest skompilowana w obiekt dzielony i ładowany w razie
664 potrzeby.
665
666 Za pomocą polecenia createlang można dodać obsługę języka
667 proceduralnego PL/Tcl dla swojej bazy danych.
668
669 %package module-dblink
670 Summary:        dblink module for PostgreSQL
671 Summary(pl.UTF-8):      Moduł dblink dla PostgreSQL-a
672 Group:          Applications/Databases
673 Requires:       %{name} = %{version}-%{release}
674
675 %description module-dblink
676 dblink module for PostgreSQL provides functions returning results from
677 remote database.
678
679 %description module-dblink -l pl.UTF-8
680 Moduł dblink dla PostgreSQL-a udostępnia funkcje zwracające wyniki ze
681 zdalnej bazy danych.
682
683 %package module-lo
684 Summary:        Large Objects module for PostgreSQL
685 Summary(pl.UTF-8):      Moduł Large Objects dla PostgreSQL-a
686 Group:          Applications/Databases
687 Requires:       %{name} = %{version}-%{release}
688
689 %description module-lo
690 Large Objects module for PostgreSQL adds a new data type 'lo', some
691 support functions and a trigger which handles the orphaning problem.
692
693 %description module-lo -l pl.UTF-8
694 Moduł Large Objects dla PostgreSQL-a dodaje nowy typ danych 'lo',
695 kilka funkcji pomocniczych i wyzwalacz rozwiązujący problem
696 osieroconych obiektów.
697
698 %package module-pg_trgm
699 Summary:        Trigram matching for PostgreSQL
700 Summary(pl.UTF-8):      Dopasowanie trigramowe dla PostgreSQL-a
701 Group:          Applications/Databases
702 Requires:       %{name} = %{version}-%{release}
703
704 %description module-pg_trgm
705 This module provides functions and index classes for determining the
706 similarity of text based on trigram matching.
707
708 %description module-pg_trgm -l pl.UTF-8
709 Ten moduł dostarcza funkcje i klasy do rozpoznawania podobnych tekstów
710 w oparciu o dopasowywanie trigramowe (trigram matching).
711
712 %package module-pgcrypto
713 Summary:        Cryptographic functions for PostgreSQL
714 Summary(pl.UTF-8):      Funkcje kryptograficzne dla PostgreSQL-a
715 Group:          Applications/Databases
716 Requires:       %{name} = %{version}-%{release}
717
718 %description module-pgcrypto
719 Cryptographic functions for PostgreSQL.
720
721 %description module-pgcrypto -l pl.UTF-8
722 Funkcje kryptograficzne dla PostgreSQL.
723
724 %package module-sepgsql
725 Summary:        PostgreSQL external security provider using SELinux
726 Summary(pl.UTF-8):      Zewnętrzny moduł bezpieczeństwa PostgreSQL-a wykorzystujący SELinuksa
727 Group:          Applications/Databases
728 Requires:       %{name} = %{version}-%{release}
729 Requires:       libselinux >= 2.1.10
730
731 %description module-sepgsql
732 PostgreSQL external security provider using SELinux.
733
734 %description module-sepgsql -l pl.UTF-8
735 Zewnętrzny moduł bezpieczeństwa PostgreSQL-a wykorzystujący SELinuksa.
736
737 %package module-tablefunc
738 Summary:        crosstab functions for PostgreSQL
739 Summary(pl.UTF-8):      Funkcje crosstab dla PostgreSQL-a
740 Group:          Applications/Databases
741 Requires:       %{name} = %{version}-%{release}
742
743 %description module-tablefunc
744 crosstab functions for PostgreSQL.
745
746 %description module-tablefunc -l pl.UTF-8
747 Funkcje crosstab dla PostgreSQL-a.
748
749 %package module-xml2
750 Summary:        XML-handling functions for PostgreSQL
751 Summary(pl.UTF-8):      Funkcje do obsługi XML-a dla PostgreSQL-a
752 Group:          Applications/Databases
753 Requires:       %{name} = %{version}-%{release}
754 Requires:       libxml2 >= 1:2.6.23
755
756 %description module-xml2
757 Module with XML functions provides both XPath querying and XSLT
758 functionality. There is also a new table function which allows the
759 straightforward return of multiple XML results.
760
761 %description module-xml2 -l pl.UTF-8
762 Moduł z funkcjami XML zapewniającymi obsługę zapytań XPath oraz
763 funkcjonalność XSLT. Jest także nowa funkcja tabelowa pozwalająca na
764 bezpośrednie zwracanie wielu wyników XML.
765
766 %package contrib
767 Summary:        Miscellaneous PostgreSQL contrib modules
768 Summary(pl.UTF-8):      Różne moduły dołączone do PostgreSQL-a
769 Group:          Applications/Databases
770 Requires:       %{name} = %{version}-%{release}
771
772 %description contrib
773 Miscellaneous PostgreSQL contrib modules.
774
775 %description contrib -l pl.UTF-8
776 Różne moduły dołączone do PostgreSQL-a.
777
778 %prep
779 %setup -q
780 %patch0 -p1
781 %{?with_absolute_dbpaths:%patch1 -p1}
782 %patch2 -p1
783 %patch3 -p1
784 %patch4 -p1
785 %patch5 -p1
786
787 # force rebuild of bison/flex files
788 find src -name \*.l -o -name \*.y | xargs touch
789
790 # Erase all CVS dirs
791 #find contrib -type d -name CVS -exec rm -rf {} \;
792
793 %build
794 %{__aclocal} -I config
795 %{__autoconf}
796 %configure \
797         CFLAGS="%{rpmcflags} -DNEED_REENTRANT_FUNCS `uuid-config --cflags`" \
798         --disable-rpath \
799         --enable-depend \
800         --enable-integer-datetimes \
801         --with-system-tzdata=%{_datadir}/zoneinfo \
802         --enable-nls \
803         --enable-thread-safety \
804         %{?with_kerberos5:--with-gssapi} \
805         %{?with_kerberos5:--with-krb5} \
806         %{?with_ldap:--with-ldap} \
807         --with-openssl \
808         --with-pam \
809         --with-libxml \
810         --with-libxslt \
811         %{?with_perl:--with-perl} \
812         %{?with_python:--with-python} \
813         %{?with_selinux:--with-selinux} \
814         %{?with_tcl:--with-tcl --with-tclconfig=%{_ulibdir}} \
815         --with-ossp-uuid \
816
817 %{__make}
818
819 for mod in %{contrib_modules}; do \
820         flags="%{rpmcflags} %{rpmcppflags} -DNEED_REENTRANT_FUNCS"
821         if [ $mod = "xml2"      ]; then flags="$flags -I/usr/include/libxml2"; fi
822         if [ $mod = "uuid-ossp" ]; then flags="$flags `uuid-config --cflags`"; fi
823         %{__make} -C contrib/$mod CFLAGS="$flags"
824 done
825
826 %{__make} -C src/tutorial \
827         NO_PGXS=1
828
829 %ifnarch sparc sparcv9 sparc64 alpha
830 %{?with_tests:%{__make} -j1 check}
831 %endif
832
833 %install
834 rm -rf $RPM_BUILD_ROOT
835 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{rc.d/init.d,sysconfig,init/%{name}}} \
836         $RPM_BUILD_ROOT{/var/{lib/pgsql,log},%{_pgsqldir}} \
837         $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} \
838         $RPM_BUILD_ROOT%{_mandir} \
839         $RPM_BUILD_ROOT{%{systemdunitdir},/etc/systemd/system/%{name}.target.requires} \
840         $RPM_BUILD_ROOT/home/services/postgres
841
842 install src/tutorial/*.sql $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
843
844 %{__make} install \
845         DESTDIR=$RPM_BUILD_ROOT
846 %{__make} -C doc/src/sgml install-man \
847         DESTDIR=$RPM_BUILD_ROOT
848
849 %if %{with perl}
850 %{__make} install -C src/pl/plperl \
851         DESTDIR=$RPM_BUILD_ROOT
852 %endif
853
854 for mod in %{contrib_modules}; do \
855         %{__make} -C contrib/$mod install \
856                 DESTDIR=$RPM_BUILD_ROOT
857 done
858
859 touch $RPM_BUILD_ROOT/var/log/pgsql
860
861 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/postgresql
862 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/postgresql
863
864 install %{SOURCE4} $RPM_BUILD_ROOT%{systemdunitdir}/%{name}@.service
865 install %{SOURCE5} $RPM_BUILD_ROOT%{systemdunitdir}/%{name}.service
866 install %{SOURCE6} $RPM_BUILD_ROOT%{systemdunitdir}/%{name}.target
867
868 install %{SOURCE7} $RPM_BUILD_ROOT/etc/init/%{name}.conf
869 install %{SOURCE8} $RPM_BUILD_ROOT/etc/init/%{name}/instance.conf
870
871 install -d howto
872 tar zxf %{SOURCE2} -C howto
873
874 %if %{with python}
875 %py_comp $RPM_BUILD_ROOT%{py_libdir}
876 %py_ocomp $RPM_BUILD_ROOT%{py_libdir}
877 %endif
878
879 # find locales
880 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
881         %find_lang $f-%{mver}
882 done
883 # merge locales
884 cat pgscripts-%{mver}.lang pg_resetxlog-%{mver}.lang \
885     postgres-%{mver}.lang pg_controldata-%{mver}.lang \
886     plpgsql-%{mver}.lang \
887     pg_basebackup-%{mver}.lang \
888     > main-%{mver}.lang
889 cat pg_dump-%{mver}.lang psql-%{mver}.lang initdb-%{mver}.lang \
890     pg_ctl-%{mver}.lang > clients-%{mver}.lang
891 cat ecpg-%{mver}.lang ecpglib6-%{mver}.lang > ecpg.lang
892
893 %if %{with tcl}
894 %find_lang pltcl-%{mver}
895 mv $RPM_BUILD_ROOT{%{_datadir}/postgresql,%{_pgsqldir}}/unknown.pltcl
896 %endif
897
898 %if %{with selinux}
899 mv $RPM_BUILD_ROOT{%{_datadir}/postgresql/contrib,%{_pgsqldir}}/sepgsql.sql
900 %endif
901
902 install src/pl/plperl/ppport.h $RPM_BUILD_ROOT%{_includedir}/postgresql/server/
903
904 # unpackaged contribs
905 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/{pg_test_fsync,pg_test_timing}.1
906
907 # package it...?  nah, why bother.
908 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/doc/postgresql/html
909
910 %clean
911 rm -rf $RPM_BUILD_ROOT
912
913 %pre
914 PG_DB_CLUSTERS=""
915 if [ -f /etc/sysconfig/postgresql ]; then
916         . /etc/sysconfig/postgresql
917         if [ -z "$PG_DB_CLUSTERS" -a -n "$POSTGRES_DATA_DIR" ]; then
918                 PG_DB_CLUSTERS="$POSTGRES_DATA_DIR"
919         fi
920 fi
921 foundold=0
922 for pgdir in $PG_DB_CLUSTERS; do
923         if [ -f $pgdir/PG_VERSION ]; then
924                 if [ $(cat $pgdir/PG_VERSION) != '9.3' ]; then
925                         echo "Found database(s) in older, incompatible format in cluster $pgdir."
926                         foundold=1
927                 fi
928         fi
929 done
930 if [ "$foundold" = "1" ]; then
931         echo
932         echo "Dump all data from clusters mentioned above (using pg_dump or pg_dumpall)"
933         echo "and clean (or rename) those directories; then upgrade postgresql and"
934         echo "restore all data (using pg_restore or psql)."
935         echo "Remember to stop the daemon before upgrading!"
936         echo
937         echo "Alternatively you can use pg_upgrade for 8.3+ online upgrade with"
938         echo "some restrictions: http://www.postgresql.org/docs/9.0/static/pgupgrade.html"
939         echo
940         echo "Warning for upgrade from version *before* 7.2."
941         echo "Please note, that postgresql module path changed from"
942         echo "%{_libdir}/pgsql/module to %{_libdir}/postgresql. Change the path"
943         echo "in dump file before restore."
944         echo
945         echo "Warning for upgrade from version *before* 7.3."
946         echo "Reading following webpage is encouraged:"
947         echo "http://www.ca.postgresql.org/docs/momjian/upgrade_tips_7.3"
948         exit 1
949 fi
950 %groupadd -g 88 -r postgres
951 %useradd -M -o -r -u 88 -d /home/services/postgres -s /bin/sh -g postgres -c "PostgreSQL Server" postgres
952
953 %triggerpostun -- %{name} < 7.2-2
954 if [ -n "`/bin/id -u postgres 2>/dev/null`" ]; then
955         /usr/sbin/usermod -d /home/services/postgres postgres
956 fi
957
958 %post
959 /sbin/chkconfig --add postgresql
960 %service postgresql restart "postgresql server"
961 if [ "$1" -eq "1" ]; then
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 enable "postgresql@$instance.service" || :
968         done
969 fi
970 %systemd_post postgresql.service
971
972 %preun
973 if [ "$1" = "0" ]; then
974         %service postgresql stop
975         /sbin/chkconfig --del postgresql
976
977         PG_DB_CLUSTERS=""
978         [ -f /etc/sysconfig/postgresql ] && . /etc/sysconfig/postgresql
979         export SYSTEMD_LOG_LEVEL=warning SYSTEMD_LOG_TARGET=syslog
980         for pgdir in $PG_DB_CLUSTERS; do
981                 instance="$(echo "$pgdir" | sed -e 's/^\///;s/-/\\x2d/g;s/@/\\x40/g;s/\//-/g')"
982                 /bin/systemctl --quiet disable "postgresql@$instance.service" || :
983         done
984 fi
985 %systemd_preun postgresql.service
986
987 %postun
988 %systemd_reload
989
990 %triggerpostun -- %{name} < 9.3.3-2
991 PG_DB_CLUSTERS=""
992 [ -f /etc/sysconfig/postgresql ] && . /etc/sysconfig/postgresql
993 for pgdir in $PG_DB_CLUSTERS; do
994         instance="$(echo "$pgdir" | sed -e 's/^\///;s/-/\\x2d/g;s/@/\\x40/g;s/\//-/g')"
995         /bin/systemctl --quiet enable "postgresql@$instance.service" || :
996 done
997 %systemd_trigger postgresql.service
998
999 %post upstart
1000 %upstart_post postgresql
1001
1002 %postun upstart
1003 %upstart_postun postgresql
1004
1005 %post   libs -p /sbin/ldconfig
1006 %postun libs -p /sbin/ldconfig
1007
1008 %post   ecpg -p /sbin/ldconfig
1009 %postun ecpg -p /sbin/ldconfig
1010
1011 %files -f main-%{mver}.lang
1012 %defattr(644,root,root,755)
1013 %doc COPYRIGHT README HISTORY doc/{bug.template,KNOWN_BUGS,MISSING_FEATURES,TODO}
1014 %attr(754,root,root) /etc/rc.d/init.d/postgresql
1015 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/postgresql
1016 %{systemdunitdir}/%{name}.service
1017 %{systemdunitdir}/%{name}@.service
1018 %{systemdunitdir}/%{name}.target
1019 %dir /etc/systemd/system/%{name}.target.requires
1020
1021 %attr(755,root,root) %{_bindir}/initdb
1022 %attr(755,root,root) %{_bindir}/pg_basebackup
1023 %attr(755,root,root) %{_bindir}/pg_controldata
1024 %attr(755,root,root) %{_bindir}/pg_ctl
1025 %attr(755,root,root) %{_bindir}/pg_resetxlog
1026 %attr(755,root,root) %{_bindir}/pg_receivexlog
1027 %attr(755,root,root) %{_bindir}/pg_upgrade
1028 %attr(755,root,root) %{_bindir}/postgres
1029 %attr(755,root,root) %{_bindir}/postmaster
1030
1031 %attr(755,root,root) %{_pgmoduledir}/ascii_and_mic.so
1032 %attr(755,root,root) %{_pgmoduledir}/cyrillic_and_mic.so
1033 %attr(755,root,root) %{_pgmoduledir}/dict_int.so
1034 %attr(755,root,root) %{_pgmoduledir}/dict_snowball.so
1035 %attr(755,root,root) %{_pgmoduledir}/dict_xsyn.so
1036 %attr(755,root,root) %{_pgmoduledir}/euc*.so
1037 %attr(755,root,root) %{_pgmoduledir}/latin2_and_win1250.so
1038 %attr(755,root,root) %{_pgmoduledir}/latin_and_mic.so
1039 %attr(755,root,root) %{_pgmoduledir}/libpqwalreceiver.so
1040 %attr(755,root,root) %{_pgmoduledir}/pg_upgrade_support.so
1041 %attr(755,root,root) %{_pgmoduledir}/plpgsql.so
1042 %attr(755,root,root) %{_pgmoduledir}/utf8_and_*.so
1043
1044 %dir %{_pgsqldir}
1045 %{_pgsqldir}/plpgsql--*.sql
1046 %{_pgsqldir}/plpgsql.control
1047
1048 %dir %{_datadir}/postgresql
1049 %{_datadir}/postgresql/*.bki
1050 %{_datadir}/postgresql/*.sample
1051 %{_datadir}/postgresql/*.description
1052 %{_datadir}/postgresql/*.shdescription
1053 %{_datadir}/postgresql/*.sql
1054 %{_datadir}/postgresql/*.txt
1055 %{_datadir}/postgresql/timezonesets
1056 %{_datadir}/postgresql/tsearch_data
1057
1058 %dir %{_datadir}/postgresql/contrib
1059
1060 %attr(700,postgres,postgres) /home/services/postgres
1061 %attr(700,postgres,postgres) %dir /var/lib/pgsql
1062 %attr(640,postgres,postgres) %config(noreplace) %verify(not md5 mtime size) /var/log/pgsql
1063
1064 %{_mandir}/man1/initdb.1*
1065 %{_mandir}/man1/pg_basebackup.1*
1066 %{_mandir}/man1/pg_controldata.1*
1067 %{_mandir}/man1/pg_ctl.1*
1068 %{_mandir}/man1/pg_resetxlog.1*
1069 %{_mandir}/man1/pg_receivexlog.1*
1070 %{_mandir}/man1/postgres.1*
1071 %{_mandir}/man1/postmaster.1*
1072
1073 %if "%{pld_release}" != "ti"
1074 %files upstart
1075 %defattr(644,root,root,755)
1076 %config(noreplace) %verify(not md5 mtime size) /etc/init/postgresql.conf
1077 %dir /etc/init/postgresql
1078 %config(noreplace) %verify(not md5 mtime size) /etc/init/postgresql/instance.conf
1079 %endif
1080
1081 %files doc
1082 %defattr(644,root,root,755)
1083 %doc doc/src/sgml/html howto
1084 %{_examplesdir}/%{name}-%{version}
1085
1086 %files libs -f libpq5-%{mver}.lang
1087 %defattr(644,root,root,755)
1088 %attr(755,root,root) %{_libdir}/libpq.so.*.*
1089 %attr(755,root,root) %ghost %{_libdir}/libpq.so.5
1090 %dir %{_pgmoduledir}
1091
1092 %files ecpg -f ecpg.lang
1093 %defattr(644,root,root,755)
1094 %attr(755,root,root) %{_bindir}/ecpg
1095 %attr(755,root,root) %{_libdir}/libecpg.so.*.*
1096 %attr(755,root,root) %ghost %{_libdir}/libecpg.so.6
1097 %attr(755,root,root) %{_libdir}/libecpg_compat.so.*.*
1098 %attr(755,root,root) %ghost %{_libdir}/libecpg_compat.so.3
1099 %attr(755,root,root) %{_libdir}/libpgtypes.so.*.*
1100 %attr(755,root,root) %ghost %{_libdir}/libpgtypes.so.3
1101 %{_mandir}/man1/ecpg.1*
1102
1103 %files ecpg-devel
1104 %defattr(644,root,root,755)
1105 %attr(755,root,root) %{_libdir}/libecpg.so
1106 %attr(755,root,root) %{_libdir}/libecpg_compat.so
1107 %attr(755,root,root) %{_libdir}/libpgtypes.so
1108 %{_includedir}/ecpg*
1109 %{_pkgconfigdir}/libecpg.pc
1110 %{_pkgconfigdir}/libecpg_compat.pc
1111 %{_pkgconfigdir}/libpgtypes.pc
1112
1113 %files devel -f pg_config-%{mver}.lang
1114 %defattr(644,root,root,755)
1115 %attr(755,root,root) %{_bindir}/pg_config
1116 %attr(755,root,root) %{_libdir}/libpq.so
1117 %dir %{_includedir}/postgresql
1118 %{_includedir}/libpq-events.h
1119 %{_includedir}/libpq-fe.h
1120 %{_includedir}/pg_config.h
1121 %{_includedir}/pg_config_ext.h
1122 %{_includedir}/pg_config_manual.h
1123 %{_includedir}/pg_config_os.h
1124 %{_includedir}/postgres_ext.h
1125 %dir %{_includedir}/postgresql/internal
1126 %{_includedir}/postgresql/internal/c.h
1127 %{_includedir}/postgresql/internal/libpq-int.h
1128 %{_includedir}/postgresql/internal/port.h
1129 %{_includedir}/postgresql/internal/postgres_fe.h
1130 %{_includedir}/postgresql/internal/pqexpbuffer.h
1131 %{_includedir}/postgresql/internal/libpq
1132 %{_includedir}/libpq
1133 %{_pkgconfigdir}/libpq.pc
1134 %{_mandir}/man1/pg_config.1*
1135
1136 %files backend-devel
1137 %defattr(644,root,root,755)
1138 %{_includedir}/postgresql/server
1139 %dir %{_pgmoduledir}/pgxs
1140 %attr(755,root,root) %{_pgmoduledir}/pgxs/config
1141 %{_pgmoduledir}/pgxs/src
1142 %{_mandir}/man3/SPI_*.3*
1143
1144 %files static
1145 %defattr(644,root,root,755)
1146 %{_libdir}/libecpg.a
1147 %{_libdir}/libecpg_compat.a
1148 %{_libdir}/libpq.a
1149 %{_libdir}/libpgcommon.a
1150 %{_libdir}/libpgtypes.a
1151 %{_libdir}/libpgport.a
1152
1153 %files clients -f clients-%{mver}.lang
1154 %defattr(644,root,root,755)
1155 %attr(755,root,root) %{_bindir}/clusterdb
1156 %attr(755,root,root) %{_bindir}/createdb
1157 %attr(755,root,root) %{_bindir}/createlang
1158 %attr(755,root,root) %{_bindir}/createuser
1159 %attr(755,root,root) %{_bindir}/dropdb
1160 %attr(755,root,root) %{_bindir}/droplang
1161 %attr(755,root,root) %{_bindir}/dropuser
1162 %attr(755,root,root) %{_bindir}/pg_dump
1163 %attr(755,root,root) %{_bindir}/pg_dumpall
1164 %attr(755,root,root) %{_bindir}/pg_isready
1165 %attr(755,root,root) %{_bindir}/pg_restore
1166 %attr(755,root,root) %{_bindir}/psql
1167 %attr(755,root,root) %{_bindir}/reindexdb
1168 %attr(755,root,root) %{_bindir}/vacuumdb
1169
1170 %{_mandir}/man1/clusterdb.1*
1171 %{_mandir}/man1/createdb.1*
1172 %{_mandir}/man1/createlang.1*
1173 %{_mandir}/man1/createuser.1*
1174 %{_mandir}/man1/dropdb.1*
1175 %{_mandir}/man1/droplang.1*
1176 %{_mandir}/man1/dropuser.1*
1177 %{_mandir}/man1/pg_dump.1*
1178 %{_mandir}/man1/pg_dumpall.1*
1179 %{_mandir}/man1/pg_isready.1*
1180 %{_mandir}/man1/pg_restore.1*
1181 %{_mandir}/man1/pg_upgrade.1.gz
1182 %{_mandir}/man1/psql.1*
1183 %{_mandir}/man1/reindexdb.1*
1184 %{_mandir}/man1/vacuumdb.1*
1185 %{_mandir}/man7/*.7*
1186
1187 %if %{with perl}
1188 %files module-plperl -f plperl-%{mver}.lang
1189 %defattr(644,root,root,755)
1190 %attr(755,root,root) %{_pgmoduledir}/plperl.so
1191 %{_pgsqldir}/plperl--*.sql
1192 %{_pgsqldir}/plperl.control
1193 %{_pgsqldir}/plperlu--*.sql
1194 %{_pgsqldir}/plperlu.control
1195 %endif
1196
1197 %if %{with python}
1198 %files module-plpython -f plpython-%{mver}.lang
1199 %defattr(644,root,root,755)
1200 %attr(755,root,root) %{_pgmoduledir}/plpython2.so
1201 %{_pgsqldir}/plpython*--*.sql
1202 %{_pgsqldir}/plpython*.control
1203 %endif
1204
1205 %if %{with tcl}
1206 %files module-pltcl -f pltcl-%{mver}.lang
1207 %defattr(644,root,root,755)
1208 %attr(755,root,root) %{_bindir}/pltcl_*
1209 %attr(755,root,root) %{_pgmoduledir}/pltcl.so
1210 %{_pgsqldir}/unknown.pltcl
1211 %{_pgsqldir}/pltcl*--*.sql
1212 %{_pgsqldir}/pltcl*.control
1213 %endif
1214
1215 %files module-dblink
1216 %defattr(644,root,root,755)
1217 %attr(755,root,root) %{_pgmoduledir}/dblink.so
1218 %{_pgsqldir}/dblink--*.sql
1219 %{_pgsqldir}/dblink.control
1220 %{_mandir}/man3/dblink*.3*
1221
1222 %files module-lo
1223 %defattr(644,root,root,755)
1224 %attr(755,root,root) %{_pgmoduledir}/lo.so
1225 %{_pgsqldir}/lo--*.sql
1226 %{_pgsqldir}/lo.control
1227
1228 %files module-pg_trgm
1229 %defattr(644,root,root,755)
1230 %attr(755,root,root) %{_pgmoduledir}/pg_trgm.so
1231 %{_pgsqldir}/pg_trgm--*.sql
1232 %{_pgsqldir}/pg_trgm.control
1233
1234 %files module-pgcrypto
1235 %defattr(644,root,root,755)
1236 %attr(755,root,root) %{_pgmoduledir}/pgcrypto.so
1237 %{_pgsqldir}/pgcrypto--*.sql
1238 %{_pgsqldir}/pgcrypto.control
1239
1240 %if %{with selinux}
1241 %files module-sepgsql
1242 %defattr(644,root,root,755)
1243 %attr(755,root,root) %{_pgmoduledir}/sepgsql.so
1244 %{_pgsqldir}/sepgsql.sql
1245 %endif
1246
1247 %files module-tablefunc
1248 %defattr(644,root,root,755)
1249 %attr(755,root,root) %{_pgmoduledir}/tablefunc.so
1250 %{_pgsqldir}/*tablefunc--*.sql
1251 %{_pgsqldir}/*tablefunc.control
1252
1253 %files module-xml2
1254 %defattr(644,root,root,755)
1255 %attr(755,root,root) %{_pgmoduledir}/pgxml.so
1256 %{_pgsqldir}/xml2--*.sql
1257 %{_pgsqldir}/xml2.control
1258
1259 %files contrib
1260 %defattr(644,root,root,755)
1261 %doc contrib/README
1262 %attr(755,root,root) %{_bindir}/oid2name
1263 %attr(755,root,root) %{_bindir}/pg_archivecleanup
1264 %attr(755,root,root) %{_bindir}/pg_standby
1265 %attr(755,root,root) %{_bindir}/pg_xlogdump
1266 %attr(755,root,root) %{_bindir}/pgbench
1267 %attr(755,root,root) %{_bindir}/pg_test_timing
1268 %attr(755,root,root) %{_bindir}/vacuumlo
1269 %attr(755,root,root) %{_pgmoduledir}/_int.so
1270 %attr(755,root,root) %{_pgmoduledir}/adminpack.so
1271 %attr(755,root,root) %{_pgmoduledir}/auth_delay.so
1272 %attr(755,root,root) %{_pgmoduledir}/auto_explain.so
1273 %attr(755,root,root) %{_pgmoduledir}/btree_gin.so
1274 %attr(755,root,root) %{_pgmoduledir}/btree_gist.so
1275 %attr(755,root,root) %{_pgmoduledir}/chkpass.so
1276 %attr(755,root,root) %{_pgmoduledir}/citext.so
1277 %attr(755,root,root) %{_pgmoduledir}/cube.so
1278 %attr(755,root,root) %{_pgmoduledir}/earthdistance.so
1279 %attr(755,root,root) %{_pgmoduledir}/file_fdw.so
1280 %attr(755,root,root) %{_pgmoduledir}/fuzzystrmatch.so
1281 %attr(755,root,root) %{_pgmoduledir}/hstore.so
1282 %attr(755,root,root) %{_pgmoduledir}/isn.so
1283 %attr(755,root,root) %{_pgmoduledir}/ltree.so
1284 %attr(755,root,root) %{_pgmoduledir}/pageinspect.so
1285 %attr(755,root,root) %{_pgmoduledir}/passwordcheck.so
1286 %attr(755,root,root) %{_pgmoduledir}/pg_buffercache.so
1287 %attr(755,root,root) %{_pgmoduledir}/pg_freespacemap.so
1288 %attr(755,root,root) %{_pgmoduledir}/pg_stat_statements.so
1289 %attr(755,root,root) %{_pgmoduledir}/pgrowlocks.so
1290 %attr(755,root,root) %{_pgmoduledir}/pgstattuple.so
1291 %attr(755,root,root) %{_pgmoduledir}/postgres_fdw.so
1292 %attr(755,root,root) %{_pgmoduledir}/seg.so
1293 %attr(755,root,root) %{_pgmoduledir}/sslinfo.so
1294 %attr(755,root,root) %{_pgmoduledir}/tcn.so
1295 %attr(755,root,root) %{_pgmoduledir}/unaccent.so
1296 %attr(755,root,root) %{_pgmoduledir}/uuid-ossp.so
1297 %{_pgsqldir}/adminpack--*.sql
1298 %{_pgsqldir}/adminpack.control
1299 %{_pgsqldir}/btree_gin--*.sql
1300 %{_pgsqldir}/btree_gin.control
1301 %{_pgsqldir}/btree_gist--*.sql
1302 %{_pgsqldir}/btree_gist.control
1303 %{_pgsqldir}/chkpass--*.sql
1304 %{_pgsqldir}/chkpass.control
1305 %{_pgsqldir}/citext--*.sql
1306 %{_pgsqldir}/citext.control
1307 %{_pgsqldir}/cube--*.sql
1308 %{_pgsqldir}/cube.control
1309 %{_pgsqldir}/dict_int--*.sql
1310 %{_pgsqldir}/dict_int.control
1311 %{_pgsqldir}/dict_xsyn--*.sql
1312 %{_pgsqldir}/dict_xsyn.control
1313 %{_pgsqldir}/earthdistance--*.sql
1314 %{_pgsqldir}/earthdistance.control
1315 %{_pgsqldir}/file_fdw--*.sql
1316 %{_pgsqldir}/file_fdw.control
1317 %{_pgsqldir}/fuzzystrmatch--*.sql
1318 %{_pgsqldir}/fuzzystrmatch.control
1319 %{_pgsqldir}/hstore--*.sql
1320 %{_pgsqldir}/hstore.control
1321 %{_pgsqldir}/intarray--*.sql
1322 %{_pgsqldir}/intarray.control
1323 %{_pgsqldir}/intagg--*.sql
1324 %{_pgsqldir}/intagg.control
1325 %{_pgsqldir}/isn--*.sql
1326 %{_pgsqldir}/isn.control
1327 %{_pgsqldir}/ltree--*.sql
1328 %{_pgsqldir}/ltree.control
1329 %{_pgsqldir}/pageinspect--*.sql
1330 %{_pgsqldir}/pageinspect.control
1331 %{_pgsqldir}/pg_buffercache--*.sql
1332 %{_pgsqldir}/pg_buffercache.control
1333 %{_pgsqldir}/pg_freespacemap--*.sql
1334 %{_pgsqldir}/pg_freespacemap.control
1335 %{_pgsqldir}/pg_stat_statements--*.sql
1336 %{_pgsqldir}/pg_stat_statements.control
1337 %{_pgsqldir}/pgrowlocks--*.sql
1338 %{_pgsqldir}/pgrowlocks.control
1339 %{_pgsqldir}/pgstattuple--*.sql
1340 %{_pgsqldir}/pgstattuple.control
1341 %{_pgsqldir}/postgres_fdw--*.sql
1342 %{_pgsqldir}/postgres_fdw.control
1343 %{_pgsqldir}/seg--*.sql
1344 %{_pgsqldir}/seg.control
1345 %{_pgsqldir}/sslinfo--*.sql
1346 %{_pgsqldir}/sslinfo.control
1347 %{_pgsqldir}/tcn--*.sql
1348 %{_pgsqldir}/tcn.control
1349 %{_pgsqldir}/unaccent--*.sql
1350 %{_pgsqldir}/unaccent.control
1351 %{_pgsqldir}/uuid-ossp--*.sql
1352 %{_pgsqldir}/uuid-ossp.control
1353 %{_mandir}/man1/oid2name.1*
1354 %{_mandir}/man1/pg_archivecleanup.1*
1355 %{_mandir}/man1/pg_standby.1*
1356 %{_mandir}/man1/pg_xlogdump.1*
1357 %{_mandir}/man1/pgbench.1*
1358 %{_mandir}/man1/vacuumlo.1*
This page took 0.139812 seconds and 3 git commands to generate.