]> git.pld-linux.org Git - packages/postgresql.git/blame - postgresql.spec
- up to 8.4.2 (fixes CVE-2009-4034, CVE-2009-4136)
[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
96b39125
AM
27Version: %{mver}.2
28Release: 1
3b12d52f 29License: BSD
016f481d 30Group: Applications/Databases
74ecf57d 31Source0: ftp://ftp.postgresql.org/pub/source/v%{version}/%{name}-%{version}.tar.bz2
96b39125 32# Source0-md5: d738227e2f1f742d2f2d4ab56496c5c6
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}
00287bb7 565
566%description module-plperl
a94ae93a 567From PostgreSQL documentation:
00287bb7 568
569Postgres supports the definition of procedural languages. In the case
570of a function or trigger procedure defined in a procedural language,
571the database has no built-in knowledge about how to interpret the
572function's source text. Instead, the task is passed to a handler that
573knows the details of the language. The handler itself is a special
574programming language function compiled into a shared object and loaded
575on demand.
576
dce5630b 577To enable PL/Perl procedural language for your database you have to
00287bb7 578run createlang command.
579
c76c631a 580%description module-plperl -l pl.UTF-8
a94ae93a 581Z dokumentacji PostgreSQL:
00287bb7 582
c76c631a
JR
583Postgres ma wsparcie dla języków proceduralnych. W przypadku, kiedy
584programista zdefiniuje procedurę wyzwalacza lub funkcję w języku
585proceduralnym, baza danych nie ma pojęcia jak interpretować tego typu
586funkcję. Funkcja lub procedura ta jest przekazywana do interpretera,
587który wie jak ją wykonać. Interpreter jest odpowiednią, specjalną
588funkcją, która jest skompilowana w obiekt dzielony i ładowany w razie
00287bb7 589potrzeby.
590
c76c631a 591Za pomocą polecenia createlang można dodać obsługę języka
dce5630b 592proceduralnego PL/Perl dla swojej bazy danych.
00287bb7 593
594%package module-plpython
dce5630b 595Summary: PL/Python - PostgreSQL procedural language
620f9138 596Summary(pl.UTF-8): PL/Python - język proceduralny bazy danych PostgreSQL
00287bb7 597Group: Applications/Databases
2bfb68de 598Requires: %{name} = %{version}-%{release}
6a64b227 599%pyrequires_eq python
00287bb7 600
601%description module-plpython
a94ae93a 602From PostgreSQL documentation:
00287bb7 603
604Postgres supports the definition of procedural languages. In the case
605of a function or trigger procedure defined in a procedural language,
606the database has no built-in knowledge about how to interpret the
607function's source text. Instead, the task is passed to a handler that
608knows the details of the language. The handler itself is a special
609programming language function compiled into a shared object and loaded
610on demand.
611
dce5630b 612To enable PL/Python procedural language for your database you have to
00287bb7 613run createlang command.
614
c76c631a 615%description module-plpython -l pl.UTF-8
a94ae93a 616Z dokumentacji PostgreSQL:
00287bb7 617
c76c631a
JR
618Postgres ma wsparcie dla języków proceduralnych. W przypadku, kiedy
619programista zdefiniuje procedurę wyzwalacza lub funkcję w języku
620proceduralnym, baza danych nie ma pojęcia jak interpretować tego typu
621funkcję. Funkcja lub procedura ta jest przekazywana do interpretera,
622który wie jak ją wykonać. Interpreter jest odpowiednią, specjalną
623funkcją, która jest skompilowana w obiekt dzielony i ładowany w razie
00287bb7 624potrzeby.
625
c76c631a 626Za pomocą polecenia createlang można dodać obsługę języka
dce5630b 627proceduralnego PL/Python dla swojej bazy danych.
00287bb7 628
4ddf546b 629%package module-pltcl
dce5630b 630Summary: PL/Tcl - PostgreSQL procedural language
620f9138 631Summary(pl.UTF-8): PL/Tcl - język proceduralny bazy danych PostgreSQL
4ddf546b 632Group: Applications/Databases
2bfb68de 633Requires: %{name} = %{version}-%{release}
7543e4a8 634Requires: tcl(Pgtcl)
4ddf546b 635
636%description module-pltcl
a94ae93a 637From PostgreSQL documentation:
4ddf546b 638
368587a1 639Postgres supports the definition of procedural languages. In the case
640of a function or trigger procedure defined in a procedural language,
641the database has no built-in knowledge about how to interpret the
642function's source text. Instead, the task is passed to a handler that
643knows the details of the language. The handler itself is a special
644programming language function compiled into a shared object and loaded
645on demand.
4ddf546b 646
dce5630b 647To enable PL/Tcl procedural language for your database you have to run
4ddf546b 648createlang command.
649
c76c631a 650%description module-pltcl -l pl.UTF-8
a94ae93a 651Z dokumentacji PostgreSQL:
4ddf546b 652
c76c631a
JR
653Postgres ma wsparcie dla języków proceduralnych. W przypadku, kiedy
654programista zdefiniuje procedurę wyzwalacza lub funkcję w języku
655proceduralnym, baza danych nie ma pojęcia jak interpretować tego typu
656funkcję. Funkcja lub procedura ta jest przekazywana do interpretera,
657który wie jak ją wykonać. Interpreter jest odpowiednią, specjalną
658funkcją, która jest skompilowana w obiekt dzielony i ładowany w razie
368587a1 659potrzeby.
4ddf546b 660
c76c631a 661Za pomocą polecenia createlang można dodać obsługę języka
dce5630b 662proceduralnego PL/Tcl dla swojej bazy danych.
4ddf546b 663
d8edd803
JB
664%package module-dblink
665Summary: dblink module for PostgreSQL
620f9138 666Summary(pl.UTF-8): Moduł dblink dla PostgreSQL-a
d8edd803
JB
667Group: Applications/Databases
668Requires: %{name} = %{version}-%{release}
669
670%description module-dblink
671dblink module for PostgreSQL provides functions returning results from
672remote database.
673
c76c631a
JR
674%description module-dblink -l pl.UTF-8
675Moduł dblink dla PostgreSQL-a udostępnia funkcje zwracające wyniki ze
d8edd803
JB
676zdalnej bazy danych.
677
8646766c
JB
678%package module-lo
679Summary: Large Objects module for PostgreSQL
620f9138 680Summary(pl.UTF-8): Moduł Large Objects dla PostgreSQL-a
8646766c
JB
681Group: Applications/Databases
682Requires: %{name} = %{version}-%{release}
683
684%description module-lo
685Large Objects module for PostgreSQL adds a new data type 'lo', some
686support functions and a trigger which handles the orphaning problem.
687
c76c631a
JR
688%description module-lo -l pl.UTF-8
689Moduł Large Objects dla PostgreSQL-a dodaje nowy typ danych 'lo',
690kilka funkcji pomocniczych i wyzwalacz rozwiązujący problem
691osieroconych obiektów.
8646766c 692
5b79623d 693%package module-pgcrypto
ff04b431 694Summary: Cryptographic functions for PostgreSQL
620f9138 695Summary(pl.UTF-8): Funkcje kryptograficzne dla PostgreSQL-a
ff04b431 696Group: Applications/Databases
2bfb68de 697Requires: %{name} = %{version}-%{release}
ff04b431 698
5b79623d 699%description module-pgcrypto
700Cryptographic functions for PostgreSQL.
ff04b431 701
c76c631a 702%description module-pgcrypto -l pl.UTF-8
5b79623d 703Funkcje kryptograficzne dla PostgreSQL.
ff04b431 704
bc5c807d 705%package module-tablefunc
d8edd803 706Summary: crosstab functions for PostgreSQL
620f9138 707Summary(pl.UTF-8): Funkcje crosstab dla PostgreSQL-a
bc5c807d
PG
708Group: Applications/Databases
709Requires: %{name} = %{version}-%{release}
710
711%description module-tablefunc
d8edd803
JB
712crosstab functions for PostgreSQL.
713
c76c631a 714%description module-tablefunc -l pl.UTF-8
d8edd803 715Funkcje crosstab dla PostgreSQL-a.
bc5c807d 716
b70e6cb6
AM
717%package module-pg_trgm
718Summary: Trigram matching for PostgreSQL
620f9138 719Summary(pl.UTF-8): Dopasowanie trigramowe dla PostgreSQL-a
b70e6cb6
AM
720Group: Applications/Databases
721Requires: %{name} = %{version}-%{release}
722
723%description module-pg_trgm
83a0f474
JB
724This module provides functions and index classes for determining the
725similarity of text based on trigram matching.
b70e6cb6 726
c76c631a
JR
727%description module-pg_trgm -l pl.UTF-8
728Ten moduł dostarcza funkcje i klasy do rozpoznawania podobnych tekstów
83a0f474 729w oparciu o dopasowywanie trigramowe (trigram matching).
b70e6cb6 730
0b02f266 731%package module-xml2
732Summary: XML-handling functions for PostgreSQL
620f9138 733Summary(pl.UTF-8): Funkcje do obsługi XML-a dla PostgreSQL-a
0b02f266 734Group: Applications/Databases
735Requires: %{name} = %{version}-%{release}
736
737%description module-xml2
738Module with XML functions provides both XPath querying and XSLT
739functionality. There is also a new table function which allows the
740straightforward return of multiple XML results.
741
c76c631a
JR
742%description module-xml2 -l pl.UTF-8
743Moduł z funkcjami XML zapewniającymi obsługę zapytań XPath oraz
744funkcjonalność XSLT. Jest także nowa funkcja tabelowa pozwalająca na
745bezpośrednie zwracanie wielu wyników XML.
6a83c38f 746
c51da2b5 747%package contrib
01586e45
JB
748Summary: Miscellaneous PostgreSQL contrib modules
749Summary(pl.UTF-8): Różne moduły dołączone do PostgreSQL-a
c51da2b5 750Group: Applications/Databases
751Requires: %{name} = %{version}-%{release}
752
753%description contrib
01586e45
JB
754Miscellaneous PostgreSQL contrib modules.
755
756%description contrib -l pl.UTF-8
757Różne moduły dołączone do PostgreSQL-a.
c51da2b5 758
b35e841d 759%prep
b7325cb2 760%setup -q
a1028a17 761%patch0 -p1
dc307bb4 762%{?with_absolute_dbpaths:%patch1 -p1}
c51da2b5 763%patch2 -p1
0fed4ed9 764%patch3 -p1
dc307bb4 765%patch4 -p1
62d00b81 766%patch5 -p1
a1028a17
AM
767
768tar xzf doc/man*.tar.gz
b35e841d 769
c80000c0
JR
770mkdir doc/unpacked
771tar zxf doc/postgres.tar.gz -C doc/unpacked
772
c51da2b5 773# force rebuild of bison/flex files
774find src -name \*.l -o -name \*.y | xargs touch
775
99e19e69 776# Erase all CVS dirs
dc307bb4 777#find contrib -type d -name CVS -exec rm -rf {} \;
48115857 778
b35e841d 779%build
0188dcac 780%{__aclocal} -I config
8204288a 781%{__autoconf}
99e19e69 782%configure \
c74c603d 783 CFLAGS="%{rpmcflags} -DNEED_REENTRANT_FUNCS `uuid-config --cflags`" \
12ff1bb8
JB
784 --disable-rpath \
785 --enable-depend \
786 --enable-integer-datetimes \
c51da2b5 787 --with-system-tzdata=%{_datadir}/zoneinfo \
eaf24b0b 788 --enable-nls \
12ff1bb8 789 --enable-thread-safety \
7a6f5720 790 %{?with_kerberos5:--with-gssapi} \
dc307bb4 791 %{?with_kerberos5:--with-krb5} \
4c35c6a5 792 %{?with_ldap:--with-ldap} \
40a8e4da 793 --with-openssl \
12ff1bb8 794 --with-pam \
55c59a48 795 --with-libxml \
e482b477 796 --with-libxslt \
12ff1bb8
JB
797 %{?with_perl:--with-perl} \
798 %{?with_python:--with-python} \
2477983b 799 %{?with_tcl:--with-tcl --with-tclconfig=%{_ulibdir}} \
c74c603d 800 --with-ossp-uuid \
3a2e0fdd 801 --without-docdir
b35e841d 802
40a8e4da 803%{__make}
c51da2b5 804
805for mod in %{contrib_modules}; do \
c7427375 806 flags="%{rpmcflags} -DNEED_REENTRANT_FUNCS"
c74c603d 807 if [ $mod = "xml2" ]; then flags="$flags -I/usr/include/libxml2"; fi
808 if [ $mod = "uuid-ossp" ]; then flags="$flags `uuid-config --cflags`"; fi
c7427375 809 %{__make} -C contrib/$mod CFLAGS="$flags"
c51da2b5 810done
811
12ff1bb8
JB
812%{__make} -C src/tutorial \
813 NO_PGXS=1
b4287983 814
f863bf87 815%ifnarch sparc sparcv9 sparc64 alpha
ac67838e 816%{?with_tests:%{__make} check}
00287bb7 817%endif
b35e841d 818
819%install
820rm -rf $RPM_BUILD_ROOT
42954e9c 821install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{rc.d/init.d,sysconfig}} \
7dac5ffa 822 $RPM_BUILD_ROOT{/var/{lib/pgsql,log},%{_pgsqldir}} \
ee5a78dc 823 $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} \
d2bf084f 824 $RPM_BUILD_ROOT%{_mandir} \
320d02f0 825 $RPM_BUILD_ROOT/home/services/postgres
4f5dceb8 826
12ff1bb8 827install src/tutorial/*.sql $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
438eb355 828
dc307bb4 829%{__make} install \
00287bb7 830 DESTDIR=$RPM_BUILD_ROOT
831
99e19e69
JB
832%if %{with perl}
833%{__make} install -C src/pl/plperl \
834 DESTDIR=$RPM_BUILD_ROOT
835%endif
00287bb7 836
c51da2b5 837for mod in %{contrib_modules}; do \
838 %{__make} -C contrib/$mod install \
839 DESTDIR=$RPM_BUILD_ROOT
840done
0b02f266 841
048840cb 842touch $RPM_BUILD_ROOT/var/log/pgsql
b35e841d 843
9bf007d0 844install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/postgresql
b752f531 845install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/postgresql
b35e841d 846
b35e841d 847install -d howto
4b61b2c1 848tar zxf %{SOURCE2} -C howto
b35e841d 849
f43486f3 850%if %{with python}
be3e6567 851%py_comp $RPM_BUILD_ROOT%{py_libdir}
852%py_ocomp $RPM_BUILD_ROOT%{py_libdir}
f43486f3 853%endif
40a8e4da 854
fe8440d2 855# find locales
aa627e03 856for 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 857 %find_lang $f-%{mver}
fe8440d2 858done
859# merge locales
055aa993
JR
860cat pgscripts-%{mver}.lang pg_resetxlog-%{mver}.lang \
861 postgres-%{mver}.lang pg_controldata-%{mver}.lang \
862 > main-%{mver}.lang
863cat pg_dump-%{mver}.lang psql-%{mver}.lang initdb-%{mver}.lang \
864 pg_ctl-%{mver}.lang > clients-%{mver}.lang
3a90355c 865cat ecpg-%{mver}.lang ecpglib6-%{mver}.lang > ecpg.lang
dc307bb4 866
867# Remove Contrib documentation. We use macro %doc
868rm -rf $RPM_BUILD_ROOT/contrib
fe8440d2 869
b86befb8
JR
870%if %{with tcl}
871%find_lang pltcl-%{mver}
872mv $RPM_BUILD_ROOT{%{_datadir}/postgresql,%{_pgsqldir}}/unknown.pltcl
873%endif
7543e4a8 874
e0ee9cb2 875install src/pl/plperl/ppport.h $RPM_BUILD_ROOT%{_includedir}/postgresql/server/
876
c74c603d 877# package it...? nah, why bother.
878rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/postgresql/html
879
a9e3ed5f
JB
880%clean
881rm -rf $RPM_BUILD_ROOT
a9e3ed5f 882
f911dd9e 883%pretrans
4239f689
JB
884PG_DB_CLUSTERS=""
885if [ -f /etc/sysconfig/postgresql ]; then
886 . /etc/sysconfig/postgresql
887 if [ -z "$PG_DB_CLUSTERS" -a -n "$POSTGRES_DATA_DIR" ]; then
888 PG_DB_CLUSTERS="$POSTGRES_DATA_DIR"
889 fi
890fi
891foundold=0
892for pgdir in $PG_DB_CLUSTERS; do
893 if [ -f $pgdir/PG_VERSION ]; then
ed4eae76 894 if [ $(cat $pgdir/PG_VERSION) != '8.4' ]; then
4239f689
JB
895 echo "Found database(s) in older, incompatible format in cluster $pgdir."
896 foundold=1
897 fi
898 fi
899done
900if [ "$foundold" = "1" ]; then
901 echo
902 echo "Dump all data from clusters mentioned above (using pg_dump or pg_dumpall)"
903 echo "and clean (or rename) those directories; then upgrade postgresql and"
904 echo "restore all data (using pg_restore or psql)."
905 echo "Remember to stop the daemon before upgrading!"
906 echo
907 echo "Warning for upgrade from version *before* 7.2."
908 echo "Please note, that postgresql module path changed from"
909 echo "/usr/lib/pgsql/module to /usr/lib/postgresql. Change the path"
910 echo "in dump file before restore."
911 echo
912 echo "Warning for upgrade from version *before* 7.3."
913 echo "Reading following webpage is encouraged:"
258750c1 914 echo "http://www.ca.postgresql.org/docs/momjian/upgrade_tips_7.3"
4239f689
JB
915 exit 1
916fi
4c2f9988 917
f911dd9e 918%pre
4b61b2c1
ER
919%groupadd -g 88 -r postgres
920%useradd -M -o -r -u 88 -d /home/services/postgres -s /bin/sh -g postgres -c "PostgreSQL Server" postgres
921
3c7ef761 922%triggerpostun -- %{name} < 7.2-2
e76d3d1a 923if [ -n "`/bin/id -u postgres 2>/dev/null`" ]; then
320d02f0 924 /usr/sbin/usermod -d /home/services/postgres postgres
320d02f0 925fi
4a025d17 926
b35e841d 927%post
1bc01910 928/sbin/chkconfig --add postgresql
3a2e0fdd 929%service postgresql restart "postgresql server"
c1db913e 930
1bc01910 931%preun
932if [ "$1" = "0" ]; then
3a2e0fdd 933 %service postgresql stop
1bc01910 934 /sbin/chkconfig --del postgresql
935fi
016f481d 936
a0af78da 937%post libs -p /sbin/ldconfig
938%postun libs -p /sbin/ldconfig
48115857 939
a0af78da 940%post ecpg -p /sbin/ldconfig
941%postun ecpg -p /sbin/ldconfig
6564a583 942
055aa993 943%files -f main-%{mver}.lang
103c268d 944%defattr(644,root,root,755)
3adf53fb 945%doc COPYRIGHT README HISTORY doc/{README*,bug.template}
bd011839 946%attr(754,root,root) /etc/rc.d/init.d/postgresql
63ca64a6 947%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/postgresql
b35e841d 948
e957782b 949%attr(755,root,root) %{_bindir}/initdb
084a7c24 950%attr(755,root,root) %{_bindir}/pg_controldata
951%attr(755,root,root) %{_bindir}/pg_ctl
084a7c24 952%attr(755,root,root) %{_bindir}/pg_resetxlog
e957782b 953%attr(755,root,root) %{_bindir}/postgres
954%attr(755,root,root) %{_bindir}/postmaster
084a7c24 955
956%attr(755,root,root) %{_pgmoduledir}/ascii*
957%attr(755,root,root) %{_pgmoduledir}/cyrillic*
958%attr(755,root,root) %{_pgmoduledir}/euc*
959%attr(755,root,root) %{_pgmoduledir}/latin*
960%attr(755,root,root) %{_pgmoduledir}/utf*
c51da2b5 961%attr(755,root,root) %{_pgmoduledir}/dict_*
7386fb4a 962
00287bb7 963%dir %{_pgsqldir}
1888f1fe 964%dir %{_datadir}/postgresql
c80000c0
JR
965%{_datadir}/postgresql/*.bki
966%{_datadir}/postgresql/*.sample
967%{_datadir}/postgresql/*.description
26925000 968%{_datadir}/postgresql/*.shdescription
fd6c8fe0 969%{_datadir}/postgresql/*.sql
16404f9a 970%{_datadir}/postgresql/*.txt
687787e7 971%{_datadir}/postgresql/timezonesets
c51da2b5 972%{_datadir}/postgresql/tsearch_data
3786c16b 973
320d02f0 974%attr(700,postgres,postgres) /home/services/postgres
af01ba47 975%attr(700,postgres,postgres) %dir /var/lib/pgsql
63ca64a6 976%attr(640,postgres,postgres) %config(noreplace) %verify(not md5 mtime size) /var/log/pgsql
048840cb 977
7386fb4a 978%{_mandir}/man1/initdb.1*
084a7c24 979%{_mandir}/man1/pg_controldata.1*
980%{_mandir}/man1/pg_ctl.1*
981%{_mandir}/man1/pg_resetxlog.1*
7386fb4a
AF
982%{_mandir}/man1/postgres.1*
983%{_mandir}/man1/postmaster.1*
084a7c24 984
048840cb 985%files doc
986%defattr(644,root,root,755)
3adf53fb 987%doc doc/unpacked/* howto
438eb355 988%{_examplesdir}/%{name}-%{version}
5cb5ee80 989
055aa993 990%files libs -f libpq5-%{mver}.lang
7386fb4a 991%defattr(644,root,root,755)
a28e2aa1 992%attr(755,root,root) %{_libdir}/libpq.so.*.*
1909f764 993%attr(755,root,root) %ghost %{_libdir}/libpq.so.5
12ff1bb8 994%dir %{_pgmoduledir}
7386fb4a 995
dc856210 996%files ecpg -f ecpg.lang
016f481d 997%defattr(644,root,root,755)
00287bb7 998%attr(755,root,root) %{_bindir}/ecpg
6564a583 999%attr(755,root,root) %{_libdir}/libecpg.so.*.*
1909f764 1000%attr(755,root,root) %ghost %{_libdir}/libecpg.so.6
6564a583 1001%attr(755,root,root) %{_libdir}/libecpg_compat.so.*.*
1909f764 1002%attr(755,root,root) %ghost %{_libdir}/libecpg_compat.so.3
6564a583 1003%attr(755,root,root) %{_libdir}/libpgtypes.so.*.*
1909f764 1004%attr(755,root,root) %ghost %{_libdir}/libpgtypes.so.3
6564a583 1005%{_mandir}/man1/ecpg.1*
1006
1007%files ecpg-devel
1008%defattr(644,root,root,755)
7386fb4a 1009%attr(755,root,root) %{_libdir}/libecpg.so
16404f9a 1010%attr(755,root,root) %{_libdir}/libecpg_compat.so
16404f9a 1011%attr(755,root,root) %{_libdir}/libpgtypes.so
687787e7 1012%{_includedir}/ecpg*
6564a583 1013
055aa993 1014%files devel -f pg_config-%{mver}.lang
6564a583 1015%defattr(644,root,root,755)
1016%attr(755,root,root) %{_bindir}/pg_config
1017%attr(755,root,root) %{_libdir}/libpq.so
1018%dir %{_includedir}/postgresql
ed4eae76 1019%{_includedir}/libpq-events.h
6564a583 1020%{_includedir}/libpq-fe.h
1021%{_includedir}/pg_config.h
6ec5e7a2 1022%{_includedir}/pg_config_manual.h
6564a583 1023%{_includedir}/pg_config_os.h
697ce059 1024%{_includedir}/postgres_ext.h
00287bb7 1025%dir %{_includedir}/postgresql/internal
1026%{_includedir}/postgresql/internal/c.h
1027%{_includedir}/postgresql/internal/libpq-int.h
6ec5e7a2 1028%{_includedir}/postgresql/internal/port.h
00287bb7 1029%{_includedir}/postgresql/internal/postgres_fe.h
1030%{_includedir}/postgresql/internal/pqexpbuffer.h
00287bb7 1031%{_includedir}/postgresql/internal/libpq
084a7c24 1032%{_includedir}/libpq
2b04c0fa 1033%{_mandir}/man1/pg_config.1*
7386fb4a 1034
cb920eb9 1035%files backend-devel
ec709611 1036%defattr(644,root,root,755)
00287bb7 1037%{_includedir}/postgresql/server
12ff1bb8
JB
1038%dir %{_pgmoduledir}/pgxs
1039%attr(755,root,root) %{_pgmoduledir}/pgxs/config
1040%{_pgmoduledir}/pgxs/src
cb920eb9 1041
7386fb4a
AF
1042%files static
1043%defattr(644,root,root,755)
1044%{_libdir}/libecpg.a
16404f9a 1045%{_libdir}/libecpg_compat.a
7386fb4a 1046%{_libdir}/libpq.a
16404f9a 1047%{_libdir}/libpgtypes.a
dc307bb4 1048%{_libdir}/libpgport.a
b35e841d 1049
055aa993 1050%files clients -f clients-%{mver}.lang
103c268d 1051%defattr(644,root,root,755)
06095b90 1052%attr(755,root,root) %{_bindir}/clusterdb
1053%attr(755,root,root) %{_bindir}/createdb
1054%attr(755,root,root) %{_bindir}/createlang
1055%attr(755,root,root) %{_bindir}/createuser
1056%attr(755,root,root) %{_bindir}/dropdb
1057%attr(755,root,root) %{_bindir}/droplang
1058%attr(755,root,root) %{_bindir}/dropuser
e957782b 1059%attr(755,root,root) %{_bindir}/pg_dump
9bf007d0 1060%attr(755,root,root) %{_bindir}/pg_dumpall
c80000c0 1061%attr(755,root,root) %{_bindir}/pg_restore
e957782b 1062%attr(755,root,root) %{_bindir}/psql
af6badf5 1063%attr(755,root,root) %{_bindir}/reindexdb
5cb5ee80 1064%attr(755,root,root) %{_bindir}/vacuumdb
b35e841d 1065
06095b90 1066%{_mandir}/man1/clusterdb.1*
1067%{_mandir}/man1/createdb.1*
1068%{_mandir}/man1/createlang.1*
1069%{_mandir}/man1/createuser.1*
1070%{_mandir}/man1/dropdb.1*
1071%{_mandir}/man1/droplang.1*
1072%{_mandir}/man1/dropuser.1*
7386fb4a
AF
1073%{_mandir}/man1/pg_dump.1*
1074%{_mandir}/man1/pg_dumpall.1*
c80000c0 1075%{_mandir}/man1/pg_restore.1*
7386fb4a 1076%{_mandir}/man1/psql.1*
af6badf5 1077%{_mandir}/man1/reindexdb.1*
c80000c0 1078%{_mandir}/man1/vacuumdb.1*
7dac5ffa 1079%{_mandir}/man7/*.7*
7386fb4a 1080
ed4eae76 1081%files module-plpgsql -f plpgsql-8.4.lang
4ddf546b 1082%defattr(644,root,root,755)
00287bb7 1083%attr(755,root,root) %{_pgmoduledir}/plpgsql.so
1084
c6b2c886 1085%if %{with perl}
ed4eae76 1086%files module-plperl -f plperl-8.4.lang
00287bb7 1087%defattr(644,root,root,755)
1088%attr(755,root,root) %{_pgmoduledir}/plperl.so
c6b2c886 1089%endif
00287bb7 1090
c6b2c886 1091%if %{with python}
ed4eae76 1092%files module-plpython -f plpython-8.4.lang
00287bb7 1093%defattr(644,root,root,755)
1094%attr(755,root,root) %{_pgmoduledir}/plpython.so
c6b2c886 1095%endif
4ddf546b 1096
16404f9a 1097%if %{with tcl}
ed4eae76 1098%files module-pltcl -f pltcl-8.4.lang
4ddf546b 1099%defattr(644,root,root,755)
084a7c24 1100%attr(755,root,root) %{_bindir}/pltcl_*
00287bb7 1101%attr(755,root,root) %{_pgmoduledir}/pltcl.so
7543e4a8 1102%{_pgsqldir}/unknown.pltcl
16404f9a 1103%endif
ff04b431 1104
d8edd803
JB
1105%files module-dblink
1106%defattr(644,root,root,755)
d8edd803 1107%attr(755,root,root) %{_pgmoduledir}/dblink.so
687787e7 1108%{_pgsqldir}/*dblink.sql
d8edd803 1109
8646766c
JB
1110%files module-lo
1111%defattr(644,root,root,755)
8646766c 1112%attr(755,root,root) %{_pgmoduledir}/lo.so
52b2b5d9 1113%{_pgsqldir}/*lo.sql
8646766c 1114
5b79623d 1115%files module-pgcrypto
ff04b431 1116%defattr(644,root,root,755)
5b79623d 1117%attr(755,root,root) %{_pgmoduledir}/pgcrypto.so
687787e7 1118%{_pgsqldir}/*pgcrypto.sql
ae08c8ad 1119
bc5c807d
PG
1120%files module-tablefunc
1121%defattr(644,root,root,755)
bc5c807d 1122%attr(755,root,root) %{_pgmoduledir}/tablefunc.so
687787e7 1123%{_pgsqldir}/*tablefunc.sql
bc5c807d 1124
b70e6cb6
AM
1125%files module-pg_trgm
1126%defattr(644,root,root,755)
b70e6cb6 1127%attr(755,root,root) %{_pgmoduledir}/pg_trgm.so
687787e7 1128%{_pgsqldir}/*pg_trgm.sql
0b02f266 1129
1130%files module-xml2
1131%defattr(644,root,root,755)
0b02f266 1132%attr(755,root,root) %{_pgmoduledir}/pgxml.so
1133%{_pgsqldir}/*pgxml.sql
c51da2b5 1134
1135%files contrib
1136%defattr(644,root,root,755)
1137%doc contrib/README
3c7ef761 1138%attr(755,root,root) %{_bindir}/oid2name
c74c603d 1139%attr(755,root,root) %{_bindir}/pg_standby
3c7ef761
ER
1140%attr(755,root,root) %{_bindir}/pgbench
1141%attr(755,root,root) %{_bindir}/vacuumlo
c51da2b5 1142%attr(755,root,root) %{_pgmoduledir}/_int.so
1143%attr(755,root,root) %{_pgmoduledir}/adminpack.so
c74c603d 1144%attr(755,root,root) %{_pgmoduledir}/auto_explain.so
1145%attr(755,root,root) %{_pgmoduledir}/btree_gin.so
c51da2b5 1146%attr(755,root,root) %{_pgmoduledir}/btree_gist.so
1147%attr(755,root,root) %{_pgmoduledir}/chkpass.so
c74c603d 1148%attr(755,root,root) %{_pgmoduledir}/citext.so
1149%attr(755,root,root) %{_pgmoduledir}/cube.so
1150%attr(755,root,root) %{_pgmoduledir}/earthdistance.so
7caa0fe8 1151%attr(755,root,root) %{_pgmoduledir}/fuzzystrmatch.so
c51da2b5 1152%attr(755,root,root) %{_pgmoduledir}/hstore.so
c51da2b5 1153%attr(755,root,root) %{_pgmoduledir}/isn.so
1154%attr(755,root,root) %{_pgmoduledir}/ltree.so
1155%attr(755,root,root) %{_pgmoduledir}/pageinspect.so
1156%attr(755,root,root) %{_pgmoduledir}/pg_buffercache.so
1157%attr(755,root,root) %{_pgmoduledir}/pg_freespacemap.so
c74c603d 1158%attr(755,root,root) %{_pgmoduledir}/pg_stat_statements.so
c51da2b5 1159%attr(755,root,root) %{_pgmoduledir}/pgrowlocks.so
1160%attr(755,root,root) %{_pgmoduledir}/pgstattuple.so
c74c603d 1161%attr(755,root,root) %{_pgmoduledir}/seg.so
c51da2b5 1162%attr(755,root,root) %{_pgmoduledir}/sslinfo.so
c74c603d 1163%attr(755,root,root) %{_pgmoduledir}/uuid-ossp.so
c51da2b5 1164%{_pgsqldir}/_int.sql
1165%{_pgsqldir}/adminpack.sql
c74c603d 1166%{_pgsqldir}/btree_gin.sql
c51da2b5 1167%{_pgsqldir}/btree_gist.sql
1168%{_pgsqldir}/chkpass.sql
c74c603d 1169%{_pgsqldir}/citext.sql
1170%{_pgsqldir}/cube.sql
1171%{_pgsqldir}/dict_int.sql
1172%{_pgsqldir}/dict_xsyn.sql
1173%{_pgsqldir}/earthdistance.sql
7caa0fe8 1174%{_pgsqldir}/fuzzystrmatch.sql
c51da2b5 1175%{_pgsqldir}/hstore.sql
1176%{_pgsqldir}/int_aggregate.sql
1177%{_pgsqldir}/isn.sql
1178%{_pgsqldir}/ltree.sql
1179%{_pgsqldir}/pageinspect.sql
1180%{_pgsqldir}/pg_buffercache.sql
1181%{_pgsqldir}/pg_freespacemap.sql
c74c603d 1182%{_pgsqldir}/pg_stat_statements.sql
c51da2b5 1183%{_pgsqldir}/pgrowlocks.sql
1184%{_pgsqldir}/pgstattuple.sql
c74c603d 1185%{_pgsqldir}/seg.sql
c51da2b5 1186%{_pgsqldir}/sslinfo.sql
c74c603d 1187%{_pgsqldir}/uuid-ossp.sql
c51da2b5 1188%{_pgsqldir}/uninstall__int.sql
1189%{_pgsqldir}/uninstall_adminpack.sql
c74c603d 1190%{_pgsqldir}/uninstall_btree_gin.sql
c51da2b5 1191%{_pgsqldir}/uninstall_btree_gist.sql
1192%{_pgsqldir}/uninstall_chkpass.sql
c74c603d 1193%{_pgsqldir}/uninstall_citext.sql
1194%{_pgsqldir}/uninstall_cube.sql
1195%{_pgsqldir}/uninstall_dict_int.sql
1196%{_pgsqldir}/uninstall_dict_xsyn.sql
1197%{_pgsqldir}/uninstall_earthdistance.sql
7caa0fe8 1198%{_pgsqldir}/uninstall_fuzzystrmatch.sql
c51da2b5 1199%{_pgsqldir}/uninstall_hstore.sql
1200%{_pgsqldir}/uninstall_int_aggregate.sql
1201%{_pgsqldir}/uninstall_isn.sql
1202%{_pgsqldir}/uninstall_ltree.sql
1203%{_pgsqldir}/uninstall_pageinspect.sql
1204%{_pgsqldir}/uninstall_pg_buffercache.sql
1205%{_pgsqldir}/uninstall_pg_freespacemap.sql
c74c603d 1206%{_pgsqldir}/uninstall_pg_stat_statements.sql
c51da2b5 1207%{_pgsqldir}/uninstall_pgrowlocks.sql
1208%{_pgsqldir}/uninstall_pgstattuple.sql
c74c603d 1209%{_pgsqldir}/uninstall_seg.sql
c51da2b5 1210%{_pgsqldir}/uninstall_sslinfo.sql
c74c603d 1211%{_pgsqldir}/uninstall_uuid-ossp.sql
This page took 0.408126 seconds and 4 git commands to generate.