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