]> git.pld-linux.org Git - packages/postgresql.git/blob - postgresql.spec
- release 4: rebuild against python 2.2.1.
[packages/postgresql.git] / postgresql.spec
1 #
2 # Conditional build:
3 # _with_jdbc            - with JDBC driver
4 #
5
6 %include        /usr/lib/rpm/macros.perl
7 %include        /usr/lib/rpm/macros.python
8
9 Summary:        PostgreSQL Data Base Management System
10 Summary(de):    PostgreSQL Datenbankverwaltungssystem
11 Summary(es):    Gestor de Banco de Datos PostgreSQL
12 Summary(fr):    Sysème de gestion de base de données PostgreSQL
13 Summary(pl):    PostgreSQL - system bazodanowy
14 Summary(pt_BR): Gerenciador de Banco de Dados PostgreSQL
15 Summary(tr):    Veri Tabaný Yönetim Sistemi
16 Name:           postgresql
17 Version:        7.2.1
18 Release:        4
19 License:        BSD
20 Group:          Applications/Databases
21 Source0:        ftp://ftp.postgresql.org/pub/source/v%{version}/%{name}-%{version}.tar.gz
22 Source1:        %{name}.init
23 Source2:        pgsql-Database-HOWTO-html.tar.gz
24 Source3:        %{name}.sysconfig
25 Source4:        pgaccess.desktop
26 Source5:        pgaccess.png
27 Patch0:         %{name}-no_libnsl.patch
28 Patch1:         %{name}-configure.patch
29 Patch2:         %{name}-ac_fixes.patch
30 Patch3:         %{name}-pg_ctl-silent.patch
31 Patch4:         %{name}-DESTDIR.patch
32 Patch5:         %{name}-pg_ctl-nopsql.patch
33 Icon:           postgresql.xpm
34 URL:            http://www.postgresql.org/
35 BuildRequires:  XFree86-devel
36 BuildRequires:  autoconf
37 BuildRequires:  automake
38 BuildRequires:  tcl-devel >= 8.3.2
39 BuildRequires:  tk-devel >= 8.3.2
40 BuildRequires:  readline-devel >= 4.2
41 BuildRequires:  ncurses-devel >= 5.0
42 BuildRequires:  openssl-devel >= 0.9.6a
43 BuildRequires:  perl-devel >= 5.6
44 BuildRequires:  python-devel >= 2.2.1
45 BuildRequires:  rpm-perlprov
46 BuildRequires:  rpm-pythonprov
47 BuildRequires:  zlib-devel
48 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
49 Prereq:         /sbin/chkconfig
50 Prereq:         rc-scripts
51 Prereq:         %{name}-clients = %{version}
52 Prereq:         %{name}-libs = %{version}
53 Requires(pre):  /usr/bin/getgid
54 Requires(pre):  /bin/id
55 Requires(pre):  /usr/sbin/groupadd
56 Requires(pre):  /usr/sbin/useradd
57 Requires(pre):  /usr/sbin/usermod
58 Obsoletes:      postgresql-server
59 Obsoletes:      postgresql-test
60
61 %define         _pgmoduledir    %{_libdir}/postgresql
62 %define         _pgsqldir       %{_pgmoduledir}/sql
63
64 %description
65 PostgreSQL Data Base Management System (formerly known as Postgres,
66 then as Postgres95).
67
68 PostgreSQL is an enhancement of the POSTGRES database management
69 system, a next-generation DBMS research prototype. While PostgreSQL
70 retains the powerful data model and rich data types of POSTGRES, it
71 replaces the PostQuel query language with an extended subset of SQL.
72 PostgreSQL is free and the complete source is available.
73
74 PostgreSQL development is being performed by a team of Internet
75 developers who all subscribe to the PostgreSQL development mailing
76 list. The current coordinator is Marc G. Fournier
77 (scrappy@postgreSQL.org). This team is now responsible for all current
78 and future development of PostgreSQL.
79
80 The authors of PostgreSQL 1.01 were Andrew Yu and Jolly Chen. Many
81 others have contributed to the porting, testing, debugging and
82 enhancement of the code. The original Postgres code, from which
83 PostgreSQL is derived, was the effort of many graduate students,
84 undergraduate students, and staff programmers working under the
85 direction of Professor Michael Stonebraker at the University of
86 California, Berkeley.
87
88 The original name of the software at Berkeley was Postgres. When SQL
89 functionality was added in 1995, its name was changed to Postgres95.
90 The name was changed at the end of 1996 to PostgreSQL.
91
92 PostgreSQL runs on Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD,
93 and most flavours of Unix.
94
95 %description -l de
96 PostgreSQL Datenbank-Managementsystem (früher als Postgres, dann als
97 Postgres95 bekannt).
98
99 PostgreSQL ist eine Verbesserung des POSTGRES-DB-Managementsystems,
100 ein DBMS-Forschungsprototyp der nächsten Generation. Während es das
101 leistungsfähige Datenmodell und die reichhaltigen Datentypen von
102 POSTGRES beibehält, ersetzt es die PostQuel-Abfragesprache durch ein
103 Subset von SQL. PostgreSQL ist gratis, der gesamte Quellcode ist
104 verfügbar.
105
106 Ein Team von Internet-Entwicklern befaßt sich mit PostgreSQL. Sie alle
107 sind auf der PostgreSQL-Entwickleradreßliste. Koordinator ist Marc G.
108 Fournier (scrappy@postgreSQL.org). Das Team ist verantwortlich für
109 alle aktuellen und künftigen Entwicklungen von PostgreSQL.
110
111 Die Autoren von PostgreSQL 1.01 waren Andrew Yu und Jolly Chen.
112 Zahlreiche andere haben zur Portierung, zum Testen, Debugging und zur
113 Verbesserung des Code beigetragen. Den Original-Postgres-Code, von dem
114 sich PostgreSQL ableitet, verdanken wir der Arbeit vieler Doktoranden,
115 Studenten und Programmierern unter der Leitung von Professor Michael
116 Stonebraker an der University of California, Berkeley.
117
118 Der ursprüngliche Name war Postgres. Als 1995 SQL-Funktionalität
119 hinzukam, wurde der Name in Postgres95 geändert. Ende 1996 schließlich
120 entschied man sich für PostgreSQL.
121
122 PostgreSQL läuft auf Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD
123 und den meisten Unix-Systemen.
124
125 %description -l es
126 Administrador de Banco de Datos PostgreSQL (conocido anteriormente
127 como Postgres, y después como Postgres95). PostgreSQL es una
128 continuación mejorada del Sistema Administrador de Banco de Datos
129 POSTGRES, que era un prototipo de pesquisa para un SGBD de nueva
130 generación. Mientras PostgreSQL mantiene el potente modelo de datos y
131 los varios tipos de datos del POSTGRES, substituye el lenguaje de
132 consulta PostQuel por un subconjunto extendido de la SQL. PostgreSQL
133 es libre y tiene los fuentes disponibles. El desarrollo del PostgreSQL
134 se ejecutado por un equipo de estudiosos de Internet, todos suscritos
135 en la lista de desarrollo del PostgreSQL. El coordinador actual es
136 Marc G. Fournier (scrappy@postgreSQL.org). Este equipo es ahora
137 responsable por el desarrollo actual y futuro del PostgreSQL.
138
139 %description -l fr
140 Système de gestion de bases de données PostgreSQL (D'abord nommé
141 Postgres, puis Postgres95).
142
143 PostgreSQL est une amélioration du système de gestion de bases de
144 données POSTGRES, un prototype de recherche de la génération suivant
145 DBMS. Tout en conservant le puissant modèle de donnée de et les types
146 de donée riches de Postgres, il remplace le langage de requêtes de
147 Postgres par un sous ensemble etendu de commandes SQL. PosrgreSQL est
148 libre, et ses sources sont disponibles.
149
150 Le développement de PostgreSQL est actuellement réalisé via internet
151 parune équipe de développeurs inscrits sur la mailing-list de
152 développement de PostgreSQL. Le coordinateur actuel est Marc G
153 Fournier (scrappy@postgreSQL.org). Cette équipe est responsable du
154 développemen actuel et à venir de PostgreSQL.
155
156 Les auteurs de PostgreSQL 1.01 étaient Andrew Yu et Jolly Chen.
157 Beaucoup d'autres ont contribué au portage, au test, au débogage et à
158 l'amélioration du code. Le code original de Postgres, duquel
159 PostgreSQL est dérivé, a été l'oeuvre d'étudiants de haut niveau, de
160 moins haut niveau, et de programmeurs travaillant sous la direction du
161 professeur Michael Stonebraker à l'université de Berkeley Californie.
162
163 Le nom original du logiciel était Postgres. Quand les fonctionnalitées
164 SQL furent ajoutées en 1995, son nom est devenu Postgres95. Il a été
165 rebaptisé PostgreSQL en 1996.
166
167 PostgreSQL tourne sur Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD,
168 et la plupart des Unix.
169
170 %description -l pl
171 System Zarz±dzania Baz± Danych PostgreSQL (dawniej znany jako
172 Postgres, nastêpnie jako Postgres95).
173
174 PostgreSQL jest rozszerzeniem systemu zarz±dzania baz danych POSTGRES,
175 prototypu DBMS nastêpnej generacji. Co prawda PostgreSQL odziedziczy³
176 model danych oraz bogaty zbiór ró¿nych typów danych, to jednak jêzyk
177 zapytañ PostQuel zosta³ zast±piony rozszerzonym SQL-em. PostgreSQL
178 jest wolnym oprogramowaniem i kody ¼ród³owe tego oprogramowania s± w
179 pe³ni dostêpne.
180
181 System PostgreSQL jest tworzony przez zespó³ ludzi, którzy s± zapisani
182 na listê dyskusyjn± dotycz±c± PostgreSQL-a. Obecnym koordynatorem jest
183 Marc G. Fournier (scrappy@postgreSQL.org). Wymieniony wy¿ej zespó³
184 jest odpowiedzialny za aktualny i przysz³y rozwój systemu PostgreSQL.
185
186 Autorami PostgreSQL-a 1.01 byli Andrew Yu oraz Jolly Chen. Wielu
187 innych pomaga³o przenosz±c na ró¿ne platformy, testuj±c, analizuj±c i
188 rozszerzaj±c kod. Oryginalny kod Postgres-a, na podstawie którego
189 PostgreSQL powsta³, by³ wysi³kiem wielu absolwentów, studentów oraz
190 zespo³u programistów, którzy pracowali pod kierunkiem profesora
191 Michaela Stonebrakera z Uniwersytetu Kalifornii w Berkeley.
192
193 Nazwa oryginalna oprogramowania tworzonego w Berkeley brzmia³a
194 Postgres. W 1995 roku dodano jêzyk zapytañ SQL i nazwê zmieniono na
195 Postgres95. W koñcu roku 1996 nazwê ostatecznie zmieniono na
196 PostgreSQL.
197
198 PostgreSQL mo¿e byæ uruchominy pod nastêpuj±cymi systemami: Solaris,
199 SunOS, HPUX, AIX, Linux, Irix, FreeBSD i innych systemach Unix.
200
201 %description -l pt_BR
202 Gerenciador de Banco de Dados PostgreSQL (conhecido anteriormente como
203 Postgres, e depois como Postgres95).
204
205 O PostgreSQL é uma continuação melhorada do Sistema Gerenciador de
206 Banco de Dados POSTGRES, que era um protótipo de pesquisa para um SGBD
207 de nova geração. Enquanto o PostgreSQL mantém o poderoso modelo de
208 dados e os vários tipos de dados do POSTGRES, ele substitui a
209 linguagem de consulta PostQuel por um subconjunto estendido da SQL. O
210 PostgreSQL é livre e tem os fontes disponíveis.
211
212 O desenvolvimento do PostgreSQL está sendo executado por uma equipe de
213 desenvolvedores da Internet, todos subscritores da lista de
214 desenvolvimento do PostgreSQL. O coordenador atual é Marc G. Fournier
215 (scrappy@postgreSQL.org). Esta equipe é agora responsável pelo
216 desenvolvimento atual e futuro do PostgreSQL.
217
218 %description -l tr
219 PostgreSQL, POSTGRES'den türemiþ bir veri tabaný yönetim sistemidir
220 (DBMS). Güçlü veri modeli ve zengin POSTGRES veri tiplerini
221 desteklerken SQL'in geniþletilmiþ bir altkümesi yerine PostQuel
222 sorgulama dilini koyar.
223
224 %package devel
225 Summary:        PostgreSQL development header files and libraries
226 Summary(de):    PostgreSQL-Entwicklungs-Header-Dateien und Libraries
227 Summary(es):    Archivos de inclusión y bibliotecas PostgreSQL
228 Summary(fr):    En-têtes et bibliothèques de développement PostgreSQL
229 Summary(pl):    PostgreSQL - pliki nag³ówkowe i biblioteki
230 Summary(pt_BR): Arquivos de inclusão e bibliotecas para desenvolvimento com o PostgreSQL
231 Summary(tr):    PostgreSQL baþlýk dosyalarý ve kitaplýklar
232 Group:          Development/Libraries
233 Requires:       %{name}-libs = %{version}
234
235 %description devel
236 This package contains header files and libraries required to compile
237 applications that are talking directly to the PostgreSQL backend
238 server.
239
240 %description devel -l de
241 Dieses Paket enthält die Header-Dateien und Libraries, die zum
242 Kompilieren von Applikationen notwendig sind, die direkt mit dem
243 PostgreSQL-Backend-Server kommunizieren.
244
245 %description devel -l es
246 Este paquete contiene archivos de inclusión y bibliotecas requeridas
247 para compilación de aplicativos que se comunican directamente con el
248 servidor backend PostgreSQL.
249
250 %description devel -l fr
251 Ce package contient les fichiers d'en-tête et les bibliothéques
252 nécessaires pour compiler des applications ayant des échanges directs
253 avec le serveur du backend PostgreSQL.
254
255 %description devel -l pl
256 Pakiet zawiera nag³ówki oraz biblioteki wymagane do kompilacji
257 aplikacji ³±cz±cych siê bezpo¶rednio z serwerem PostgreSQL.
258
259 %description devel -l pt_BR
260 Este pacote contém arquivos de inclusão e bibliotecas requeridas para
261 compilação de aplicativos que se comunicam diretamente com o servidor
262 backend PostgreSQL.
263
264 %description devel -l tr
265 Bu paket, PostgreSQL sunucusuyla konuþacak yazýlýmlar geliþtirmek için
266 gereken baþlýk dosyalarýný ve kitaplýklarý içerir.
267
268 %package backend-devel
269 Summary:        PostgreSQL backend development header files
270 Summary(pl):    PostgreSQL - pliki nag³ówkowe dla backendu
271 Group:          Development/Libraries
272 Requires:       %{name}-libs = %{version}
273
274 %description backend-devel
275 This package contains header files required to compile functions that
276 could be loaded directly by backend
277
278 %description backend-devel -l pl
279 Pakiet zawiera nag³ówki wymagane do kompilacji funkcji ktore moga byc
280 bezposrednio ladowane przez beckend serwera PostgreSQL.
281
282 %package clients
283 Summary:        Clients needed to access a PostgreSQL server
284 Summary(es):    Clientes necesarios para acceder al servidor PostgreSQL
285 Summary(pl):    Klienci wymagani do dostêpu do serwera PostgreSQL
286 Summary(pt_BR): Clientes necessários para acessar o servidor PostgreSQL
287 Group:          Applications/Databases
288 Requires:       %{name}-libs = %{version}
289
290 %description clients
291 This package includes only the clients needed to access an PostgreSQL
292 server. The server is included in the main package. If all you need is
293 to connect to another PostgreSQL server, the this is the only package
294 you need to install. Clients include several command-line utilities
295 you can use to manage your databases on a remote PostgreSQL server.
296
297 %description clients -l es
298 Este paquete incluye solamente los clientes necesarios para acceder un
299 servidor PostgreSQL. El servidor está en el paquete principal.
300
301 %description clients -l pl
302 Pakiet zawiera programy klienckie potrzebne dla dostêpu do serwera
303 PostgreSQL oraz narzêdzia do zarz±dzania bazami dzia³aj±ce z linii
304 poleceñ. Serwer znajduje siê w g³ównym pakiecie.
305
306 %description clients -l pt_BR
307 Este pacote inclui somente os clientes necessários para acessar um
308 servidor PostgreSQL. O servidor está no pacote principal.
309
310 %package perl
311 Summary:        Perl interface to PostgreSQL database
312 Summary(es):    Módulo Perl para acceder un servidor PostgreSQL
313 Summary(pl):    Interfejs dla Perla umo¿liwiaj±cy dostêp do baz PostgreSQL
314 Summary(pt_BR): Módulo Perl para acesso ao servidor PostgreSQL
315 Group:          Applications/Databases
316 Requires:       perl >= 5.004
317 Requires:       %{name}-libs = %{version}
318
319 %description perl
320 This package includes only perl modules needed to access an PostgreSQL
321 server.
322
323 %description perl -l es
324 Módulo Perl para acceder un servidor PostgreSQL
325
326 %description perl -l pl
327 Pakiet ten zawiera tylko modu³y Perla wymagane dla dostêpu do serwera
328 PostgreSQL.
329
330 %description perl -l pt_BR
331 Módulo Perl para acesso ao servidor PostgreSQL.
332
333 %package -n python-postgresql
334 Summary:        The python-based client programs needed for accessing a PostgreSQL server
335 Summary(es):    Módulo Python para acceder un servidor PostgreSQL
336 Summary(pl):    Programy klienckie do dostêpu do serwera PostgreSQL napisane w Pythonie
337 Summary(pt_BR): Módulo Python para acesso ao servidor PostgreSQL.
338 Group:          Libraries/Python
339 Requires:       python >= 2.0
340 Requires:       python-mx-DateTime
341 Requires:       %{name}-libs = %{version}
342 Obsoletes:      python-PyGreSQL
343 Obsoletes:      postgresql-python
344
345 %description -n python-postgresql
346 postgresql-python includes the python-based client programs and client
347 libraries that you'll need to access a PostgreSQL database management
348 system server.
349
350 %description -n python-postgresql -l es
351 Módulo Python para acceder un servidor PostgreSQL
352
353 %description -n python-postgresql -l pl
354 Pakiet ten zawiera napisane w Pythonie programy i biblioteki klienckie
355 do dostêpu do serwera baz danych PostgreSQL.
356
357 %description -n python-postgresql -l pt_BR
358 Módulo Python para acesso ao servidor PostgreSQL.
359
360 %package doc
361 Summary:        Documentation for PostgreSQL
362 Summary(pl):    Dodatkowa dokumantacja dla PostgreSQL
363 Group:          Applications/Databases
364
365 %description doc
366 This package includes documentation and HOWTO for programmer, admin
367 etc., in HTML format.
368
369 %description doc -l pl
370 Pakiet ten zawiera dokumentacjê oraz HOWTO m.in. dla programistów,
371 administratorów w formacie HTML.
372
373 %package libs
374 Summary:        PostgreSQL libraries
375 Summary(es):    Biblioteca compartida del PostgreSQL
376 Summary(pl):    Biblioteki dzielone programu PostgreSQL
377 Summary(pt_BR): Biblioteca compartilhada do PostgreSQL
378 Group:          Libraries
379
380 %description libs
381 PostgreSQL shared libraries.
382
383 %description libs -l es
384 Este paquete contiene la biblioteca compartida para acceso al
385 postgresql.
386
387 %description libs -l pl
388 Biblioteki dzielone programu PostgreSQL.
389
390 %description libs -l pt_BR
391 Este pacote contém a biblioteca compartilhada para acesso ao
392 postgresql.
393
394 %package static
395 Summary:        PostgreSQL static libraries
396 Summary(es):    Bibliotecas estaticas PostgreSQL
397 Summary(pl):    Biblioteki statyczne programu PostgreSQL
398 Summary(pt_BR): Bibliotecas estáticas PostgreSQL
399 Group:          Development/Libraries
400 Requires:       %{name}-devel = %{version}
401
402 %description static
403 PostgreSQL static libraries.
404
405 %description static -l es
406 Este paquete contiene bibliotecas estaticas requerida para compilación
407 de aplicativos que se comunican directamente con el servidor backend
408 PostgreSQL.
409
410 %description static -l pl
411 Biblioteki statyczne programu PostgreSQL.
412
413 %description static -l pt_BR
414 Este pacote contém as bibliotecas estáticas requeridas para compilação
415 de aplicativos que se comunicam diretamente com o servidor backend
416 PostgreSQL.
417
418 %package c++
419 Summary:        C++ interface to PostgreSQL
420 Summary(pl):    Interfejs C++ do PostgreSQL
421 Group:          Applications/Databases
422 Requires:       %{name}-libs = %{version}
423
424 %description c++
425 This package includes library for C++ interface to PostgreSQL.
426
427 %description c++ -l pl
428 Pakiet ten zawiera biblioteki dla interfejsu C++ do PostgreSQL.
429
430 %package c++-devel
431 Summary:        C++ interface to PostgreSQL - development part
432 Summary(pl):    Interfejs C++ do PostgreSQL - cze¶æ programistyczna
433 Group:          Applications/Databases
434 Requires:       %{name}-c++ = %{version}
435 Requires:       %{name}-devel = %{version}
436
437 %description c++-devel
438 This package includes library and header files for C++ interface.
439
440 %description c++-devel -l pl
441 Pakiet ten zawiera biblioteki i pliki nag³ówkowe dla interfejsu C++.
442
443 %package c++-static
444 Summary:        C++ interface to PostgreSQL - static libraries
445 Summary(pl):    Interfejs C++ do PostgreSQL - biblioteki statyczne
446 Group:          Applications/Databases
447 Requires:       %{name}-c++-devel = %{version}
448
449 %description c++-static
450 This package includes static library for interface C++.
451
452 %description c++-static -l pl
453 Pakiet ten zawiera biblioteki statyczne dla interfejsu C++.
454
455 %package odbc
456 Summary:        ODBC interface to PostgreSQL
457 Summary(es):    Driver ODBC para acceder un servidor PostgreSQL
458 Summary(pl):    Interfejs ODBC do PostgreSQL
459 Summary(pt_BR): Driver ODBC necessário para acessar um servidor PostgreSQL
460 Group:          Applications/Databases
461 Requires:       %{name}-libs = %{version}
462
463 %description odbc
464 This package includes library for interface ODBC.
465
466 %description odbc -l es
467 Driver para acceder un servidor PostgreSQL, a través de ODBC.
468
469 %description odbc -l pl
470 Pakiet ten zawiera biblioteki dla interfejsu ODBC.
471
472 %description odbc -l pt_BR
473 Driver ODBC necessário para acessar um servidor PostgreSQL.
474
475 %package odbc-devel
476 Summary:        ODBC interface to PostgreSQL - development part
477 Summary(pl):    Interfejs ODBC do PostgreSQL - cze¶æ programistyczna
478 Group:          Applications/Databases
479 Requires:       %{name}-odbc = %{version}
480 Requires:       %{name}-devel = %{version}
481
482 %description odbc-devel
483 This package includes library and header files for interface ODBC.
484
485 %description odbc-devel -l pl
486 Pakiet ten zawiera biblioteki i pliki nag³ówkowe dla interfejsu ODBC.
487
488 %package odbc-static
489 Summary:        ODBC interface to PostgreSQL - static libraries
490 Summary(pl):    Interfejs ODBC do PostgreSQL - biblioteki statyczne
491 Group:          Applications/Databases
492 Requires:       %{name}-odbc-devel = %{version}
493
494 %description odbc-static
495 This package includes static library for interface ODBC.
496
497 %description odbc-static -l pl
498 Pakiet ten zawiera biblioteki statyczne dla interfejsu ODBC.
499
500 %package -n pgaccess
501 Summary:        A free graphical database management tool for PostgreSQL
502 Summary(pl):    Graficzne narzêdzie do obs³ugi baz danych PostgreSQL
503 Group:          Applications/Databases
504 Requires:       %{name}-tcl = %{version}
505
506 %description -n pgaccess
507 A free graphical database management tool for PostgreSQL.
508
509 %description -n pgaccess -l pl
510 Graficzne narzêdzie do obs³ugi baz danych PostgreSQL.
511
512 %package tcl
513 Summary:        tcl interface for PostgreSQL
514 Summary(es):    Bibliotecas y shell TCL para acceder un servidor PostgreSQL
515 Summary(pl):    Interfejs tcl dla PostgreSQL
516 Summary(pt_BR): Bibliotecas e shell para programas em TCL acessarem o servidor PostgreSQL
517 Group:          Development/Languages/Tcl
518 Requires:       %{name}-libs = %{version}
519
520 %description tcl
521 tcl interface for PostgreSQL.
522
523 %description tcl -l es
524 Bibliotecas y shell TCL para acceder un servidor PostgreSQL
525
526 %description tcl -l pl
527 Interfejs tcl dla PostgreSQL.
528
529 %description tcl -l pt_BR
530 Bibliotecas e shell para programas em TCL acessarem o servidor
531 PostgreSQL
532
533 %package tcl-devel
534 Summary:        Development part of tcl interface for PostgreSQL
535 Summary(pl):    Czê¶æ dla programistów interfejsu tcl dla PostgreSQL
536 Group:          Development/Languages/Tcl
537 Requires:       %{name}-tcl = %{version}
538 Requires:       %{name}-devel = %{version}
539
540 %description tcl-devel
541 Development part of tcl interface for PostgreSQL.
542
543 %description tcl-devel -l pl
544 Czê¶æ interfejsu tcl dla PostgreSQL przeznaczona dla programistów.
545
546 %package tcl-static
547 Summary:        Static libraries of tcl interface for PostgreSQL
548 Summary(pl):    Biblioteki statyczne interfejsu tcl dla PostgreSQL
549 Group:          Development/Languages/Tcl
550 Requires:       %{name}-tcl-devel = %{version}
551
552 %description tcl-static
553 Static libraries of tcl interface for PostgreSQL.
554
555 %description tcl-devel -l pl
556 Biblioteki statyczne interfejsu tcl dla PostgreSQL.
557
558 %package module-plpgsql
559 Summary:        PL/pgSQL - PostgreSQL procedural language
560 Summary(pl):    PL/pgSQL jêzyk proceduralny bazy danych PostgreSQL
561 Group:          Applications/Databases
562 Requires:       %{name} = %{version}
563
564 %description module-plpgsql
565 From PostgreSQL documentation.
566
567 Postgres supports the definition of procedural languages. In the case
568 of a function or trigger procedure defined in a procedural language,
569 the database has no built-in knowledge about how to interpret the
570 function's source text. Instead, the task is passed to a handler that
571 knows the details of the language. The handler itself is a special
572 programming language function compiled into a shared object and loaded
573 on demand.
574
575 To enable PL/pgSQL procedural language for your database you have to
576 run createlang command.
577
578 %description module-plpgsql -l pl
579 Z dokumentacji PostgreSQL.
580
581 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
582 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
583 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
584 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
585 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
586 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
587 potrzeby.
588
589 Za pomoc± komendy createlang mo¿na dodaæ wsparcie dla jêzyka
590 proceduralnego PL/pgSQL dla swojej bazy danych.
591
592 %package module-plperl
593 Summary:        PL/perl - PostgreSQL procedural language
594 Summary(pl):    PL/perl jêzyk proceduralny bazy danych PostgreSQL
595 Group:          Applications/Databases
596 Requires:       %{name} = %{version}
597 %requires_eq    perl
598
599 %description module-plperl
600 From PostgreSQL documentation.
601
602 Postgres supports the definition of procedural languages. In the case
603 of a function or trigger procedure defined in a procedural language,
604 the database has no built-in knowledge about how to interpret the
605 function's source text. Instead, the task is passed to a handler that
606 knows the details of the language. The handler itself is a special
607 programming language function compiled into a shared object and loaded
608 on demand.
609
610 To enable PL/perl procedural language for your database you have to
611 run createlang command.
612
613 %description module-plperl -l pl
614 Z dokumentacji PostgreSQL.
615
616 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
617 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
618 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
619 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
620 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
621 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
622 potrzeby.
623
624 Za pomoc± komendy createlang mo¿na dodaæ wsparcie dla jêzyka
625 proceduralnego PL/perl dla swojej bazy danych.
626
627 %package module-plpython
628 Summary:        PL/python - PostgreSQL procedural language
629 Summary(pl):    PL/python jêzyk proceduralny bazy danych PostgreSQL
630 Group:          Applications/Databases
631 Requires:       %{name} = %{version}
632 %pyrequires_eq  python
633
634 %description module-plpython
635 From PostgreSQL documentation.
636
637 Postgres supports the definition of procedural languages. In the case
638 of a function or trigger procedure defined in a procedural language,
639 the database has no built-in knowledge about how to interpret the
640 function's source text. Instead, the task is passed to a handler that
641 knows the details of the language. The handler itself is a special
642 programming language function compiled into a shared object and loaded
643 on demand.
644
645 To enable PL/python procedural language for your database you have to
646 run createlang command.
647
648 %description module-plpython -l pl
649 Z dokumentacji PostgreSQL.
650
651 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
652 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
653 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
654 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
655 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
656 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
657 potrzeby.
658
659 Za pomoc± komendy createlang mo¿na dodaæ wsparcie dla jêzyka
660 proceduralnego PL/python dla swojej bazy danych.
661
662 %package module-pltcl
663 Summary:        PL/TCL - PostgreSQL procedural language
664 Summary(pl):    PL/TCL - jêzyk proceduralny bazy danych PostgreSQL
665 Group:          Applications/Databases
666 Requires:       %{name} = %{version}
667
668 %description module-pltcl
669 From PostgreSQL documentation.
670
671 Postgres supports the definition of procedural languages. In the case
672 of a function or trigger procedure defined in a procedural language,
673 the database has no built-in knowledge about how to interpret the
674 function's source text. Instead, the task is passed to a handler that
675 knows the details of the language. The handler itself is a special
676 programming language function compiled into a shared object and loaded
677 on demand.
678
679 To enable PL/TCL procedural language for your database you have to run
680 createlang command.
681
682 %description module-pltcl -l pl
683 Z dokumentacji PostgreSQL.
684
685 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
686 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
687 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
688 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
689 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
690 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
691 potrzeby.
692
693 Za pomoc± komendy createlang mo¿na dodaæ wsparcie dla jêzyka
694 proceduralnego PL/TCL dla swojej bazy danych.
695
696 %prep
697 %setup  -q
698 %patch0 -p1
699 %patch1 -p1
700 %patch2 -p1
701 %patch3 -p1
702 %patch4 -p1
703 %patch5 -p0
704
705 tar xzf doc/man*.tar.gz
706
707 mkdir doc/unpacked
708 tar zxf doc/postgres.tar.gz -C doc/unpacked
709
710 # Erase all CVS dir
711 rm -fR `find contrib/ -type d -name CVS`
712
713 %build
714 rm -f config/libtool.m4
715 aclocal -I config
716 autoconf
717 %configure \
718         %{!?_without_pgsql_locale:--enable-locale} \
719         %{!?_without_pgsql_multibyte:--enable-multibyte} \
720         --disable-rpath \
721         --enable-depend \
722         --enable-odbc \
723         --enable-recode \
724         --enable-syslog \
725         --enable-unicode-conversion \
726         --with-CXX \
727         --with-tcl \
728         --with-tk \
729         --with-perl \
730         --with-python \
731         --with-openssl \
732         --enable-odbc \
733         --with-odbcinst=%{_sysconfdir} \
734         --with-x \
735 %{?_with_jdbc:  --with-java}
736
737 %{__make}
738 %ifnarch sparc sparcv9 sparc64 alpha ppc
739 %{!?_without_tests: %{__make} check }
740 %endif
741
742 %install
743 rm -rf $RPM_BUILD_ROOT
744 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{rc.d/init.d,sysconfig}} \
745         $RPM_BUILD_ROOT{/var/{lib/pgsql,log},%{_pgsqldir}} \
746         $RPM_BUILD_ROOT{%{_applnkdir}/System,%{_pixmapsdir}} \
747         $RPM_BUILD_ROOT/home/services/postgres
748
749 %{__make} install install-all-headers \
750         DESTDIR=$RPM_BUILD_ROOT
751
752 %{__make} install -C src/pl/plperl \
753         DESTDIR=$RPM_BUILD_ROOT
754
755 touch $RPM_BUILD_ROOT/var/log/pgsql
756
757 # Move PL/pgSQL procedural language to %{_pgmoduledir}
758 ( cd $RPM_BUILD_ROOT%{_libdir}
759   mv -f plpgsql.so $RPM_BUILD_ROOT%{_pgmoduledir}
760 )
761
762 # Move PL/TCL procedural language to %{_pgmoduledir}
763 ( cd $RPM_BUILD_ROOT%{_libdir}
764   mv -f pltcl.so $RPM_BUILD_ROOT%{_pgmoduledir}
765 )
766
767 # odbc
768 install src/interfaces/odbc/odbcinst.ini $RPM_BUILD_ROOT%{_sysconfdir}
769
770 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/postgresql
771 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/postgresql
772 install %{SOURCE4} $RPM_BUILD_ROOT%{_applnkdir}/System
773 install %{SOURCE5} $RPM_BUILD_ROOT%{_pixmapsdir}
774
775 cp -a man?         $RPM_BUILD_ROOT%{_mandir}
776
777 install -d howto
778 ( cd howto
779   tar xzf $RPM_SOURCE_DIR/pgsql-Database-HOWTO-html.tar.gz
780 )
781
782 %py_comp $RPM_BUILD_ROOT%{py_libdir}
783 %py_ocomp $RPM_BUILD_ROOT%{py_libdir}
784
785 gzip -9nf doc/FAQ doc/README* COPYRIGHT README HISTORY doc/bug.template \
786         src/interfaces/odbc/readme.txt \
787         src/interfaces/odbc/notice.txt
788
789 %clean
790 rm -rf $RPM_BUILD_ROOT
791 rm -f /tmp/tmp_perl_info
792
793 %pre
794 if [ -f /etc/sysconfig/postgresql ]; then
795     POSTGRES_DATA_DIR=/var/lib/pgsql
796     . /etc/sysconfig/postgresql
797     if [ -f $POSTGRES_DATA_DIR/PG_VERSION ]; then
798         if [ `cat $POSTGRES_DATA_DIR/PG_VERSION` != '7.2' ]; then
799             echo "Database(s) in older, incompatible format exist in $POSTGRES_DATA_DIR."
800             echo "Dump them and clean $POSTGRES_DATA_DIR, then upgrade postgresql and"
801             echo "restore database(s)."
802         echo
803         echo "Warning for upgrade from version *before* 7.2."
804         echo "Please note, that postgresql module path changed from"
805         echo "/usr/lib/pgsql/module to /usr/lib/postgresql. Change the path"
806         echo "in dump file before restore."
807             exit 1
808         fi
809     fi
810 fi
811
812 getgid postgres >/dev/null 2>&1 || /usr/sbin/groupadd -g 88 -r -f postgres
813 if id postgres >/dev/null 2>&1 ; then
814         /usr/sbin/usermod -d /home/services/postgres postgres
815 else
816         /usr/sbin/useradd -M -o -r -u 88 \
817                 -d /home/services/postgres -s /bin/sh -g postgres \
818                 -c "PostgreSQL Server" postgres
819 fi
820
821 %post
822 /sbin/chkconfig --add postgresql
823
824 if [ -f /var/lock/subsys/postgresql ]; then
825         /etc/rc.d/init.d/postgresql restart >&2
826 else
827         echo "Run \"/etc/rc.d/init.d/postgresql start\" to start postgresql server."
828 fi
829
830 %preun
831 if [ "$1" = "0" ]; then
832         if [ -f /var/lock/subsys/postgresql ]; then
833                 /etc/rc.d/init.d/postgresql stop
834         fi
835         /sbin/chkconfig --del postgresql
836 fi
837
838 %post   libs -p /sbin/ldconfig
839 %postun libs -p /sbin/ldconfig
840
841 %post   tcl -p /sbin/ldconfig
842 %postun tcl -p /sbin/ldconfig
843
844 %post   c++ -p /sbin/ldconfig
845 %postun c++ -p /sbin/ldconfig
846
847 %post   odbc -p /sbin/ldconfig
848 %postun odbc -p /sbin/ldconfig
849
850 %files
851 %defattr(644,root,root,755)
852 %attr(754,root,root) /etc/rc.d/init.d/*
853 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/sysconfig/*
854
855 %attr(755,root,root) %{_bindir}/createdb
856 %attr(755,root,root) %{_bindir}/createuser
857 %attr(755,root,root) %{_bindir}/dropdb
858 %attr(755,root,root) %{_bindir}/dropuser
859 %attr(755,root,root) %{_bindir}/initdb
860 %attr(755,root,root) %{_bindir}/initlocation
861 %attr(755,root,root) %{_bindir}/pg_ctl
862 %attr(755,root,root) %{_bindir}/pg_config
863 %attr(755,root,root) %{_bindir}/pg_encoding
864 %attr(755,root,root) %{_bindir}/pg_passwd
865 %attr(755,root,root) %{_bindir}/postgres
866 %attr(755,root,root) %{_bindir}/postmaster
867 %attr(755,root,root) %{_bindir}/ipcclean
868 %attr(755,root,root) %{_bindir}/createlang
869 %attr(755,root,root) %{_bindir}/droplang
870
871 %dir %{_pgsqldir}
872 %dir %{_pgmoduledir}
873 %{_datadir}/postgresql/*.bki
874 %{_datadir}/postgresql/*.sample
875 %{_datadir}/postgresql/*.description
876
877 %attr(700,postgres,postgres) /home/services/postgres
878 %attr(700,postgres,postgres) %dir /var/lib/pgsql
879 %attr(640,postgres,postgres) %config(noreplace) %verify(not md5 size mtime) /var/log/pgsql
880
881 %{_mandir}/man1/createdb.1*
882 %{_mandir}/man1/createlang.1*
883 %{_mandir}/man1/createuser.1*
884 %{_mandir}/man1/dropdb.1*
885 %{_mandir}/man1/droplang.1*
886 %{_mandir}/man1/dropuser.1*
887 %{_mandir}/man1/initdb.1*
888 %{_mandir}/man1/initlocation.1*
889 %{_mandir}/man1/pg_passwd.1*
890 %{_mandir}/man1/pg_ctl.1*
891 %{_mandir}/man1/pg_config.1*
892 %{_mandir}/man1/postgres.1*
893 %{_mandir}/man1/postmaster.1*
894 %{_mandir}/man1/ipcclean.1*
895
896 %doc contrib
897 %doc doc/FAQ* doc/README*
898 %doc COPYRIGHT.gz README.gz HISTORY.gz doc/bug.template.gz
899
900 %files doc
901 %defattr(644,root,root,755)
902 %doc doc/unpacked/*
903 %doc howto
904
905 %files libs
906 %defattr(644,root,root,755)
907 %attr(755,root,root) %{_libdir}/libpq.so.*.*
908 %attr(755,root,root) %{_libdir}/libpgeasy.so.*.*
909 %attr(755,root,root) %{_libdir}/libecpg.so.*.*
910 %attr(755,root,root) %{_bindir}/pg_id
911
912 %files devel
913 %defattr(644,root,root,755)
914 %attr(755,root,root) %{_bindir}/ecpg
915 %attr(755,root,root) %{_libdir}/libecpg.so
916 %attr(755,root,root) %{_libdir}/libpgeasy.so
917 %attr(755,root,root) %{_libdir}/libpq.so
918 %dir %{_includedir}/postgresql
919 %{_includedir}/pg_config.h
920 %{_includedir}/pg_config_os.h
921 %{_includedir}/ecpgerrno.h
922 %{_includedir}/ecpglib.h
923 %{_includedir}/ecpgtype.h
924 %{_includedir}/libpgeasy.h
925 %{_includedir}/libpq-fe.h
926 %{_includedir}/postgres_ext.h
927 %{_includedir}/sql3types.h
928 %{_includedir}/sqlca.h
929 %dir %{_includedir}/postgresql/internal
930 %{_includedir}/postgresql/internal/c.h
931 %{_includedir}/postgresql/internal/libpq-int.h
932 %{_includedir}/postgresql/internal/postgres_fe.h
933 %{_includedir}/postgresql/internal/pqexpbuffer.h
934 %{_includedir}/postgresql/internal/lib
935 %{_includedir}/postgresql/internal/libpq
936 %{_mandir}/man1/ecpg.1*
937
938 %files backend-devel
939 %defattr(644,root,root,755)
940 %{_includedir}/postgresql/server
941
942 %files static
943 %defattr(644,root,root,755)
944 %{_libdir}/libecpg.a
945 %{_libdir}/libpgeasy.a
946 %{_libdir}/libpq.a
947
948 %files clients
949 %defattr(644,root,root,755)
950 %attr(755,root,root) %{_bindir}/pg_dump
951 %attr(755,root,root) %{_bindir}/pg_dumpall
952 %attr(755,root,root) %{_bindir}/pg_restore
953 %attr(755,root,root) %{_bindir}/psql
954 %attr(755,root,root) %{_bindir}/vacuumdb
955
956 %{_mandir}/man1/pg_dump.1*
957 %{_mandir}/man1/pg_dumpall.1*
958 %{_mandir}/man1/pg_restore.1*
959 %{_mandir}/man1/psql.1*
960 %{_mandir}/man1/vacuumdb.1*
961 %{_mandir}/manl/*.l*
962
963 %files c++
964 %defattr(644,root,root,755)
965 %attr(755,root,root) %{_libdir}/libpq++.so.*.*
966
967 %files c++-devel
968 %defattr(644,root,root,755)
969 %attr(755,root,root) %{_libdir}/libpq++.so
970 %{_includedir}/libpq++.h
971 %{_includedir}/libpq++
972
973 %files c++-static
974 %defattr(644,root,root,755)
975 %{_libdir}/libpq++.a
976
977 %files perl
978 %defattr(644,root,root,755)
979 %dir %{perl_sitearch}/auto/Pg
980 %{perl_sitearch}/auto/Pg/Pg.bs
981 %attr(755,root,root) %{perl_sitearch}/auto/Pg/Pg.so
982 %{perl_sitearch}/auto/Pg/autosplit.ix
983 %{perl_sitearch}/Pg.pm
984 %{_mandir}/man3/*
985
986
987 %files -n python-postgresql
988 %defattr(644,root,root,755)
989 %{py_sitedir}/*.pyc
990 %{py_sitedir}/*.pyo
991 %attr(755,root,root) %{py_sitedir}/*.so
992
993 %files -n pgaccess
994 %defattr(644,root,root,755)
995 %doc src/bin/pgaccess/doc/html/*
996 %attr(755,root,root) %{_bindir}/pgaccess
997 %dir %{_datadir}/postgresql/pgaccess
998 %attr(755, root, root) %{_datadir}/postgresql/pgaccess/main.tcl
999 %{_datadir}/postgresql/pgaccess/images
1000 %{_datadir}/postgresql/pgaccess/lib
1001 %{_applnkdir}/System/pgaccess.desktop
1002 %{_pixmapsdir}/pgaccess.png
1003 %{_mandir}/man1/pgaccess.1*
1004
1005 %files tcl
1006 %defattr(644,root,root,755)
1007 %attr(755,root,root) %{_libdir}/libpgtcl.so
1008 %attr(755,root,root) %{_libdir}/libpgtcl.so.*.*
1009 %attr(755,root,root) %{_bindir}/pgtclsh
1010 %attr(755,root,root) %{_bindir}/pgtksh
1011 %{_mandir}/man1/pgtclsh.1*
1012 %{_mandir}/man1/pgtksh.1*
1013
1014 %files tcl-devel
1015 %defattr(644,root,root,755)
1016 %{_includedir}/libpgtcl.h
1017
1018 %files tcl-static
1019 %defattr(644,root,root,755)
1020 %{_libdir}/libpgtcl.a
1021
1022 %files odbc
1023 %defattr(644,root,root,755)
1024 %doc src/interfaces/odbc/readme.txt.gz src/interfaces/odbc/notice.txt.gz
1025 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/odbc*
1026 %attr(755,root,root) %{_libdir}/libpsqlodbc.so.*.*
1027 %{_datadir}/postgresql/odbc.sql
1028
1029 %files odbc-devel
1030 %defattr(644,root,root,755)
1031 #%{_includedir}/postgresql/iodbc
1032 %attr(755,root,root) %{_libdir}/libpsqlodbc.so
1033
1034 %files odbc-static
1035 %defattr(644,root,root,755)
1036 %{_libdir}/libpsqlodbc.a
1037
1038 %files module-plpgsql
1039 %defattr(644,root,root,755)
1040 %attr(755,root,root) %{_pgmoduledir}/plpgsql.so
1041
1042 %files module-plperl
1043 %defattr(644,root,root,755)
1044 %attr(755,root,root) %{_pgmoduledir}/plperl.so
1045
1046 %files module-plpython
1047 %defattr(644,root,root,755)
1048 %attr(755,root,root) %{_pgmoduledir}/plpython.so
1049
1050 %files module-pltcl
1051 %defattr(644,root,root,755)
1052 %attr(755,root,root) %{_pgmoduledir}/pltcl.so
This page took 0.113811 seconds and 4 git commands to generate.