]> git.pld-linux.org Git - packages/postgresql.git/blob - postgresql.spec
- Titanium will not support upstart
[packages/postgresql.git] / postgresql.spec
1 #
2 # Conditional build:
3 %bcond_without  tests                   # disable testing
4 %bcond_without  tcl                     # disable Tcl support
5 %bcond_without  kerberos5               # disable kerberos5 support
6 %bcond_without  perl                    # disable Perl support
7 %bcond_without  python                  # disable Python support
8 %bcond_without  ldap                    # disable LDAP support
9 %bcond_with     absolute_dbpaths        # enable absolute paths to create database
10                                         # (disabled by default because it is a security risk)
11 #
12
13 %define beta %{nil}
14 %define mver 8.4
15
16 Summary:        PostgreSQL Data Base Management System
17 Summary(de.UTF-8):      PostgreSQL Datenbankverwaltungssystem
18 Summary(es.UTF-8):      Gestor de Banco de Datos PostgreSQL
19 Summary(fr.UTF-8):      Sysème de gestion de base de données PostgreSQL
20 Summary(pl.UTF-8):      PostgreSQL - system bazodanowy
21 Summary(pt_BR.UTF-8):   Gerenciador de Banco de Dados PostgreSQL
22 Summary(ru.UTF-8):      PostgreSQL - система управления базами данных
23 Summary(tr.UTF-8):      Veri Tabanı Yönetim Sistemi
24 Summary(uk.UTF-8):      PostgreSQL - система керування базами даних
25 Summary(zh_CN.UTF-8):   PostgreSQL 客户端程序和库文件
26 Name:           postgresql
27 Version:        %{mver}.4
28 Release:        3
29 License:        BSD
30 Group:          Applications/Databases
31 Source0:        ftp://ftp.postgresql.org/pub/source/v%{version}/%{name}-%{version}.tar.bz2
32 # Source0-md5:  4bf2448ad965bca3940df648c02194df
33 Source1:        %{name}.init
34 Source2:        pgsql-Database-HOWTO-html.tar.gz
35 # Source2-md5:  5b656ddf1db41965761f85204a14398e
36 Source3:        %{name}.sysconfig
37 Source4:        edb-debugger-20100404.tgz
38 # Source4-md5:  a10daee9a2017db40c7550c40cb47e8d
39 Source5:        %{name}.upstart
40 Source6:        %{name}-instance.upstart
41 Patch0:         %{name}-conf.patch
42 Patch1:         %{name}-absolute_dbpaths.patch
43 Patch2:         %{name}-ecpg-includedir.patch
44 Patch3:         %{name}-ac_version.patch
45 Patch4:         %{name}-disable_horology_test.patch
46 Patch5:         %{name}-pg_ctl-fix.patch
47 URL:            http://www.postgresql.org/
48 BuildRequires:  autoconf
49 BuildRequires:  automake
50 # not needed for releases... but fixes something in snapshot
51 BuildRequires:  bison >= 1.875
52 BuildRequires:  flex
53 BuildRequires:  gettext-devel
54 %{?with_kerberos5:BuildRequires:        heimdal-devel}
55 BuildRequires:  libtool
56 BuildRequires:  libxml2-devel >= 2.6.23
57 BuildRequires:  libxslt-devel
58 BuildRequires:  ncurses-devel >= 5.0
59 %{?with_ldap:BuildRequires:     openldap-devel}
60 BuildRequires:  openssl-devel >= 0.9.7d
61 BuildRequires:  ossp-uuid-devel
62 BuildRequires:  pam-devel
63 %{?with_perl:BuildRequires:     perl-devel}
64 %if %{with python}
65 BuildRequires:  python >= 1:2.3
66 BuildRequires:  python-devel >= 1:2.3
67 BuildRequires:  python-modules >= 1:2.3
68 %endif
69 BuildRequires:  readline-devel >= 4.2
70 BuildRequires:  rpmbuild(macros) >= 1.268
71 %{?with_tcl:BuildRequires:      tcl-devel >= 8.4.3}
72 BuildRequires:  zlib-devel
73 Requires(post,preun):   /sbin/chkconfig
74 Requires(pre):  /bin/id
75 Requires(pre):  /usr/bin/getgid
76 Requires(pre):  /usr/sbin/groupadd
77 Requires(pre):  /usr/sbin/useradd
78 Requires(triggerpostun):        /bin/id
79 Requires(triggerpostun):        /usr/sbin/usermod
80 Requires:       %{name}-clients = %{version}-%{release}
81 Requires:       %{name}-libs = %{version}-%{release}
82 Requires:       rc-scripts >= 0.4.3.0
83 Requires:       tzdata
84 Obsoletes:      postgresql-module-tsearch2
85 Obsoletes:      postgresql-server
86 Obsoletes:      postgresql-test
87 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
88
89 %define         _pgmoduledir    %{_libdir}/postgresql
90 %define         _pgsqldir       %{_datadir}/postgresql/contrib
91
92 %define         _ulibdir        /usr/lib
93
94 %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
95
96 ## to be moved to rpm-build-macros
97 ## TODO: handle RPM_SKIP_AUTO_RESTART
98
99 # migrate from init script to upstart job
100 %define upstart_post() \
101         if [ -f /var/lock/subsys/"%1" ] ; then \
102                 /sbin/service --no-upstart "%1" stop \
103                 /sbin/service "%1" start \
104         else \
105                 /sbin/service "%1" try-restart \
106         fi
107
108 # restart the job after upgrade or migrate to init script on removal
109 %define upstart_postun() \
110         if [ -x /sbin/initctl ] && /sbin/initctl status "%1" 2>/dev/null | grep -q 'running' ; then \
111                 /sbin/initctl stop "%1" 2>/dev/null \
112                 [ -f "/etc/rc.d/init.d/%1" -o -f "/etc/init/%1.conf" ] && /sbin/service "%1" start \
113         fi
114
115 %description
116 PostgreSQL Data Base Management System (formerly known as Postgres,
117 then as Postgres95).
118
119 PostgreSQL is an enhancement of the POSTGRES database management
120 system, a next-generation DBMS research prototype. While PostgreSQL
121 retains the powerful data model and rich data types of POSTGRES, it
122 replaces the PostQuel query language with an extended subset of SQL.
123 PostgreSQL is free and the complete source is available.
124
125 PostgreSQL development is being performed by a team of Internet
126 developers who all subscribe to the PostgreSQL development mailing
127 list. The current coordinator is Marc G. Fournier
128 (scrappy@postgreSQL.org). This team is now responsible for all current
129 and future development of PostgreSQL.
130
131 The authors of PostgreSQL 1.01 were Andrew Yu and Jolly Chen. Many
132 others have contributed to the porting, testing, debugging and
133 enhancement of the code. The original Postgres code, from which
134 PostgreSQL is derived, was the effort of many graduate students,
135 undergraduate students, and staff programmers working under the
136 direction of Professor Michael Stonebraker at the University of
137 California, Berkeley.
138
139 The original name of the software at Berkeley was Postgres. When SQL
140 functionality was added in 1995, its name was changed to Postgres95.
141 The name was changed at the end of 1996 to PostgreSQL.
142
143 PostgreSQL runs on Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD,
144 and most flavours of Unix.
145
146 %description -l de.UTF-8
147 PostgreSQL Datenbank-Managementsystem (früher als Postgres, dann als
148 Postgres95 bekannt).
149
150 PostgreSQL ist eine Verbesserung des POSTGRES-DB-Managementsystems,
151 ein DBMS-Forschungsprototyp der nächsten Generation. Während es das
152 leistungsfähige Datenmodell und die reichhaltigen Datentypen von
153 POSTGRES beibehält, ersetzt es die PostQuel-Abfragesprache durch ein
154 Subset von SQL. PostgreSQL ist gratis, der gesamte Quellcode ist
155 verfügbar.
156
157 Ein Team von Internet-Entwicklern befaßt sich mit PostgreSQL. Sie alle
158 sind auf der PostgreSQL-Entwickleradreßliste. Koordinator ist Marc G.
159 Fournier (scrappy@postgreSQL.org). Das Team ist verantwortlich für
160 alle aktuellen und künftigen Entwicklungen von PostgreSQL.
161
162 Die Autoren von PostgreSQL 1.01 waren Andrew Yu und Jolly Chen.
163 Zahlreiche andere haben zur Portierung, zum Testen, Debugging und zur
164 Verbesserung des Code beigetragen. Den Original-Postgres-Code, von dem
165 sich PostgreSQL ableitet, verdanken wir der Arbeit vieler Doktoranden,
166 Studenten und Programmierern unter der Leitung von Professor Michael
167 Stonebraker an der University of California, Berkeley.
168
169 Der ursprüngliche Name war Postgres. Als 1995 SQL-Funktionalität
170 hinzukam, wurde der Name in Postgres95 geändert. Ende 1996 schließlich
171 entschied man sich für PostgreSQL.
172
173 PostgreSQL läuft auf Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD
174 und den meisten Unix-Systemen.
175
176 %description -l es.UTF-8
177 Administrador de Banco de Datos PostgreSQL (conocido anteriormente
178 como Postgres, y después como Postgres95). PostgreSQL es una
179 continuación mejorada del Sistema Administrador de Banco de Datos
180 POSTGRES, que era un prototipo de pesquisa para un SGBD de nueva
181 generación. Mientras PostgreSQL mantiene el potente modelo de datos y
182 los varios tipos de datos del POSTGRES, substituye el lenguaje de
183 consulta PostQuel por un subconjunto extendido de la SQL. PostgreSQL
184 es libre y tiene los fuentes disponibles. El desarrollo del PostgreSQL
185 se ejecutado por un equipo de estudiosos de Internet, todos suscritos
186 en la lista de desarrollo del PostgreSQL. El coordinador actual es
187 Marc G. Fournier (scrappy@postgreSQL.org). Este equipo es ahora
188 responsable por el desarrollo actual y futuro del PostgreSQL.
189
190 %description -l fr.UTF-8
191 Système de gestion de bases de données PostgreSQL (D'abord nommé
192 Postgres, puis Postgres95).
193
194 PostgreSQL est une amélioration du système de gestion de bases de
195 données POSTGRES, un prototype de recherche de la génération suivant
196 DBMS. Tout en conservant le puissant modèle de donnée de et les types
197 de donée riches de Postgres, il remplace le langage de requêtes de
198 Postgres par un sous ensemble etendu de commandes SQL. PosrgreSQL est
199 libre, et ses sources sont disponibles.
200
201 Le développement de PostgreSQL est actuellement réalisé via internet
202 parune équipe de développeurs inscrits sur la mailing-list de
203 développement de PostgreSQL. Le coordinateur actuel est Marc G
204 Fournier (scrappy@postgreSQL.org). Cette équipe est responsable du
205 développemen actuel et à venir de PostgreSQL.
206
207 Les auteurs de PostgreSQL 1.01 étaient Andrew Yu et Jolly Chen.
208 Beaucoup d'autres ont contribué au portage, au test, au débogage et à
209 l'amélioration du code. Le code original de Postgres, duquel
210 PostgreSQL est dérivé, a été l'oeuvre d'étudiants de haut niveau, de
211 moins haut niveau, et de programmeurs travaillant sous la direction du
212 professeur Michael Stonebraker à l'université de Berkeley Californie.
213
214 Le nom original du logiciel était Postgres. Quand les fonctionnalitées
215 SQL furent ajoutées en 1995, son nom est devenu Postgres95. Il a été
216 rebaptisé PostgreSQL en 1996.
217
218 PostgreSQL tourne sur Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD,
219 et la plupart des Unix.
220
221 %description -l pl.UTF-8
222 System Zarządzania Bazą Danych PostgreSQL (dawniej znany jako
223 Postgres, następnie jako Postgres95).
224
225 PostgreSQL jest rozszerzeniem systemu zarządzania baz danych POSTGRES,
226 prototypu DBMS następnej generacji. Co prawda PostgreSQL odziedziczył
227 model danych oraz bogaty zbiór różnych typów danych, to jednak język
228 zapytań PostQuel został zastąpiony rozszerzonym SQL-em. PostgreSQL
229 jest wolnym oprogramowaniem i kody źródłowe tego oprogramowania są w
230 pełni dostępne.
231
232 System PostgreSQL jest tworzony przez zespół ludzi, którzy są zapisani
233 na listę dyskusyjną dotyczącą PostgreSQL-a. Obecnym koordynatorem jest
234 Marc G. Fournier (scrappy@postgreSQL.org). Wymieniony wyżej zespół
235 jest odpowiedzialny za aktualny i przyszły rozwój systemu PostgreSQL.
236
237 Autorami PostgreSQL-a 1.01 byli Andrew Yu oraz Jolly Chen. Wielu
238 innych pomagało przenosząc na różne platformy, testując, analizując i
239 rozszerzając kod. Oryginalny kod Postgres-a, na podstawie którego
240 PostgreSQL powstał, był wysiłkiem wielu absolwentów, studentów oraz
241 zespołu programistów, którzy pracowali pod kierunkiem profesora
242 Michaela Stonebrakera z Uniwersytetu Kalifornii w Berkeley.
243
244 Nazwa oryginalna oprogramowania tworzonego w Berkeley brzmiała
245 Postgres. W 1995 roku dodano język zapytań SQL i nazwę zmieniono na
246 Postgres95. W końcu roku 1996 nazwę ostatecznie zmieniono na
247 PostgreSQL.
248
249 PostgreSQL może być uruchomiony pod następującymi systemami: Solaris,
250 SunOS, HPUX, AIX, Linux, Irix, FreeBSD i innymi systemami uniksowymi.
251
252 %description -l pt_BR.UTF-8
253 Gerenciador de Banco de Dados PostgreSQL (conhecido anteriormente como
254 Postgres, e depois como Postgres95).
255
256 O PostgreSQL é uma continuação melhorada do Sistema Gerenciador de
257 Banco de Dados POSTGRES, que era um protótipo de pesquisa para um SGBD
258 de nova geração. Enquanto o PostgreSQL mantém o poderoso modelo de
259 dados e os vários tipos de dados do POSTGRES, ele substitui a
260 linguagem de consulta PostQuel por um subconjunto estendido da SQL. O
261 PostgreSQL é livre e tem os fontes disponíveis.
262
263 O desenvolvimento do PostgreSQL está sendo executado por uma equipe de
264 desenvolvedores da Internet, todos subscritores da lista de
265 desenvolvimento do PostgreSQL. O coordenador atual é Marc G. Fournier
266 (scrappy@postgreSQL.org). Esta equipe é agora responsável pelo
267 desenvolvimento atual e futuro do PostgreSQL.
268
269 %description -l ru.UTF-8
270 PostgreSQL - система управления базами данных (прежде известная как
271 Postgres, потом как Postgres95).
272
273 PostgreSQL - это расширенная версия системы управления базами данных
274 POSTGRES, исследовательского прототипа DBMS следующей генерации.
275 Сохраняя мощную модель данных и богатый набор типов данных POSTGRES,
276 она заменяет язык запросов PostQuel расширенным набором SQL.
277 PostgreSQL бесплатен и поставляется в виде полного комплекта исходных
278 текстов.
279
280 PostgreSQL разрабатывался командой Internet-разработчиков, подписанных
281 на список рассылки, посвященный разработке PostgreSQL. В настоящее
282 время координатором является Marc G. Fournier
283 (scrappy@postgreSQL.org). Эта команда в настоящее время отвечает за
284 все текущие и будущие разработки PostgreSQL.
285
286 Авторами PostgreSQL 1.01 были Andrew Yu и Jolly Chen. Многие внесли
287 свой вклад в портирование, тестирование, отладку и улучшение кода.
288 Оригинальный код Postgres, от которого произошел PostgreSQL, был
289 создан усилиями студентов, аспирантов и персонала, работающего под
290 руководством профессора Michael Stonebraker в University of
291 California, Berkeley.
292
293 Оригинальное название ПО в Berkeley было Postgres. Когда в 1995 году
294 была добавлена функциональность SQL, название изменилось на
295 Postgres95. В конце 1996 года оно еще раз изменилось и теперь это
296 PostgreSQL.
297
298 PostgreSQL работает на Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD
299 и большинстве других разновидностей Unix.
300
301 %description -l tr.UTF-8
302 PostgreSQL, POSTGRES'den türemiş bir veri tabanı yönetim sistemidir
303 (DBMS). Güçlü veri modeli ve zengin POSTGRES veri tiplerini
304 desteklerken SQL'in genişletilmiş bir altkümesi yerine PostQuel
305 sorgulama dilini koyar.
306
307 %description -l uk.UTF-8
308 PostgreSQL - система керування базами даних (раніш відома як Postgres,
309 потім як Postgres95).
310
311 PostgreSQL - це розширена версія системи керування базами даних
312 POSTGRES, дослідницького прототипу DBMS наступної генерації.
313 Зберігаючи потужну модель даних та багатий набір типів даних POSTGRES,
314 вона замінює мову запитів PostQuel розширеним набором SQL. PostgreSQL
315 безкоштовна та поставляється у вигляді повного комплекту вихідних
316 текстів.
317
318 PostgreSQL розробляється командою Internet-програмістів, учасників
319 списку розсилки, присвяченого розробці PostgreSQL. Наразі
320 координатором є Marc G. Fournier (scrappy@postgreSQL.org). Ця команда
321 відповідає за всі поточні та майбутні розробки PostgreSQL.
322
323 Авторами PostgreSQL 1.01 були Andrew Yu та Jolly Chen. Багато людей
324 внесли свій внесок в портування, тестування, відладку та покращення
325 коду. Оригінальний код Postgres, від якого походить PostgreSQL, був
326 створений зусиллями студентів, аспірантів та персоналу, який працював
327 під керівництвом професора Michael Stonebraker в University of
328 California, Berkeley.
329
330 Оригінальна назва програми в Berkeley була Postgres. Коли в 1995 році
331 було додано функціональність SQL, назва змінилася на Postgres95. В
332 кінці 1996 року вона ще раз змінилась і зараз це PostgreSQL.
333
334 PostgreSQL працює на Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD
335 та більшості інших різновидів Unix.
336
337 %package upstart
338 Summary:        Upstart job description for PostgreSQL server
339 Summary(pl.UTF-8):      Opis zadania Upstart dla serwera PostgreSQL
340 Group:          Daemons
341 Requires:       %{name} = %{version}-%{release}
342 Requires:       upstart >= 0.6
343
344 %description upstart
345 Upstart job description for PostgreSQL.
346
347 %description upstart -l pl.UTF-8
348 Opis zadania Upstart dla PostgreSQL.
349
350 %package devel
351 Summary:        PostgreSQL development header files and libraries
352 Summary(de.UTF-8):      PostgreSQL-Entwicklungs-Header-Dateien und Libraries
353 Summary(es.UTF-8):      Archivos de inclusión y bibliotecas PostgreSQL
354 Summary(fr.UTF-8):      En-têtes et bibliothèques de développement PostgreSQL
355 Summary(pl.UTF-8):      PostgreSQL - pliki nagłówkowe i biblioteki
356 Summary(pt_BR.UTF-8):   Arquivos de inclusão e bibliotecas para desenvolvimento com o PostgreSQL
357 Summary(ru.UTF-8):      PostgreSQL - хедеры и библиотеки разработчика
358 Summary(tr.UTF-8):      PostgreSQL başlık dosyaları ve kitaplıklar
359 Summary(uk.UTF-8):      PostgreSQL - хедери та бібліотеки програміста
360 Group:          Development/Libraries
361 Requires:       %{name}-libs = %{version}-%{release}
362
363 %description devel
364 This package contains header files and libraries required to compile
365 applications that are talking directly to the PostgreSQL backend
366 server.
367
368 %description devel -l de.UTF-8
369 Dieses Paket enthält die Header-Dateien und Libraries, die zum
370 Kompilieren von Applikationen notwendig sind, die direkt mit dem
371 PostgreSQL-Backend-Server kommunizieren.
372
373 %description devel -l es.UTF-8
374 Este paquete contiene archivos de inclusión y bibliotecas requeridas
375 para compilación de aplicativos que se comunican directamente con el
376 servidor backend PostgreSQL.
377
378 %description devel -l fr.UTF-8
379 Ce package contient les fichiers d'en-tête et les bibliothéques
380 nécessaires pour compiler des applications ayant des échanges directs
381 avec le serveur du backend PostgreSQL.
382
383 %description devel -l pl.UTF-8
384 Pakiet zawiera nagłówki oraz biblioteki wymagane do kompilacji
385 aplikacji łączących się bezpośrednio z serwerem PostgreSQL.
386
387 %description devel -l pt_BR.UTF-8
388 Este pacote contém arquivos de inclusão e bibliotecas requeridas para
389 compilação de aplicativos que se comunicam diretamente com o servidor
390 backend PostgreSQL.
391
392 %description devel -l ru.UTF-8
393 Этот пакет содержит хедеры и библиотеки, необходимые для сборки
394 приложений, непосредственно взаимодействующих с сервером PostgreSQL.
395
396 %description devel -l tr.UTF-8
397 Bu paket, PostgreSQL sunucusuyla konuşacak yazılımlar geliştirmek için
398 gereken başlık dosyalarını ve kitaplıkları içerir.
399
400 %description devel -l uk.UTF-8
401 Цей пакет містить хедери та бібліотеки, необхідні для розробки
402 програм, які безпосередньо взаємодіють з сервером PostgreSQL.
403
404 %package backend-devel
405 Summary:        PostgreSQL backend development header files
406 Summary(pl.UTF-8):      PostgreSQL - pliki nagłówkowe dla backendu
407 Group:          Development/Libraries
408 Requires:       %{name}-devel = %{version}-%{release}
409 Requires:       %{name}-libs = %{version}-%{release}
410
411 %description backend-devel
412 This package contains header files required to compile functions that
413 could be loaded directly by backend
414
415 %description backend-devel -l pl.UTF-8
416 Pakiet zawiera nagłówki wymagane do kompilacji funkcji ktore moga byc
417 bezposrednio ladowane przez beckend serwera PostgreSQL.
418
419 %package clients
420 Summary:        Clients needed to access a PostgreSQL server
421 Summary(es.UTF-8):      Clientes necesarios para acceder al servidor PostgreSQL
422 Summary(pl.UTF-8):      Klienci wymagani do dostępu do serwera PostgreSQL
423 Summary(pt_BR.UTF-8):   Clientes necessários para acessar o servidor PostgreSQL
424 Summary(ru.UTF-8):      Клиентские программы, необходимые для доступа к серверу PostgreSQL
425 Summary(uk.UTF-8):      Клієнтські програми, необхідні для доступу до сервера PostgreSQL
426 Group:          Applications/Databases
427 Requires:       %{name}-libs = %{version}-%{release}
428
429 %description clients
430 This package includes only the clients needed to access an PostgreSQL
431 server. The server is included in the main package. If all you need is
432 to connect to another PostgreSQL server, the this is the only package
433 you need to install. Clients include several command-line utilities
434 you can use to manage your databases on a remote PostgreSQL server.
435
436 %description clients -l es.UTF-8
437 Este paquete incluye solamente los clientes necesarios para acceder un
438 servidor PostgreSQL. El servidor está en el paquete principal.
439
440 %description clients -l pl.UTF-8
441 Pakiet zawiera programy klienckie potrzebne dla dostępu do serwera
442 PostgreSQL oraz narzędzia do zarządzania bazami działające z linii
443 poleceń. Serwer znajduje się w głównym pakiecie.
444
445 %description clients -l pt_BR.UTF-8
446 Este pacote inclui somente os clientes necessários para acessar um
447 servidor PostgreSQL. O servidor está no pacote principal.
448
449 %description clients -l ru.UTF-8
450 Этот пакет включает только клиентские программы и библиотеки,
451 необходимые для доступа к серверу PostgreSQL. Сервер входит в главный
452 пакет. Если вам надо только работать с другим сервером PostgreSQL, это
453 единственный пакет, который вам надо установить.
454
455 Теперь пакеты с библиотеками для разных языков программирования (C,
456 C++, Perl и Tcl) разделены. Этот пакет включает только библиотеки для
457 языка C.
458
459 %description clients -l uk.UTF-8
460 Цей пакет містить тільки клієнтські програми та бібліотеки, необхідні
461 для доступу до сервера PostgreSQL. Сервер міститься в головному
462 пакеті. Якщо вам потрібно працювати з іншим сервером PostgreSQL, це
463 єдиний пакет, який вам треба встановити.
464
465 Тепер пакети з бібліотеками для різних мов програмування (C, C++, Perl
466 і Tcl) розділені. Цей пакет містить тільки бібліотеки для мови C.
467
468 %package doc
469 Summary:        Documentation for PostgreSQL
470 Summary(pl.UTF-8):      Dodatkowa dokumantacja dla PostgreSQL
471 Group:          Applications/Databases
472
473 %description doc
474 This package includes documentation and HOWTO for programmer, admin
475 etc., in HTML format.
476
477 %description doc -l pl.UTF-8
478 Pakiet ten zawiera dokumentację oraz HOWTO m.in. dla programistów,
479 administratorów w formacie HTML.
480
481 %package libs
482 Summary:        PostgreSQL libraries
483 Summary(es.UTF-8):      Biblioteca compartida del PostgreSQL
484 Summary(pl.UTF-8):      Biblioteki dzielone programu PostgreSQL
485 Summary(pt_BR.UTF-8):   Biblioteca compartilhada do PostgreSQL
486 Summary(zh_CN.UTF-8):   PostgreSQL 客户所需要的共享库
487 Group:          Libraries
488
489 %description libs
490 PostgreSQL shared libraries.
491
492 %description libs -l es.UTF-8
493 Este paquete contiene la biblioteca compartida para acceso al
494 PostgreSQL.
495
496 %description libs -l pl.UTF-8
497 Biblioteki dzielone programu PostgreSQL.
498
499 %description libs -l pt_BR.UTF-8
500 Este pacote contém a biblioteca compartilhada para acesso ao
501 PostgreSQL.
502
503 %package ecpg
504 Summary:        Embedded SQL in C interface
505 Summary(pl.UTF-8):      Interfejs wbudowanego SQL-a w język C
506 Group:          Libraries
507 Requires:       %{name}-libs = %{version}-%{release}
508
509 %description ecpg
510 Embedded SQL in C interface.
511
512 %description ecpg -l pl.UTF-8
513 Interfejs wbudowanego SQL-a w język C.
514
515 %package ecpg-devel
516 Summary:        Embedded SQL in C interface files
517 Summary(pl.UTF-8):      Pliki programistyczne interfejsu wbudowanego SQL-a w język C
518 Group:          Development/Libraries
519 Requires:       %{name}-devel = %{version}-%{release}
520 Requires:       %{name}-ecpg = %{version}-%{release}
521
522 %description ecpg-devel
523 Embedded SQL in C interface files.
524
525 %description ecpg-devel -l pl.UTF-8
526 Pliki programistyczne interfejsu wbudowanego SQL-a w język C.
527
528 %package static
529 Summary:        PostgreSQL static libraries
530 Summary(es.UTF-8):      Bibliotecas estaticas PostgreSQL
531 Summary(pl.UTF-8):      Biblioteki statyczne programu PostgreSQL
532 Summary(pt_BR.UTF-8):   Bibliotecas estáticas PostgreSQL
533 Summary(ru.UTF-8):      Статические библиотеки для программирования с PostgreSQL
534 Summary(uk.UTF-8):      Статичні бібліотеки для програмування з PostgreSQL
535 Group:          Development/Libraries
536 Requires:       %{name}-devel = %{version}-%{release}
537
538 %description static
539 PostgreSQL static libraries.
540
541 %description static -l es.UTF-8
542 Este paquete contiene bibliotecas estaticas requerida para compilación
543 de aplicativos que se comunican directamente con el servidor backend
544 PostgreSQL.
545
546 %description static -l pl.UTF-8
547 Biblioteki statyczne programu PostgreSQL.
548
549 %description static -l pt_BR.UTF-8
550 Este pacote contém as bibliotecas estáticas requeridas para compilação
551 de aplicativos que se comunicam diretamente com o servidor backend
552 PostgreSQL.
553
554 %description static -l ru.UTF-8
555 Это отдельный пакет со статическими библиотеками, которые больше не
556 входят в %{name}-devel.
557
558 %description static -l uk.UTF-8
559 Це окремий пакет зі статичними бібліотеками, які більш не входять в
560 %{name}-devel.
561
562 %package module-plpgsql
563 Summary:        PL/pgSQL - PostgreSQL procedural language
564 Summary(pl.UTF-8):      PL/pgSQL - język proceduralny bazy danych PostgreSQL
565 Group:          Applications/Databases
566 Requires:       %{name} = %{version}-%{release}
567
568 %description module-plpgsql
569 From PostgreSQL documentation:
570
571 Postgres supports the definition of procedural languages. In the case
572 of a function or trigger procedure defined in a procedural language,
573 the database has no built-in knowledge about how to interpret the
574 function's source text. Instead, the task is passed to a handler that
575 knows the details of the language. The handler itself is a special
576 programming language function compiled into a shared object and loaded
577 on demand.
578
579 To enable PL/pgSQL procedural language for your database you have to
580 run createlang command.
581
582 %description module-plpgsql -l pl.UTF-8
583 Z dokumentacji PostgreSQL:
584
585 Postgres ma wsparcie dla języków proceduralnych. W przypadku, kiedy
586 programista zdefiniuje procedurę wyzwalacza lub funkcję w języku
587 proceduralnym, baza danych nie ma pojęcia jak interpretować tego typu
588 funkcję. Funkcja lub procedura ta jest przekazywana do interpretera,
589 który wie jak ją wykonać. Interpreter jest odpowiednią, specjalną
590 funkcją, która jest skompilowana w obiekt dzielony i ładowany w razie
591 potrzeby.
592
593 Za pomocą polecenia createlang można dodać obsługę języka
594 proceduralnego PL/pgSQL dla swojej bazy danych.
595
596 %package module-plperl
597 Summary:        PL/perl - PostgreSQL procedural language
598 Summary(pl.UTF-8):      PL/perl - język proceduralny bazy danych PostgreSQL
599 Group:          Applications/Databases
600 Requires:       %{name} = %{version}-%{release}
601
602 %description module-plperl
603 From PostgreSQL documentation:
604
605 Postgres supports the definition of procedural languages. In the case
606 of a function or trigger procedure defined in a procedural language,
607 the database has no built-in knowledge about how to interpret the
608 function's source text. Instead, the task is passed to a handler that
609 knows the details of the language. The handler itself is a special
610 programming language function compiled into a shared object and loaded
611 on demand.
612
613 To enable PL/Perl procedural language for your database you have to
614 run createlang command.
615
616 %description module-plperl -l pl.UTF-8
617 Z dokumentacji PostgreSQL:
618
619 Postgres ma wsparcie dla języków proceduralnych. W przypadku, kiedy
620 programista zdefiniuje procedurę wyzwalacza lub funkcję w języku
621 proceduralnym, baza danych nie ma pojęcia jak interpretować tego typu
622 funkcję. Funkcja lub procedura ta jest przekazywana do interpretera,
623 który wie jak ją wykonać. Interpreter jest odpowiednią, specjalną
624 funkcją, która jest skompilowana w obiekt dzielony i ładowany w razie
625 potrzeby.
626
627 Za pomocą polecenia createlang można dodać obsługę języka
628 proceduralnego PL/Perl dla swojej bazy danych.
629
630 %package module-plpython
631 Summary:        PL/Python - PostgreSQL procedural language
632 Summary(pl.UTF-8):      PL/Python - język proceduralny bazy danych PostgreSQL
633 Group:          Applications/Databases
634 Requires:       %{name} = %{version}-%{release}
635 %pyrequires_eq  python
636
637 %description module-plpython
638 From PostgreSQL documentation:
639
640 Postgres supports the definition of procedural languages. In the case
641 of a function or trigger procedure defined in a procedural language,
642 the database has no built-in knowledge about how to interpret the
643 function's source text. Instead, the task is passed to a handler that
644 knows the details of the language. The handler itself is a special
645 programming language function compiled into a shared object and loaded
646 on demand.
647
648 To enable PL/Python procedural language for your database you have to
649 run createlang command.
650
651 %description module-plpython -l pl.UTF-8
652 Z dokumentacji PostgreSQL:
653
654 Postgres ma wsparcie dla języków proceduralnych. W przypadku, kiedy
655 programista zdefiniuje procedurę wyzwalacza lub funkcję w języku
656 proceduralnym, baza danych nie ma pojęcia jak interpretować tego typu
657 funkcję. Funkcja lub procedura ta jest przekazywana do interpretera,
658 który wie jak ją wykonać. Interpreter jest odpowiednią, specjalną
659 funkcją, która jest skompilowana w obiekt dzielony i ładowany w razie
660 potrzeby.
661
662 Za pomocą polecenia createlang można dodać obsługę języka
663 proceduralnego PL/Python dla swojej bazy danych.
664
665 %package module-pltcl
666 Summary:        PL/Tcl - PostgreSQL procedural language
667 Summary(pl.UTF-8):      PL/Tcl - język proceduralny bazy danych PostgreSQL
668 Group:          Applications/Databases
669 Requires:       %{name} = %{version}-%{release}
670 Requires:       tcl(Pgtcl)
671
672 %description module-pltcl
673 From PostgreSQL documentation:
674
675 Postgres supports the definition of procedural languages. In the case
676 of a function or trigger procedure defined in a procedural language,
677 the database has no built-in knowledge about how to interpret the
678 function's source text. Instead, the task is passed to a handler that
679 knows the details of the language. The handler itself is a special
680 programming language function compiled into a shared object and loaded
681 on demand.
682
683 To enable PL/Tcl procedural language for your database you have to run
684 createlang command.
685
686 %description module-pltcl -l pl.UTF-8
687 Z dokumentacji PostgreSQL:
688
689 Postgres ma wsparcie dla języków proceduralnych. W przypadku, kiedy
690 programista zdefiniuje procedurę wyzwalacza lub funkcję w języku
691 proceduralnym, baza danych nie ma pojęcia jak interpretować tego typu
692 funkcję. Funkcja lub procedura ta jest przekazywana do interpretera,
693 który wie jak ją wykonać. Interpreter jest odpowiednią, specjalną
694 funkcją, która jest skompilowana w obiekt dzielony i ładowany w razie
695 potrzeby.
696
697 Za pomocą polecenia createlang można dodać obsługę języka
698 proceduralnego PL/Tcl dla swojej bazy danych.
699
700 %package module-dblink
701 Summary:        dblink module for PostgreSQL
702 Summary(pl.UTF-8):      Moduł dblink dla PostgreSQL-a
703 Group:          Applications/Databases
704 Requires:       %{name} = %{version}-%{release}
705
706 %description module-dblink
707 dblink module for PostgreSQL provides functions returning results from
708 remote database.
709
710 %description module-dblink -l pl.UTF-8
711 Moduł dblink dla PostgreSQL-a udostępnia funkcje zwracające wyniki ze
712 zdalnej bazy danych.
713
714 %package module-lo
715 Summary:        Large Objects module for PostgreSQL
716 Summary(pl.UTF-8):      Moduł Large Objects dla PostgreSQL-a
717 Group:          Applications/Databases
718 Requires:       %{name} = %{version}-%{release}
719
720 %description module-lo
721 Large Objects module for PostgreSQL adds a new data type 'lo', some
722 support functions and a trigger which handles the orphaning problem.
723
724 %description module-lo -l pl.UTF-8
725 Moduł Large Objects dla PostgreSQL-a dodaje nowy typ danych 'lo',
726 kilka funkcji pomocniczych i wyzwalacz rozwiązujący problem
727 osieroconych obiektów.
728
729 %package module-pgcrypto
730 Summary:        Cryptographic functions for PostgreSQL
731 Summary(pl.UTF-8):      Funkcje kryptograficzne dla PostgreSQL-a
732 Group:          Applications/Databases
733 Requires:       %{name} = %{version}-%{release}
734
735 %description module-pgcrypto
736 Cryptographic functions for PostgreSQL.
737
738 %description module-pgcrypto -l pl.UTF-8
739 Funkcje kryptograficzne dla PostgreSQL.
740
741 %package module-tablefunc
742 Summary:        crosstab functions for PostgreSQL
743 Summary(pl.UTF-8):      Funkcje crosstab dla PostgreSQL-a
744 Group:          Applications/Databases
745 Requires:       %{name} = %{version}-%{release}
746
747 %description module-tablefunc
748 crosstab functions for PostgreSQL.
749
750 %description module-tablefunc -l pl.UTF-8
751 Funkcje crosstab dla PostgreSQL-a.
752
753 %package module-pg_trgm
754 Summary:        Trigram matching for PostgreSQL
755 Summary(pl.UTF-8):      Dopasowanie trigramowe dla PostgreSQL-a
756 Group:          Applications/Databases
757 Requires:       %{name} = %{version}-%{release}
758
759 %description module-pg_trgm
760 This module provides functions and index classes for determining the
761 similarity of text based on trigram matching.
762
763 %description module-pg_trgm -l pl.UTF-8
764 Ten moduł dostarcza funkcje i klasy do rozpoznawania podobnych tekstów
765 w oparciu o dopasowywanie trigramowe (trigram matching).
766
767 %package module-xml2
768 Summary:        XML-handling functions for PostgreSQL
769 Summary(pl.UTF-8):      Funkcje do obsługi XML-a dla PostgreSQL-a
770 Group:          Applications/Databases
771 Requires:       %{name} = %{version}-%{release}
772
773 %description module-xml2
774 Module with XML functions provides both XPath querying and XSLT
775 functionality. There is also a new table function which allows the
776 straightforward return of multiple XML results.
777
778 %description module-xml2 -l pl.UTF-8
779 Moduł z funkcjami XML zapewniającymi obsługę zapytań XPath oraz
780 funkcjonalność XSLT. Jest także nowa funkcja tabelowa pozwalająca na
781 bezpośrednie zwracanie wielu wyników XML.
782
783 %package contrib
784 Summary:        Miscellaneous PostgreSQL contrib modules
785 Summary(pl.UTF-8):      Różne moduły dołączone do PostgreSQL-a
786 Group:          Applications/Databases
787 Requires:       %{name} = %{version}-%{release}
788
789 %description contrib
790 Miscellaneous PostgreSQL contrib modules.
791
792 %description contrib -l pl.UTF-8
793 Różne moduły dołączone do PostgreSQL-a.
794
795 %prep
796 %setup -q
797 %patch0 -p1
798 %{?with_absolute_dbpaths:%patch1 -p1}
799 %patch2 -p1
800 %patch3 -p1
801 %patch4 -p1
802 %patch5 -p1
803
804 tar xzf %{SOURCE4} -C contrib
805
806 tar xzf doc/man*.tar.gz
807
808 mkdir doc/unpacked
809 tar zxf doc/postgres.tar.gz -C doc/unpacked
810
811 # force rebuild of bison/flex files
812 find src -name \*.l -o -name \*.y | xargs touch
813
814 # Erase all CVS dirs
815 #find contrib -type d -name CVS -exec rm -rf {} \;
816
817 %build
818 %{__aclocal} -I config
819 %{__autoconf}
820 %configure \
821         CFLAGS="%{rpmcflags} -DNEED_REENTRANT_FUNCS `uuid-config --cflags`" \
822         --disable-rpath \
823         --enable-depend \
824         --enable-integer-datetimes \
825         --with-system-tzdata=%{_datadir}/zoneinfo \
826         --enable-nls \
827         --enable-thread-safety \
828         %{?with_kerberos5:--with-gssapi} \
829         %{?with_kerberos5:--with-krb5} \
830         %{?with_ldap:--with-ldap} \
831         --with-openssl \
832         --with-pam \
833         --with-libxml \
834         --with-libxslt \
835         %{?with_perl:--with-perl} \
836         %{?with_python:--with-python} \
837         %{?with_tcl:--with-tcl --with-tclconfig=%{_ulibdir}} \
838         --with-ossp-uuid \
839         --without-docdir
840
841 %{__make}
842
843 for mod in %{contrib_modules}; do \
844         flags="%{rpmcflags} -DNEED_REENTRANT_FUNCS"
845         if [ $mod = "xml2"      ]; then flags="$flags -I/usr/include/libxml2"; fi
846         if [ $mod = "uuid-ossp" ]; then flags="$flags `uuid-config --cflags`"; fi
847         %{__make} -C contrib/$mod CFLAGS="$flags"
848 done
849
850 %{__make} -C src/tutorial \
851         NO_PGXS=1
852
853 %ifnarch sparc sparcv9 sparc64 alpha
854 %{?with_tests:%{__make} check}
855 %endif
856
857 %install
858 rm -rf $RPM_BUILD_ROOT
859 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{rc.d/init.d,sysconfig,init/%{name}}} \
860         $RPM_BUILD_ROOT{/var/{lib/pgsql,log},%{_pgsqldir}} \
861         $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} \
862         $RPM_BUILD_ROOT%{_mandir} \
863         $RPM_BUILD_ROOT/home/services/postgres
864
865 install src/tutorial/*.sql $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
866
867 %{__make} install \
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) != '8.4' ]; 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}
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/unpacked/* 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-8.4.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-8.4.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-8.4.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-8.4.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.299916 seconds and 3 git commands to generate.