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