|
@@ -14,12 +14,12 @@
|
|
|
%define nls 1
|
|
|
%define pam 1
|
|
|
|
|
|
-%define pgver 9.0
|
|
|
+%define pgver 9.3
|
|
|
|
|
|
Summary: PostgreSQL client programs and libraries.
|
|
|
Summary(ja): PostgreSQL のクライアントプログラム群およびライブラリ
|
|
|
Name: postgresql
|
|
|
-Version: %{pgver}.12
|
|
|
+Version: %{pgver}.4
|
|
|
Release: 1%{?_dist_release}
|
|
|
# Conventions for PostgreSQL Global Development Group RPM releases:
|
|
|
#
|
|
@@ -45,7 +45,7 @@ License: BSD
|
|
|
Group: Applications/Databases
|
|
|
Source0: ftp://ftp.postgresql.org/pub/source/v%{version}/postgresql-%{version}.tar.bz2
|
|
|
Source3: postgresql.init
|
|
|
-Source5: ftp://ftp.postgresql.org/pub/source/v%{version}/postgresql-%{version}.tar.bz2.md5
|
|
|
+Source5: ftp://ftp.postgresql.org/pub/source/v%{version}/postgresql-%{version}.tar.bz2.sha256
|
|
|
Source6: README.rpm-dist
|
|
|
Source15: postgresql-bashprofile
|
|
|
Patch2: postgresql-8.3.3-nls.patch
|
|
@@ -154,12 +154,14 @@ PostgreSQLサーバ上のPostgreSQLデータベースを管理するためのユ
|
|
|
はこのパッケージが必要です。またpostgresql-serverパッケージをインスト
|
|
|
ールする場合にも、このパッケージをインストールする必要があります。
|
|
|
|
|
|
+%if 0
|
|
|
%package libs
|
|
|
Summary: The shared libraries required for any PostgreSQL clients.
|
|
|
Summary(ja): PostgreSQL クライアントに必要な共有ライブラリ
|
|
|
Group: System Environment/Libraries
|
|
|
Obsoletes: postgresql7-libs
|
|
|
Conflicts: postgresql8-libs
|
|
|
+Conflicts: postgresql-libs >= 9.3.0
|
|
|
|
|
|
%description libs
|
|
|
The postgresql-libs package provides the essential shared libraries for any
|
|
@@ -173,6 +175,8 @@ postgresql-libs パッケージは、すべての PostgreSQL クライアント
|
|
|
PostgreSQL サーバに接続する必要のある、PostgreSQL パッケージやクライア
|
|
|
ントを使う場合には、このパッケージをインストールする必要があります。
|
|
|
|
|
|
+%endif
|
|
|
+
|
|
|
%package server
|
|
|
Summary: The programs needed to create and run a PostgreSQL server.
|
|
|
Summary(ja): PostgreSQL サーバを構築・実行するのに必要なプログラム
|
|
@@ -230,30 +234,37 @@ The postgresql-contrib package contains contributed packages that are
|
|
|
included in the PostgreSQL distribution.
|
|
|
|
|
|
%package devel
|
|
|
-Summary: PostgreSQL development header files and libraries.
|
|
|
-Summary(ja): PostgreSQL の開発用ヘッダファイルとライブラリ群
|
|
|
+Summary: PostgreSQL development header files.
|
|
|
+Summary(ja): PostgreSQL のサーバサイド開発用ヘッダファイル
|
|
|
Group: Development/Libraries
|
|
|
-Requires: %{name}-libs = %{version}
|
|
|
+Requires: %{name}-static = %{version}
|
|
|
Obsoletes: postgresql7-devel
|
|
|
Conflicts: postgresql8-devel
|
|
|
+Conflicts: libpq-devel >= 9.3.0
|
|
|
|
|
|
%description devel
|
|
|
-The postgresql-devel package contains the header files and libraries
|
|
|
-needed to compile C or C++ applications which will directly interact
|
|
|
-with a PostgreSQL database management server and the ecpg Embedded C
|
|
|
-Postgres preprocessor. You need to install this package if you want to
|
|
|
-develop applications which will interact with a PostgreSQL server. If
|
|
|
-you're installing postgresql-server, you need to install this
|
|
|
-package.
|
|
|
+The postgresql-devel package contains the header files needed to compile
|
|
|
+server-side C or C++ applications.
|
|
|
|
|
|
%description -l ja devel
|
|
|
-postgresql-devel パッケージには、PostgreSQL データベースと直接に会話
|
|
|
-するための C / C++ アプリケーションをコンパイルするのに必要なヘッダフ
|
|
|
-ァイルとライブラリ、および C 言語埋め込み型の PostgreSQL プリプロセサ
|
|
|
-が含まれています。PostgreSQL サーバと会話するアプリケーションを開発
|
|
|
-したい場合にはこのパッケージをインストールしてください。また、
|
|
|
-postgresql-server をインストールする場合、このパッケージもいっしょに
|
|
|
-インストールする必要があります。
|
|
|
+postgresql-devel パッケージには、PostgreSQL サーバサイド C / C++ アプリケー
|
|
|
+ションをコンパイルするために必要なヘッダファイルが含まれています。
|
|
|
+
|
|
|
+%package static
|
|
|
+Summary: PostgreSQL development libraries.
|
|
|
+Summary(ja): PostgreSQL のサーバサイド開発用ライブラリ
|
|
|
+Group: Development/Libraries
|
|
|
+Obsoletes: postgresql7-devel
|
|
|
+Conflicts: postgresql8-devel
|
|
|
+Conflicts: libpq-devel >= 9.3.0
|
|
|
+
|
|
|
+%description static
|
|
|
+The postgresql-static package contains libraries needed to compile
|
|
|
+ server-side C or C++ applications.
|
|
|
+
|
|
|
+%description -l ja static
|
|
|
+postgresql-static パッケージには、PostgreSQL サーバサイド C / C++ アプリケー
|
|
|
+ションをコンパイルするために必要なライブラリが含まれています。
|
|
|
|
|
|
#------------
|
|
|
%if %pls
|
|
@@ -315,6 +326,10 @@ CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS
|
|
|
|
|
|
# Strip out -ffast-math from CFLAGS....
|
|
|
|
|
|
+# to link libpq statically.
|
|
|
+LIBPQ_PATH=`pwd`/src/interfaces/libpq/libpq.a
|
|
|
+perl -pi -e "s|^libpq = .+\$|libpq = $LIBPQ_PATH -lpthread|" src/Makefile.global.in
|
|
|
+
|
|
|
CFLAGS=`echo $CFLAGS|xargs -n 1|grep -v ffast-math|xargs -n 100`
|
|
|
|
|
|
./configure \
|
|
@@ -366,6 +381,9 @@ make %{?_smp_mflags} -C contrib all
|
|
|
%install
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
+# exclude client libraries.
|
|
|
+perl -pi -e 's/^\tinterfaces \\\n//' src/Makefile
|
|
|
+
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
make -C contrib DESTDIR=$RPM_BUILD_ROOT install
|
|
|
|
|
@@ -419,7 +437,7 @@ install -m 644 ./doc/src/sgml/man7/* $RPM_BUILD_ROOT/%{_mandir}/man7
|
|
|
|
|
|
|
|
|
%find_lang initdb-%{pgver}
|
|
|
-%find_lang libpq5-%{pgver}
|
|
|
+%find_lang pg_basebackup-%{pgver}
|
|
|
%find_lang pg_config-%{pgver}
|
|
|
%find_lang pg_controldata-%{pgver}
|
|
|
%find_lang pg_ctl-%{pgver}
|
|
@@ -432,31 +450,28 @@ install -m 644 ./doc/src/sgml/man7/* $RPM_BUILD_ROOT/%{_mandir}/man7
|
|
|
%find_lang scripts-%{pgver}
|
|
|
%endif
|
|
|
|
|
|
-%find_lang ecpg-%{pgver}
|
|
|
-%find_lang ecpglib6-%{pgver}
|
|
|
%find_lang plperl-%{pgver}
|
|
|
%find_lang plpgsql-%{pgver}
|
|
|
%find_lang plpython-%{pgver}
|
|
|
%find_lang pltcl-%{pgver}
|
|
|
|
|
|
-cat libpq5-%{pgver}.lang > libpq.lst
|
|
|
cat psql-%{pgver}.lang pg_dump-%{pgver}.lang > main.lst
|
|
|
cat pg_config-%{pgver}.lang > devel.lst
|
|
|
-cat initdb-%{pgver}.lang pg_ctl-%{pgver}.lang postgres-%{pgver}.lang \
|
|
|
- pg_resetxlog-%{pgver}.lang pg_controldata-%{pgver}.lang > server.lst
|
|
|
+cat initdb-%{pgver}.lang pg_basebackup-%{pgver}.lang pg_ctl-%{pgver}.lang \
|
|
|
+ postgres-%{pgver}.lang pg_resetxlog-%{pgver}.lang \
|
|
|
+ pg_controldata-%{pgver}.lang > server.lst
|
|
|
%ifarch !x86_64
|
|
|
cat scripts-%{pgver}.lang >> server.lst
|
|
|
%endif
|
|
|
|
|
|
-cat ecpg-%{pgver}.lang ecpglib6-%{pgver}.lang >> devel.lst
|
|
|
+#cat ecpg-%{pgver}.lang ecpglib6-%{pgver}.lang >> devel.lst
|
|
|
cat plperl-%{pgver}.lang > pl.lst
|
|
|
cat plpgsql-%{pgver}.lang >> pl.lst
|
|
|
cat plpython-%{pgver}.lang >> pl.lst
|
|
|
cat pltcl-%{pgver}.lang > tcl.lst
|
|
|
|
|
|
-
|
|
|
-%post libs -p /sbin/ldconfig
|
|
|
-%postun libs -p /sbin/ldconfig
|
|
|
+mv -f %{buildroot}%{_docdir}/postgresql/extension ./
|
|
|
+rm -f %{buildroot}%{_mandir}/man1/ecpg.*
|
|
|
|
|
|
%pre server
|
|
|
groupadd -g 26 -o -r postgres >/dev/null 2>&1 || :
|
|
@@ -510,7 +525,7 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
%files -f main.lst
|
|
|
%defattr(-,root,root)
|
|
|
-%doc doc/KNOWN_BUGS doc/MISSING_FEATURES doc/README*
|
|
|
+%doc doc/KNOWN_BUGS doc/MISSING_FEATURES
|
|
|
%doc COPYRIGHT README HISTORY INSTALL doc/bug.template
|
|
|
%doc README.rpm-dist
|
|
|
##doc doc/html
|
|
@@ -521,15 +536,12 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
%{_bindir}/dropdb
|
|
|
%{_bindir}/droplang
|
|
|
%{_bindir}/dropuser
|
|
|
-%{_bindir}/pg_archivecleanup
|
|
|
%{_bindir}/pg_dump
|
|
|
%{_bindir}/pg_dumpall
|
|
|
-%{_bindir}/pg_upgrade
|
|
|
%{_bindir}/pg_restore
|
|
|
%{_bindir}/psql
|
|
|
%{_bindir}/reindexdb
|
|
|
%{_bindir}/vacuumdb
|
|
|
-%{_bindir}/vacuumlo
|
|
|
%{_mandir}/man1/clusterdb.*
|
|
|
%{_mandir}/man1/createdb.*
|
|
|
%{_mandir}/man1/createlang.*
|
|
@@ -545,6 +557,8 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
%{_mandir}/man1/vacuumdb.*
|
|
|
%{_mandir}/man3/*
|
|
|
%{_mandir}/man7/*
|
|
|
+
|
|
|
+
|
|
|
%{_localedir}/*/LC_MESSAGES/pgscripts-%{pgver}.mo
|
|
|
|
|
|
%files docs
|
|
@@ -553,9 +567,10 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
%files contrib
|
|
|
%defattr(-,root,root)
|
|
|
-%doc %{_defaultdocdir}/postgresql/contrib/*.example
|
|
|
+%doc contrib/README contrib/spi/*.example
|
|
|
%{_libdir}/postgresql/_int.so
|
|
|
%{_libdir}/postgresql/adminpack.so
|
|
|
+%{_libdir}/postgresql/auth_delay.so
|
|
|
%{_libdir}/postgresql/auto_explain.so
|
|
|
%{_libdir}/postgresql/autoinc.so
|
|
|
%{_libdir}/postgresql/btree_gin.so
|
|
@@ -566,7 +581,9 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
%{_libdir}/postgresql/dblink.so
|
|
|
%{_libdir}/postgresql/dict_int.so
|
|
|
%{_libdir}/postgresql/dict_xsyn.so
|
|
|
+%{_libdir}/postgresql/dummy_seclabel.so
|
|
|
%{_libdir}/postgresql/earthdistance.so
|
|
|
+%{_libdir}/postgresql/file_fdw.so
|
|
|
%{_libdir}/postgresql/fuzzystrmatch.so
|
|
|
%{_libdir}/postgresql/hstore.so
|
|
|
%{_libdir}/postgresql/insert_username.so
|
|
@@ -585,42 +602,66 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
%{_libdir}/postgresql/pgcrypto.so
|
|
|
%{_libdir}/postgresql/pgrowlocks.so
|
|
|
%{_libdir}/postgresql/pgstattuple.so
|
|
|
-%{_libdir}/postgresql/plpgsql.so
|
|
|
+%{_libdir}/postgresql/postgres_fdw.so
|
|
|
%{_libdir}/postgresql/refint.so
|
|
|
%{_libdir}/postgresql/seg.so
|
|
|
%{_libdir}/postgresql/sslinfo.so
|
|
|
%{_libdir}/postgresql/tablefunc.so
|
|
|
+%{_libdir}/postgresql/tcn.so
|
|
|
%{_libdir}/postgresql/test_parser.so
|
|
|
%{_libdir}/postgresql/timetravel.so
|
|
|
%{_libdir}/postgresql/tsearch2.so
|
|
|
%{_libdir}/postgresql/unaccent.so
|
|
|
-%{_datadir}/pgsql/contrib/
|
|
|
+%{_libdir}/postgresql/worker_spi.so
|
|
|
%{_bindir}/oid2name
|
|
|
+%{_bindir}/pg_archivecleanup
|
|
|
+%{_bindir}/pg_test_fsync
|
|
|
+%{_bindir}/pg_test_timing
|
|
|
+%{_bindir}/pg_standby
|
|
|
+%{_bindir}/pg_upgrade
|
|
|
+%{_bindir}/pg_xlogdump
|
|
|
%{_bindir}/pgbench
|
|
|
%{_bindir}/vacuumlo
|
|
|
-
|
|
|
+%{_mandir}/man1/oid2name.*
|
|
|
+%{_mandir}/man1/pg_archivecleanup.*
|
|
|
+%{_mandir}/man1/pg_standby.*
|
|
|
+%{_mandir}/man1/pg_test_fsync.*
|
|
|
+%{_mandir}/man1/pg_test_timing.*
|
|
|
+%{_mandir}/man1/pg_upgrade.*
|
|
|
+%{_mandir}/man1/pg_xlogdump.*
|
|
|
+%{_mandir}/man1/pgbench.*
|
|
|
+%{_mandir}/man1/vacuumlo.*
|
|
|
+
|
|
|
+%if 0
|
|
|
%files libs -f libpq5-%{pgver}.lang
|
|
|
%defattr(-,root,root)
|
|
|
%{_libdir}/libecpg.so.*
|
|
|
%{_libdir}/libecpg_compat.so.*
|
|
|
%{_libdir}/libpgtypes.so.*
|
|
|
%{_libdir}/libpq.so.*
|
|
|
+%endif
|
|
|
|
|
|
%files server -f server.lst
|
|
|
%defattr(-,root,root)
|
|
|
+%doc extension
|
|
|
%{_sysconfdir}/rc.d/init.d/postgresql
|
|
|
%dir %{_sysconfdir}/sysconfig/pgsql
|
|
|
%{_bindir}/initdb
|
|
|
+%{_bindir}/pg_basebackup
|
|
|
%{_bindir}/pg_controldata
|
|
|
%{_bindir}/pg_ctl
|
|
|
+%{_bindir}/pg_isready
|
|
|
+%{_bindir}/pg_receivexlog
|
|
|
%{_bindir}/pg_resetxlog
|
|
|
-%{_bindir}/pg_standby
|
|
|
%{_bindir}/postgres
|
|
|
%{_bindir}/postmaster
|
|
|
%{_mandir}/man1/initdb.*
|
|
|
##{_mandir}/man1/ipcclean.*
|
|
|
+%{_mandir}/man1/pg_basebackup.*
|
|
|
%{_mandir}/man1/pg_controldata.*
|
|
|
%{_mandir}/man1/pg_ctl.*
|
|
|
+%{_mandir}/man1/pg_isready.*
|
|
|
+%{_mandir}/man1/pg_receivexlog.*
|
|
|
%{_mandir}/man1/pg_resetxlog.*
|
|
|
%{_mandir}/man1/postgres.*
|
|
|
%{_mandir}/man1/postmaster.*
|
|
@@ -628,6 +669,7 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
%{_libdir}/postgresql/plpgsql.so
|
|
|
%{_libdir}/postgresql/*_and_*.so
|
|
|
%{_libdir}/postgresql/euc2004_sjis2004.so
|
|
|
+%{_datadir}/pgsql/extension
|
|
|
%{_datadir}/pgsql/*.sql
|
|
|
%{_datadir}/pgsql/postgres.bki
|
|
|
%{_datadir}/pgsql/postgres.description
|
|
@@ -646,22 +688,15 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
%files devel -f devel.lst
|
|
|
%defattr(-,root,root)
|
|
|
-%{_includedir}/*
|
|
|
-%{_bindir}/ecpg
|
|
|
+%{_includedir}/pgsql
|
|
|
%{_bindir}/pg_config
|
|
|
-%{_libdir}/libecpg.a
|
|
|
-%{_libdir}/libecpg.so
|
|
|
-%{_libdir}/libecpg_compat.a
|
|
|
-%{_libdir}/libecpg_compat.so
|
|
|
-%{_libdir}/libpgport.a
|
|
|
-%{_libdir}/libpgtypes.a
|
|
|
-%{_libdir}/libpgtypes.so
|
|
|
-%{_libdir}/libpq.a
|
|
|
-%{_libdir}/libpq.so
|
|
|
-%{_libdir}/postgresql/pgxs/*
|
|
|
-%{_mandir}/man1/ecpg.*
|
|
|
+%{_libdir}/postgresql/pgxs
|
|
|
%{_mandir}/man1/pg_config.*
|
|
|
|
|
|
+%files static
|
|
|
+%{_libdir}/libpgcommon.a
|
|
|
+%{_libdir}/libpgport.a
|
|
|
+
|
|
|
%if %tcl
|
|
|
%files tcl -f tcl.lst
|
|
|
%defattr(-,root,root)
|
|
@@ -681,7 +716,7 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
%{_datadir}/pgsql/unknown.pltcl
|
|
|
%endif
|
|
|
%if %plpython
|
|
|
-%{_libdir}/postgresql/plpython.so
|
|
|
+#%{_libdir}/postgresql/plpython.so
|
|
|
%{_libdir}/postgresql/plpython2.so
|
|
|
%endif
|
|
|
%endif
|
|
@@ -694,6 +729,13 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
%endif
|
|
|
|
|
|
%changelog
|
|
|
+* Tue Apr 1 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 9.3.4-1
|
|
|
+- new upstream release.
|
|
|
+
|
|
|
+* Sun Dec 01 2013 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 9.3.1-1
|
|
|
+- new upstream release.
|
|
|
+- built without client libraries.
|
|
|
+
|
|
|
* Thu Feb 21 2013 IWAI, Masaharu <iwai@alib.jp> 9.0.12-1
|
|
|
- new upstream release
|
|
|
|
|
@@ -859,7 +901,7 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
- update nls patch(es)
|
|
|
- (this package revision was rejected by Vine Project)
|
|
|
|
|
|
-* Fri Dec 04 2004 HOTTA Michihide <hotta@net-newbie.com> 7.4.6-0vl2
|
|
|
+* Sat Dec 04 2004 HOTTA Michihide <hotta@net-newbie.com> 7.4.6-0vl2
|
|
|
- upstream release
|
|
|
- new JDBC driver
|
|
|
- add BuildRequires: bison, flex, pam-devel
|
|
@@ -969,21 +1011,21 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
- (See below for old changelogs from VineSeed)
|
|
|
|
|
|
-* Wed Oct 04 2002 HOTTA Michihide <hotta@net-newbie.com> 7.2.3-0vl1
|
|
|
+* Fri Oct 04 2002 HOTTA Michihide <hotta@net-newbie.com> 7.2.3-0vl1
|
|
|
- updated to 7.2.3.
|
|
|
|
|
|
-* Wed Sep 10 2002 HOTTA Michihide <hotta@net-newbie.com> 7.2.2-0vl3
|
|
|
+* Tue Sep 10 2002 HOTTA Michihide <hotta@net-newbie.com> 7.2.2-0vl3
|
|
|
- absorbed previous patch8 into original nlspatch
|
|
|
- fixed configure options (--enable-nls and --enable-locale to be antinomy)
|
|
|
|
|
|
-* Tue Aug 30 2002 Shoji Matsumoto <shom@vinelinux.org> 7.2.2-0vl2
|
|
|
+* Fri Aug 30 2002 Shoji Matsumoto <shom@vinelinux.org> 7.2.2-0vl2
|
|
|
- add patch8 (ja.po for psql was invalid)
|
|
|
|
|
|
-* Wed Aug 29 2002 HOTTA Michihide <hotta@net-newbie.com> 7.2.2-0vl1
|
|
|
+* Thu Aug 29 2002 HOTTA Michihide <hotta@net-newbie.com> 7.2.2-0vl1
|
|
|
- updated to 7.2.2.
|
|
|
- improved nlspatch to enable japanese SQL help in psql.
|
|
|
|
|
|
-* Wed Jul 06 2002 HOTTA Michihide <hotta@net-newbie.com> 7.2.1-5vl3
|
|
|
+* Sat Jul 06 2002 HOTTA Michihide <hotta@net-newbie.com> 7.2.1-5vl3
|
|
|
- fixed garbage chars in description(ja).
|
|
|
|
|
|
* Wed Jul 03 2002 HOTTA Michihide <hotta@net-newbie.com> 7.2.1-5vl2
|
|
@@ -1004,7 +1046,7 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
* Sun Mar 03 2002 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net>
|
|
|
- add /usr/bin/pg_id to the package (fix)
|
|
|
|
|
|
-* Sat Mar 01 2002 Satoshi MACHINO <machino@vinelinux.org> 7.2-0vl1
|
|
|
+* Fri Mar 01 2002 Satoshi MACHINO <machino@vinelinux.org> 7.2-0vl1
|
|
|
- updated 7.2
|
|
|
- added nls.patch
|
|
|
- fixed spec file
|