]> git.pld-linux.org Git - packages/postgresql.git/blob - postgresql.spec
- removed all Group fields translations (oure rpm now can handle translating
[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
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}-contribfixes.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
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 Postgres,
172 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³ model
176 danych oraz bogaty zbiór ró¿nych typów danych, to jednak jêzyk zapytañ
177 PostQuel zosta³ zast±piony rozszerzonym SQL-em. PostgreSQL jest wolnym
178 oprogramowaniem i kody ¼ród³owe tego oprogramowania s± w pe³ni dostêpne. 
179
180 System PostgreSQL jest tworzony przez zespó³ ludzi, którzy s± zapisani na
181 listê dyskusyjn± dotycz±c± PostgreSQL-a. Obecnym koordynatorem jest  Marc
182 G. Fournier (scrappy@postgreSQL.org).  Wymieniony wy¿ej zespó³ jest
183 odpowiedzialny za aktualny i przysz³y rozwój systemu PostgreSQL.
184
185 Autorami PostgreSQL-a 1.01 byli Andrew Yu oraz Jolly Chen. Wielu innych
186 pomaga³o przenosz±c na ró¿ne platformy, testuj±c, analizuj±c i rozszerzaj±c
187 kod. Oryginalny kod Postgres-a, na podstawie którego PostgreSQL powsta³,
188 by³ wysi³kiem wielu absolwentów, studentów oraz zespo³u programistów,
189 którzy pracowali pod kierunkiem profesora Michaela Stonebrakera z
190 Uniwersytetu Kalifornii w Berkeley.
191
192 Nazwa oryginalna oprogramowania tworzonego w Berkeley brzmia³a Postgres.
193 W 1995 roku dodano jêzyk zapytañ SQL i nazwê zmieniono na Postgres95.
194 W koñcu roku 1996 nazwê ostatecznie zmieniono na PostgreSQL.
195
196 PostgreSQL mo¿e byæ uruchominy pod nastêpuj±cymi systemami: Solaris, SunOS,
197 HPUX, AIX, Linux, Irix, FreeBSD i innych systemach Unix.
198
199 %description -l pt_BR
200 Gerenciador de Banco de Dados PostgreSQL (conhecido anteriormente como
201 Postgres, e depois como Postgres95).
202
203 O PostgreSQL é uma continuação melhorada do Sistema Gerenciador de
204 Banco de Dados POSTGRES, que era um protótipo de pesquisa para um SGBD
205 de nova geração. Enquanto o PostgreSQL mantém o poderoso modelo de
206 dados e os vários tipos de dados do POSTGRES, ele substitui a
207 linguagem de consulta PostQuel por um subconjunto estendido da SQL. O
208 PostgreSQL é livre e tem os fontes disponíveis.
209
210 O desenvolvimento do PostgreSQL está sendo executado por uma equipe de
211 desenvolvedores da Internet, todos subscritores da lista de
212 desenvolvimento do PostgreSQL. O coordenador atual é Marc G. Fournier
213 (scrappy@postgreSQL.org). Esta equipe é agora responsável pelo
214 desenvolvimento atual e futuro do PostgreSQL.
215
216 %description -l tr
217 PostgreSQL, POSTGRES'den türemiþ bir veri tabaný yönetim sistemidir
218 (DBMS). Güçlü veri modeli ve zengin POSTGRES veri tiplerini
219 desteklerken SQL'in geniþletilmiþ bir altkümesi yerine PostQuel
220 sorgulama dilini koyar.
221
222 %package devel
223 Summary:        PostgreSQL development header files and libraries
224 Summary(de):    PostgreSQL-Entwicklungs-Header-Dateien und Libraries 
225 Summary(es):    Archivos de inclusión y bibliotecas PostgreSQL
226 Summary(fr):    En-têtes et bibliothèques de développement PostgreSQL
227 Summary(pl):    PostgreSQL - pliki nag³ówkowe i biblioteki
228 Summary(pt_BR): Arquivos de inclusão e bibliotecas para desenvolvimento com o PostgreSQL
229 Summary(tr):    PostgreSQL baþlýk dosyalarý ve kitaplýklar
230 Group:          Development/Libraries
231 Requires:       %{name}-libs = %{version}
232
233 %description devel
234 This package contains header files and libraries required to compile
235 applications that are talking directly to the PostgreSQL backend
236 server.
237
238 %description devel -l de
239 Dieses Paket enthält die Header-Dateien und Libraries, die zum
240 Kompilieren von Applikationen notwendig sind, die direkt mit dem
241 PostgreSQL-Backend-Server kommunizieren.
242
243 %description devel -l es
244 Este paquete contiene archivos de inclusión y bibliotecas requeridas
245 para compilación de aplicativos que se comunican directamente con el
246 servidor backend PostgreSQL.
247
248 %description devel -l fr
249 Ce package contient les fichiers d'en-tête et les bibliothéques
250 nécessaires pour compiler des applications ayant des échanges directs
251 avec le serveur du backend PostgreSQL.
252
253 %description devel -l pl
254 Pakiet zawiera nag³ówki oraz biblioteki wymagane do kompilacji
255 aplikacji ³±cz±cych siê bezpo¶rednio z serwerem PostgreSQL.
256
257 %description devel -l pt_BR
258 Este pacote contém arquivos de inclusão e bibliotecas requeridas para
259 compilação de aplicativos que se comunicam diretamente com o servidor
260 backend PostgreSQL.
261
262 %description devel -l tr
263 Bu paket, PostgreSQL sunucusuyla konuþacak yazýlýmlar geliþtirmek için
264 gereken baþlýk dosyalarýný ve kitaplýklarý içerir.
265
266
267 %package backend-devel
268 Summary:        PostgreSQL backend development header files
269 Summary(pl):    PostgreSQL - pliki nag³ówkowe dla backendu
270 Group:          Development/Libraries
271 Requires:       %{name}-libs = %{version}
272
273 %description backend-devel
274 This package contains header files required to compile functions that
275 could be loaded directly by backend
276
277 %description backend-devel -l pl
278 Pakiet zawiera nag³ówki wymagane do kompilacji funkcji ktore moga byc
279 bezposrednio ladowane przez beckend serwera PostgreSQL.
280
281 %package clients
282 Summary:        Clients needed to access a PostgreSQL server
283 Summary(es):    Clientes necesarios para acceder al servidor PostgreSQL
284 Summary(pl):    Klienci wymagani do dostêpu do serwera PostgreSQL
285 Summary(pt_BR): Clientes necessários para acessar o servidor PostgreSQL
286 Group:          Applications/Databases
287 Requires:       %{name}-libs = %{version}
288
289 %description clients
290 This package includes only the clients needed to access an PostgreSQL
291 server. The server is included in the main package. If all you need
292 is to connect to another PostgreSQL server, the this is the only
293 package you need to install. Clients include several command-line
294 utilities you can use to manage your databases on a remote PostgreSQL
295 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:          Development/Languages/Python
339 Requires:       python >= 2.0
340 Requires:       %{name}-libs = %{version}
341 Obsoletes:      python-PyGreSQL
342 Obsoletes:      postgresql-python
343
344 %description -n python-postgresql
345 postgresql-python includes the python-based client programs and client
346 libraries that you'll need to access a PostgreSQL database management
347 system server.
348
349 %description -n python-postgresql -l es
350 Módulo Python para acceder un servidor PostgreSQL
351
352 %description -n python-postgresql -l pl
353 Pakiet ten zawiera napisane w Pythonie programy i biblioteki klienckie
354 do dostêpu do serwera baz danych PostgreSQL.
355
356 %description -n python-postgresql -l pt_BR
357 Módulo Python para acesso ao servidor PostgreSQL.
358
359 %package doc
360 Summary:        Documentation for PostgreSQL
361 Summary(pl):    Dodatkowa dokumantacja dla PostgreSQL
362 Group:          Applications/Databases
363
364 %description doc
365 This package includes documentation and HOWTO for programmer, admin
366 etc., in HTML format.
367
368 %description doc -l pl
369 Pakiet ten zawiera dokumentacjê oraz HOWTO m.in. dla programistów,
370 administratorów w formacie HTML.
371
372 %package libs
373 Summary:        PostgreSQL libraries
374 Summary(es):    Biblioteca compartida del PostgreSQL
375 Summary(pl):    Biblioteki dzielone programu PostgreSQL
376 Summary(pt_BR): Biblioteca compartilhada do PostgreSQL
377 Group:          Libraries
378
379 %description libs
380 PostgreSQL shared libraries.
381
382 %description libs -l es
383 Este paquete contiene la biblioteca compartida para acceso al
384 postgresql.
385
386 %description libs -l pl
387 Biblioteki dzielone programu PostgreSQL.
388
389 %description libs -l pt_BR
390 Este pacote contém a biblioteca compartilhada para acesso ao
391 postgresql.
392
393 %package static
394 Summary:        PostgreSQL static libraries
395 Summary(es):    Bibliotecas estaticas PostgreSQL
396 Summary(pl):    Biblioteki statyczne programu PostgreSQL
397 Summary(pt_BR): Bibliotecas estáticas PostgreSQL
398 Group:          Development/Libraries
399 Requires:       %{name}-devel = %{version}
400
401 %description static
402 PostgreSQL static libraries.
403
404 %description static -l es
405 Este paquete contiene bibliotecas estaticas requerida para compilación
406 de aplicativos que se comunican directamente con el servidor backend
407 PostgreSQL.
408
409 %description static -l pl
410 Biblioteki statyczne programu PostgreSQL.
411
412 %description static -l pt_BR
413 Este pacote contém as bibliotecas estáticas requeridas para compilação
414 de aplicativos que se comunicam diretamente com o servidor backend
415 PostgreSQL.
416
417 %package c++
418 Summary:        C++ interface to PostgreSQL
419 Summary(pl):    Interfejs C++ do PostgreSQL
420 Group:          Applications/Databases
421 Requires:       %{name}-libs = %{version}
422
423 %description c++
424 This package includes library for C++ interface to PostgreSQL.
425
426 %description c++ -l pl
427 Pakiet ten zawiera biblioteki dla interfejsu C++ do PostgreSQL.
428
429 %package c++-devel
430 Summary:        C++ interface to PostgreSQL - development part
431 Summary(pl):    Interfejs C++ do PostgreSQL - cze¶æ programistyczna
432 Group:          Applications/Databases
433 Requires:       %{name}-c++ = %{version}
434 Requires:       %{name}-devel = %{version}
435
436 %description c++-devel
437 This package includes library and header files for C++ interface.
438
439 %description c++-devel -l pl
440 Pakiet ten zawiera biblioteki i pliki nag³ówkowe dla interfejsu C++.
441
442 %package c++-static
443 Summary:        C++ interface to PostgreSQL - static libraries
444 Summary(pl):    Interfejs C++ do PostgreSQL - biblioteki statyczne
445 Group:          Applications/Databases
446 Requires:       %{name}-c++-devel = %{version}
447
448 %description c++-static
449 This package includes static library for interface C++.
450
451 %description c++-static -l pl
452 Pakiet ten zawiera biblioteki statyczne dla interfejsu C++.
453
454 %package odbc
455 Summary:        ODBC interface to PostgreSQL
456 Summary(es):    Driver ODBC para acceder un servidor PostgreSQL
457 Summary(pl):    Interfejs ODBC do PostgreSQL
458 Summary(pt_BR): Driver ODBC necessário para acessar um servidor PostgreSQL
459 Group:          Applications/Databases
460 Requires:       %{name}-libs = %{version}
461
462 %description odbc
463 This package includes library for interface ODBC.
464
465 %description odbc -l es
466 Driver para acceder un servidor PostgreSQL, a través de ODBC.
467
468 %description odbc -l pl
469 Pakiet ten zawiera biblioteki dla interfejsu ODBC.
470
471 %description odbc -l pt_BR
472 Driver ODBC necessário para acessar um servidor PostgreSQL.
473
474 %package odbc-devel
475 Summary:        ODBC interface to PostgreSQL - development part
476 Summary(pl):    Interfejs ODBC do PostgreSQL - cze¶æ programistyczna
477 Group:          Applications/Databases
478 Requires:       %{name}-odbc = %{version}
479 Requires:       %{name}-devel = %{version}
480
481 %description odbc-devel
482 This package includes library and header files for interface ODBC.
483
484 %description odbc-devel -l pl
485 Pakiet ten zawiera biblioteki i pliki nag³ówkowe dla interfejsu ODBC.
486
487 %package odbc-static
488 Summary:        ODBC interface to PostgreSQL - static libraries
489 Summary(pl):    Interfejs ODBC do PostgreSQL - biblioteki statyczne
490 Group:          Applications/Databases
491 Requires:       %{name}-odbc-devel = %{version}
492
493 %description odbc-static
494 This package includes static library for interface ODBC.
495
496 %description odbc-static -l pl
497 Pakiet ten zawiera biblioteki statyczne dla interfejsu ODBC.
498
499 %package -n pgaccess
500 Summary:        A free graphical database management tool for PostgreSQL
501 Summary(pl):    Graficzne narzêdzie do obs³ugi baz danych PostgreSQL
502 Group:          Applications/Databases
503 Requires:       %{name}-tcl = %{version}
504
505 %description -n pgaccess
506 A free graphical database management tool for PostgreSQL.
507
508 %description -n pgaccess -l pl
509 Graficzne narzêdzie do obs³ugi baz danych PostgreSQL.
510
511 %package tcl
512 Summary:        tcl interface for PostgreSQL
513 Summary(es):    Bibliotecas y shell TCL para acceder un servidor PostgreSQL
514 Summary(pl):    Interfejs tcl dla PostgreSQL
515 Summary(pt_BR): Bibliotecas e shell para programas em TCL acessarem o servidor PostgreSQL
516 Group:          Development/Languages/Tcl
517 Requires:       %{name}-libs = %{version}
518
519 %description tcl
520 tcl interface for PostgreSQL.
521
522 %description tcl -l es
523 Bibliotecas y shell TCL para acceder un servidor PostgreSQL
524
525 %description tcl -l pl
526 Interfejs tcl dla PostgreSQL.
527
528 %description tcl -l pt_BR
529 Bibliotecas e shell para programas em TCL acessarem o servidor
530 PostgreSQL
531
532 %package tcl-devel
533 Summary:        Development part of tcl interface for PostgreSQL
534 Summary(pl):    Czê¶æ dla programistów interfejsu tcl dla PostgreSQL
535 Group:          Development/Languages/Tcl
536 Requires:       %{name}-tcl = %{version}
537 Requires:       %{name}-devel = %{version}
538
539 %description tcl-devel
540 Development part of tcl interface for PostgreSQL.
541
542 %description tcl-devel -l pl
543 Czê¶æ interfejsu tcl dla PostgreSQL przeznaczona dla programistów.
544
545 %package tcl-static
546 Summary:        Static libraries of tcl interface for PostgreSQL
547 Summary(pl):    Biblioteki statyczne interfejsu tcl dla PostgreSQL
548 Group:          Development/Languages/Tcl
549 Requires:       %{name}-tcl-devel = %{version}
550
551 %description tcl-static
552 Static libraries of tcl interface for PostgreSQL.
553
554 %description tcl-devel -l pl
555 Biblioteki statyczne interfejsu tcl dla PostgreSQL.
556
557 %package module-plpgsql
558 Summary:        PL/pgSQL - PostgreSQL procedural language
559 Summary(pl):    PL/pgSQL jêzyk proceduralny bazy danych PostgreSQL
560 Group:          Applications/Databases
561 Requires:       %{name} = %{version}
562
563 %description module-plpgsql
564 From PostgreSQL documentation.
565
566 Postgres supports the definition of procedural languages. In the case
567 of a function or trigger procedure defined in a procedural language,
568 the database has no built-in knowledge about how to interpret the
569 function's source text. Instead, the task is passed to a handler that
570 knows the details of the language. The handler itself is a special
571 programming language function compiled into a shared object and loaded
572 on demand.
573
574 To enable PL/pgSQL procedural language for your database you have to
575 run createlang command.
576
577 %description module-plpgsql -l pl
578 Z dokumentacji PostgreSQL.
579
580 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
581 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
582 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
583 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
584 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
585 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
586 potrzeby.
587
588 Za pomoc± komendy createlang mo¿na dodaæ wsparcie dla jêzyka
589 proceduralnego PL/pgSQL dla swojej bazy danych.
590
591 %package module-plperl
592 Summary:        PL/perl - PostgreSQL procedural language
593 Summary(pl):    PL/perl jêzyk proceduralny bazy danych PostgreSQL
594 Group:          Applications/Databases
595 Requires:       %{name} = %{version}
596 %requires_eq    perl
597
598 %description module-plperl
599 From PostgreSQL documentation.
600
601 Postgres supports the definition of procedural languages. In the case
602 of a function or trigger procedure defined in a procedural language,
603 the database has no built-in knowledge about how to interpret the
604 function's source text. Instead, the task is passed to a handler that
605 knows the details of the language. The handler itself is a special
606 programming language function compiled into a shared object and loaded
607 on demand.
608
609 To enable PL/perl procedural language for your database you have to
610 run createlang command.
611
612 %description module-plperl -l pl
613 Z dokumentacji PostgreSQL.
614
615 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
616 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
617 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
618 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
619 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
620 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
621 potrzeby.
622
623 Za pomoc± komendy createlang mo¿na dodaæ wsparcie dla jêzyka
624 proceduralnego PL/perl dla swojej bazy danych.
625
626 %package module-plpython
627 Summary:        PL/python - PostgreSQL procedural language
628 Summary(pl):    PL/python jêzyk proceduralny bazy danych PostgreSQL
629 Group:          Applications/Databases
630 Requires:       %{name} = %{version}
631 %requires_eq    python
632
633 %description module-plpython
634 From PostgreSQL documentation.
635
636 Postgres supports the definition of procedural languages. In the case
637 of a function or trigger procedure defined in a procedural language,
638 the database has no built-in knowledge about how to interpret the
639 function's source text. Instead, the task is passed to a handler that
640 knows the details of the language. The handler itself is a special
641 programming language function compiled into a shared object and loaded
642 on demand.
643
644 To enable PL/python procedural language for your database you have to
645 run createlang command.
646
647 %description module-plpython -l pl
648 Z dokumentacji PostgreSQL.
649
650 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
651 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
652 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
653 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
654 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
655 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
656 potrzeby.
657
658 Za pomoc± komendy createlang mo¿na dodaæ wsparcie dla jêzyka
659 proceduralnego PL/python dla swojej bazy danych.
660
661 %package module-pltcl
662 Summary:        PL/TCL - PostgreSQL procedural language
663 Summary(pl):    PL/TCL - jêzyk proceduralny bazy danych PostgreSQL
664 Group:          Applications/Databases
665 Requires:       %{name} = %{version}
666
667 %description module-pltcl
668 From PostgreSQL documentation.
669
670 Postgres supports the definition of procedural languages. In the case
671 of a function or trigger procedure defined in a procedural language,
672 the database has no built-in knowledge about how to interpret the
673 function's source text. Instead, the task is passed to a handler that
674 knows the details of the language. The handler itself is a special
675 programming language function compiled into a shared object and loaded
676 on demand.
677
678 To enable PL/TCL procedural language for your database you have to run
679 createlang command.
680
681 %description module-pltcl -l pl
682 Z dokumentacji PostgreSQL.
683
684 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
685 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
686 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
687 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
688 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
689 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
690 potrzeby.
691
692 Za pomoc± komendy createlang mo¿na dodaæ wsparcie dla jêzyka
693 proceduralnego PL/TCL dla swojej bazy danych.
694
695 %prep
696 %setup  -q
697 %patch0 -p1
698 %patch1 -p1
699 %patch2 -p1
700 %patch3 -p1
701 %patch4 -p1
702 %patch5 -p1
703
704 tar xzf doc/man*.tar.gz
705
706 mkdir doc/unpacked
707 tar zxf doc/postgres.tar.gz -C doc/unpacked
708
709 # Erase all CVS dir
710 rm -fR `find contrib/ -type d -name CVS`
711
712 %build
713 rm -f config/libtool.m4
714 aclocal -I config
715 autoconf
716 %configure \
717         %{!?_without_pgsql_locale:--enable-locale} \
718         %{!?_without_pgsql_multibyte:--enable-multibyte} \
719         --disable-rpath \
720         --enable-depend \
721         --enable-odbc \
722         --enable-recode \
723         --enable-syslog \
724         --enable-unicode-conversion \
725         --with-CXX \
726         --with-tcl \
727         --with-tk \
728         --with-perl \
729         --with-python \
730         --with-openssl \
731         --enable-odbc \
732         --with-odbcinst=%{_sysconfdir} \
733         --with-x \
734 %{?_with_jdbc:  --with-java}
735
736 %{__make}
737 %ifnarch sparc sparcv9 sparc64 alpha
738 %{!?_without_tests: %{__make} check }
739 %endif
740
741 %install
742 rm -rf $RPM_BUILD_ROOT
743 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{rc.d/init.d,sysconfig}} \
744         $RPM_BUILD_ROOT{/var/{lib/pgsql,log},%{_pgsqldir}} \
745         $RPM_BUILD_ROOT{%{_applnkdir}/System,%{_pixmapsdir}} \
746         $RPM_BUILD_ROOT/home/services/postgres
747
748 %{__make} install install-all-headers \
749         DESTDIR=$RPM_BUILD_ROOT
750
751 %{__make} install -C src/pl/plperl \
752         DESTDIR=$RPM_BUILD_ROOT
753
754 touch $RPM_BUILD_ROOT/var/log/pgsql
755
756 # Move PL/pgSQL procedural language to %{_pgmoduledir}
757 ( cd $RPM_BUILD_ROOT%{_libdir}
758   mv -f plpgsql.so $RPM_BUILD_ROOT%{_pgmoduledir}
759 )
760
761 # Move PL/TCL procedural language to %{_pgmoduledir}
762 ( cd $RPM_BUILD_ROOT%{_libdir}
763   mv -f pltcl.so $RPM_BUILD_ROOT%{_pgmoduledir}
764 )
765
766 # odbc
767 install src/interfaces/odbc/odbcinst.ini $RPM_BUILD_ROOT%{_sysconfdir}
768
769 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/postgresql
770 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/postgresql
771 install %{SOURCE4} $RPM_BUILD_ROOT%{_applnkdir}/System
772 install %{SOURCE5} $RPM_BUILD_ROOT%{_pixmapsdir}
773
774 cp -a man?         $RPM_BUILD_ROOT%{_mandir}
775
776 install -d howto
777 ( cd howto
778   tar xzf $RPM_SOURCE_DIR/pgsql-Database-HOWTO-html.tar.gz
779 )
780
781 %py_comp $RPM_BUILD_ROOT%{py_libdir}
782 %py_ocomp $RPM_BUILD_ROOT%{py_libdir}
783
784 gzip -9nf doc/FAQ doc/README* COPYRIGHT README HISTORY doc/bug.template \
785         src/interfaces/odbc/readme.txt \
786         src/interfaces/odbc/notice.txt
787
788 %clean
789 rm -rf $RPM_BUILD_ROOT
790 rm -f /tmp/tmp_perl_info
791
792 %pre
793 if [ -f /etc/sysconfig/postgresql ]; then
794     POSTGRES_DATA_DIR=/var/lib/pgsql
795     . /etc/sysconfig/postgresql
796     if [ -f $POSTGRES_DATA_DIR/PG_VERSION ]; then
797         if [ `cat $POSTGRES_DATA_DIR/PG_VERSION` != '7.2' ]; then
798             echo "Database(s) in older, incompatible format exist in $POSTGRES_DATA_DIR."
799             echo "Dump them and clean $POSTGRES_DATA_DIR, then upgrade postgresql and"
800             echo "restore database(s)."
801             exit 1
802         fi
803     fi
804 fi
805
806 getgid postgres >/dev/null 2>&1 || /usr/sbin/groupadd -g 88 -r -f postgres
807 if id postgres >/dev/null 2>&1 ; then
808         /usr/sbin/usermod -d /home/services/postgres postgres
809 else
810         /usr/sbin/useradd -M -o -r -u 88 \
811                 -d /home/services/postgres -s /bin/sh -g postgres \
812                 -c "PostgreSQL Server" postgres
813 fi
814
815 %post
816 /sbin/chkconfig --add postgresql
817
818 if [ -f /var/lock/subsys/postgresql ]; then
819         /etc/rc.d/init.d/postgresql restart >&2
820 else
821         echo "Run \"/etc/rc.d/init.d/postgresql start\" to start postgresql server."
822 fi
823
824 %preun
825 if [ "$1" = "0" ]; then
826         if [ -f /var/lock/subsys/postgresql ]; then
827                 /etc/rc.d/init.d/postgresql stop
828         fi
829         /sbin/chkconfig --del postgresql
830 fi
831
832 %post   libs -p /sbin/ldconfig
833 %postun libs -p /sbin/ldconfig
834
835 %post   tcl -p /sbin/ldconfig
836 %postun tcl -p /sbin/ldconfig
837
838 %post   c++ -p /sbin/ldconfig
839 %postun c++ -p /sbin/ldconfig
840
841 %post   odbc -p /sbin/ldconfig
842 %postun odbc -p /sbin/ldconfig
843
844 %files
845 %defattr(644,root,root,755)
846 %attr(754,root,root) /etc/rc.d/init.d/*
847 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/sysconfig/*
848
849 %attr(755,root,root) %{_bindir}/createdb
850 %attr(755,root,root) %{_bindir}/createuser
851 %attr(755,root,root) %{_bindir}/dropdb
852 %attr(755,root,root) %{_bindir}/dropuser
853 %attr(755,root,root) %{_bindir}/initdb
854 %attr(755,root,root) %{_bindir}/initlocation
855 %attr(755,root,root) %{_bindir}/pg_ctl
856 %attr(755,root,root) %{_bindir}/pg_config
857 %attr(755,root,root) %{_bindir}/pg_encoding
858 %attr(755,root,root) %{_bindir}/pg_passwd
859 %attr(755,root,root) %{_bindir}/postgres
860 %attr(755,root,root) %{_bindir}/postmaster
861 %attr(755,root,root) %{_bindir}/ipcclean
862 %attr(755,root,root) %{_bindir}/createlang
863 %attr(755,root,root) %{_bindir}/droplang
864
865 %dir %{_pgsqldir}
866 %dir %{_pgmoduledir}
867 %{_datadir}/postgresql/*.bki
868 %{_datadir}/postgresql/*.sample
869 %{_datadir}/postgresql/*.description
870
871 %attr(700,postgres,postgres) /home/services/postgres
872 %attr(700,postgres,postgres) %dir /var/lib/pgsql
873 %attr(640,postgres,postgres) %config(noreplace) %verify(not md5 size mtime) /var/log/pgsql
874
875 %{_mandir}/man1/createdb.1*
876 %{_mandir}/man1/createlang.1*
877 %{_mandir}/man1/createuser.1*
878 %{_mandir}/man1/dropdb.1*
879 %{_mandir}/man1/droplang.1*
880 %{_mandir}/man1/dropuser.1*
881 %{_mandir}/man1/initdb.1*
882 %{_mandir}/man1/initlocation.1*
883 %{_mandir}/man1/pg_passwd.1*
884 %{_mandir}/man1/pg_ctl.1*
885 %{_mandir}/man1/pg_config.1*
886 %{_mandir}/man1/postgres.1*
887 %{_mandir}/man1/postmaster.1*
888 %{_mandir}/man1/ipcclean.1*
889
890 %doc contrib 
891 %doc doc/FAQ* doc/README* 
892 %doc COPYRIGHT.gz README.gz HISTORY.gz doc/bug.template.gz
893
894 %files doc
895 %defattr(644,root,root,755)
896 %doc doc/unpacked/*
897 %doc howto
898
899 %files libs
900 %defattr(644,root,root,755)
901 %attr(755,root,root) %{_libdir}/libpq.so.*.*
902 %attr(755,root,root) %{_libdir}/libpgeasy.so.*.*
903 %attr(755,root,root) %{_libdir}/libecpg.so.*.*
904 %attr(755,root,root) %{_bindir}/pg_id
905
906 %files devel
907 %defattr(644,root,root,755)
908 %doc doc/internals.ps*
909 %attr(755,root,root) %{_bindir}/ecpg
910 %attr(755,root,root) %{_libdir}/libecpg.so
911 %attr(755,root,root) %{_libdir}/libpgeasy.so
912 %attr(755,root,root) %{_libdir}/libpq.so
913 %dir %{_includedir}/postgresql
914 %{_includedir}/pg_config.h
915 %{_includedir}/pg_config_os.h
916 %{_includedir}/ecpgerrno.h
917 %{_includedir}/ecpglib.h
918 %{_includedir}/ecpgtype.h
919 %{_includedir}/libpgeasy.h
920 %{_includedir}/libpq-fe.h
921 %{_includedir}/postgres_ext.h
922 %{_includedir}/sql3types.h
923 %{_includedir}/sqlca.h
924 %dir %{_includedir}/postgresql/internal
925 %{_includedir}/postgresql/internal/c.h
926 %{_includedir}/postgresql/internal/libpq-int.h
927 %{_includedir}/postgresql/internal/postgres_fe.h
928 %{_includedir}/postgresql/internal/pqexpbuffer.h
929 %{_includedir}/postgresql/internal/lib
930 %{_includedir}/postgresql/internal/libpq
931 %{_mandir}/man1/ecpg.1*
932
933 %files backend-devel
934 %defattr(644,root,root,755)
935 %{_includedir}/postgresql/server
936
937 %files static
938 %defattr(644,root,root,755)
939 %{_libdir}/libecpg.a
940 %{_libdir}/libpgeasy.a
941 %{_libdir}/libpq.a
942
943 %files clients
944 %defattr(644,root,root,755)
945 %attr(755,root,root) %{_bindir}/pg_dump
946 %attr(755,root,root) %{_bindir}/pg_dumpall
947 %attr(755,root,root) %{_bindir}/pg_restore
948 %attr(755,root,root) %{_bindir}/psql
949 %attr(755,root,root) %{_bindir}/vacuumdb
950
951 %{_mandir}/man1/pg_dump.1*
952 %{_mandir}/man1/pg_dumpall.1*
953 %{_mandir}/man1/pg_restore.1*
954 %{_mandir}/man1/psql.1*
955 %{_mandir}/man1/vacuumdb.1*
956 %{_mandir}/manl/*.l*
957
958 %files c++
959 %defattr(644,root,root,755)
960 %attr(755,root,root) %{_libdir}/libpq++.so.*.*
961
962 %files c++-devel
963 %defattr(644,root,root,755)
964 %attr(755,root,root) %{_libdir}/libpq++.so
965 %{_includedir}/libpq++.h
966 %{_includedir}/libpq++
967
968 %files c++-static
969 %defattr(644,root,root,755)
970 %{_libdir}/libpq++.a
971
972 %files perl
973 %defattr(644,root,root,755)
974 %dir %{perl_sitearch}/auto/Pg
975 %{perl_sitearch}/auto/Pg/Pg.bs
976 %attr(755,root,root) %{perl_sitearch}/auto/Pg/Pg.so
977 %{perl_sitearch}/auto/Pg/autosplit.ix
978 %{perl_sitearch}/Pg.pm
979 %{_mandir}/man3/*
980
981
982 %files -n python-postgresql
983 %defattr(644,root,root,755)
984 %{py_sitedir}/*.pyc
985 %{py_sitedir}/*.pyo
986 %attr(755,root,root) %{py_sitedir}/*.so
987
988 %files -n pgaccess
989 %defattr(644,root,root,755)
990 %doc src/bin/pgaccess/doc/html/*
991 %attr(755,root,root) %{_bindir}/pgaccess
992 %dir %{_datadir}/postgresql/pgaccess
993 %attr(755, root, root) %{_datadir}/postgresql/pgaccess/main.tcl
994 %{_datadir}/postgresql/pgaccess/images
995 %{_datadir}/postgresql/pgaccess/lib
996 %{_applnkdir}/System/pgaccess.desktop
997 %{_pixmapsdir}/pgaccess.png
998 %{_mandir}/man1/pgaccess.1*
999
1000 %files tcl
1001 %defattr(644,root,root,755)
1002 %attr(755,root,root) %{_libdir}/libpgtcl.so
1003 %attr(755,root,root) %{_libdir}/libpgtcl.so.*.*
1004 %attr(755,root,root) %{_bindir}/pgtclsh
1005 %attr(755,root,root) %{_bindir}/pgtksh
1006 %{_mandir}/man1/pgtclsh.1*
1007 %{_mandir}/man1/pgtksh.1*
1008
1009 %files tcl-devel
1010 %defattr(644,root,root,755)
1011 %{_includedir}/libpgtcl.h
1012
1013 %files tcl-static
1014 %defattr(644,root,root,755)
1015 %{_libdir}/libpgtcl.a
1016
1017 %files odbc
1018 %defattr(644,root,root,755)
1019 %doc src/interfaces/odbc/readme.txt.gz src/interfaces/odbc/notice.txt.gz
1020 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/odbc*
1021 %attr(755,root,root) %{_libdir}/libpsqlodbc.so.*.*
1022 %{_datadir}/postgresql/odbc.sql
1023
1024 %files odbc-devel
1025 %defattr(644,root,root,755)
1026 #%{_includedir}/postgresql/iodbc
1027 %attr(755,root,root) %{_libdir}/libpsqlodbc.so
1028
1029 %files odbc-static
1030 %defattr(644,root,root,755)
1031 %{_libdir}/libpsqlodbc.a
1032
1033 %files module-plpgsql
1034 %defattr(644,root,root,755)
1035 %attr(755,root,root) %{_pgmoduledir}/plpgsql.so
1036
1037 %files module-plperl
1038 %defattr(644,root,root,755)
1039 %attr(755,root,root) %{_pgmoduledir}/plperl.so
1040
1041 %files module-plpython
1042 %defattr(644,root,root,755)
1043 %attr(755,root,root) %{_pgmoduledir}/plpython.so
1044
1045 %files module-pltcl
1046 %defattr(644,root,root,755)
1047 %attr(755,root,root) %{_pgmoduledir}/pltcl.so
This page took 0.105384 seconds and 4 git commands to generate.