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