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