]> git.pld-linux.org Git - packages/postgresql.git/blob - postgresql.spec
- builds; see TODO
[packages/postgresql.git] / postgresql.spec
1 # TODO:
2 # - package rest of files
3 # - test init script (db initialization)
4 # - test generally
5 #
6 # Conditional build:
7 %bcond_without  tests                   # disable testing
8 %bcond_without  tcl                     # disable Tcl support
9 %bcond_without  kerberos5               # disable kerberos5 support
10 %bcond_without  perl                    # disable Perl support
11 %bcond_without  python                  # disable Python support
12 %bcond_without  ldap                    # disable LDAP support
13 %bcond_with     absolute_dbpaths        # enable absolute paths to create database
14                                         # (disabled by default because it is a security risk)
15 #
16
17 %define beta %{nil}
18 %define mver 9.0
19
20 Summary:        PostgreSQL Data Base Management System
21 Summary(de.UTF-8):      PostgreSQL Datenbankverwaltungssystem
22 Summary(es.UTF-8):      Gestor de Banco de Datos PostgreSQL
23 Summary(fr.UTF-8):      Sysème de gestion de base de données PostgreSQL
24 Summary(pl.UTF-8):      PostgreSQL - system bazodanowy
25 Summary(pt_BR.UTF-8):   Gerenciador de Banco de Dados PostgreSQL
26 Summary(ru.UTF-8):      PostgreSQL - система управления базами данных
27 Summary(tr.UTF-8):      Veri Tabanı Yönetim Sistemi
28 Summary(uk.UTF-8):      PostgreSQL - система керування базами даних
29 Summary(zh_CN.UTF-8):   PostgreSQL 客户端程序和库文件
30 Name:           postgresql
31 Version:        %{mver}.0
32 Release:        0.1
33 License:        BSD
34 Group:          Applications/Databases
35 Source0:        ftp://ftp.postgresql.org/pub/source/v%{version}/%{name}-%{version}.tar.bz2
36 # Source0-md5:  14c2122cc322e69ab2ab702ed7714bbe
37 Source1:        %{name}.init
38 Source2:        pgsql-Database-HOWTO-html.tar.gz
39 # Source2-md5:  5b656ddf1db41965761f85204a14398e
40 Source3:        %{name}.sysconfig
41 Source4:        edb-debugger-20100404.tgz
42 # Source4-md5:  a10daee9a2017db40c7550c40cb47e8d
43 Source5:        %{name}.upstart
44 Source6:        %{name}-instance.upstart
45 Patch0:         %{name}-conf.patch
46 Patch1:         %{name}-absolute_dbpaths.patch
47 Patch2:         %{name}-ecpg-includedir.patch
48 Patch3:         %{name}-ac_version.patch
49 Patch4:         %{name}-disable_horology_test.patch
50 Patch5:         %{name}-pg_ctl-fix.patch
51 URL:            http://www.postgresql.org/
52 BuildRequires:  autoconf
53 BuildRequires:  automake
54 # 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-plpgsql
567 Summary:        PL/pgSQL - PostgreSQL procedural language
568 Summary(pl.UTF-8):      PL/pgSQL - język proceduralny bazy danych PostgreSQL
569 Group:          Applications/Databases
570 Requires:       %{name} = %{version}-%{release}
571
572 %description module-plpgsql
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/pgSQL procedural language for your database you have to
584 run createlang command.
585
586 %description module-plpgsql -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/pgSQL dla swojej bazy danych.
599
600 %package module-plperl
601 Summary:        PL/perl - PostgreSQL procedural language
602 Summary(pl.UTF-8):      PL/perl - język proceduralny bazy danych PostgreSQL
603 Group:          Applications/Databases
604 Requires:       %{name} = %{version}-%{release}
605
606 %description module-plperl
607 From PostgreSQL documentation:
608
609 Postgres supports the definition of procedural languages. In the case
610 of a function or trigger procedure defined in a procedural language,
611 the database has no built-in knowledge about how to interpret the
612 function's source text. Instead, the task is passed to a handler that
613 knows the details of the language. The handler itself is a special
614 programming language function compiled into a shared object and loaded
615 on demand.
616
617 To enable PL/Perl procedural language for your database you have to
618 run createlang command.
619
620 %description module-plperl -l pl.UTF-8
621 Z dokumentacji PostgreSQL:
622
623 Postgres ma wsparcie dla języków proceduralnych. W przypadku, kiedy
624 programista zdefiniuje procedurę wyzwalacza lub funkcję w języku
625 proceduralnym, baza danych nie ma pojęcia jak interpretować tego typu
626 funkcję. Funkcja lub procedura ta jest przekazywana do interpretera,
627 który wie jak ją wykonać. Interpreter jest odpowiednią, specjalną
628 funkcją, która jest skompilowana w obiekt dzielony i ładowany w razie
629 potrzeby.
630
631 Za pomocą polecenia createlang można dodać obsługę języka
632 proceduralnego PL/Perl dla swojej bazy danych.
633
634 %package module-plpython
635 Summary:        PL/Python - PostgreSQL procedural language
636 Summary(pl.UTF-8):      PL/Python - język proceduralny bazy danych PostgreSQL
637 Group:          Applications/Databases
638 Requires:       %{name} = %{version}-%{release}
639 %pyrequires_eq  python
640
641 %description module-plpython
642 From PostgreSQL documentation:
643
644 Postgres supports the definition of procedural languages. In the case
645 of a function or trigger procedure defined in a procedural language,
646 the database has no built-in knowledge about how to interpret the
647 function's source text. Instead, the task is passed to a handler that
648 knows the details of the language. The handler itself is a special
649 programming language function compiled into a shared object and loaded
650 on demand.
651
652 To enable PL/Python procedural language for your database you have to
653 run createlang command.
654
655 %description module-plpython -l pl.UTF-8
656 Z dokumentacji PostgreSQL:
657
658 Postgres ma wsparcie dla języków proceduralnych. W przypadku, kiedy
659 programista zdefiniuje procedurę wyzwalacza lub funkcję w języku
660 proceduralnym, baza danych nie ma pojęcia jak interpretować tego typu
661 funkcję. Funkcja lub procedura ta jest przekazywana do interpretera,
662 który wie jak ją wykonać. Interpreter jest odpowiednią, specjalną
663 funkcją, która jest skompilowana w obiekt dzielony i ładowany w razie
664 potrzeby.
665
666 Za pomocą polecenia createlang można dodać obsługę języka
667 proceduralnego PL/Python dla swojej bazy danych.
668
669 %package module-pltcl
670 Summary:        PL/Tcl - PostgreSQL procedural language
671 Summary(pl.UTF-8):      PL/Tcl - język proceduralny bazy danych PostgreSQL
672 Group:          Applications/Databases
673 Requires:       %{name} = %{version}-%{release}
674 Requires:       tcl(Pgtcl)
675
676 %description module-pltcl
677 From PostgreSQL documentation:
678
679 Postgres supports the definition of procedural languages. In the case
680 of a function or trigger procedure defined in a procedural language,
681 the database has no built-in knowledge about how to interpret the
682 function's source text. Instead, the task is passed to a handler that
683 knows the details of the language. The handler itself is a special
684 programming language function compiled into a shared object and loaded
685 on demand.
686
687 To enable PL/Tcl procedural language for your database you have to run
688 createlang command.
689
690 %description module-pltcl -l pl.UTF-8
691 Z dokumentacji PostgreSQL:
692
693 Postgres ma wsparcie dla języków proceduralnych. W przypadku, kiedy
694 programista zdefiniuje procedurę wyzwalacza lub funkcję w języku
695 proceduralnym, baza danych nie ma pojęcia jak interpretować tego typu
696 funkcję. Funkcja lub procedura ta jest przekazywana do interpretera,
697 który wie jak ją wykonać. Interpreter jest odpowiednią, specjalną
698 funkcją, która jest skompilowana w obiekt dzielony i ładowany w razie
699 potrzeby.
700
701 Za pomocą polecenia createlang można dodać obsługę języka
702 proceduralnego PL/Tcl dla swojej bazy danych.
703
704 %package module-dblink
705 Summary:        dblink module for PostgreSQL
706 Summary(pl.UTF-8):      Moduł dblink dla PostgreSQL-a
707 Group:          Applications/Databases
708 Requires:       %{name} = %{version}-%{release}
709
710 %description module-dblink
711 dblink module for PostgreSQL provides functions returning results from
712 remote database.
713
714 %description module-dblink -l pl.UTF-8
715 Moduł dblink dla PostgreSQL-a udostępnia funkcje zwracające wyniki ze
716 zdalnej bazy danych.
717
718 %package module-lo
719 Summary:        Large Objects module for PostgreSQL
720 Summary(pl.UTF-8):      Moduł Large Objects dla PostgreSQL-a
721 Group:          Applications/Databases
722 Requires:       %{name} = %{version}-%{release}
723
724 %description module-lo
725 Large Objects module for PostgreSQL adds a new data type 'lo', some
726 support functions and a trigger which handles the orphaning problem.
727
728 %description module-lo -l pl.UTF-8
729 Moduł Large Objects dla PostgreSQL-a dodaje nowy typ danych 'lo',
730 kilka funkcji pomocniczych i wyzwalacz rozwiązujący problem
731 osieroconych obiektów.
732
733 %package module-pgcrypto
734 Summary:        Cryptographic functions for PostgreSQL
735 Summary(pl.UTF-8):      Funkcje kryptograficzne dla PostgreSQL-a
736 Group:          Applications/Databases
737 Requires:       %{name} = %{version}-%{release}
738
739 %description module-pgcrypto
740 Cryptographic functions for PostgreSQL.
741
742 %description module-pgcrypto -l pl.UTF-8
743 Funkcje kryptograficzne dla PostgreSQL.
744
745 %package module-tablefunc
746 Summary:        crosstab functions for PostgreSQL
747 Summary(pl.UTF-8):      Funkcje crosstab dla PostgreSQL-a
748 Group:          Applications/Databases
749 Requires:       %{name} = %{version}-%{release}
750
751 %description module-tablefunc
752 crosstab functions for PostgreSQL.
753
754 %description module-tablefunc -l pl.UTF-8
755 Funkcje crosstab dla PostgreSQL-a.
756
757 %package module-pg_trgm
758 Summary:        Trigram matching for PostgreSQL
759 Summary(pl.UTF-8):      Dopasowanie trigramowe dla PostgreSQL-a
760 Group:          Applications/Databases
761 Requires:       %{name} = %{version}-%{release}
762
763 %description module-pg_trgm
764 This module provides functions and index classes for determining the
765 similarity of text based on trigram matching.
766
767 %description module-pg_trgm -l pl.UTF-8
768 Ten moduł dostarcza funkcje i klasy do rozpoznawania podobnych tekstów
769 w oparciu o dopasowywanie trigramowe (trigram matching).
770
771 %package module-xml2
772 Summary:        XML-handling functions for PostgreSQL
773 Summary(pl.UTF-8):      Funkcje do obsługi XML-a dla PostgreSQL-a
774 Group:          Applications/Databases
775 Requires:       %{name} = %{version}-%{release}
776
777 %description module-xml2
778 Module with XML functions provides both XPath querying and XSLT
779 functionality. There is also a new table function which allows the
780 straightforward return of multiple XML results.
781
782 %description module-xml2 -l pl.UTF-8
783 Moduł z funkcjami XML zapewniającymi obsługę zapytań XPath oraz
784 funkcjonalność XSLT. Jest także nowa funkcja tabelowa pozwalająca na
785 bezpośrednie zwracanie wielu wyników XML.
786
787 %package contrib
788 Summary:        Miscellaneous PostgreSQL contrib modules
789 Summary(pl.UTF-8):      Różne moduły dołączone do PostgreSQL-a
790 Group:          Applications/Databases
791 Requires:       %{name} = %{version}-%{release}
792
793 %description contrib
794 Miscellaneous PostgreSQL contrib modules.
795
796 %description contrib -l pl.UTF-8
797 Różne moduły dołączone do PostgreSQL-a.
798
799 %prep
800 %setup -q
801 %patch0 -p1
802 %{?with_absolute_dbpaths:%patch1 -p1}
803 %patch2 -p1
804 %patch3 -p1
805 %patch4 -p1
806 %patch5 -p1
807
808 tar xzf %{SOURCE4} -C contrib
809
810 # force rebuild of bison/flex files
811 find src -name \*.l -o -name \*.y | xargs touch
812
813 # Erase all CVS dirs
814 #find contrib -type d -name CVS -exec rm -rf {} \;
815
816 %build
817 %{__aclocal} -I config
818 %{__autoconf}
819 %configure \
820         CFLAGS="%{rpmcflags} -DNEED_REENTRANT_FUNCS `uuid-config --cflags`" \
821         --disable-rpath \
822         --enable-depend \
823         --enable-integer-datetimes \
824         --with-system-tzdata=%{_datadir}/zoneinfo \
825         --enable-nls \
826         --enable-thread-safety \
827         %{?with_kerberos5:--with-gssapi} \
828         %{?with_kerberos5:--with-krb5} \
829         %{?with_ldap:--with-ldap} \
830         --with-openssl \
831         --with-pam \
832         --with-libxml \
833         --with-libxslt \
834         %{?with_perl:--with-perl} \
835         %{?with_python:--with-python} \
836         %{?with_tcl:--with-tcl --with-tclconfig=%{_ulibdir}} \
837         --with-ossp-uuid \
838
839 %{__make}
840
841 for mod in %{contrib_modules}; do \
842         flags="%{rpmcflags} -DNEED_REENTRANT_FUNCS"
843         if [ $mod = "xml2"      ]; then flags="$flags -I/usr/include/libxml2"; fi
844         if [ $mod = "uuid-ossp" ]; then flags="$flags `uuid-config --cflags`"; fi
845         %{__make} -C contrib/$mod CFLAGS="$flags"
846 done
847
848 %{__make} -C src/tutorial \
849         NO_PGXS=1
850
851 %ifnarch sparc sparcv9 sparc64 alpha
852 %{?with_tests:%{__make} check}
853 %endif
854
855 %install
856 rm -rf $RPM_BUILD_ROOT
857 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{rc.d/init.d,sysconfig,init/%{name}}} \
858         $RPM_BUILD_ROOT{/var/{lib/pgsql,log},%{_pgsqldir}} \
859         $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} \
860         $RPM_BUILD_ROOT%{_mandir} \
861         $RPM_BUILD_ROOT/home/services/postgres
862
863 install src/tutorial/*.sql $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
864
865 %{__make} install \
866         DESTDIR=$RPM_BUILD_ROOT
867 %{__make} -C doc/src/sgml install-man \
868         DESTDIR=$RPM_BUILD_ROOT
869
870 %if %{with perl}
871 %{__make} install -C src/pl/plperl \
872         DESTDIR=$RPM_BUILD_ROOT
873 %endif
874
875 for mod in %{contrib_modules}; do \
876         %{__make} -C contrib/$mod install \
877                 DESTDIR=$RPM_BUILD_ROOT
878 done
879
880 touch $RPM_BUILD_ROOT/var/log/pgsql
881
882 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/postgresql
883 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/postgresql
884
885 install %{SOURCE5} $RPM_BUILD_ROOT/etc/init/%{name}.conf
886 install %{SOURCE6} $RPM_BUILD_ROOT/etc/init/%{name}/instance.conf
887
888 install -d howto
889 tar zxf %{SOURCE2} -C howto
890
891 %if %{with python}
892 %py_comp $RPM_BUILD_ROOT%{py_libdir}
893 %py_ocomp $RPM_BUILD_ROOT%{py_libdir}
894 %endif
895
896 # find locales
897 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
898         %find_lang $f-%{mver}
899 done
900 # merge locales
901 cat pgscripts-%{mver}.lang pg_resetxlog-%{mver}.lang \
902     postgres-%{mver}.lang pg_controldata-%{mver}.lang \
903     > main-%{mver}.lang
904 cat pg_dump-%{mver}.lang psql-%{mver}.lang initdb-%{mver}.lang \
905     pg_ctl-%{mver}.lang > clients-%{mver}.lang
906 cat ecpg-%{mver}.lang ecpglib6-%{mver}.lang > ecpg.lang
907
908 # Remove Contrib documentation. We use macro %doc
909 rm -rf $RPM_BUILD_ROOT/contrib
910
911 %if %{with tcl}
912 %find_lang pltcl-%{mver}
913 mv $RPM_BUILD_ROOT{%{_datadir}/postgresql,%{_pgsqldir}}/unknown.pltcl
914 %endif
915
916 install src/pl/plperl/ppport.h $RPM_BUILD_ROOT%{_includedir}/postgresql/server/
917
918 # package it...?  nah, why bother.
919 rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/postgresql/html
920
921 %clean
922 rm -rf $RPM_BUILD_ROOT
923
924 %pretrans
925 PG_DB_CLUSTERS=""
926 if [ -f /etc/sysconfig/postgresql ]; then
927         . /etc/sysconfig/postgresql
928         if [ -z "$PG_DB_CLUSTERS" -a -n "$POSTGRES_DATA_DIR" ]; then
929                 PG_DB_CLUSTERS="$POSTGRES_DATA_DIR"
930         fi
931 fi
932 foundold=0
933 for pgdir in $PG_DB_CLUSTERS; do
934         if [ -f $pgdir/PG_VERSION ]; then
935                 if [ $(cat $pgdir/PG_VERSION) != '9.0' ]; then
936                         echo "Found database(s) in older, incompatible format in cluster $pgdir."
937                         foundold=1
938                 fi
939         fi
940 done
941 if [ "$foundold" = "1" ]; then
942         echo
943         echo "Dump all data from clusters mentioned above (using pg_dump or pg_dumpall)"
944         echo "and clean (or rename) those directories; then upgrade postgresql and"
945         echo "restore all data (using pg_restore or psql)."
946         echo "Remember to stop the daemon before upgrading!"
947         echo
948         echo "Warning for upgrade from version *before* 7.2."
949         echo "Please note, that postgresql module path changed from"
950         echo "/usr/lib/pgsql/module to /usr/lib/postgresql. Change the path"
951         echo "in dump file before restore."
952         echo
953         echo "Warning for upgrade from version *before* 7.3."
954         echo "Reading following webpage is encouraged:"
955         echo "http://www.ca.postgresql.org/docs/momjian/upgrade_tips_7.3"
956         exit 1
957 fi
958
959 %pre
960 %groupadd -g 88 -r postgres
961 %useradd -M -o -r -u 88 -d /home/services/postgres -s /bin/sh -g postgres -c "PostgreSQL Server" postgres
962
963 %triggerpostun -- %{name} < 7.2-2
964 if [ -n "`/bin/id -u postgres 2>/dev/null`" ]; then
965         /usr/sbin/usermod -d /home/services/postgres postgres
966 fi
967
968 %post
969 /sbin/chkconfig --add postgresql
970 %service postgresql restart "postgresql server"
971
972 %preun
973 if [ "$1" = "0" ]; then
974         %service postgresql stop
975         /sbin/chkconfig --del postgresql
976 fi
977
978 %post upstart
979 %upstart_post postgresql
980
981 %postun upstart
982 %upstart_postun postgresql
983
984 %post   libs -p /sbin/ldconfig
985 %postun libs -p /sbin/ldconfig
986
987 %post   ecpg -p /sbin/ldconfig
988 %postun ecpg -p /sbin/ldconfig
989
990 %files -f main-%{mver}.lang
991 %defattr(644,root,root,755)
992 %doc COPYRIGHT README HISTORY doc/{README*,bug.template,KNOWN_BUGS,MISSING_FEATURES,TODO}
993 %attr(754,root,root) /etc/rc.d/init.d/postgresql
994 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/postgresql
995
996 %attr(755,root,root) %{_bindir}/initdb
997 %attr(755,root,root) %{_bindir}/pg_controldata
998 %attr(755,root,root) %{_bindir}/pg_ctl
999 %attr(755,root,root) %{_bindir}/pg_resetxlog
1000 %attr(755,root,root) %{_bindir}/postgres
1001 %attr(755,root,root) %{_bindir}/postmaster
1002
1003 %attr(755,root,root) %{_pgmoduledir}/ascii*
1004 %attr(755,root,root) %{_pgmoduledir}/cyrillic*
1005 %attr(755,root,root) %{_pgmoduledir}/euc*
1006 %attr(755,root,root) %{_pgmoduledir}/latin*
1007 %attr(755,root,root) %{_pgmoduledir}/utf*
1008 %attr(755,root,root) %{_pgmoduledir}/dict_*
1009
1010 %dir %{_pgsqldir}
1011 %dir %{_datadir}/postgresql
1012 %{_datadir}/postgresql/*.bki
1013 %{_datadir}/postgresql/*.sample
1014 %{_datadir}/postgresql/*.description
1015 %{_datadir}/postgresql/*.shdescription
1016 %{_datadir}/postgresql/*.sql
1017 %{_datadir}/postgresql/*.txt
1018 %{_datadir}/postgresql/timezonesets
1019 %{_datadir}/postgresql/tsearch_data
1020
1021 %attr(700,postgres,postgres) /home/services/postgres
1022 %attr(700,postgres,postgres) %dir /var/lib/pgsql
1023 %attr(640,postgres,postgres) %config(noreplace) %verify(not md5 mtime size) /var/log/pgsql
1024
1025 %{_mandir}/man1/initdb.1*
1026 %{_mandir}/man1/pg_controldata.1*
1027 %{_mandir}/man1/pg_ctl.1*
1028 %{_mandir}/man1/pg_resetxlog.1*
1029 %{_mandir}/man1/postgres.1*
1030 %{_mandir}/man1/postmaster.1*
1031
1032 %if "%{pld_release}" != "ti"
1033 %files upstart
1034 %defattr(644,root,root,755)
1035 %config(noreplace) %verify(not md5 mtime size) /etc/init/postgresql.conf
1036 %dir /etc/init/postgresql
1037 %config(noreplace) %verify(not md5 mtime size) /etc/init/postgresql/instance.conf
1038 %endif
1039
1040 %files doc
1041 %defattr(644,root,root,755)
1042 %doc doc/src/sgml/html howto
1043 %{_examplesdir}/%{name}-%{version}
1044
1045 %files libs -f libpq5-%{mver}.lang
1046 %defattr(644,root,root,755)
1047 %attr(755,root,root) %{_libdir}/libpq.so.*.*
1048 %attr(755,root,root) %ghost %{_libdir}/libpq.so.5
1049 %dir %{_pgmoduledir}
1050 %dir %{_pgmoduledir}/plugins
1051
1052 %files ecpg -f ecpg.lang
1053 %defattr(644,root,root,755)
1054 %attr(755,root,root) %{_bindir}/ecpg
1055 %attr(755,root,root) %{_libdir}/libecpg.so.*.*
1056 %attr(755,root,root) %ghost %{_libdir}/libecpg.so.6
1057 %attr(755,root,root) %{_libdir}/libecpg_compat.so.*.*
1058 %attr(755,root,root) %ghost %{_libdir}/libecpg_compat.so.3
1059 %attr(755,root,root) %{_libdir}/libpgtypes.so.*.*
1060 %attr(755,root,root) %ghost %{_libdir}/libpgtypes.so.3
1061 %{_mandir}/man1/ecpg.1*
1062
1063 %files ecpg-devel
1064 %defattr(644,root,root,755)
1065 %attr(755,root,root) %{_libdir}/libecpg.so
1066 %attr(755,root,root) %{_libdir}/libecpg_compat.so
1067 %attr(755,root,root) %{_libdir}/libpgtypes.so
1068 %{_includedir}/ecpg*
1069
1070 %files devel -f pg_config-%{mver}.lang
1071 %defattr(644,root,root,755)
1072 %attr(755,root,root) %{_bindir}/pg_config
1073 %attr(755,root,root) %{_libdir}/libpq.so
1074 %dir %{_includedir}/postgresql
1075 %{_includedir}/libpq-events.h
1076 %{_includedir}/libpq-fe.h
1077 %{_includedir}/pg_config.h
1078 %{_includedir}/pg_config_manual.h
1079 %{_includedir}/pg_config_os.h
1080 %{_includedir}/postgres_ext.h
1081 %dir %{_includedir}/postgresql/internal
1082 %{_includedir}/postgresql/internal/c.h
1083 %{_includedir}/postgresql/internal/libpq-int.h
1084 %{_includedir}/postgresql/internal/port.h
1085 %{_includedir}/postgresql/internal/postgres_fe.h
1086 %{_includedir}/postgresql/internal/pqexpbuffer.h
1087 %{_includedir}/postgresql/internal/libpq
1088 %{_includedir}/libpq
1089 %{_mandir}/man1/pg_config.1*
1090
1091 %files backend-devel
1092 %defattr(644,root,root,755)
1093 %{_includedir}/postgresql/server
1094 %dir %{_pgmoduledir}/pgxs
1095 %attr(755,root,root) %{_pgmoduledir}/pgxs/config
1096 %{_pgmoduledir}/pgxs/src
1097
1098 %files static
1099 %defattr(644,root,root,755)
1100 %{_libdir}/libecpg.a
1101 %{_libdir}/libecpg_compat.a
1102 %{_libdir}/libpq.a
1103 %{_libdir}/libpgtypes.a
1104 %{_libdir}/libpgport.a
1105
1106 %files clients -f clients-%{mver}.lang
1107 %defattr(644,root,root,755)
1108 %attr(755,root,root) %{_bindir}/clusterdb
1109 %attr(755,root,root) %{_bindir}/createdb
1110 %attr(755,root,root) %{_bindir}/createlang
1111 %attr(755,root,root) %{_bindir}/createuser
1112 %attr(755,root,root) %{_bindir}/dropdb
1113 %attr(755,root,root) %{_bindir}/droplang
1114 %attr(755,root,root) %{_bindir}/dropuser
1115 %attr(755,root,root) %{_bindir}/pg_dump
1116 %attr(755,root,root) %{_bindir}/pg_dumpall
1117 %attr(755,root,root) %{_bindir}/pg_restore
1118 %attr(755,root,root) %{_bindir}/psql
1119 %attr(755,root,root) %{_bindir}/reindexdb
1120 %attr(755,root,root) %{_bindir}/vacuumdb
1121
1122 %{_mandir}/man1/clusterdb.1*
1123 %{_mandir}/man1/createdb.1*
1124 %{_mandir}/man1/createlang.1*
1125 %{_mandir}/man1/createuser.1*
1126 %{_mandir}/man1/dropdb.1*
1127 %{_mandir}/man1/droplang.1*
1128 %{_mandir}/man1/dropuser.1*
1129 %{_mandir}/man1/pg_dump.1*
1130 %{_mandir}/man1/pg_dumpall.1*
1131 %{_mandir}/man1/pg_restore.1*
1132 %{_mandir}/man1/psql.1*
1133 %{_mandir}/man1/reindexdb.1*
1134 %{_mandir}/man1/vacuumdb.1*
1135 %{_mandir}/man7/*.7*
1136
1137 %files module-plpgsql -f plpgsql-%{mver}.lang
1138 %defattr(644,root,root,755)
1139 %attr(755,root,root) %{_pgmoduledir}/plpgsql.so
1140
1141 %if %{with perl}
1142 %files module-plperl -f plperl-%{mver}.lang
1143 %defattr(644,root,root,755)
1144 %attr(755,root,root) %{_pgmoduledir}/plperl.so
1145 %endif
1146
1147 %if %{with python}
1148 %files module-plpython -f plpython-%{mver}.lang
1149 %defattr(644,root,root,755)
1150 %attr(755,root,root) %{_pgmoduledir}/plpython.so
1151 %endif
1152
1153 %if %{with tcl}
1154 %files module-pltcl -f pltcl-%{mver}.lang
1155 %defattr(644,root,root,755)
1156 %attr(755,root,root) %{_bindir}/pltcl_*
1157 %attr(755,root,root) %{_pgmoduledir}/pltcl.so
1158 %{_pgsqldir}/unknown.pltcl
1159 %endif
1160
1161 %files module-dblink
1162 %defattr(644,root,root,755)
1163 %attr(755,root,root) %{_pgmoduledir}/dblink.so
1164 %{_pgsqldir}/*dblink.sql
1165
1166 %files module-lo
1167 %defattr(644,root,root,755)
1168 %attr(755,root,root) %{_pgmoduledir}/lo.so
1169 %{_pgsqldir}/*lo.sql
1170
1171 %files module-pgcrypto
1172 %defattr(644,root,root,755)
1173 %attr(755,root,root) %{_pgmoduledir}/pgcrypto.so
1174 %{_pgsqldir}/*pgcrypto.sql
1175
1176 %files module-tablefunc
1177 %defattr(644,root,root,755)
1178 %attr(755,root,root) %{_pgmoduledir}/tablefunc.so
1179 %{_pgsqldir}/*tablefunc.sql
1180
1181 %files module-pg_trgm
1182 %defattr(644,root,root,755)
1183 %attr(755,root,root) %{_pgmoduledir}/pg_trgm.so
1184 %{_pgsqldir}/*pg_trgm.sql
1185
1186 %files module-xml2
1187 %defattr(644,root,root,755)
1188 %attr(755,root,root) %{_pgmoduledir}/pgxml.so
1189 %{_pgsqldir}/*pgxml.sql
1190
1191 %files contrib
1192 %defattr(644,root,root,755)
1193 %doc contrib/README contrib/pldebugger/README.pl*
1194 %attr(755,root,root) %{_bindir}/oid2name
1195 %attr(755,root,root) %{_bindir}/pg_standby
1196 %attr(755,root,root) %{_bindir}/pgbench
1197 %attr(755,root,root) %{_bindir}/vacuumlo
1198 %attr(755,root,root) %{_pgmoduledir}/_int.so
1199 %attr(755,root,root) %{_pgmoduledir}/adminpack.so
1200 %attr(755,root,root) %{_pgmoduledir}/auto_explain.so
1201 %attr(755,root,root) %{_pgmoduledir}/btree_gin.so
1202 %attr(755,root,root) %{_pgmoduledir}/btree_gist.so
1203 %attr(755,root,root) %{_pgmoduledir}/chkpass.so
1204 %attr(755,root,root) %{_pgmoduledir}/citext.so
1205 %attr(755,root,root) %{_pgmoduledir}/cube.so
1206 %attr(755,root,root) %{_pgmoduledir}/earthdistance.so
1207 %attr(755,root,root) %{_pgmoduledir}/fuzzystrmatch.so
1208 %attr(755,root,root) %{_pgmoduledir}/hstore.so
1209 %attr(755,root,root) %{_pgmoduledir}/isn.so
1210 %attr(755,root,root) %{_pgmoduledir}/ltree.so
1211 %attr(755,root,root) %{_pgmoduledir}/pageinspect.so
1212 %attr(755,root,root) %{_pgmoduledir}/pg_buffercache.so
1213 %attr(755,root,root) %{_pgmoduledir}/pg_freespacemap.so
1214 %attr(755,root,root) %{_pgmoduledir}/pg_stat_statements.so
1215 %attr(755,root,root) %{_pgmoduledir}/pgrowlocks.so
1216 %attr(755,root,root) %{_pgmoduledir}/pgstattuple.so
1217 %attr(755,root,root) %{_pgmoduledir}/pldbgapi.so
1218 %attr(755,root,root) %{_pgmoduledir}/plugins/plugin_debugger.so
1219 %attr(755,root,root) %{_pgmoduledir}/plugins/plugin_profiler.so
1220 %attr(755,root,root) %{_pgmoduledir}/seg.so
1221 %attr(755,root,root) %{_pgmoduledir}/sslinfo.so
1222 %attr(755,root,root) %{_pgmoduledir}/targetinfo.so
1223 %attr(755,root,root) %{_pgmoduledir}/uuid-ossp.so
1224 %{_pgsqldir}/_int.sql
1225 %{_pgsqldir}/adminpack.sql
1226 %{_pgsqldir}/btree_gin.sql
1227 %{_pgsqldir}/btree_gist.sql
1228 %{_pgsqldir}/chkpass.sql
1229 %{_pgsqldir}/citext.sql
1230 %{_pgsqldir}/cube.sql
1231 %{_pgsqldir}/dict_int.sql
1232 %{_pgsqldir}/dict_xsyn.sql
1233 %{_pgsqldir}/earthdistance.sql
1234 %{_pgsqldir}/fuzzystrmatch.sql
1235 %{_pgsqldir}/hstore.sql
1236 %{_pgsqldir}/int_aggregate.sql
1237 %{_pgsqldir}/isn.sql
1238 %{_pgsqldir}/ltree.sql
1239 %{_pgsqldir}/pageinspect.sql
1240 %{_pgsqldir}/pg_buffercache.sql
1241 %{_pgsqldir}/pg_freespacemap.sql
1242 %{_pgsqldir}/pg_stat_statements.sql
1243 %{_pgsqldir}/pgrowlocks.sql
1244 %{_pgsqldir}/pgstattuple.sql
1245 %{_pgsqldir}/pldbgapi.sql
1246 %{_pgsqldir}/seg.sql
1247 %{_pgsqldir}/sslinfo.sql
1248 %{_pgsqldir}/uuid-ossp.sql
1249 %{_pgsqldir}/uninstall__int.sql
1250 %{_pgsqldir}/uninstall_adminpack.sql
1251 %{_pgsqldir}/uninstall_btree_gin.sql
1252 %{_pgsqldir}/uninstall_btree_gist.sql
1253 %{_pgsqldir}/uninstall_chkpass.sql
1254 %{_pgsqldir}/uninstall_citext.sql
1255 %{_pgsqldir}/uninstall_cube.sql
1256 %{_pgsqldir}/uninstall_dict_int.sql
1257 %{_pgsqldir}/uninstall_dict_xsyn.sql
1258 %{_pgsqldir}/uninstall_earthdistance.sql
1259 %{_pgsqldir}/uninstall_fuzzystrmatch.sql
1260 %{_pgsqldir}/uninstall_hstore.sql
1261 %{_pgsqldir}/uninstall_int_aggregate.sql
1262 %{_pgsqldir}/uninstall_isn.sql
1263 %{_pgsqldir}/uninstall_ltree.sql
1264 %{_pgsqldir}/uninstall_pageinspect.sql
1265 %{_pgsqldir}/uninstall_pg_buffercache.sql
1266 %{_pgsqldir}/uninstall_pg_freespacemap.sql
1267 %{_pgsqldir}/uninstall_pg_stat_statements.sql
1268 %{_pgsqldir}/uninstall_pgrowlocks.sql
1269 %{_pgsqldir}/uninstall_pgstattuple.sql
1270 %{_pgsqldir}/uninstall_seg.sql
1271 %{_pgsqldir}/uninstall_sslinfo.sql
1272 %{_pgsqldir}/uninstall_uuid-ossp.sql
This page took 0.1401 seconds and 3 git commands to generate.