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