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