]> git.pld-linux.org Git - packages/postgresql.git/blob - postgresql.spec
- 7.0.x database catalog is not compatibile with 7.1 catalog
[packages/postgresql.git] / postgresql.spec
1 %include        /usr/lib/rpm/macros.perl
2 Summary:        PostgreSQL Data Base Management System
3 Summary(de):    PostgreSQL Datenbankverwaltungssystem
4 Summary(fr):    Sysème de gestion de base de données PostgreSQL
5 Summary(pl):    PostgreSQL - system bazodanowy
6 Summary(tr):    Veri Tabaný Yönetim Sistemi
7 Name:           postgresql
8 Version:        7.1
9 Release:        2
10 License:        BSD
11 Group:          Applications/Databases
12 Group(pl):      Aplikacje/Bazy danych
13 Source0:        ftp://ftp.postgresql.org/pub/source/v%{version}/%{name}-%{version}.tar.gz
14 Source1:        %{name}.init
15 Source2:        pgsql-Database-HOWTO-html.tar.gz
16 Source3:        %{name}.sysconfig
17 Source4:        pgaccess.desktop
18 Source5:        pgaccess.png
19 Patch0:         %{name}-DESTDIR.patch
20 Patch1:         %{name}-no_libnsl.patch
21 Patch2:         %{name}-readline.patch
22 Patch3:         %{name}-configure.patch
23 Patch4:         %{name}-install.patch
24 Icon:           postgresql.xpm
25 URL:            http://www.postgresql.org/
26 Prereq:         /sbin/chkconfig
27 Prereq:         rc-scripts
28 BuildRequires:  autoconf
29 BuildRequires:  tcl-devel >= 8.3.2
30 BuildRequires:  tk-devel >= 8.3.2
31 BuildRequires:  readline-devel >= 4.2
32 BuildRequires:  ncurses-devel >= 5.0
33 BuildRequires:  perl-devel >= 5.6
34 BuildRequires:  python-devel
35 BuildRequires:  rpm-perlprov
36 BuildRequires:  zlib-devel
37 BuildRequires:  openssl-devel >= 0.9.6a
38 BuildRequires:  XFree86-devel
39 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40 Requires:       %{name}-libs = %{version}
41 Obsoletes:      postgresql-server
42 Obsoletes:      postgresql-test
43
44 %define         pgsqldir        %{_libdir}/pgsql/sql
45 %define         pgmoduledir     %{_libdir}/pgsql/modules
46
47
48 %description
49 PostgreSQL Data Base Management System (formerly known as Postgres,
50 then as Postgres95).
51
52 PostgreSQL is an enhancement of the POSTGRES database management
53 system, a next-generation DBMS research prototype. While PostgreSQL
54 retains the powerful data model and rich data types of POSTGRES, it
55 replaces the PostQuel query language with an extended subset of SQL.
56 PostgreSQL is free and the complete source is available.
57
58 PostgreSQL development is being performed by a team of Internet
59 developers who all subscribe to the PostgreSQL development mailing
60 list. The current coordinator is Marc G. Fournier
61 (scrappy@postgreSQL.org). This team is now responsible for all current
62 and future development of PostgreSQL.
63
64 The authors of PostgreSQL 1.01 were Andrew Yu and Jolly Chen. Many
65 others have contributed to the porting, testing, debugging and
66 enhancement of the code. The original Postgres code, from which
67 PostgreSQL is derived, was the effort of many graduate students,
68 undergraduate students, and staff programmers working under the
69 direction of Professor Michael Stonebraker at the University of
70 California, Berkeley.
71
72 The original name of the software at Berkeley was Postgres. When SQL
73 functionality was added in 1995, its name was changed to Postgres95.
74 The name was changed at the end of 1996 to PostgreSQL.
75
76 PostgreSQL runs on Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD,
77 and most flavours of Unix.
78
79 %description -l de
80 PostgreSQL Datenbank-Managementsystem (früher als Postgres, dann als
81 Postgres95 bekannt).
82
83 PostgreSQL ist eine Verbesserung des POSTGRES-DB-Managementsystems,
84 ein DBMS-Forschungsprototyp der nächsten Generation. Während es das
85 leistungsfähige Datenmodell und die reichhaltigen Datentypen von
86 POSTGRES beibehält, ersetzt es die PostQuel-Abfragesprache durch ein
87 Subset von SQL. PostgreSQL ist gratis, der gesamte Quellcode ist
88 verfügbar.
89
90 Ein Team von Internet-Entwicklern befaßt sich mit PostgreSQL. Sie alle
91 sind auf der PostgreSQL-Entwickleradreßliste. Koordinator ist Marc G.
92 Fournier (scrappy@postgreSQL.org). Das Team ist verantwortlich für
93 alle aktuellen und künftigen Entwicklungen von PostgreSQL.
94
95 Die Autoren von PostgreSQL 1.01 waren Andrew Yu und Jolly Chen.
96 Zahlreiche andere haben zur Portierung, zum Testen, Debugging und zur
97 Verbesserung des Code beigetragen. Den Original-Postgres-Code, von dem
98 sich PostgreSQL ableitet, verdanken wir der Arbeit vieler Doktoranden,
99 Studenten und Programmierern unter der Leitung von Professor Michael
100 Stonebraker an der University of California, Berkeley.
101
102 Der ursprüngliche Name war Postgres. Als 1995 SQL-Funktionalität
103 hinzukam, wurde der Name in Postgres95 geändert. Ende 1996 schließlich
104 entschied man sich für PostgreSQL.
105
106 PostgreSQL läuft auf Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD
107 und den meisten Unix-Systemen.
108
109 %description -l fr
110 Système de gestion de bases de données PostgreSQL (D'abord nommé
111 Postgres, puis Postgres95).
112
113 PostgreSQL est une amélioration du système de gestion de bases de
114 données POSTGRES, un prototype de recherche de la génération suivant
115 DBMS. Tout en conservant le puissant modèle de donnée de et les types
116 de donée riches de Postgres, il remplace le langage de requêtes de
117 Postgres par un sous ensemble etendu de commandes SQL. PosrgreSQL est
118 libre, et ses sources sont disponibles.
119
120 Le développement de PostgreSQL est actuellement réalisé via internet
121 parune équipe de développeurs inscrits sur la mailing-list de
122 développement de PostgreSQL. Le coordinateur actuel est Marc G
123 Fournier (scrappy@postgreSQL.org). Cette équipe est responsable du
124 développemen actuel et à venir de PostgreSQL.
125
126 Les auteurs de PostgreSQL 1.01 étaient Andrew Yu et Jolly Chen.
127 Beaucoup d'autres ont contribué au portage, au test, au débogage et à
128 l'amélioration du code. Le code original de Postgres, duquel
129 PostgreSQL est dérivé, a été l'oeuvre d'étudiants de haut niveau, de
130 moins haut niveau, et de programmeurs travaillant sous la direction du
131 professeur Michael Stonebraker à l'université de Berkeley Californie.
132
133 Le nom original du logiciel était Postgres. Quand les fonctionnalitées
134 SQL furent ajoutées en 1995, son nom est devenu Postgres95. Il a été
135 rebaptisé PostgreSQL en 1996.
136
137 PostgreSQL tourne sur Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD,
138 et la plupart des Unix.
139
140 %description -l pl
141 System Zarz±dzania Baz± Danych PostgreSQL (dawniej znany jako
142 Postgres, nastêpnie jako Postgres95).
143
144 PostgreSQL mo¿e byæ uruchominy pod nastêpuj±cymi systemami: Solaris,
145 SunOS, HPUX, AIX, Linux, Irix, FreeBSD i innych systemach Unix.
146
147 %description -l tr
148 PostgreSQL, POSTGRES'den türemiþ bir veri tabaný yönetim sistemidir
149 (DBMS). Güçlü veri modeli ve zengin POSTGRES veri tiplerini
150 desteklerken SQL'in geniþletilmiþ bir altkümesi yerine PostQuel
151 sorgulama dilini koyar.
152
153 %package devel
154 Summary:        PostgreSQL development header files and libraries
155 Summary(de):    PostgreSQL-Entwicklungs-Header-Dateien und Libraries 
156 Summary(fr):    En-têtes et bibliothèques de développement PostgreSQL
157 Summary(pl):    PostgreSQL - pliki nag³ówkowe i biblioteki
158 Summary(tr):    PostgreSQL baþlýk dosyalarý ve kitaplýklar
159 Group:          Development/Libraries
160 Group(de):      Entwicklung/Libraries
161 Group(fr):      Development/Librairies
162 Group(pl):      Programowanie/Biblioteki
163 Requires:       %{name}-libs = %{version}
164
165 %description devel
166 This package contains header files and libraries required to compile
167 applications that are talking directly to the PostgreSQL backend
168 server.
169
170 %description -l de devel
171 Dieses Paket enthält die Header-Dateien und Libraries, die zum
172 Kompilieren von Applikationen notwendig sind, die direkt mit dem
173 PostgreSQL-Backend-Server kommunizieren.
174
175 %description -l fr devel
176 Ce package contient les fichiers d'en-tête et les bibliothéques
177 nécessaires pour compiler des applications ayant des échanges directs
178 avec le serveur du backend PostgreSQL.
179
180 %description -l pl devel
181 Pakiet zawiera nag³ówki oraz biblioteki wymagane do kompilacji
182 aplikacji ³±cz±cych siê bezpo¶rednio z serwerem PostgreSQL.
183
184 %description -l tr devel
185 Bu paket, PostgreSQL sunucusuyla konuþacak yazýlýmlar geliþtirmek için
186 gereken baþlýk dosyalarýný ve kitaplýklarý içerir.
187
188 %package clients
189 Summary:        Clients needed to access a PostgreSQL server
190 Summary(pl):    Klienci wymagani do dostêpu do serwera PostgreSQL
191 Group:          Applications/Databases
192 Group(pl):      Aplikacje/Bazy danych
193 Requires:       %{name}-libs = %{version}
194
195 %description clients
196 This package includes only the clients and client libraries needed to
197 access an PostgreSQL server. The server is included in the main
198 package. If all you need is to connect to another PostgreSQL server,
199 the this is the only package you need to install.
200
201 In this package there are client libraries available for C and C++, as
202 well as several command-line utilities you can use to manage your
203 databases on a remote PostgreSQL server.
204
205 %description -l pl clients
206 Pakiet zawiera klientów oraz biblioteki niezbêdne dla dostêpu do
207 serwera PostgreSQL. Serwer znajduje siê w g³ównym pakiecie.
208
209 %package perl
210 Summary:        Perl interface to PostgreSQL database
211 Summary(pl):    Interfejs dla Perla umo¿liwiaj±cy dostêp do baz PostgreSQL
212 Group:          Applications/Databases
213 Group(pl):      Aplikacje/Bazy danych
214 Requires:       perl >= 5.004
215 Requires:       %{name}-libs = %{version}
216
217 %description perl
218 This package includes only perl modules needed to access an PostgreSQL
219 server.
220
221 %description -l pl perl
222 Pakiet ten zawiera tylko modu³y Perla wymagane dla dostêpu do serwera
223 PostgreSQL.
224
225 %package python
226 Summary:        The python-based client programs needed for accessing a PostgreSQL server
227 Group:          Development/Languages/Python
228 Group(de):      Entwicklung/Sprachen/Python
229 Group(pl):      Programowanie/Jêzyki/Python
230 Requires:       python >= 1.5
231 Requires:       %{name}-libs = %{version}
232
233 %description python
234 postgresql-python includes the python-based client programs and client
235 libraries that you'll need to access a PostgreSQL database management
236 system server.
237
238 %package doc
239 Summary:        Documentation for PostgreSQL
240 Summary(pl):    Dodatkowa dokumantacja dla PostgreSQL
241 Group:          Applications/Databases
242 Group(pl):      Aplikacje/Bazy danych
243
244 %description doc
245 This package includes documentation and HOWTO for programmer, admin
246 etc., in HTML format.
247
248 %description -l pl doc
249 Pakiet ten zawiera dokumentacjê oraz HOWTO m.in. dla programistów,
250 administratorów w formacie HTML.
251
252 %package libs
253 Summary:        PostgreSQL libraries
254 Summary(pl):    Biblioteki dzielone programu PostgreSQL
255 Group:          Libraries
256 Group(de):      Libraries
257 Group(es):      Bibliotecas
258 Group(fr):      Librairies
259 Group(pl):      Biblioteki
260
261 %description libs
262 PostgreSQL libraries.
263
264 %description libs -l pl
265 Biblioteki dzielone programu PostgreSQL.
266
267 %package static
268 Summary:        PostgreSQL static libraries
269 Summary(pl):    Biblioteki statyczne programu PostgreSQL
270 Group:          Development/Libraries
271 Group(de):      Entwicklung/Libraries
272 Group(fr):      Development/Librairies
273 Group(pl):      Programowanie/Biblioteki
274 Requires:       %{name}-devel = %{version}
275
276 %description static
277 PostgreSQL static libraries.
278
279 %description -l pl static
280 Biblioteki statyczne programu PostgreSQL.
281
282 %package c++
283 Summary:        C++ interface to PostgreSQL
284 Summary(pl):    Interfejs C++ do PostgreSQL
285 Group:          Applications/Databases
286 Group(pl):      Aplikacje/Bazy danych
287 Requires:       %{name}-libs = %{version}
288
289 %description c++
290 This package includes library for C++ interface to PostgreSQL.
291
292 %description -l pl c++
293 Pakiet ten zawiera biblioteki dla interfejsu C++ do PostgreSQL.
294
295 %package c++-devel
296 Summary:        C++ interface to PostgreSQL - development part
297 Summary(pl):    Interfejs C++ do PostgreSQL - cze¶æ programistyczna
298 Group:          Applications/Databases
299 Group(pl):      Aplikacje/Bazy danych
300 Requires:       %{name}-c++ = %{version}
301 Requires:       %{name}-devel = %{version}
302
303 %description c++-devel
304 This package includes library and header files for C++ interface.
305
306 %description -l pl c++-devel
307 Pakiet ten zawiera biblioteki i pliki nag³ówkowe dla interfejsu C++.
308
309 %package c++-static
310 Summary:        C++ interface to PostgreSQL - static libraries
311 Summary(pl):    Interfejs C++ do PostgreSQL - biblioteki statyczne
312 Group:          Applications/Databases
313 Group(pl):      Aplikacje/Bazy danych
314 Requires:       %{name}-c++-devel = %{version}
315
316 %description c++-static
317 This package includes static library for interface C++.
318
319 %description -l pl c++-static
320 Pakiet ten zawiera biblioteki statyczne dla interfejsu C++.
321
322 %package odbc
323 Summary:        ODBC interface to PostgreSQL
324 Summary(pl):    Interfejs ODBC do PostgreSQL
325 Group:          Applications/Databases
326 Group(pl):      Aplikacje/Bazy danych
327 Requires:       %{name}-libs = %{version}
328
329 %description odbc
330 This package includes library for interface ODBC.
331
332 %description -l pl odbc
333 Pakiet ten zawiera biblioteki dla interfejsu ODBC.
334
335 %package odbc-devel
336 Summary:        ODBC interface to PostgreSQL - development part
337 Summary(pl):    Interfejs ODBC do PostgreSQL - cze¶æ programistyczna
338 Group:          Applications/Databases
339 Group(pl):      Aplikacje/Bazy danych
340 Requires:       %{name}-odbc = %{version}
341 Requires:       %{name}-devel = %{version}
342
343 %description odbc-devel
344 This package includes library and header files for interface ODBC.
345
346 %description -l pl odbc-devel
347 Pakiet ten zawiera biblioteki i pliki nag³ówkowe dla interfejsu ODBC.
348
349 %package odbc-static
350 Summary:        ODBC interface to PostgreSQL - static libraries
351 Summary(pl):    Interfejs ODBC do PostgreSQL - biblioteki statyczne
352 Group:          Applications/Databases
353 Group(pl):      Aplikacje/Bazy danych
354 Requires:       %{name}-odbc-devel = %{version}
355
356 %description odbc-static
357 This package includes static library for interface ODBC.
358
359 %description -l pl odbc-static
360 Pakiet ten zawiera biblioteki statyczne dla interfejsu ODBC.
361
362 %package -n pgaccess
363 Summary:        A free graphical database management tool for PostgreSQL
364 Summary(pl):    Graficzne narzêdzie do obs³ugi baz danych PostgreSQL
365 Group:          Applications/Databases
366 Group(pl):      Aplikacje/Bazy danych
367 Requires:       %{name}-tcl = %{version}
368
369 %description -n pgaccess
370 A free graphical database management tool for PostgreSQL.
371
372 %description -l pl -n pgaccess
373 Graficzne narzêdzie do obs³ugi baz danych PostgreSQL.
374
375 %package tcl
376 Summary:        tcl interface for PostgreSQL
377 Summary(pl):    Interfejs tcl dla PostgreSQL
378 Group:          Development/Languages/Tcl
379 Group(de):      Entwicklung/Sprachen/Tcl
380 Group(pl):      Programowanie/Jêzyki/Tcl
381 Requires:       %{name}-libs = %{version}
382
383 %description tcl
384 tcl interface for PostgreSQL.
385
386 %description tcl -l pl
387 Interfejs tcl dla PostgreSQL.
388
389 %package tcl-devel
390 Summary:        Development part of tcl interface for PostgreSQL
391 Summary(pl):    Czê¶æ dla programistów interfejsu tcl dla PostgreSQL
392 Group:          Development/Languages/Tcl
393 Group(de):      Entwicklung/Sprachen/Tcl
394 Group(pl):      Programowanie/Jêzyki/Tcl
395 Requires:       %{name}-tcl = %{version}
396 Requires:       %{name}-devel = %{version}
397
398 %description tcl-devel
399 Development part of tcl interface for PostgreSQL.
400
401 %description tcl-devel -l pl
402 Czê¶æ interfejsu tcl dla PostgreSQL przeznaczona dla programistów.
403
404 %package tcl-static
405 Summary:        Static libraries of tcl interface for PostgreSQL
406 Summary(pl):    Biblioteki statyczne interfejsu tcl dla PostgreSQL
407 Group:          Development/Languages/Tcl
408 Group(de):      Entwicklung/Sprachen/Tcl
409 Group(pl):      Programowanie/Jêzyki/Tcl
410 Requires:       %{name}-tcl-devel = %{version}
411
412 %description tcl-static
413 Static libraries of tcl interface for PostgreSQL.
414
415 %description tcl-devel -l pl
416 Biblioteki statyczne interfejsu tcl dla PostgreSQL.
417
418 %package module-datetime
419 Summary:        Some useful datetime functions for PostgreSQL
420 Summary(pl):    Kilka u¿ytecznych funkcji operuj±cych na dacie i czasie dla PostgreSQL
421 Group:          Applications/Databases
422 Group(pl):      Aplikacje/Bazy danych
423 Requires:       %{name} = %{version}
424
425 %description module-datetime
426 Some useful datetime function for PostgreSQL such as:
427 - hhmm_in(opaque)
428 - hhmm_out(opaque)
429 - hhmm(time)
430 - time_difference(time,time)
431 - time_hours(time)
432 - time_minutes(time)
433 - time_seconds(time)
434 - as_minutes(time)
435 - as_seconds(time)
436 - date_day(date)
437 - date_month(date)
438 - date_year(date)
439 - currenttime()
440 - currentdate()
441 To enable them you need to execute datetime_function.sql script.
442 You can found it in /usr/share/pgsql/sql directory.
443
444 %description module-datetime -l pl
445 Kilka u¿ytecznych funkcji operuj±cych na dacie i czasie dla
446 PostgreSQL.
447 - hhmm_in(opaque)
448 - hhmm_out(opaque)
449 - hhmm(time)
450 - time_difference(time,time)
451 - time_hours(time)
452 - time_minutes(time)
453 - time_seconds(time)
454 - as_minutes(time)
455 - as_seconds(time)
456 - date_day(date)
457 - date_month(date)
458 - date_year(date)
459 - currenttime()
460 - currentdate()
461 Po wykonaniu skryptu datetime_function.sql mo¿na u¿ywaæ tych funkcji
462 z poziomu zapytañ SQL. Skrypt ten znajduje siê w katalogu
463 /usr/share/pgsql/sql.
464
465 %package module-plpgsql
466 Summary:        PL/pgSQL - PostgreSQL procedural language
467 Summary(pl):    PL/pgSQL jêzyk proceduralny bazy danych PostgreSQL
468 Group:          Applications/Databases
469 Group(pl):      Aplikacje/Bazy danych
470 Requires:       %{name} = %{version}
471
472 %description module-plpgsql
473 From PostgreSQL documentation.
474
475 Postgres supports the definition of procedural languages. In the case
476 of a function or trigger procedure defined in a procedural language,
477 the database has no built-in knowledge about how to interpret the
478 function's source text. Instead, the task is passed to a handler that
479 knows the details of the language. The handler itself is a special
480 programming language function compiled into a shared object and loaded
481 on demand.
482
483 To enable PL/pgSQL procedural language for your database you have to
484 run createlang command.
485
486 %description module-plpgsql -l pl
487 Z dokumentacji PostgreSQL.
488
489 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
490 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
491 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
492 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
493 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
494 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
495 potrzeby.
496
497 Za pomoc± komendy createlang mo¿na dodaæ wsparcie dla jêzyka
498 proceduralnego PL/pgSQL dla swojej bazy danych.
499
500 %package module-pltcl
501 Summary:        PL/TCL - PostgreSQL procedural language
502 Summary(pl):    PL/TCL - jêzyk proceduralny bazy danych PostgreSQL
503 Group:          Applications/Databases
504 Group(pl):      Aplikacje/Bazy danych
505 Requires:       %{name} = %{version}
506
507 %description module-pltcl
508 From PostgreSQL documentation.
509
510 Postgres supports the definition of procedural languages. In the case
511 of a function or trigger procedure defined in a procedural language,
512 the database has no built-in knowledge about how to interpret the
513 function's source text. Instead, the task is passed to a handler that
514 knows the details of the language. The handler itself is a special
515 programming language function compiled into a shared object and loaded
516 on demand.
517
518 To enable PL/TCL procedural language for your database you have to run
519 createlang command.
520
521 %description module-pltcl -l pl
522 Z dokumentacji PostgreSQL.
523
524 Postgres ma wsparcie dla jêzyków proceduralnych. W przypadku, kiedy
525 programista zdefiniuje procedurê wyzwalacza lub funkcjê w jêzyku
526 proceduralnym, baza danych nie ma pojêcia jak interpretowaæ tego typu
527 funkcjê. Funkcja lub procedura ta jest przekazywana do interpretera,
528 który wie jak j± wykonaæ. Interpreter jest odpowiedni±, specjaln±
529 funkcj±, która jest skompilowana w obiekt dzielony i ³adowany w razie
530 potrzeby.
531
532 Za pomoc± komendy createlang mo¿na dodaæ wsparcie dla jêzyka
533 proceduralnego PL/TCL dla swojej bazy danych.
534
535 %prep
536 %setup  -q
537 %patch0 -p1
538 %patch1 -p1
539 %patch2 -p1
540 %patch3 -p1
541 %patch4 -p1
542
543 tar xzf doc/man*.tar.gz
544
545 mkdir doc/unpacked
546 tar zxf doc/postgres.tar.gz -C doc/unpacked
547
548 # Erase all CVS dir
549 rm -fR `find contrib/ -type d -name CVS`
550
551 %build
552 aclocal -I config
553 autoconf
554 %configure \
555         %{!?bcond_off_pgsql_locale:--enable-locale} \
556         %{!?bcond_off_pgsql_multibyte:--enable-multibyte} \
557         --enable-recode \
558         --enable-unicode-conversion \
559         --with-CXX \
560         --with-tcl \
561         --with-tk \
562         --with-perl \
563         --with-python \
564         --with-openssl \
565         --enable-odbc \
566         --with-odbcinst=%{_sysconfdir} \
567         --with-template=%{_target_os} \
568         --with-x \
569         --enable-syslog
570
571 %{__make}
572
573 %install
574 rm -rf $RPM_BUILD_ROOT
575 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{rc.d/init.d,sysconfig} \
576         $RPM_BUILD_ROOT/var/{lib/pgsql,log} \
577         $RPM_BUILD_ROOT%{_libdir}/pgsql/{modules,sql} \
578         $RPM_BUILD_ROOT%{_libdir}/python2.0 \
579         $RPM_BUILD_ROOT{%{_applnkdir}/System,%{_pixmapsdir}} \
580         $RPM_BUILD_ROOT%{_mandir}
581
582 %{__make} -C src install \
583         DESTDIR=$RPM_BUILD_ROOT
584         
585 #%{__make} -C src/interfaces/python install \
586 #       DESTDIR=$RPM_BUILD_ROOT \
587 #       LIBDIR=%{_libdir}
588
589 #%{__make} -C doc install DESTDIR=$RPM_BUILD_ROOT
590
591 touch $RPM_BUILD_ROOT/var/log/pgsql
592
593 # Move PL/pgSQL procedural language to %{pgmoduledir}
594 ( cd $RPM_BUILD_ROOT%{_libdir}
595   mv -f plpgsql.so $RPM_BUILD_ROOT%{pgmoduledir}
596 )
597
598 # Move PL/TCL procedural language to %{pgmoduledir}
599 ( cd $RPM_BUILD_ROOT%{_libdir}
600   mv -f pltcl.so $RPM_BUILD_ROOT%{pgmoduledir}
601 )
602
603 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/postgresql
604 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/postgresql
605 install %{SOURCE4} $RPM_BUILD_ROOT%{_applnkdir}/System
606 install %{SOURCE5} $RPM_BUILD_ROOT%{_pixmapsdir}
607
608 cp -a man?         $RPM_BUILD_ROOT%{_mandir}
609
610 install -d howto
611 ( cd howto
612   tar xzf $RPM_SOURCE_DIR/pgsql-Database-HOWTO-html.tar.gz
613 )
614
615 #for f in `find $RPM_BUILD_ROOT -type f`; do
616 #       if (file $f | grep -q "script"); then
617 #               perl -pi -e 's@#\!.*python@#\!%{_bindir}/python@' $f;
618 #       fi
619 #done
620
621 gzip -9nf doc/FAQ doc/README* COPYRIGHT README HISTORY doc/bug.template \
622         doc/internals.ps* src/interfaces/odbc/readme.txt \
623         src/interfaces/odbc/notice.txt
624
625 %pre
626 getgid postgres >/dev/null 2>&1 || /usr/sbin/groupadd -g 88 -r -f postgres
627 id postgres >/dev/null 2>&1 || /usr/sbin/useradd -M -o -r -u 88 \
628         -d /var/lib/pgsql -s /bin/sh -g postgres \
629         -c "PostgreSQL Server" postgres
630
631 %post
632 /sbin/chkconfig --add postgresql
633
634 if [ -r /var/lock/subsys/postmaster ]; then
635         /etc/rc.d/init.d/postgresql restart >&2
636 else
637         echo "Run \"/etc/rc.d/init.d/postgresql start\" to start postgresql server."
638 fi
639
640 %preun
641 if [ "$1" = "0" ]; then
642         if [ -f /var/lock/subsys/postmaster ]; then
643                 /etc/rc.d/init.d/postgresql stop
644         fi
645         /sbin/chkconfig --del postgresql
646 fi
647
648 %post   libs -p /sbin/ldconfig
649 %postun libs -p /sbin/ldconfig
650
651 %post   tcl -p /sbin/ldconfig
652 %postun tcl -p /sbin/ldconfig
653
654 %post   clients -p /sbin/ldconfig
655 %postun clients -p /sbin/ldconfig
656
657 %post   c++ -p /sbin/ldconfig
658 %postun c++ -p /sbin/ldconfig
659
660 %post   odbc -p /sbin/ldconfig
661 %postun odbc -p /sbin/ldconfig
662
663 %clean
664 rm -rf $RPM_BUILD_ROOT
665 rm -f /tmp/tmp_perl_info
666
667 %files
668 %defattr(644,root,root,755)
669 %attr(754,root,root) /etc/rc.d/init.d/*
670 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/sysconfig/*
671
672 %attr(755,root,root) %{_bindir}/createdb
673 %attr(755,root,root) %{_bindir}/createuser
674 %attr(755,root,root) %{_bindir}/dropdb
675 %attr(755,root,root) %{_bindir}/dropuser
676 %attr(755,root,root) %{_bindir}/initdb
677 %attr(755,root,root) %{_bindir}/initlocation
678 %attr(755,root,root) %{_bindir}/pg_ctl
679 %attr(755,root,root) %{_bindir}/pg_config
680 %attr(755,root,root) %{_bindir}/pg_encoding
681 %attr(755,root,root) %{_bindir}/pg_passwd
682 %attr(755,root,root) %{_bindir}/postgres
683 %attr(755,root,root) %{_bindir}/postmaster
684 %attr(755,root,root) %{_bindir}/ipcclean
685 %attr(755,root,root) %{_bindir}/createlang
686 %attr(755,root,root) %{_bindir}/droplang
687
688 %dir %{_libdir}/pgsql
689 %dir %{_libdir}/pgsql/modules
690 %dir %{_libdir}/pgsql/sql
691 %{_datadir}/postgresql/*.bki
692 %{_datadir}/postgresql/*.sample
693 %{_datadir}/postgresql/*.description
694
695 %attr(770,root,postgres) %dir /var/lib/pgsql
696 %attr(640,postgres,postgres) %config(noreplace) %verify(not md5 size mtime) /var/log/pgsql
697
698 %{_mandir}/man1/createdb.1*
699 %{_mandir}/man1/createlang.1*
700 %{_mandir}/man1/createuser.1*
701 %{_mandir}/man1/dropdb.1*
702 %{_mandir}/man1/droplang.1*
703 %{_mandir}/man1/dropuser.1*
704 %{_mandir}/man1/initdb.1*
705 %{_mandir}/man1/initlocation.1*
706 %{_mandir}/man1/pg_passwd.1*
707 %{_mandir}/man1/pg_ctl.1*
708 %{_mandir}/man1/pg_config.1*
709 %{_mandir}/man1/postgres.1*
710 %{_mandir}/man1/postmaster.1*
711 %{_mandir}/man1/ipcclean.1*
712
713 %doc contrib 
714 %doc doc/FAQ* doc/README* 
715 %doc COPYRIGHT.gz README.gz HISTORY.gz doc/bug.template.gz
716
717 %files doc
718 %defattr(644,root,root,755)
719 %doc doc/unpacked/*
720 %doc howto
721
722 %files libs
723 %defattr(644,root,root,755)
724 %attr(755,root,root) %{_libdir}/libpq.so.*.*
725 %attr(755,root,root) %{_libdir}/libpgeasy.so.*.*
726 %attr(755,root,root) %{_libdir}/libecpg.so.*.*
727 %attr(755,root,root) %{_bindir}/pg_id
728
729 %files devel
730 %defattr(644,root,root,755)
731 %doc doc/internals.ps*
732 %attr(755,root,root) %{_libdir}/libecpg.so
733 %attr(755,root,root) %{_libdir}/libpgeasy.so
734 %attr(755,root,root) %{_libdir}/libpq.so
735 %dir %{_includedir}/postgresql
736 %{_includedir}/postgresql/c.h
737 %{_includedir}/postgresql/config.h
738 %{_includedir}/postgresql/ecpgerrno.h
739 %{_includedir}/postgresql/ecpglib.h
740 %{_includedir}/postgresql/ecpgtype.h
741 %{_includedir}/postgresql/libpgeasy.h
742 %{_includedir}/postgresql/libpq-fe.h
743 %{_includedir}/postgresql/libpq-int.h
744 %{_includedir}/postgresql/os.h
745 %{_includedir}/postgresql/postgres_ext.h
746 %{_includedir}/postgresql/postgres_fe.h
747 %{_includedir}/postgresql/pqexpbuffer.h
748 %{_includedir}/postgresql/sql3types.h
749 %{_includedir}/postgresql/sqlca.h
750 %{_includedir}/postgresql/lib
751 %{_includedir}/postgresql/libpq
752 %attr(755,root,root) %{_bindir}/ecpg
753 %{_mandir}/man1/ecpg.1*
754
755 %files static
756 %defattr(644,root,root,755)
757 %{_libdir}/libecpg.a
758 %{_libdir}/libpgeasy.a
759 %{_libdir}/libpq.a
760
761 %files clients
762 %defattr(644,root,root,755)
763 %attr(755,root,root) %{_bindir}/pg_dump
764 %attr(755,root,root) %{_bindir}/pg_dumpall
765 %attr(755,root,root) %{_bindir}/pg_restore
766 %attr(755,root,root) %{_bindir}/psql
767 %attr(755,root,root) %{_bindir}/vacuumdb
768
769 %{_mandir}/man1/pg_dump.1*
770 %{_mandir}/man1/pg_dumpall.1*
771 %{_mandir}/man1/pg_restore.1*
772 %{_mandir}/man1/psql.1*
773 %{_mandir}/man1/vacuumdb.1*
774 %{_mandir}/manl/*.l*
775
776 %files c++
777 %defattr(644,root,root,755)
778 %attr(755,root,root) %{_libdir}/libpq++.so.*.*
779
780 %files c++-devel
781 %defattr(644,root,root,755)
782 %attr(755,root,root) %{_libdir}/libpq++.so
783 %{_includedir}/postgresql/libpq++.h
784 %{_includedir}/postgresql/libpq++
785
786 %files c++-static
787 %defattr(644,root,root,755)
788 %{_libdir}/libpq++.a
789
790 %files perl
791 %defattr(644,root,root,755)
792 %dir %{perl_sitearch}/auto/Pg
793 %{perl_sitearch}/auto/Pg/Pg.bs
794 %{perl_sitearch}/auto/plperl/plperl.bs
795 %attr(755,root,root) %{perl_sitearch}/auto/Pg/Pg.so
796 %attr(755,root,root) %{perl_sitearch}/auto/plperl/plperl.so
797 %{perl_sitearch}/auto/Pg/autosplit.ix
798 %{perl_sitearch}/Pg.pm
799 %{_mandir}/man3/*
800
801 %files -n pgaccess
802 %defattr(644,root,root,755)
803 %doc src/bin/pgaccess/doc/html/*
804 %attr(755,root,root) %{_bindir}/pgaccess
805 %dir %{_datadir}/postgresql/pgaccess
806 %attr(755, root, root) %{_datadir}/postgresql/pgaccess/main.tcl
807 %{_datadir}/postgresql/pgaccess/images
808 %{_datadir}/postgresql/pgaccess/lib
809 %{_applnkdir}/System/pgaccess.desktop
810 %{_pixmapsdir}/pgaccess.png
811 %{_mandir}/man1/pgaccess.1*
812
813 %files tcl
814 %defattr(644,root,root,755)
815 %attr(755,root,root) %{_libdir}/libpgtcl.so.*.*
816 %attr(755,root,root) %{_bindir}/pgtclsh
817 %attr(755,root,root) %{_bindir}/pgtksh
818 %{_mandir}/man1/pgtclsh.1*
819 %{_mandir}/man1/pgtksh.1*
820
821 %files tcl-devel
822 %defattr(644,root,root,755)
823 %attr(755,root,root) %{_libdir}/libpgtcl.so
824 %{_includedir}/postgresql/libpgtcl.h
825
826 %files tcl-static
827 %defattr(644,root,root,755)
828 %{_libdir}/libpgtcl.a
829
830 %files odbc
831 %defattr(644,root,root,755)
832 %doc src/interfaces/odbc/readme.txt.gz src/interfaces/odbc/notice.txt.gz
833 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/odbc*
834 %attr(755,root,root) %{_libdir}/libpsqlodbc.so.*.*
835 %{_datadir}/postgresql/odbc.sql
836
837 %files odbc-devel
838 %defattr(644,root,root,755)
839 %{_includedir}/postgresql/iodbc
840 %attr(755,root,root) %{_libdir}/libpsqlodbc.so
841
842 %files odbc-static
843 %defattr(644,root,root,755)
844 %{_libdir}/libpsqlodbc.a
845
846 #%files module-datetime
847 #%defattr(644,root,root,755)
848 #%attr(755,root,root) %{pgmoduledir}/datetime_functions.so
849 #%attr(644,root,root) %{pgsqldir}/datetime_functions.sql
850
851 %files module-plpgsql
852 %defattr(644,root,root,755)
853 %attr(755,root,root) %{pgmoduledir}/plpgsql.so
854
855 %files module-pltcl
856 %defattr(644,root,root,755)
857 %attr(755,root,root) %{pgmoduledir}/pltcl.so
This page took 0.079705 seconds and 3 git commands to generate.