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