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