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