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