]> git.pld-linux.org Git - packages/postgresql.git/blob - postgresql.spec
d1c86ab73f846ff877296d1d2e6d62f7ac874d2f
[packages/postgresql.git] / postgresql.spec
1 %include        /usr/lib/rpm/macros.perl
2 %define _python_sitepkgsdir     %(echo `python -c "import sys; print (sys.prefix + '/lib/python' + sys.version[:3] + '/site-packages/')"`)         
3 Summary:        PostgreSQL Data Base Management System
4 Summary(de):    PostgreSQL Datenbankverwaltungssystem
5 Summary(fr):    Sysème de gestion de base de données PostgreSQL
6 Summary(pl):    PostgreSQL - system bazodanowy
7 Summary(tr):    Veri Tabaný Yönetim Sistemi
8 Name:           postgresql
9 Version:        7.1.1
10 Release:        3
11 License:        BSD
12 Group:          Applications/Databases
13 Group(pl):      Aplikacje/Bazy danych
14 Source0:        ftp://ftp.postgresql.org/pub/source/v%{version}/%{name}-%{version}.tar.gz
15 Source1:        %{name}.init
16 Source2:        pgsql-Database-HOWTO-html.tar.gz
17 Source3:        %{name}.sysconfig
18 Source4:        pgaccess.desktop
19 Source5:        pgaccess.png
20 Patch0:         %{name}-DESTDIR.patch
21 Patch1:         %{name}-no_libnsl.patch
22 Patch2:         %{name}-configure.patch
23 Patch3:         %{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 >= 2.0
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
542 tar xzf doc/man*.tar.gz
543
544 mkdir doc/unpacked
545 tar zxf doc/postgres.tar.gz -C doc/unpacked
546
547 # Erase all CVS dir
548 rm -fR `find contrib/ -type d -name CVS`
549
550 %build
551 aclocal -I config
552 autoconf
553 %configure \
554         %{!?_without_pgsql_locale:--enable-locale} \
555         %{!?_without_pgsql_multibyte:--enable-multibyte} \
556         --enable-recode \
557         --enable-unicode-conversion \
558         --with-CXX \
559         --with-tcl \
560         --with-tk \
561         --with-perl \
562         --with-python \
563         --with-openssl \
564         --enable-odbc \
565         --with-odbcinst=%{_sysconfdir} \
566         --with-template=%{_target_os} \
567         --with-x \
568         --enable-syslog
569
570 %{__make}
571
572 %install
573 rm -rf $RPM_BUILD_ROOT
574 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{rc.d/init.d,sysconfig} \
575         $RPM_BUILD_ROOT/var/{lib/pgsql,log} \
576         $RPM_BUILD_ROOT%{_libdir}/pgsql/{modules,sql} \
577         $RPM_BUILD_ROOT%{_libdir}/python2.0 \
578         $RPM_BUILD_ROOT{%{_applnkdir}/System,%{_pixmapsdir}} \
579         $RPM_BUILD_ROOT%{_mandir}
580
581 %{__make} -C src install \
582         DESTDIR=$RPM_BUILD_ROOT
583         
584 #%{__make} -C src/interfaces/python install \
585 #       DESTDIR=$RPM_BUILD_ROOT \
586 #       LIBDIR=%{_libdir}
587
588 #%{__make} -C doc install DESTDIR=$RPM_BUILD_ROOT
589
590 touch $RPM_BUILD_ROOT/var/log/pgsql
591
592 # Move PL/pgSQL procedural language to %{pgmoduledir}
593 ( cd $RPM_BUILD_ROOT%{_libdir}
594   mv -f plpgsql.so $RPM_BUILD_ROOT%{pgmoduledir}
595 )
596
597 # Move PL/TCL procedural language to %{pgmoduledir}
598 ( cd $RPM_BUILD_ROOT%{_libdir}
599   mv -f pltcl.so $RPM_BUILD_ROOT%{pgmoduledir}
600 )
601
602 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/postgresql
603 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/postgresql
604 install %{SOURCE4} $RPM_BUILD_ROOT%{_applnkdir}/System
605 install %{SOURCE5} $RPM_BUILD_ROOT%{_pixmapsdir}
606
607 cp -a man?         $RPM_BUILD_ROOT%{_mandir}
608
609 install -d howto
610 ( cd howto
611   tar xzf $RPM_SOURCE_DIR/pgsql-Database-HOWTO-html.tar.gz
612 )
613
614 #for f in `find $RPM_BUILD_ROOT -type f`; do
615 #       if (file $f | grep -q "script"); then
616 #               perl -pi -e 's@#\!.*python@#\!%{_bindir}/python@' $f;
617 #       fi
618 #done
619
620 gzip -9nf doc/FAQ doc/README* COPYRIGHT README HISTORY doc/bug.template \
621         doc/internals.ps* src/interfaces/odbc/readme.txt \
622         src/interfaces/odbc/notice.txt
623
624 %pre
625 getgid postgres >/dev/null 2>&1 || /usr/sbin/groupadd -g 88 -r -f postgres
626 id postgres >/dev/null 2>&1 || /usr/sbin/useradd -M -o -r -u 88 \
627         -d /var/lib/pgsql -s /bin/sh -g postgres \
628         -c "PostgreSQL Server" postgres
629
630 %post
631 /sbin/chkconfig --add postgresql
632
633 if [ -r /var/lock/subsys/postmaster ]; then
634         /etc/rc.d/init.d/postgresql restart >&2
635 else
636         echo "Run \"/etc/rc.d/init.d/postgresql start\" to start postgresql server."
637 fi
638
639 %preun
640 if [ "$1" = "0" ]; then
641         if [ -f /var/lock/subsys/postmaster ]; then
642                 /etc/rc.d/init.d/postgresql stop
643         fi
644         /sbin/chkconfig --del postgresql
645 fi
646
647 %post   libs -p /sbin/ldconfig
648 %postun libs -p /sbin/ldconfig
649
650 %post   tcl -p /sbin/ldconfig
651 %postun tcl -p /sbin/ldconfig
652
653 %post   clients -p /sbin/ldconfig
654 %postun clients -p /sbin/ldconfig
655
656 %post   c++ -p /sbin/ldconfig
657 %postun c++ -p /sbin/ldconfig
658
659 %post   odbc -p /sbin/ldconfig
660 %postun odbc -p /sbin/ldconfig
661
662 %clean
663 rm -rf $RPM_BUILD_ROOT
664 rm -f /tmp/tmp_perl_info
665
666 %files
667 %defattr(644,root,root,755)
668 %attr(754,root,root) /etc/rc.d/init.d/*
669 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/sysconfig/*
670
671 %attr(755,root,root) %{_bindir}/createdb
672 %attr(755,root,root) %{_bindir}/createuser
673 %attr(755,root,root) %{_bindir}/dropdb
674 %attr(755,root,root) %{_bindir}/dropuser
675 %attr(755,root,root) %{_bindir}/initdb
676 %attr(755,root,root) %{_bindir}/initlocation
677 %attr(755,root,root) %{_bindir}/pg_ctl
678 %attr(755,root,root) %{_bindir}/pg_config
679 %attr(755,root,root) %{_bindir}/pg_encoding
680 %attr(755,root,root) %{_bindir}/pg_passwd
681 %attr(755,root,root) %{_bindir}/postgres
682 %attr(755,root,root) %{_bindir}/postmaster
683 %attr(755,root,root) %{_bindir}/ipcclean
684 %attr(755,root,root) %{_bindir}/createlang
685 %attr(755,root,root) %{_bindir}/droplang
686
687 %dir %{_libdir}/pgsql
688 %dir %{_libdir}/pgsql/modules
689 %dir %{_libdir}/pgsql/sql
690 %{_datadir}/postgresql/*.bki
691 %{_datadir}/postgresql/*.sample
692 %{_datadir}/postgresql/*.description
693
694 %attr(700,postgres,postgres) %dir /var/lib/pgsql
695 %attr(640,postgres,postgres) %config(noreplace) %verify(not md5 size mtime) /var/log/pgsql
696
697 %{_mandir}/man1/createdb.1*
698 %{_mandir}/man1/createlang.1*
699 %{_mandir}/man1/createuser.1*
700 %{_mandir}/man1/dropdb.1*
701 %{_mandir}/man1/droplang.1*
702 %{_mandir}/man1/dropuser.1*
703 %{_mandir}/man1/initdb.1*
704 %{_mandir}/man1/initlocation.1*
705 %{_mandir}/man1/pg_passwd.1*
706 %{_mandir}/man1/pg_ctl.1*
707 %{_mandir}/man1/pg_config.1*
708 %{_mandir}/man1/postgres.1*
709 %{_mandir}/man1/postmaster.1*
710 %{_mandir}/man1/ipcclean.1*
711
712 %doc contrib 
713 %doc doc/FAQ* doc/README* 
714 %doc COPYRIGHT.gz README.gz HISTORY.gz doc/bug.template.gz
715
716 %files doc
717 %defattr(644,root,root,755)
718 %doc doc/unpacked/*
719 %doc howto
720
721 %files libs
722 %defattr(644,root,root,755)
723 %attr(755,root,root) %{_libdir}/libpq.so.*.*
724 %attr(755,root,root) %{_libdir}/libpgeasy.so.*.*
725 %attr(755,root,root) %{_libdir}/libecpg.so.*.*
726 %attr(755,root,root) %{_bindir}/pg_id
727
728 %files devel
729 %defattr(644,root,root,755)
730 %doc doc/internals.ps*
731 %attr(755,root,root) %{_libdir}/libecpg.so
732 %attr(755,root,root) %{_libdir}/libpgeasy.so
733 %attr(755,root,root) %{_libdir}/libpq.so
734 %dir %{_includedir}/postgresql
735 %{_includedir}/postgresql/c.h
736 %{_includedir}/postgresql/config.h
737 %{_includedir}/postgresql/ecpgerrno.h
738 %{_includedir}/postgresql/ecpglib.h
739 %{_includedir}/postgresql/ecpgtype.h
740 %{_includedir}/postgresql/libpgeasy.h
741 %{_includedir}/postgresql/libpq-fe.h
742 %{_includedir}/postgresql/libpq-int.h
743 %{_includedir}/postgresql/os.h
744 %{_includedir}/postgresql/postgres_ext.h
745 %{_includedir}/postgresql/postgres_fe.h
746 %{_includedir}/postgresql/pqexpbuffer.h
747 %{_includedir}/postgresql/sql3types.h
748 %{_includedir}/postgresql/sqlca.h
749 %{_includedir}/postgresql/lib
750 %{_includedir}/postgresql/libpq
751 %attr(755,root,root) %{_bindir}/ecpg
752 %{_mandir}/man1/ecpg.1*
753
754 %files static
755 %defattr(644,root,root,755)
756 %{_libdir}/libecpg.a
757 %{_libdir}/libpgeasy.a
758 %{_libdir}/libpq.a
759
760 %files clients
761 %defattr(644,root,root,755)
762 %attr(755,root,root) %{_bindir}/pg_dump
763 %attr(755,root,root) %{_bindir}/pg_dumpall
764 %attr(755,root,root) %{_bindir}/pg_restore
765 %attr(755,root,root) %{_bindir}/psql
766 %attr(755,root,root) %{_bindir}/vacuumdb
767
768 %{_mandir}/man1/pg_dump.1*
769 %{_mandir}/man1/pg_dumpall.1*
770 %{_mandir}/man1/pg_restore.1*
771 %{_mandir}/man1/psql.1*
772 %{_mandir}/man1/vacuumdb.1*
773 %{_mandir}/manl/*.l*
774
775 %files c++
776 %defattr(644,root,root,755)
777 %attr(755,root,root) %{_libdir}/libpq++.so.*.*
778
779 %files c++-devel
780 %defattr(644,root,root,755)
781 %attr(755,root,root) %{_libdir}/libpq++.so
782 %{_includedir}/postgresql/libpq++.h
783 %{_includedir}/postgresql/libpq++
784
785 %files c++-static
786 %defattr(644,root,root,755)
787 %{_libdir}/libpq++.a
788
789 %files perl
790 %defattr(644,root,root,755)
791 %dir %{perl_sitearch}/auto/Pg
792 %{perl_sitearch}/auto/Pg/Pg.bs
793 %{perl_sitearch}/auto/plperl/plperl.bs
794 %attr(755,root,root) %{perl_sitearch}/auto/Pg/Pg.so
795 %attr(755,root,root) %{perl_sitearch}/auto/plperl/plperl.so
796 %{perl_sitearch}/auto/Pg/autosplit.ix
797 %{perl_sitearch}/Pg.pm
798 %{_mandir}/man3/*
799
800 %files python
801 %defattr(644,root,root,755)
802 %{_libdir}/python*/*.py
803 %attr(755,root,root) %{_python_sitepkgsdir}/*.so
804
805 %files -n pgaccess
806 %defattr(644,root,root,755)
807 %doc src/bin/pgaccess/doc/html/*
808 %attr(755,root,root) %{_bindir}/pgaccess
809 %dir %{_datadir}/postgresql/pgaccess
810 %attr(755, root, root) %{_datadir}/postgresql/pgaccess/main.tcl
811 %{_datadir}/postgresql/pgaccess/images
812 %{_datadir}/postgresql/pgaccess/lib
813 %{_applnkdir}/System/pgaccess.desktop
814 %{_pixmapsdir}/pgaccess.png
815 %{_mandir}/man1/pgaccess.1*
816
817 %files tcl
818 %defattr(644,root,root,755)
819 %attr(755,root,root) %{_libdir}/libpgtcl.so.*.*
820 %attr(755,root,root) %{_bindir}/pgtclsh
821 %attr(755,root,root) %{_bindir}/pgtksh
822 %{_mandir}/man1/pgtclsh.1*
823 %{_mandir}/man1/pgtksh.1*
824
825 %files tcl-devel
826 %defattr(644,root,root,755)
827 %attr(755,root,root) %{_libdir}/libpgtcl.so
828 %{_includedir}/postgresql/libpgtcl.h
829
830 %files tcl-static
831 %defattr(644,root,root,755)
832 %{_libdir}/libpgtcl.a
833
834 %files odbc
835 %defattr(644,root,root,755)
836 %doc src/interfaces/odbc/readme.txt.gz src/interfaces/odbc/notice.txt.gz
837 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/odbc*
838 %attr(755,root,root) %{_libdir}/libpsqlodbc.so.*.*
839 %{_datadir}/postgresql/odbc.sql
840
841 %files odbc-devel
842 %defattr(644,root,root,755)
843 %{_includedir}/postgresql/iodbc
844 %attr(755,root,root) %{_libdir}/libpsqlodbc.so
845
846 %files odbc-static
847 %defattr(644,root,root,755)
848 %{_libdir}/libpsqlodbc.a
849
850 #%files module-datetime
851 #%defattr(644,root,root,755)
852 #%attr(755,root,root) %{pgmoduledir}/datetime_functions.so
853 #%attr(644,root,root) %{pgsqldir}/datetime_functions.sql
854
855 %files module-plpgsql
856 %defattr(644,root,root,755)
857 %attr(755,root,root) %{pgmoduledir}/plpgsql.so
858
859 %files module-pltcl
860 %defattr(644,root,root,755)
861 %attr(755,root,root) %{pgmoduledir}/pltcl.so
This page took 0.104495 seconds and 2 git commands to generate.