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