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