source: projects/specs/trunk/p/postgresql7/postgresql7-vl.spec @ 521

Revision 521, 36.0 KB checked in by daisuke, 12 years ago (diff)

import VineSeed package specs

Line 
1%define beta 0
2%define rel 1
3%define non6xpamdeps 0
4
5%{?beta:%define __os_install_post /usr/lib/rpm/brp-compress}
6
7%define tcl 1
8%define tkpkg 0
9%define jdbc 1
10%define test 0
11%define python 1
12%define pltcl 1
13%define plperl 1
14%define pls 1
15%define ssl 1
16%define kerberos 0
17%define nls 1
18%define pam 1
19
20# Python major version.
21%{expand: %%define pyver %(python -c 'import sys;print(sys.version[0:3])')}
22%{expand: %%define pynextver %(python -c 'import sys;print(float(sys.version[0:3])+0.1)')}
23
24
25Summary: PostgreSQL client programs and libraries.
26Summary(ja): PostgreSQL のクライアントプログラム群およびライブラリ
27Name: postgresql7
28Version: 7.4.7
29
30# Conventions for PostgreSQL Global Development Group RPM releases:
31
32# Official PostgreSQL Development Group RPMS have a PGDG after the release number.
33# Integer releases are stable -- 0.1.x releases are Pre-releases, and x.y are
34# test releases.
35
36# Pre-releases are those that are built from CVS snapshots or pre-release
37# tarballs from postgresql.org.  Official beta releases are not
38# considered pre-releases, nor are release candidates, as their beta or
39# release candidate status is reflected in the version of the tarball. Pre-
40# releases' versions do not change -- the pre-release tarball of 7.0.3, for
41# example, has the same tarball version as the final official release of 7.0.3:
42# but the tarball is different.
43
44# Test releases are where PostgreSQL itself is not in beta, but certain parts of
45# the RPM packaging (such as the spec file, the initscript, etc) are in beta.
46
47# Pre-release RPM's should not be put up on the public ftp.postgresql.org server
48# -- only test releases or full releases should be.
49
50Release: %{rel}%{?_dist_release}
51License: BSD
52Group: Applications/Databases
53Source0: ftp://ftp.postgresql.org/pub/source/v%{version}/postgresql-%{version}.tar.bz2
54Source3: postgresql.init
55Source5: ftp://ftp.postgresql.org/pub/source/v%{version}/postgresql-%{version}.tar.bz2.md5
56Source6: README.rpm-dist
57Source10: http://siisise.net/softlib/postgresql745.jar
58Source15: postgresql-bashprofile
59Source20: PyGreSQL-3.4.tgz
60Patch1: rpm-pgsql-7.4.patch
61Patch2: postgresql-7.4.7-nls-psql-patch
62Patch3: postgresql-7.4-ecpg-patch
63Patch4: PyGreSQL-3.4-setup-2.patch
64# Patch6: postgresql-7.4.5-tempfile.patch
65Buildrequires: perl build-essential
66Prereq: /sbin/ldconfig initscripts
67%if %python
68BuildPrereq: python python-devel
69%endif
70%if %tcl
71BuildPrereq: tcl
72%endif
73%if %tkpkg
74BuildPrereq: tk
75%endif
76BuildPrereq: readline-devel
77BuildPrereq: zlib-devel >= 1.0.4
78%if %ssl
79BuildPrereq: openssl-devel
80%endif
81%if %kerberos
82BuildPrereq: krb5-devel
83%endif
84%if %nls
85BuildPrereq: gettext >= 0.10.35
86%endif
87
88%if %pam
89%if %non6xpamdeps
90BuildPrereq: pam-devel
91%endif
92%endif
93
94BuildRequires: bison, flex, pam-devel
95
96Url: http://www.postgresql.org/
97Buildroot: %{_tmppath}/%{name}-%{version}-root
98Obsoletes: postgresql-clients
99
100# This is the PostgreSQL Global Development Group Official RPMset spec file,
101# or a derivative thereof.
102# Copyright 2001 Lamar Owen <lamar@postgresql.org> <lamar.owen@wgcr.org>
103# and others listed.
104
105# Major Contributors:
106# ---------------
107# Lamar Owen
108# Trond Eivind Glomsrd <teg@redhat.com>
109# Thomas Lockhart
110# Reinhard Max
111# Karl DeBisschop
112# Peter Eisentraut
113# Joe Conway
114# and others in the Changelog....
115
116# This spec file and ancilliary files are licensed in accordance with
117# The PostgreSQL license.
118
119# On top of this file you can find the default build package list macros.  These can be overridden by defining
120# on the rpm command line:
121# rpm --define 'packagename 1' .... to force the package to build.
122# rpm --define 'packagename 0' .... to force the package NOT to build.
123# The base package, the lib package, the devel package, and the server package always get built.
124
125
126%description
127PostgreSQL is an advanced Object-Relational database management system
128(DBMS) that supports almost all SQL constructs (including
129transactions, subselects and user-defined types and functions). The
130postgresql package includes the client programs and libraries that
131you'll need to access a PostgreSQL DBMS server.  These PostgreSQL
132client programs are programs that directly manipulate the internal
133structure of PostgreSQL databases on a PostgreSQL server. These client
134programs can be located on the same machine with the PostgreSQL
135server, or may be on a remote machine which accesses a PostgreSQL
136server over a network connection. This package contains the docs
137in HTML for the whole package, as well as command-line utilities for
138managing PostgreSQL databases on a PostgreSQL server.
139
140If you want to manipulate a PostgreSQL database on a remote PostgreSQL
141server, you need this package. You also need to install this package
142if you're installing the postgresql-server package.
143
144%description -l ja
145PostgreSQLはSQLの構成要素(トランザクション、副問い合わせおよびユーザ
146定義型やユーザ定義関数など)のほとんどすべてをサポートした、先進的なオブ
147ジェクト指向のデータベース管理システム(DBMS)です。postgresqlのパッケー
148ジにはPostgreSQL DBMS サーバにアクセスするために必要なクライアントプロ
149グラムおよびライブラリを収録しています。PostgreSQLクライアントプログラ
150ムは、PostgreSQLサーバ上のPostgreSQLデータベースの内部構造を直接操作す
151るためのプログラムです。これらのクライアントプログラムは、PostgreSQLサ
152ーバと同じマシン上で動いていてもよいですし、ネットワークコネクションの
153向こう側にあるリモートマシン上にあっても構いません。このパッケージには
154PostgreSQLサーバ上のPostgreSQLデータベースを管理するためのユーティリテ
155ィに加え、全パッケージのドキュメントがHTML形式で収録されています。
156
157リモートにあるPostgreSQLサーバ上のPostgreSQLデータベースを操作する場合
158はこのパッケージが必要です。またpostgresql-serverパッケージをインスト
159ールする場合にも、このパッケージをインストールする必要があります。
160
161%package libs
162Summary: The shared libraries required for any PostgreSQL clients.
163Summary(ja): PostgreSQL クライアントに必要な共有ライブラリ
164Group: Applications/Databases
165Provides: libpq.so.3 libpq.so.3.0 libpq.so
166
167%description libs
168The postgresql-libs package provides the essential shared libraries for any
169PostgreSQL client program or interface. You will need to install this package
170to use any other PostgreSQL package or any clients that need to connect to a
171PostgreSQL server.
172
173%description -l ja libs
174postgresql-libs パッケージは、すべての PostgreSQL クライアントプログラ
175ムやインターフェースのための中核的な共有ライブラリを提供します。
176PostgreSQL サーバに接続する必要のある、PostgreSQL パッケージやクライア
177ントを使う場合には、このパッケージをインストールする必要があります。
178
179%package server
180Summary: The programs needed to create and run a PostgreSQL server.
181Summary(ja): PostgreSQL サーバを構築・実行するのに必要なプログラム
182Group: Applications/Databases
183Prereq: /usr/sbin/useradd /sbin/chkconfig
184Requires: postgresql7 = %{version} libpq.so
185
186%description server
187The postgresql-server package includes the programs needed to create
188and run a PostgreSQL server, which will in turn allow you to create
189and maintain PostgreSQL databases.  PostgreSQL is an advanced
190Object-Relational database management system (DBMS) that supports
191almost all SQL constructs (including transactions, subselects and
192user-defined types and functions). You should install
193postgresql-server if you want to create and maintain your own
194PostgreSQL databases and/or your own PostgreSQL server. You also need
195to install the postgresql package.
196
197%description -l ja server
198postgresql-server パッケージには、PostgreSQL サーバを生成して実行する
199ために必要なプログラムが含まれています。これらにより、PostgreSQL のデ
200ータベースを新規に作成したり、メンテナンスしたりできるようになります。
201PostgreSQL は先進的でオブジェクト指向的なデータベース管理システム(DBMS)
202であり、(トランザクション、副問い合わせ、ユーザ定義型および関数といっ
203た)ほとんどすべての SQL 構造をサポートしています。自分自身の PostgreSQL
204サーバを動かして、自分自身の PostgreSQL データベースを作成したりメン
205テナンスしたりしたい場合は postgresql-server をインストールする必要が
206あります。さらに postgresql パッケージもインストールしてください。
207
208%package docs
209Summary: Extra documentation for PostgreSQL
210Summary(ja): PostgreSQL に関するその他の文書
211Group: Applications/Databases
212
213%description docs
214The postgresql-docs package includes the SGML source for the documentation
215as well as the documentation in other formats, and some extra documentation.
216Install this package if you want to help with the PostgreSQL documentation
217project, or if you want to generate printed documentation.
218
219%package contrib
220Summary: Contributed source and binaries distributed with PostgreSQL
221Summary(ja): PostgreSQL と一緒に配布される、寄贈されたソースとバイナリ
222Group: Applications/Databases
223Requires: postgresql7 = %{version}
224
225%description contrib
226The postgresql-contrib package contains contributed packages that are
227included in the PostgreSQL distribution.
228
229
230%package devel
231Summary: PostgreSQL development header files and libraries.
232Summary(ja): PostgreSQL の開発用ヘッダファイルとライブラリ群
233Group: Development/Libraries
234Requires: postgresql7-libs = %{version}
235
236%description devel
237The postgresql-devel package contains the header files and libraries
238needed to compile C or C++ applications which will directly interact
239with a PostgreSQL database management server and the ecpg Embedded C
240Postgres preprocessor. You need to install this package if you want to
241develop applications which will interact with a PostgreSQL server. If
242you're installing postgresql-server, you need to install this
243package.
244
245%description -l ja devel
246postgresql-devel パッケージには、PostgreSQL データベースと直接に会話
247するための C / C++ アプリケーションをコンパイルするのに必要なヘッダフ
248ァイルとライブラリ、および C 言語埋め込み型の PostgreSQL プリプロセサ
249が含まれています。PostgreSQL サーバと会話するアプリケーションを開発
250したい場合にはこのパッケージをインストールしてください。また、
251postgresql-server をインストールする場合、このパッケージもいっしょに
252インストールする必要があります。
253
254#------------
255%if %pls
256%package pl
257Summary: The PL procedural languages for PostgreSQL.
258Summary(ja): PostgreSQL 用の手続き言語 PL
259Group: Applications/Databases
260Requires: postgresql7 = %{version}
261
262%description pl
263PostgreSQL is an advanced Object-Relational database management
264system.  The postgresql-pl package contains the the PL/Perl, PL/Tcl, and PL/Python
265procedural languages for the backend.  PL/Pgsql is part of the core server package.
266%endif
267
268#------------
269%if %tcl
270%package tcl
271Summary: A Tcl client library for PostgreSQL.
272Summary(ja): PostgreSQL の Tcl クライアントライブラリ
273Group: Applications/Databases
274Requires: tcl >= 8.0
275
276%description tcl
277PostgreSQL is an advanced Object-Relational database management
278system.  The postgresql-tcl package contains the libpgtcl client library,
279the pg-enhanced pgtclsh,and the pg-enhanced tksh, if so configured at buildtime.
280%endif
281
282#------------
283%if %python
284%package python
285Summary: Development module for Python code to access a PostgreSQL DB.
286Summary(ja): PostgreSQL DB にアクセスするための Python コード用開発モジュール
287Group: Applications/Databases
288Requires: python
289Conflicts: python < %pyver, python >= %pynextver
290
291
292%description python
293PostgreSQL is an advanced Object-Relational database management
294system.  The postgresql-python package includes a module for
295developers to use when writing Python code for accessing a PostgreSQL
296database.
297%endif
298
299#----------
300%if %jdbc
301%package jdbc
302Summary: Files needed for Java programs to access a PostgreSQL database.
303Summary(ja): PostgreSQL データベースにアクセスする Java プログラムのために必要なファイル群
304Group: Applications/Databases
305
306%description jdbc
307PostgreSQL is an advanced Object-Relational database management
308system. The postgresql-jdbc package includes the .jar file needed for
309Java programs to access a PostgreSQL database.
310%endif
311
312#------------
313%if %test
314%package test
315Summary: The test suite distributed with PostgreSQL.
316Summary(ja): PostgreSQL と共に配布されるテストスート
317Group: Applications/Databases
318Requires: postgresql7 = %{version}
319
320%description test
321PostgreSQL is an advanced Object-Relational database management
322system. The postgresql-test package includes the sources and pre-built
323binaries of various tests for the PostgreSQL database management
324system, including regression tests and benchmarks.
325%endif
326
327%prep
328%setup -q -a 20 -n postgresql-%{version}
329
330%patch1 -p1
331%patch2 -p1
332%patch3 -p1
333%patch4 -p0
334# %patch6 -p1 -b .tempfile-security
335
336%build
337
338CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS
339CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS
340
341# Strip out -ffast-math from CFLAGS....
342
343CFLAGS=`echo $CFLAGS|xargs -n 1|grep -v ffast-math|xargs -n 100`
344
345./configure --prefix=/usr --disable-rpath\
346%if %beta
347        --enable-debug \
348        --enable-cassert \
349%endif
350%if %plperl
351        --with-perl \
352%endif
353%if %tcl
354        --with-tcl \
355%endif
356%if %tkpkg
357%else
358        --without-tk \
359%endif
360%if %python
361        --with-python \
362%endif
363%if %ssl
364        --with-openssl \
365%endif
366%if %pam
367        --with-pam \
368%endif
369%if %kerberos
370        --with-krb5=/usr/kerberos \
371%endif
372%if %nls
373        --enable-nls \
374%endif
375        --sysconfdir=/etc/sysconfig/pgsql \
376        --mandir=%{_mandir} \
377        --docdir=%{_docdir} \
378        --includedir=%{_includedir}/pgsql \
379        --datadir=/usr/share/pgsql
380
381make all
382make -C contrib all
383
384%if %test
385        pushd src/test
386        make all
387        popd
388%endif
389
390## PyGreSQL-3.4 (2004/04/10 added by Shu KONNO)
391%if %python
392pushd PyGreSQL-3.4
393python setup.py build --build-lib lib
394popd
395%endif
396
397%install
398rm -rf $RPM_BUILD_ROOT
399
400make DESTDIR=$RPM_BUILD_ROOT install
401make -C contrib DESTDIR=$RPM_BUILD_ROOT install
402
403# install dev headers.
404
405make DESTDIR=$RPM_BUILD_ROOT install-all-headers
406
407# copy over Makefile.global to the include dir....
408#install -m755 src/Makefile.global $RPM_BUILD_ROOT/usr/include/pgsql
409#install -m755 src/Makefile.shlib $RPM_BUILD_ROOT/usr/include/pgsql
410install -m644 src/Makefile.global $RPM_BUILD_ROOT/usr/include/pgsql
411install -m644 src/Makefile.shlib $RPM_BUILD_ROOT/usr/include/pgsql
412
413%if %jdbc
414        # Java/JDBC
415        # The user will have to set a CLASSPATH to find it here, but not sure where else to put it...
416
417        # JDBC jars
418        install -m 755 %{SOURCE10} $RPM_BUILD_ROOT/usr/share/pgsql
419
420%endif
421
422if [ -d /etc/rc.d/init.d ]
423then
424        install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
425        install -m 755 %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/postgresql
426fi
427
428
429# PGDATA needs removal of group and world permissions due to pg_pwd hole.
430install -d -m 700 $RPM_BUILD_ROOT/var/lib/pgsql/data
431
432# backups of data go here...
433install -d -m 700 $RPM_BUILD_ROOT/var/lib/pgsql/backups
434
435# postgres' .bash_profile
436install -m 644 %{SOURCE15} $RPM_BUILD_ROOT/var/lib/pgsql/.bash_profile
437
438# Create the multiple postmaster startup directory
439install -d -m 700 $RPM_BUILD_ROOT/etc/sysconfig/pgsql
440
441
442%if %test
443        # tests. There are many files included here that are unnecessary, but include
444        # them anyway for completeness.
445        mkdir -p $RPM_BUILD_ROOT/usr/lib/pgsql/test
446        cp -a src/test/regress $RPM_BUILD_ROOT/usr/lib/pgsql/test
447        install -m 0755 contrib/spi/refint.so $RPM_BUILD_ROOT/usr/lib/pgsql/test/regress
448        install -m 0755 contrib/spi/autoinc.so $RPM_BUILD_ROOT/usr/lib/pgsql/test/regress
449        pushd  $RPM_BUILD_ROOT/usr/lib/pgsql/test/regress/
450        strip *.so
451        popd
452%endif
453
454# Fix some more documentation
455# gzip doc/internals.ps
456cp %{SOURCE6} README.rpm-dist
457mv $RPM_BUILD_ROOT%{_docdir}/postgresql/html doc
458
459%find_lang libpq
460%find_lang pg_dump
461%find_lang postgres
462%find_lang psql
463%find_lang pg_resetxlog
464%find_lang pg_controldata
465
466cat libpq.lang > libpq.lst
467cat psql.lang pg_dump.lang > main.lst
468cat postgres.lang pg_resetxlog.lang pg_controldata.lang > server.lst
469
470%if %python
471install -d $RPM_BUILD_ROOT/usr/lib/python%{pyver}/site-packages/
472install -m 755 PyGreSQL-3.4/lib/_pg.so \
473        $RPM_BUILD_ROOT/usr/lib/python%{pyver}/site-packages/
474install -m 644 PyGreSQL-3.4/lib/*.py* \
475        $RPM_BUILD_ROOT/usr/lib/python%{pyver}/site-packages/
476%endif
477
478%post libs -p /sbin/ldconfig
479%postun libs -p /sbin/ldconfig
480
481%pre server
482groupadd -g 26 -o -r postgres >/dev/null 2>&1 || :
483useradd -M -n -g postgres -o -r -d /var/lib/pgsql -s /bin/bash \
484        -c "PostgreSQL Server" -u 26 postgres >/dev/null 2>&1 || :
485touch /var/log/pgsql
486chown postgres.postgres /var/log/pgsql
487chmod 0700 /var/log/pgsql
488
489
490%post server
491chkconfig --add postgresql
492/sbin/ldconfig
493
494%preun server
495if [ $1 = 0 ] ; then
496        chkconfig --del postgresql
497fi
498
499%postun server
500/sbin/ldconfig
501if [ $1 -ge 1 ]; then
502  /sbin/service postgresql condrestart >/dev/null 2>&1
503fi
504if [ $1 = 0 ] ; then
505    if [ ! -x /usr/bin/postgres ] ; then
506            userdel postgres >/dev/null 2>&1 || :
507            groupdel postgres >/dev/null 2>&1 || :
508    fi
509fi
510
511%if %tcl
512%post -p /sbin/ldconfig   tcl
513%postun -p /sbin/ldconfig   tcl
514%endif
515
516%if %pls
517%post -p /sbin/ldconfig   pl
518%postun -p /sbin/ldconfig   pl
519%endif
520
521%if %test
522%post test
523chown -R postgres.postgres /usr/share/pgsql/test >/dev/null 2>&1 || :
524%endif
525
526
527%clean
528rm -rf $RPM_BUILD_ROOT
529
530# FILES section.
531
532%files -f main.lst
533%defattr(-,root,root)
534%doc doc/FAQ doc/KNOWN_BUGS doc/MISSING_FEATURES doc/README*
535%doc COPYRIGHT README HISTORY doc/bug.template
536%doc README.rpm-dist
537%doc doc/html
538/usr/bin/clusterdb
539/usr/bin/createdb
540/usr/bin/createlang
541/usr/bin/createuser
542/usr/bin/dropdb
543/usr/bin/droplang
544/usr/bin/dropuser
545/usr/bin/pg_dump
546/usr/bin/pg_dumpall
547/usr/bin/pg_encoding
548/usr/bin/pg_id
549/usr/bin/pg_restore
550/usr/bin/psql
551/usr/bin/vacuumdb
552%{_mandir}/man1/clusterdb.*
553%{_mandir}/man1/createdb.*
554%{_mandir}/man1/createlang.*
555%{_mandir}/man1/createuser.*
556%{_mandir}/man1/dropdb.*
557%{_mandir}/man1/droplang.*
558%{_mandir}/man1/dropuser.*
559%{_mandir}/man1/pg_dump.*
560%{_mandir}/man1/pg_dumpall.*
561%{_mandir}/man1/pg_restore.*
562%{_mandir}/man1/psql.*
563%{_mandir}/man1/vacuumdb.*
564%{_mandir}/man7/*
565
566%files docs
567%defattr(-,root,root)
568%doc doc/src/*
569
570%files contrib
571%defattr(-,root,root)
572/usr/lib/pgsql/_int.so
573/usr/lib/pgsql/autoinc.so
574/usr/lib/pgsql/btree_gist.so
575/usr/lib/pgsql/chkpass.so
576/usr/lib/pgsql/cube.so
577/usr/lib/pgsql/dblink.so
578/usr/lib/pgsql/dbsize.so
579/usr/lib/pgsql/earthdistance.so
580/usr/lib/pgsql/fti.so
581/usr/lib/pgsql/fuzzystrmatch.so
582/usr/lib/pgsql/insert_username.so
583/usr/lib/pgsql/int_aggregate.so
584/usr/lib/pgsql/isbn_issn.so
585/usr/lib/pgsql/lo.so
586/usr/lib/pgsql/ltree.so
587/usr/lib/pgsql/misc_utils.so
588/usr/lib/pgsql/moddatetime.so
589/usr/lib/pgsql/noup.so
590/usr/lib/pgsql/pending.so
591/usr/lib/pgsql/pgcrypto.so
592/usr/lib/pgsql/pgstattuple.so
593/usr/lib/pgsql/refint.so
594/usr/lib/pgsql/rserv.so
595/usr/lib/pgsql/rtree_gist.so
596/usr/lib/pgsql/seg.so
597/usr/lib/pgsql/string_io.so
598/usr/lib/pgsql/tablefunc.so
599/usr/lib/pgsql/timetravel.so
600/usr/lib/pgsql/tsearch.so
601/usr/lib/pgsql/user_locks.so
602/usr/share/pgsql/contrib/
603/usr/bin/dbf2pg
604/usr/bin/findoidjoins
605/usr/bin/make_oidjoins_check
606/usr/bin/fti.pl
607/usr/bin/oid2name
608/usr/bin/pg_dumplo
609/usr/bin/pg_logger
610/usr/bin/pgbench
611/usr/bin/RservTest
612/usr/bin/MasterInit
613/usr/bin/MasterAddTable
614/usr/bin/Replicate
615/usr/bin/MasterSync
616/usr/bin/CleanLog
617/usr/bin/SlaveInit
618/usr/bin/SlaveAddTable
619/usr/bin/GetSyncID
620/usr/bin/PrepareSnapshot
621/usr/bin/ApplySnapshot
622/usr/bin/InitRservTest
623/usr/bin/vacuumlo
624%doc contrib/*/README.* contrib/spi/*.example
625
626%files libs -f libpq.lang
627%defattr(-,root,root)
628/usr/lib/libpq.so.*
629/usr/lib/libecpg.so.*
630/usr/lib/libpgtypes.so.*
631
632%files server -f server.lst
633%defattr(-,root,root)
634/etc/rc.d/init.d/postgresql
635%dir /etc/sysconfig/pgsql
636/usr/bin/initdb
637/usr/bin/initlocation
638/usr/bin/ipcclean
639/usr/bin/pg_controldata
640/usr/bin/pg_ctl
641/usr/bin/pg_resetxlog
642/usr/bin/postgres
643/usr/bin/postmaster
644%{_mandir}/man1/initdb.*
645%{_mandir}/man1/initlocation.*
646%{_mandir}/man1/ipcclean.*
647%{_mandir}/man1/pg_controldata.*
648%{_mandir}/man1/pg_ctl.*
649%{_mandir}/man1/pg_resetxlog.*
650%{_mandir}/man1/postgres.*
651%{_mandir}/man1/postmaster.*
652/usr/share/pgsql/postgres.bki
653/usr/share/pgsql/postgres.description
654/usr/share/pgsql/*.sample
655/usr/share/pgsql/information_schema.sql
656/usr/share/pgsql/sql_features.txt
657/usr/lib/pgsql/plpgsql.so
658%if %python
659/usr/lib/pgsql/plpython.so
660%endif
661%dir /usr/lib/pgsql
662%dir /usr/share/pgsql
663%attr(700,postgres,postgres) %dir /var/lib/pgsql
664%attr(700,postgres,postgres) %dir /var/lib/pgsql/data
665%attr(700,postgres,postgres) %dir /var/lib/pgsql/backups
666%attr(644,postgres,postgres) %config(noreplace) /var/lib/pgsql/.bash_profile
667/usr/lib/pgsql/*_and_*.so
668/usr/share/pgsql/conversion_create.sql
669
670%files devel
671%defattr(-,root,root)
672/usr/include/*
673/usr/bin/ecpg
674/usr/bin/pg_config
675/usr/lib/libpq.so
676/usr/lib/libecpg.so
677/usr/lib/libpq.a
678/usr/lib/libecpg.a
679%if %tcl
680/usr/lib/libpgtcl.a
681%endif
682%{_mandir}/man1/ecpg.*
683%{_mandir}/man1/pg_config.*
684
685%if %tcl
686%files tcl
687%defattr(-,root,root)
688%attr(755,root,root) /usr/lib/libpgtcl.so.*
689# libpgtcl.so is not in devel because Tcl scripts may load it by that name.
690/usr/lib/libpgtcl.so
691/usr/bin/pgtclsh
692%{_mandir}/man1/pgtclsh.*
693/usr/lib/pgsql/pltcl.so
694%if %tkpkg
695/usr/bin/pgtksh
696%{_mandir}/man1/pgtksh.*
697%endif
698%endif
699
700%if %pls
701%files pl
702%defattr(-,root,root)
703%if %plperl
704/usr/lib/pgsql/plperl.so
705%endif
706%if %pltcl
707/usr/lib/pgsql/pltcl.so
708/usr/bin/pltcl_delmod
709/usr/bin/pltcl_listmod
710/usr/bin/pltcl_loadmod
711/usr/share/pgsql/unknown.pltcl
712%endif
713%if %python
714/usr/lib/pgsql/plpython.so
715%endif
716%endif
717
718%if %python
719%files python
720%defattr(-,root,root)
721#%doc src/interfaces/python/README src/interfaces/python/tutorial
722#/usr/lib/python%{pyver}/site-packages/_pgmodule.so
723/usr/lib/python?.?/site-packages/_pg.so
724/usr/lib/python?.?/site-packages/*.py
725%endif
726
727%if %jdbc
728%files jdbc
729%defattr(-,root,root)
730/usr/share/pgsql/postgresql745.jar
731%endif
732
733%if %test
734%files test
735%defattr(-,postgres,postgres)
736%attr(-,postgres,postgres) /usr/lib/pgsql/test/*
737%attr(-,postgres,postgres) %dir /usr/lib/pgsql/test
738%endif
739
740%changelog
741* Sun Oct 12 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 7.4.7-1
742- new versioning policy; spec in UTF-8
743- rebuild against readline-5.2
744
745* Fri Feb 18 2005 HOTTA Michihide <hotta@net-newbie.com> 7.4.7-0vl1
746- change package name to postgresql7 for VineSeed-Plus
747- modify %postun not to delete postgres account on upgrade
748
749* Sun Feb 13 2005 HOTTA Michihide <hotta@net-newbie.com> 7.4.7-0vl1
750- upstream release
751- add Conflicts: postgresql8
752- update postgresql-7.4.7-nls-psql-patch
753
754* Fri Dec 04 2004 HOTTA Michihide <hotta@net-newbie.com> 7.4.6-0vl2
755- upstream release
756- new JDBC driver
757- add BuildRequires: bison, flex, pam-devel
758- drop postgresql-7.4.5-tempfile.patch (repaired)
759
760* Thu Nov 18 2004 IKEDA Katsumi <ikeda@webmasters.gr.jp> 7.4.5-0vl2
761- Added a security fix patch postgresql-7.4.5-tempfile.patch
762  from Gentoo Linux (CAN-2004-0977).
763- Changed Patch4:
764  from PyGreSQL-3.4-setup-2.patch into PyGreSQL-3.4-setup-2.patch
765  It is possible to compile this package without pre-installed postgresql.
766- Removed Patch5 because Patch4 was changed.
767
768* Tue Aug 24 2004 HOTTA Michihide <hotta@net-newbie.com> 7.4.5-0vl1
769- upstream release
770
771* Mon Jun 21 2004 HOTTA Michihide <hotta@net-newbie.com> 7.4.3-0vl1
772- upstream release
773- new jdbc driver
774
775* Sat Apr 17 2004 Shu KONNO <owa@bg.wakwak.com> 7.4.2-0vl3
776- rebuild with python-2.3.3-0vl1
777
778* Tue Apr 13 2004 Shu KONNO <owa@bg.wakwak.com> 7.4.2-0vl2.3
779- changed mode to 644 at Makefile.global, Makefile.shlib
780
781* Mon Apr 12 2004 Shu KONNO <owa@bg.wakwak.com> 7.4.2-0vl2.2
782- updated python install section
783
784* Sat Apr 10 2004 Shu KONNO <owa@bg.wakwak.com> 7.4.2-0vl2.1
785- added PyGreSQL-3.4.tgz and set python flag
786- added PyGreSQL-3.4-setup.patch
787- added PyGreSQL-3.4-pgmodule.patch
788- rebuilded with python-2.3.3-0vl0.3 (for TestPkg)
789
790* Sun Mar 28 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 7.4.2-0vl2
791- rebuild with new openssl
792
793* Wed Mar 17 2004 HOTTA Michihide <hotta@net-newbie.com> 7.4.2-0vl1
794- upstream release
795- change all of %{?foo:%define foo 0} -like descriptions to simple
796  %define format for latest rpm to build.
797
798* Sat Feb 14 2004 HOTTA Michihide <hotta@net-newbie.com> 7.4.1-0vl3
799- rebuild on latest tcl package environment.
800
801* Wed Feb 11 2004 HOTTA Michihide <hotta@net-newbie.com> 7.4.1-0vl2
802- fixed lacking files at server's %files
803
804* Fri Dec 05 2003 HOTTA Michihide <hotta@net-newbie.com> 7.4-0vl2
805- include JDBC driver for 7.4
806- fix typo in postgresql-7.4-psql-patch
807
808* Thu Nov 20 2003 HOTTA Michihide <hotta@net-newbie.com> 7.4-0vl1
809- upstream release
810- change '--includedir=' option to avoid conflicting with unixODBC
811- add postgresql-7.4-ecpg-patch
812
813* Wed Sep 10 2003 HOTTA Michihide <hotta@net-newbie.com> 7.3.4-0vl1
814- upstream release
815
816* Wed Jul 23 2003 HOTTA Michihide <hotta@net-newbie.com> 7.3.3-0vl2
817- drop previous version of libpq's trash
818
819* Wed May 28 2003 HOTTA Michihide <hotta@net-newbie.com> 7.3.3-0vl1
820- upstream release with new nls patch
821- fix postgresql-bashprofile (value of PGDATA)
822- fix postgresql-init for Japanese-specific use (-E EUC_JP --no-locale)
823
824* Wed Apr 02 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 7.3.2-0vl2
825- rebuild with tcltk8.4 and readline-4.3
826
827* Fri Mar 07 2003 HOTTA Michihide <hotta@net-newbie.com> 7.3.2-0vl1
828- upstream release
829
830* Wed Dec 25 2002 HOTTA Michihide <hotta@net-newbie.com> 7.3.1-0vl1
831- upstream release
832- remove garbage changelog
833
834* Mon Dec 23 2002 HOTTA Michihide <hotta@net-newbie.com> 7.3-0vl1
835- upstream release based on 7.3-2PGDG
836- add nls patch
837
838* Thu Dec 05 2002 Lamar Owen <lamar.owen@ramifordistat.net>
839- 7.3-2PGDG
840- Fix typo in initscript.  Argh!!
841
842* Wed Dec 04 2002 Lamar Owen <lamar.owen@ramifordistat.net>
843- 7.3-0.5PGDG
844- Jerk out all perl client stuff and kludgage
845- Rename plperl subpackage to a pl subpackage containing all but PL/Pgsql PL's
846- Eliminate locale and multibyte explicit enables -- they are both defaults now
847- Eliminate pgaccess code; it's not a part of the main tarball anymore
848- Eliminate ODBC stuff -- it's also separate now.  Use unixODBC instead.
849- Eliminated separate tk client package -- rolled the tk client into the tcl client.
850- Moved pltcl into the pl subpackage.
851- Added plpython to the pl subpackage.
852- /etc/sysconfig/pgsql is sysconfdir for multiple postmaster startup.
853
854* Mon Dec 02 2002 Lamar Owen <lamar.owen@ramifordistat.net>
855- 7.3-0.1PGDG (not released)
856- Integrate 7.3 jar's courtesy Joe Conway
857- Integrate multi-postmaster initscript courtesy Karl DeBisschop
858- Some renames and restructures.
859- Stripped out the last dregs of the postgresql-dump migration script.
860- Conflicts with less than 7.3.
861
862- (See below for old changelogs from VineSeed)
863
864* Wed Oct 04 2002 HOTTA Michihide <hotta@net-newbie.com> 7.2.3-0vl1
865- updated to 7.2.3.
866
867* Wed Sep 10 2002 HOTTA Michihide <hotta@net-newbie.com> 7.2.2-0vl3
868- absorbed previous patch8 into original nlspatch
869- fixed configure options (--enable-nls and --enable-locale to be antinomy)
870
871* Tue Aug 30 2002 Shoji Matsumoto <shom@vinelinux.org> 7.2.2-0vl2
872- add patch8 (ja.po for psql was invalid)
873
874* Wed Aug 29 2002 HOTTA Michihide <hotta@net-newbie.com> 7.2.2-0vl1
875- updated to 7.2.2.
876- improved nlspatch to enable japanese SQL help in psql.
877
878* Wed Jul 06 2002 HOTTA Michihide <hotta@net-newbie.com> 7.2.1-5vl3
879- fixed garbage chars in description(ja).
880
881* Wed Jul 03 2002 HOTTA Michihide <hotta@net-newbie.com> 7.2.1-5vl2
882- imported & replaced changelog (following VineSeed's).
883  add some stuff to '%%files'.
884
885* Wed Jul 03 2002 HOTTA Michihide <hotta@net-newbie.com> 7.2.1-5vl1
886- Modified for Vine Linux 2.5. Originaly from RHL 7.2.1-5, adding
887  nls patch, pg_dump patch, date_part patch by Jun Kuwamura
888
889* Thu May 23 2002 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net>
890- replace nls patch.
891- add *.mo to '%%files'.
892
893* Mon Mar 04 2002 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net>
894- fix initscript
895
896* Sun Mar 03 2002 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net>
897- add /usr/bin/pg_id to the package (fix)
898
899* Sat Mar 01 2002 Satoshi MACHINO <machino@vinelinux.org> 7.2-0vl1
900- updated 7.2
901- added nls.patch
902- fixed spec file
903- added New JDBC
904-- pgjdbc1.jar(for JDK1.1.x), pgjdbc2(for Java2)
905
906* Sat Sep 22 2001 Satoshi MACHINO <machino@vinelinux.org> 7.1.3-4vl1
907- updated 7.1.3
908
909* Tue Aug 21 2001 Hisao SHIBUYA <shibuya@alpha.or.jp>
910- 7.1.2-7vl3
911- merge 7.1.2-7vl2 and 7.1.2-7
912
913* Sun Aug 19 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org>
914- 7.1.2-7vl2
915- fixed spec typo (%%{_includesir} -> %%{_includedir})
916
917* Tue Aug 14 2001 Satoshi MACHINO <machino@vinelinux.org> 7.1.2-7vl1
918- updated 7.1.2 (used postgresql-7.1.2-7)
919- used psqlj patch for 7.1.2
920- used jumbo-20010801.patch.gz
921
922* Mon Aug  6 2001 Trond Eivind Glomsr <teg@redhat.com> 7.1.2-7
923- Add patches from 7.1-stable branch. This should fix #50799 and #50797
924- Enable kerberos authentication (#50644)
925- handle stop with stale pid file (#50499)
926- make the test subpackage (not built by default) own /usr/lib/pgsql/test
927
928* Mon Jul  9 2001 Trond Eivind Glomsr <teg@redhat.com>
929- Make the -devel subpackage depend on -libs, not the main package
930
931* Tue Jun 19 2001 Trond Eivind Glomsr <teg@redhat.com>
932- Make sure the python subpackage depends on mx - otherwise, you'd get an error when importing
933
934* Mon Jun 18 2001 Florian La Roche <Florian.LaRoche@redhat.de>
935- add changes for s390x
936
937* Fri Jun 15 2001 Trond Eivind Glomsr <teg@redhat.com>
938- Many path fixes for contrib packages
939- Newer intarray
940- Don't use nested ifs for tkpkg/pgaccess
941- Turn off test package for Red Hat Linux - it makes most sense just to use
942  this during development
943- One "pgacess" -> "pgaccess"
944
945* Wed Jun 13 2001 Lamar Owen <lamar.owen@wgcr.org> <lamar@postgresql.org>
946- -4PGDG
947- patchset update for pg_regress.sh
948- can the dot in the release -- confused too many people and some programs.
949- -3.PGDG
950- updated README.rpm-dist
951- updated patch to 7.1.2, fixing some places where /usr/share/pgsql
952  was still being used where /usr/lib/pgsql was intended.
953- PGLIB now set to /usr/lib/pgsql -- initdb doesn't use it to find the bki's.
954
955* Tue Jun 12 2001 Trond Eivind Glomsr <teg@redhat.com>
956- sync
957- Run chkconfig --add on server install
958- Move the prereqs on useradd on chkconfig to the server package
959- don't disable the %%clean section
960
961* Sat Jun 09 2001 Lamar Owen <lamar.owen@wgcr.org>
962- Sync up with Trond Eivind's set.
963
964* Thu Jun  7 2001 Trond Eivind Glomsr <teg@redhat.com>
965- Don't create postgres' .bashrc from the server post script: include it instead
966- Move the test packages from /usr/share/pgsql to /usr/lib/pgsql
967- Move the symlinks libpq.so, libecpg.so, libpq++.so and libpgeasy.so to the devel subpackage from
968  libs
969- Source the i18n data from the .bashrc instead of in the initscript
970
971* Mon May 28 2001 Trond Eivind Glomsr <teg@redhat.com>
972- Handle i18n for database startup - backend needs to have the same locale everytime,
973  but this certainly can't be hardcoded to C either
974- Fix stop, restart in initscript (#42217)
975- Make database init _much_ less verbose
976- other minor fixes to the initscript
977
978* Fri May 25 2001 Trond Eivind Glomsr <teg@redhat.com>
979- 7.1.2
980
981* Thu May 24 2001 Lamar Owen <lamar@postgresql.org> <lamar.owen@wgcr.org>
982- 7.1.2-0.1.1.PGDG PRERELEASE
983- Changed versioning and release numbering a little for better flexibility,
984-- particularly for distribution packagers.
985- Release numbering comment at top of spec, where it's more useful.
986- Trimmed changelog to 7.1.x. See the last 7.0.3's specfile for the 7.0
987  changlog, and the last 6.5.3's specfile for the changelog prior to
988  7.0.
989
990* Sun May 20 2001 Lamar Owen <lamar@postgresql.org> <lamar.owen@wgcr.org>
991- 7.1.1-4.PGDG
992- _really_ got Python version agnosticism working.
993
994* Sat May 19 2001 Lamar Owen <lamar@postgresql.org> <lamar.owen@wgcr.org>
995- 7.1.1-3.PGDG Release
996- Python version agnosticism.....
997
998* Tue May 15 2001 Trond Eivind Glomsr <teg@redhat.com>
999- Use openssl
1000- Make it obsolete subpackages if they aren't built
1001
1002* Mon May 14 2001 Lamar Owen <lamar@postgresql.org> <lamar.owen@wgcr.org>
1003- 7.1.1-2.PGDG Release.
1004- Appended .PGDG to release string to differentiate our RPM set from the others.
1005- /bin/sh fix in initscript
1006- README.rpm-dist updates.
1007
1008* Mon May 14 2001 Bernhard Rosenkraenzer <bero@redhat.com> 7.1.1-0.7
1009- Rebuild with new readline
1010
1011* Thu May 10 2001 Trond Eivind Glomsr <teg@redhat.com>
1012- Initial 7.1.1
1013
1014* Mon May  7 2001 Trond Eivind Glomsr <teg@redhat.com>
1015- Specify shell when running commands through su in the initscript, to avoid problems
1016  when people switch the postgres user to use tcsh
1017
1018* Thu Apr 19 2001 Trond Eivind Glomsr <teg@redhat.com>
1019- JDBC driver for Postgresql 7.1
1020
1021* Sun Apr 15 2001 Trond Eivind Glomsr <teg@redhat.com>
1022- slightly different versioning scheming, will go back to the official
1023  later when I'm sure the package is ready to use
1024
1025* Fri Apr 13 2001 Lamar Owen <lamar@postgresql.org> <lamar.owen@wgcr.org>
1026- 7.1 RELEASE
1027- 7.1-1 RPM RELEASE
1028- Change to COPTS -- strip out -ffastmath -- Considered Harmful.
1029- Back to old versioning scheme, kept teg's other fixes.
1030- README.rpm-dist updated.
1031- PGVERSION updated all-around (hopefully!)
1032- Couple of fixes from Peter E.
1033- Rearrange dependencies -- only the -libs subpackage is required for most stuff
1034- Removed broken and confusing logrotate script.
1035
1036* Mon Apr  9 2001 Trond Eivind Glomsr <teg@redhat.com>
1037- chown considered harmful - removed
1038- fix dangling symlimks (pg_crc.c)
1039- libpq.so changes for maximum compatiblity
1040- different versioning scheme, to avoid trouble later
1041- remove temporary perl file from the file list
1042- fix spelling error in tcl description
1043- mark odbcinst.ini as a config file
1044- use %%defattr on packages which didn't have it
1045
1046* Sat Apr 07 2001 Lamar Owen <lamar@postgresql.org> <lamar.owen@wgcr.org>
1047- Integrated the PL/Perl stuff from Karl DeBisschop --conditional.
1048- Packaging reorg: added contrib and docs subpackages.
1049- Removed sgml source docs from main package --> docs subpackage.
1050- Removed contrib tree from main package --> contrib subpackage.
1051- Contrib tree is now prebuilt -- HOWEVER, very little install work is
1052  currently done with this.
1053
1054* Fri Apr 06 2001 Lamar Owen <lamar@postgresql.org> <lamar.owen@wgcr.org>
1055- Quickie RC3.  There will be a 7.1RC3-2 shortly with other stuff.
1056
1057* Tue Apr 03 2001 Lamar Owen <lamar@postgresql.org> <lamar.owen@wgcr.org>
1058- RC2
1059- eliminate versioning information for ancilliary files in prep for CVS.
1060- Fix docs mixup.
1061
1062* Tue Mar 27 2001 Lamar Owen <lamar@postgresql.org> <lamar.owen@wgcr.org>
1063- RC1 quickie.
1064
1065* Tue Mar 20 2001 Lamar Owen <lamar@postgresql.org>
1066- Beta 6 initial build.
1067- Use make install-all-headers instead of cpio hack for devel headers.
1068- Split out the libs into the libs subpackage.
1069- Updated initscript to use pg_ctl to stop
1070- Updated initscript to initdb and start postmaster with LC_ALL=C to
1071  prevent index corruption.
1072
1073
1074* Sun Jan 28 2001 Lamar Owen <lamar@postgresql.org>
1075- Beta4
1076- Return to 'pgsql' directories instead of 'postgresql'
1077- Better perl patches.
1078
1079* Mon Jan 15 2001 Lamar Owen <lamar@postgresql.org>
1080- Edit patches to get rid of some cruft.
1081- Eliminate some more pre-7.1 specfile baggage that is no longer necessary.
1082- Moved pg_id to server
1083- added Makefile.global and pg_config to devel
1084- Corrected /usr/include/pgsql to /usr/include/postgresql
1085- Fixed some configure options.  Will be trying the configure macro next release
1086- Since it is terminally ill in this version pg_upgrade is _gone_.
1087- Thanks to Peter E for a good review.
1088
1089* Sun Jan 14 2001 Lamar Owen <lamar@postgresql.org>
1090- Running regression. 1 on the release-o-meter.
1091- Minor patches to get regression running right. 
1092- Initscript tweaking -- the old test for a database structure fails with 7.1's new structure.
1093
1094* Sat Jan 13 2001 Lamar Owen <lamar@postgresql.org>
1095- Perl 5 needs to be built with PREFIX set on the Makefile, not GNUmakefile....
1096- The 7.1 build is different from the 7.0 build -- see the configure line.
1097- NOTE: many files that used to be in /usr/share/postgresql are now in /usr/share/postgresql!
1098- by request, conditional packages are now supported. See the top of the spec.
1099- Fixed the server postinstall problems.
1100
1101* Mon Jan 08 2001 Lamar Owen <lamar@postgresql.org>
1102- First 7.1 beta test-build
1103
Note: See TracBrowser for help on using the repository browser.