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