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