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