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