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