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