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