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