]> git.pld-linux.org Git - packages/postgresql.git/blob - postgresql.spec
- gzip man pages
[packages/postgresql.git] / postgresql.spec
1 Summary:     PostgreSQL Data Base Management System
2 Summary(de): PostgreSQL Datenbankverwaltungssystem
3 Summary(fr): Sysème de gestion de base de données PostgreSQL.
4 Summary(pl): PostgreSQL system bazodanowy
5 Summary(tr): Veri Tabaný Yönetim Sistemi
6 Name:        postgresql
7 Version:     6.4.2
8 Release:     3d
9 Copyright:   BSD
10 Group:       Applications/Databases
11 URL:         http://www.postgresql.org/
12 Source:      ftp://ftp.postgresql.org/pub/%{name}-%{version}.tar.gz
13 Source1:     postgresql.init
14 Source2:     pgsql-Database-HOWTO-html.tar.gz
15 Patch:       postgresql-6.4.2-opt.patch
16 Buildroot:   /tmp/%{name}-%{version}-root
17 Prereq:      /sbin/chkconfig /sbin/ldconfig
18 Requires:    postgresql-clients
19
20 %description
21 PostgreSQL Data Base Management System (formerly known as Postgres, then as
22 Postgres95). 
23
24 PostgreSQL is an enhancement of the POSTGRES database management system, a
25 next-generation DBMS research prototype.  While PostgreSQL retains the
26 powerful data model and rich data types of POSTGRES, it replaces the PostQuel
27 query language with an extended subset of SQL. PostgreSQL is free and the
28 complete source is available. 
29
30 PostgreSQL development is being performed by a team of Internet developers who
31 all subscribe to the PostgreSQL development mailing list. The current
32 coordinator is Marc G. Fournier (scrappy@postgreSQL.org). This team is now
33 responsible for all current and future development of PostgreSQL. 
34
35 The authors of PostgreSQL 1.01 were Andrew Yu and Jolly Chen. Many others have
36 contributed to the porting, testing, debugging and enhancement of the code.
37 The original Postgres code, from which PostgreSQL is derived, was the effort
38 of many graduate students, undergraduate students, and staff programmers
39 working under the direction of Professor Michael Stonebraker at the University
40 of California, Berkeley. 
41
42 The original name of the software at Berkeley was Postgres. When SQL
43 functionality was added in 1995, its name was changed to Postgres95. The name
44 was changed at the end of 1996 to PostgreSQL. 
45
46 PostgreSQL runs on Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD, and most
47 flavours of Unix. 
48
49 %description -l de
50 PostgreSQL Datenbank-Managementsystem (früher als Postgres, dann als 
51 Postgres95 bekannt).
52
53 PostgreSQL ist eine Verbesserung des POSTGRES-DB-Managementsystems, ein
54  DBMS-Forschungsprototyp der nächsten Generation. Während es das leistungsfähige
55 Datenmodell und die reichhaltigen Datentypen von POSTGRES beibehält, ersetzt
56 es die PostQuel-Abfragesprache durch ein Subset von SQL. PostgreSQL ist gratis,
57 der gesamte Quellcode ist verfügbar.
58
59 Ein Team von Internet-Entwicklern befaßt sich mit PostgreSQL. Sie alle sind auf
60 der PostgreSQL-Entwickleradreßliste. Koordinator ist
61  Marc G. Fournier (scrappy@postgreSQL.org). Das Team ist verantwortlich für alle
62 aktuellen und künftigen Entwicklungen von PostgreSQL.
63
64 Die Autoren von PostgreSQL 1.01 waren Andrew Yu und Jolly Chen. Zahlreiche andere
65 haben zur Portierung, zum Testen, Debugging und zur Verbesserung des Code beigetragen.
66 Den Original-Postgres-Code, von dem sich PostgreSQL ableitet, verdanken wir der Arbeit
67 vieler Doktoranden, Studenten und Programmierern unter der Leitung von
68 Professor Michael Stonebraker an der University of California, Berkeley.
69
70 Der ursprüngliche Name war Postgres. Als 1995 SQL-Funktionalität hinzukam,
71 wurde der Name in Postgres95 geändert. Ende 1996 schließlich entschied man sich
72 für PostgreSQL.
73
74 PostgreSQL läuft auf Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD und den meisten
75 Unix-Systemen.
76
77 %description -l fr
78 Système de gestion de bases de données PostgreSQL (D'abord nommé Postgres,
79 puis Postgres95).
80 PostgreSQL est une amélioration du système de gestion de bases de données
81 POSTGRES, un prototype de recherche de la génération suivant DBMS. Tout
82 en conservant le puissant modèle de donnée de et les types de donée riches
83 de Postgres, il remplace le langage de requêtes de Postgres par un sous
84 ensemble etendu de commandes SQL. PosrgreSQL est libre, et ses sources
85 sont disponibles.
86
87 Le développement de PostgreSQL est actuellement réalisé via internet par\une équipe de développeurs inscrits sur la mailing-list de développement
88 de PostgreSQL. Le coordinateur actuel est Marc G Fournier
89 (scrappy@postgreSQL.org). Cette équipe est responsable du développemen
90 actuel et à venir de PostgreSQL.
91
92 Les auteurs de PostgreSQL 1.01 étaient Andrew Yu et Jolly Chen. Beaucoup
93 d'autres ont contribué au portage, au test, au débogage et à l'amélioration
94 du code. Le code original de Postgres, duquel PostgreSQL est dérivé,
95 a été l'oeuvre d'étudiants de haut niveau, de moins haut niveau, et de
96 programmeurs travaillant sous la direction du professeur Michael
97 Stonebraker à l'université de Berkeley Californie.
98
99 Le nom original du logiciel était Postgres. Quand les fonctionnalitées
100 SQL furent ajoutées en 1995, son nom est devenu Postgres95. Il a été 
101 rebaptisé PostgreSQL en 1996.
102
103 PostgreSQL tourne sur Solaris, SunOS, HPUX, AIX, Linux, Irix, FreeBSD,
104 et la plupart des Unix.
105
106 %description -l pl
107 PostgreSQL System Zarz±dzania Baz± Danych (dawniej znany jako Postgres,
108 nastêpnie jako Postgres95). 
109
110 PostgreSQL mo¿e byæ uruchominy pod nastêpuj±cymi systemami: Solaris, SunOS, 
111 HPUX, AIX, Linux, Irix, FreeBSD i innych systemach Unix.
112
113 %description -l tr
114 PostgreSQL, POSTGRES'den türemiþ bir veri tabaný yönetim sistemidir (DBMS).
115 Güçlü veri modeli ve zengin POSTGRES veri tiplerini desteklerken SQL'in
116 geniþletilmiþ bir altkümesi yerine PostQuel sorgulama dilini koyar.
117
118 %package devel
119 Requires:    postgresql-clients
120 Summary:     PostgreSQL development header files and libraries
121 Summary(de): PostgreSQL-Entwicklungs-Header-Dateien und Libraries 
122 Summary(fr): En-têtes et bibliothèques de développement PostgreSQL
123 Summary(pl): PostgreSQL - nag³owki i biblioteki
124 Summary(tr): PostgreSQL baþlýk dosyalarý ve kitaplýklar
125 Group:       Development/Libraries
126
127 %description devel
128 This package contains header files and libraries required to compile
129 applications that are talking directly to the PostgreSQL backend server. 
130
131 %description -l de devel
132 Dieses Paket enthält die Header-Dateien und Libraries, die zum
133 Kompilieren von Applikationen notwendig sind, die direkt mit dem
134 PostgreSQL-Backend-Server kommunizieren.
135
136 %description -l fr devel
137 Ce package contient les fichiers d'en-tête et les bibliothéques nécessaires
138 pour compiler des applications ayant des échanges directs avec le serveur
139 du backend PostgreSQL.
140
141 %description -l pl devel
142 Pakiet ten zawiera nag³ówki oraz biblioteki wymagane do kompilacji
143 aplikacji ³±cz±cych siê bezpo¶rednio z serwerem PostgreSQL.
144
145 %description -l tr devel
146 Bu paket, PostgreSQL sunucusuyla konuþacak yazýlýmlar geliþtirmek için
147 gereken baþlýk dosyalarýný ve kitaplýklarý içerir.
148
149 %package data
150 Summary:     PostgreSQL initial database structure
151 Summary(de): PostgreSQL-Ausgangs-Datenbankstruktur 
152 Summary(fr): Structure initiale de base de données PostgreSQL 
153 Summary(pl): PostgreSQL - inicjuj±ca struktura bazy danych
154 Summary(tr): PostgreSQL baþlangýç veritabaný yapýsý
155 Group:       Applications/Databases
156 Requires:    postgresql postgresql-clients
157 Conflicts:   postgresql-data <= 6.2.1
158
159 %description data
160 This packages includes an initial database structure directory for PostgreSQL.
161 For a quick startup on PostegreSQL, it is recommended to install this package
162 with your PostgreSQL backend server (altough it is not required). 
163
164 If you choose to not install this package you will have to create the initial
165 database yourself using 'initdb' command and possibly modify the postgresql
166 startup script if you choose a directory other than /var/lib/pgsql for
167 storing your databases.
168
169 %description -l de data
170 Dieses Paket schließt ein elementares Strukturverzeichnis für 
171 PostgreSQL ein. Für einen schnellen Start mit PostegreSQL empfehlen 
172 wir die Installation dieses Pakets mit Ihrem PostgreSQL-Backend-
173 Server (obligatorisch ist es nicht).
174 Sie die anfängliche Datenbank selbst mit Hilfe des initdb-Befehls 
175 erstellen und möglicherweise das postgresql-Start-Skript modifizieren, 
176 wenn Sie ein anderes als das /var/lib/pgsql-Verzeichnis zum Speichern 
177 Ihrer Datenbanken wählen. 
178
179 %description -l fr data
180 Ce paquetage contient une structure initiale de base de données pour PostgreSQL.
181 Pour un démarrage rapide avec PostgreSQL, il est recommandé d'installer ce
182 paquetage avec votre serveur PostgreSQL (bien que ce ne soit pas obligatoire).
183
184 Si vous n'installez pas ce paquetage, vous devrez créer vous-même la base de
185 données initiale avec la commande « initdb » et modifier le script de
186 démarrage de PostgreSQL si vous choisissez un autre répertoire que
187 /var/lib/pgsql pour stocker vos bases de données.
188
189 %description -l pl data
190 Pakiet ten zawiera zainicjowan± strukturê bazodanow± dla PostgreSQL. Dla
191 szybkiego startu PostgreSQL rekomendowane jest zainstalowanie tego pakietu
192 razem z pakietem serwera (jednak¿e nie jest on wymagany).
193
194 Je¿eli nie zainstalujesz tego pakietu bêdziesz musia³ rêcznie utworzyæ 
195 inicjuj±c± bazê przy pomocy polecenia 'initdb' oraz ewentualnie skrypt
196 startowy, je¿eli nie wybierzesz katalogu /var/lib/pgsql jako katalogu
197 domy¶lnego dla przechowywania baz danych.
198
199 %description -l tr data
200 Bu paket, PostgreSQL için bir baþlangýç veri tabaný yapýsý dizinini içerir.
201 PostgreSQL'e hýzlý baþlangýç için bu paketin PostgreSQL sunucusuna yüklenmesi
202 önerilir. Bu paketi yüklememeyi seçerseniz, baþlangýç veri tabanýný 'initdb'
203 komutunu kullanarak kendiniz yaratmanýz gerekir.
204
205 %package clients
206 Summary:     clients needed to access a PostgreSQL server
207 Summary(pl): klienci wymagani do dostêpu do serwera PostgreSQL
208 Group:       Applications/Databases
209
210 %description clients
211 This package includes only the clients and client libraries needed to access
212 an PostgreSQL server. The server is included in the main package. If all you
213 need is to connect to another PostgreSQL server, the  this is the only
214 package you need to install.
215
216 In this package there are client libraries available for C and C++, as
217 well as several command-line utilities you can use to manage your databases
218 on a remote PostgreSQL server.
219
220 %description -l pl clients
221 Pakiet ten zawiera tylko klientów oraz biblioteki niezbêdne dla dostêpu
222 do serwera PostgreSQL. Serwer znajduje siê w g³ównym pakiecie.
223
224 %package perl
225 Summary:     Perl interface to PostgreSQL database
226 Summary(pl): Interface dla Perl'a umo¿liwiaj±cy dostêp do baz PostgreSQL
227 Group:       Application/Databases
228 Requires:    postgresql, perl >= 5.004
229
230 %description perl
231 This package includes only perl modules needed to access an PostgreSQL server.
232
233 %description -l pl perl
234 Pakiet ten zawiera tylko modu³y Perl'a wymagane dla dostêpu do serwera 
235 PostgreSQL.
236
237 %package doc
238 Summary:     Documentation for PostgreSQL
239 Summary(pl): Dodatkowa dokumantacja dla PostgreSQL
240 Group:       Application/Databases
241 Requires:    postgresql
242
243 %description doc
244 This package includes documentation and HOWTO for programmer, admin etc., in
245 HTML format.
246
247 %description -l pl doc
248 Pakiet ten zawiera dokumentacjê oraz HOWTO m.in. dla programistów,
249 administratorów w formacie HTML.
250
251 %package odbc
252 Summary:     ODBC interface to PostgreSQL
253 Summary(pl): Interface ODBC do PostgreSQL
254 Group:       Application/Databases
255 Requires:    postgresql
256
257 %description odbc
258 This package includes library and header files for interface ODBC.
259
260 %description -l pl odbc
261 Pakiet ten zawiera biblioteki i pliki nag³ówkowe dla interface'u ODBC.
262
263 %prep
264 rm -rf $RPM_BUILD_ROOT
265
266 %setup -q
267 %patch -p1 -b .opt
268
269 %build
270 cd src
271 autoconf
272
273 %ifarch alpha
274 EXTRA_configure="--with-template=linuxalpha"
275 %endif
276 CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr \
277         --enable-hba --enable-locale \
278         --with-odbc --with-odbcinst=/etc \
279         --without-tcl \
280         --with-x \
281         --with-perl $EXTRA_configure
282
283 gmake OPT_FLAGS="$RPM_OPT_FLAGS"
284
285 cd ..
286 make all PGDOCS=unpacked -C doc
287
288 %install
289 rm -rf $RPM_BUILD_ROOT
290 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
291 install -d $RPM_BUILD_ROOT/usr/{include/pgsql,lib,bin,man}
292 install -d $RPM_BUILD_ROOT/var/lib/pgsql
293
294 ( cd src
295   gmake POSTGRESDIR=$RPM_BUILD_ROOT/usr install
296   gmake POSTGRESDIR=$RPM_BUILD_ROOT/usr install-man
297 )
298
299 # For Perl interface
300 ( cd src/interfaces/perl5
301   PERLVER=`ls -d /usr/lib/perl5/${RPM_ARCH}-linux/5.*`
302   install -d $RPM_BUILD_ROOT/$PERLVER
303   perl Makefile.PL
304   make PREFIX=$RPM_BUILD_ROOT/usr install
305
306   PACK="$RPM_BUILD_ROOT/usr/lib/perl5/site_perl/${RPM_ARCH}-linux/auto/Pg/.packlist"
307   mv $PACK $PACK.old
308   sed -e "s|$RPM_BUILD_ROOT/|/|g" -e "s|./||" < $PACK.old > $PACK
309   rm -f $PACK.old
310   
311   LOCAL="$RPM_BUILD_ROOT/$PERLVER/perllocal.pod"
312   mv $LOCAL $LOCAL.old
313   sed -e "s|$RPM_BUILD_ROOT/|/|g" < $LOCAL.old > $LOCAL
314   rm -f $LOCAL.old
315 )
316 find $RPM_BUILD_ROOT/usr/lib/perl5 -type f -print | \
317         sed -e "s|$RPM_BUILD_ROOT/|/|g" > perlfiles.list
318 find $RPM_BUILD_ROOT/usr/lib/perl5 -type d -name Pg -print | \
319         sed -e "s|$RPM_BUILD_ROOT/|%dir /|g" >> perlfiles.list
320
321 # Move all includes beneath /usr/include/pgsql.
322 ( cd $RPM_BUILD_ROOT/usr/include
323   rm -rf include
324   for f in *.h access commands executor lib libpq libpq++ port utils
325   do
326         mv $f pgsql
327   done
328 )
329
330 # Move all templates/examples beneath /usr/lib/pgsql
331 ( cd $RPM_BUILD_ROOT/usr/lib
332   install -d pgsql
333   mv *source *sample pgsql
334 )
335
336 # Move odbc.ini file to etc
337 mv -f $RPM_BUILD_ROOT/usr/*.ini $RPM_BUILD_ROOT/etc
338
339 install -m 755 $RPM_SOURCE_DIR/postgresql.init $RPM_BUILD_ROOT/etc/rc.d/init.d/postgresql
340
341 install -d howto
342 ( cd howto
343   tar xzf $RPM_SOURCE_DIR/pgsql-Database-HOWTO-html.tar.gz
344 )
345
346 # Strip 'em all
347 strip -s $RPM_BUILD_ROOT/usr/bin/* || :
348
349 # gzip all man pages
350 gzip -9nf $RPM_BUILD_ROOT/usr/man/man*/*
351
352 # Erase all CVS dir
353 rm -fR `find contrib/ -type d -name CVS`
354
355 %pre
356 useradd -M -o -r -d /var/lib/pgsql -s /bin/bash \
357         -c "PostgreSQL Server" postgres >/dev/null 2>&1 || :
358
359 %post
360 /sbin/chkconfig --add postgresql
361
362 %post data
363 # Create sample database
364 if ! `grep postgres /etc/passwd >/dev/null 2>&1`; then
365     echo "You must add new user postgres before init database."
366     exit 1
367 fi
368 su postgres -c "LD_LIBRARY_PATH=/usr/lib \
369     /usr/bin/initdb --pgdata=/var/lib/pgsql \
370     --pglib=/usr/lib/pgsql"
371
372 %post -p /sbin/ldconfig clients
373
374 %post -p /sbin/ldconfig devel
375
376 %post -p /sbin/ldconfig odbc
377
378 %preun
379 if [ $1 = 0 ]; then
380    if [ -f /var/lock/subsys/postmaster ]; then
381        /etc/rc.d/init.d/postgresql stop
382    fi
383    /sbin/chkconfig --del postgresql
384 fi
385
386 %postun -p /sbin/ldconfig clients
387
388 %postun -p /sbin/ldconfig devel
389
390 %postun -p /sbin/ldconfig odbc
391
392
393 %clean
394 rm -rf $RPM_BUILD_ROOT
395
396
397 %files doc
398 %defattr(644, root, root, 755)
399 %doc doc/unpacked/*
400 %doc howto
401
402 %files
403 %defattr(644, root, root, 755)
404 %doc contrib 
405 %doc doc/FAQ doc/FAQ_Linux doc/README* 
406 %doc COPYRIGHT README HISTORY doc/bug.template
407 %doc doc/*.ps.gz
408
409 %attr(755, root, root) /etc/rc.d/init.d/*
410
411 %attr(644, postgres, postgres, 755) /usr/lib/pgsql
412 %attr(755, root, root) /usr/bin/cleardbdir
413 %attr(755, root, root) /usr/bin/createdb
414 %attr(755, root, root) /usr/bin/createuser
415 %attr(755, root, root) /usr/bin/destroydb
416 %attr(755, root, root) /usr/bin/destroyuser
417 %attr(755, root, root) /usr/bin/initdb
418 %attr(755, root, root) /usr/bin/initlocation
419 %attr(755, root, root) /usr/bin/pg_passwd
420 %attr(755, root, root) /usr/bin/pg_version
421 %attr(755, root, root) /usr/bin/postgres
422 %attr(755, root, root) /usr/bin/postmaster
423 %attr(644, root,  man) /usr/man/man1/cleardbdir.1.gz
424 %attr(644, root,  man) /usr/man/man1/createdb.1.gz
425 %attr(644, root,  man) /usr/man/man1/createuser.1.gz
426 %attr(644, root,  man) /usr/man/man1/destroydb.1.gz
427 %attr(644, root,  man) /usr/man/man1/destroyuser.1.gz
428 %attr(644, root,  man) /usr/man/man1/initdb.1.gz
429 %attr(644, root,  man) /usr/man/man1/initlocation.1.gz
430 %attr(644, root,  man) /usr/man/man1/pg_passwd.1.gz
431 %attr(644, root,  man) /usr/man/man1/postgres.1.gz
432 %attr(644, root,  man) /usr/man/man1/postmaster.1.gz
433 %attr(644, root,  man) /usr/man/man5/*.5.gz
434
435 %files devel
436 %defattr(644, root, root, 755)
437 /usr/lib/libec*.a
438 /usr/lib/libpq*.a
439 /usr/lib/libec*.so
440 /usr/lib/libpq*.so
441 /usr/include/pgsql
442 %attr(644, root,  man) /usr/man/man3/*.gz
443 %attr(755, root, root) /usr/bin/ecpg
444 %attr(644, root,  man) /usr/man/man1/ecpg.1.gz
445
446 %files data
447 %defattr(-,postgres,postgres)
448 %attr(-,postgres,postgres) /var/lib/pgsql
449
450 %files clients
451 %defattr(644, root, root, 755)
452 /usr/lib/libec*.so.*
453 /usr/lib/libpq*.so.*
454 %attr(755, root, root) /usr/bin/pg_dump
455 %attr(755, root, root) /usr/bin/pg_dumpall
456 %attr(755, root, root) /usr/bin/pg_id
457 %attr(755, root, root) /usr/bin/pg_upgrade
458 %attr(755, root, root) /usr/bin/psql
459 %attr(644, root,  man) /usr/man/man1/pg_dump.1.gz
460 %attr(644, root,  man) /usr/man/man1/pg_dumpall.1.gz
461 %attr(644, root,  man) /usr/man/man1/pg_upgrade.1.gz
462 %attr(644, root,  man) /usr/man/man1/psql.1.gz
463 %attr(644, root,  man) /usr/man/manl/*.gz
464
465 %files -f perlfiles.list perl
466 %defattr(-, root, root)
467
468 %files odbc
469 %defattr(644, root, root, 755)
470 %doc src/interfaces/odbc/readme.txt src/interfaces/odbc/notice.txt
471 %config(noreplace) %verify(not size mtime md5) /etc/odbc*
472 /usr/lib/libpsqlodbc*
473 /usr/include/iodbc
474
475 %changelog
476 * Thu Feb 25 1999 Jacek Smyda <smyda@posexperts.com.pl>
477 - gzip man pages
478
479 * Thu Feb 18 1999 Jacek Smyda <smyda@posexperts.com.pl>
480 - Remove template database from data package and init after install
481
482 * Mon Jan 17 1999 Jacek Smyda <smyda@posexperts.com.pl>
483 - added translations for pl
484 - new package: perl, doc, odbc
485 - finally v6.4.2
486 - removed tcl interface
487
488 * Sat Oct 10 1998 Cristian Gafton <gafton@redhat.com>
489 - strip all binaries
490 - use defattr in all packages
491 - updated pgaccess to version 0.90
492 - /var/lib/pgsql/pg_pwd should not be 666
493
494 * Sun Jun 21 1998 Jeff Johnson <jbj@redhat.com>
495 - create /usr/lib/pgsql (like /usr/include/pgsql)
496 - resurrect libpq++.so*
497 - fix name problem in startup-script (problem #533)
498
499 * Fri Jun 19 1998 Jeff Johnson <jbj@redhat.com>
500 - configure had "--prefix=$RPM_BUILD_ROOT/usr"
501 - move all include files below /usr/include/pgsql.
502 - resurrect perl client file lists.
503
504 * Tue May 05 1998 Prospector System <bugs@redhat.com>
505 - translations modified for de, fr, tr
This page took 0.082535 seconds and 4 git commands to generate.