SPECS: postgresql.spec - introduced pgcluster bcond, turned off by...
blues
blues at pld-linux.org
Thu Dec 6 23:46:06 CET 2007
Author: blues Date: Thu Dec 6 22:46:06 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- introduced pgcluster bcond, turned off by default, needs a lot of tests
and some work with init-scripts
---- Files affected:
SPECS:
postgresql.spec (1.393 -> 1.394)
---- Diffs:
================================================================
Index: SPECS/postgresql.spec
diff -u SPECS/postgresql.spec:1.393 SPECS/postgresql.spec:1.394
--- SPECS/postgresql.spec:1.393 Thu Nov 1 21:49:49 2007
+++ SPECS/postgresql.spec Thu Dec 6 23:46:01 2007
@@ -1,13 +1,20 @@
# $Revision$, $Date$
+# TODO:
+# - init scripts for pgclusters lb and replicate
#
# Conditional build:
-%bcond_without tests # disable testing
-%bcond_without tcl # disables Tcl support
%bcond_without kerberos5 # disable kerberos5 support
-%bcond_without perl # disable Perl support
%bcond_without python # disable Python support
+%bcond_without perl # disable Perl support
+%bcond_without tcl # disables Tcl support
+%bcond_without tests # disable testing
%bcond_with absolute_dbpaths # enable absolute paths to create database
# (disabled by default because it is a security risk)
+%bcond_with pgcluster # enable pgcluster support
+# Fails tests because of cluster turned off:
+%if %{with pgcluster}
+%undefine with_tests
+%endif
# NOTE: merge from POSTGRESQL_8_3 branch when 8.3 arrives
@@ -23,7 +30,8 @@
Summary(zh_CN.UTF-8): PostgreSQL 客户端程序和库文件
Name: postgresql
Version: 8.2.5
-Release: 2
+%define pgcluster_version 1.7.0rc7
+Release: 2.1
License: BSD
Group: Applications/Databases
Source0: ftp://ftp.postgresql.org/pub/source/v%{version}/%{name}-%{version}.tar.bz2
@@ -38,6 +46,8 @@
Patch4: %{name}-ecpg-includedir.patch
Patch5: %{name}-pg_ctl-fix.patch
Patch6: %{name}-825_planner_regression.patch
+# Sources from: http://ftp.man.poznan.pl/postgresql/projects/pgFoundry/pgcluster/
+Patch7: %{name}-pgcluster-%{pgcluster_version}.patch
URL: http://www.postgresql.org/
BuildRequires: autoconf
BuildRequires: automake
@@ -419,6 +429,74 @@
Тепер пакети з бібліотеками для різних мов програмування (C, C++, Perl
і Tcl) розділені. Цей пакет містить тільки бібліотеки для мови C.
+%if %{with pgcluster}
+%package lb
+Summary: PGCluster - synchronous replication system of the multi-master composition for PostgreSQL
+Group: Applications/Databases
+Requires: %{name}-libs = %{version}-%{release}
+Requires: pgcluster = %{pgcluster_version}
+Provides: pgcluster-lb = %{pgcluster_version}
+
+%description lb
+PGCluster is the synchronous replication system of the multi-master
+composition for PostgreSQL.
+
+PGCluster is the replication system of the query base using
+PostgreSQL.
+
+- Since a replication system is a synchronous replication, delay does
+ not occur with the data duplicate between the Cluster DBs.
+- Since a server is multi-master composition, two or more the Cluster
+ DBs can receive access from a user simultaneously.
+
+PGCluster consists of three kinds of servers, a load balancer, Cluster
+DB, and a replication server.
+
+%package replicate
+Summary: PGCluster - synchronous replication system of the multi-master composition for PostgreSQL
+Group: Applications/Databases
+Requires: %{name}-libs = %{version}-%{release}
+Requires: pgcluster = %{pgcluster_version}
+Provides: pgcluster-replicate = %{pgcluster_version}
+
+%description replicate
+PGCluster is the synchronous replication system of the multi-master
+composition for PostgreSQL.
+
+PGCluster is the replication system of the query base using
+PostgreSQL.
+
+- Since a replication system is a synchronous replication, delay does
+ not occur with the data duplicate between the Cluster DBs.
+- Since a server is multi-master composition, two or more the Cluster
+ DBs can receive access from a user simultaneously.
+
+PGCluster consists of three kinds of servers, a load balancer, Cluster
+DB, and a replication server.
+
+%package replicate-tools
+Summary: PGCluster - synchronous replication system of the multi-master composition for PostgreSQL
+Group: Applications/Databases
+Requires: %{name}-libs = %{version}-%{release}
+Requires: pgcluster = %{pgcluster_version}
+Provides: pgcluster-replicate = %{pgcluster_version}
+
+%description replicate-tools
+PGCluster is the synchronous replication system of the multi-master
+composition for PostgreSQL.
+
+PGCluster is the replication system of the query base using
+PostgreSQL.
+
+- Since a replication system is a synchronous replication, delay does
+ not occur with the data duplicate between the Cluster DBs.
+- Since a server is multi-master composition, two or more the Cluster
+ DBs can receive access from a user simultaneously.
+
+PGCluster consists of three kinds of servers, a load balancer, Cluster
+DB, and a replication server.
+%endif
+
%package doc
Summary: Documentation for PostgreSQL
Summary(pl.UTF-8): Dodatkowa dokumantacja dla PostgreSQL
@@ -439,6 +517,7 @@
Summary(pt_BR.UTF-8): Biblioteca compartilhada do PostgreSQL
Summary(zh_CN.UTF-8): PostgreSQL 客户所需要的共享库
Group: Libraries
+%{?with_pgcluster:Provides: pgcluster = %{pgcluster_version}}
%description libs
PostgreSQL shared libraries.
@@ -760,6 +839,7 @@
%patch4 -p1
%patch5 -p1
%patch6 -p0
+%{?with_pgcluster:%patch7 -p1}
tar xzf doc/man*.tar.gz
@@ -1062,6 +1142,23 @@
%{_mandir}/man1/vacuumdb.1*
%{_mandir}/man7/*.7*
+%if %{with pgcluster}
+%files lb
+%defattr(644,root,root,755)
+%doc INSTALL_PGCLUSTER src/pgcluster/pglb/AUTHORS src/pgcluster/pglb/pglb.conf.sample
+%attr(755,root,root) %{_bindir}/pglb
+
+%files replicate
+%defattr(644,root,root,755)
+%doc INSTALL_PGCLUSTER src/pgcluster/pgrp/AUTHORS src/pgcluster/pgrp/pgreplicate.conf.sample
+%attr(755,root,root) %{_bindir}/pgreplicate
+
+%files replicate-tools
+%defattr(644,root,root,755)
+%doc src/pgcluster/tool/pgcbench.sh src/pgcluster/tool/README.jp src/pgcluster/tool/tpc-b_like.sql
+%attr(755,root,root) %{_bindir}/pgcbench
+%endif
+
%files module-plpgsql
%defattr(644,root,root,755)
%attr(755,root,root) %{_pgmoduledir}/plpgsql.so
@@ -1137,6 +1234,10 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.394 2007-12-06 22:46:01 blues
+- introduced pgcluster bcond, turned off by default, needs a lot of tests
+ and some work with init-scripts
+
Revision 1.393 2007-11-01 20:49:49 radek
- release 2: added -825_planner_regression.patch
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/postgresql.spec?r1=1.393&r2=1.394&f=u
More information about the pld-cvs-commit
mailing list