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