pgpool2.git / summary / log / commit / refs
commit 5cdeffd83f46c9787fa72255d5142489e938699c
Author: Devrim GÜNDÜZ <devrim at gunduz.org>
Date: Tue Feb 20 09:20:25 2007 +0000
- Update to 1.0.2-1
- Fix various build problems and prepared for Fedora Submission
----------------------------------------------------------------------
pgpool.spec | 86 ++++++++++++++++++++++++++++++++++++++++++-------------------
1 file changed, 60 insertions(+), 26 deletions(-)
diff --git a/pgpool.spec b/pgpool.spec
index 33a3522e3..b043b1f59 100644
--- a/pgpool.spec
+++ b/pgpool.spec
@@ -1,57 +1,83 @@
+%define short_name pgpool-II
+
Summary: Pgpool is a connection pooling/replication server for PostgreSQL
-Name: pgpool-II
-Version: 1.0.1
-Release: 5%{?dist}
+Name: postgresql-%{short_name}
+Version: 1.0.2
+Release: 1%{?dist}
License: BSD
-Vendor: PgPool Global Development Group
Group: Applications/Databases
-URL: http://pgpool.projects.PostgreSQL.org
-Source0: http://pgfoundry.org/frs/download.php/1083/%{name}-%{version}.tar.gz
+URL: http://pgpool.projects.PostgreSQL.org/pgpool-II/en
+Source0: http://pgfoundry.org/frs/download.php/1258/%{short_name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-Patch1: %{name}-configure.patch
+Requires: %{name}-libs = %{version}
%description
-pgpool-II is a connection pooling/replication server for PostgreSQL.
-pgpool-II runs between PostgreSQL's clients (front ends) and servers
-(backends). A PostgreSQL client can connect to pgpool-II as if it were
-a standard PostgreSQL server.
+pgpool-II is a inherited project of pgpool (to classify from
+pgpool-II, it is sometimes called as pgpool-I). For those of
+you not familiar with pgpool-I, it is a multi-functional
+middle ware for PostgreSQL that features connection pooling,
+replication and load balancing functions. pgpool-I allows a
+user to connect at most two PostgreSQL servers for higher
+availability or for higher search performance compared to a
+single PostgreSQL server.
+
+pgpool-II, on the other hand, allows multiple PostgreSQL
+servers (DB nodes) to be connected, which enables queries
+to be executed simultaneously on all servers. In other words,
+it enables "parallel query" processing. Also, pgpool-II can
+be started as pgpool-I by changing configuration parameters.
+pgpool-II that is executed in pgpool-I mode enables multiple
+DB nodes to be connected, which was not possible in pgpool-I.
+
+%package libs
+Summary: The libraries for pgpool-II
+Group: Development/Libraries
+
+%description libs
+The pgpool-II-libs package provides the essential shared libraries for pgpool
+program or its interface. You will need to install this package
+to use pgpool-II .
%package devel
-Summary: The devel headers of pgpool-II
+Summary: The development headers for pgpool-II
Group: Development/Libraries
-Requires: %{name}-%{version}
+Requires: %{name} = %{version}
%description devel
-The pgpool-II-devel package provides the essential shared libraries for pgpool
-program or its interface. You will need to install this package
-to use pgpool-II .
+The pgpool-II-devel package provides the essential development headers for
+pgpool program or its interface.
%prep
-%setup -q -n %{name}-%{version}
-%patch1 -p1
+%setup -q -n %{short_name}-%{version}
%build
CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS
CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS
-%configure --bindir=%{_bindir} --sysconfdir=%{_sysconfdir} --mandir=%{_mandir} --libdir=%{_libdir} --with-pgsql-includedir=%{_includedir}/pgsql --with-pgsql-lib=%{_libdir}/pgsql
+%configure
make %{?smp_flags}
%install
rm -rf %{buildroot}
make DESTDIR=%{buildroot} install
+install -d %{buildroot}%{_includedir}/
+install -d %{buildroot}/%{_datadir}/%{name}
install -m 644 pgpool.conf.sample %{buildroot}%{_sysconfdir}/
install -m 644 pgpool.8 %{buildroot}%{_mandir}/man8/
install -m 644 pcp/pcp.h %{buildroot}%{_includedir}/
-#install -m 755 pcp/.libs/libpcp.so* %{buildroot}%{_libdir}/
install -m 644 pool_type.h %{buildroot}%{_includedir}/
install -m 644 pcp/.libs/libpcp.a %{buildroot}%{_libdir}/
install -m 644 pcp/.libs/libpcp.la %{buildroot}%{_libdir}/
+install -m 644 sql/system_db.sql %{buildroot}/%{_datadir}/%{name}/system_db.sql
+rm -f %{buildroot}/%{_datadir}/system_db.sql
%clean
rm -rf %{buildroot}
+%post libs -p /sbin/ldconfig
+%postun libs -p /sbin/ldconfig
+
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
@@ -69,25 +95,32 @@ rm -rf %{buildroot}
%{_bindir}/pcp_systemdb_info
%{_bindir}/pg_md5
%{_mandir}/man8/*
-%{_datadir}/system_db.sql
-%{_libdir}/libpcp.so.0*
+%{_datadir}/%{name}/system_db.sql
%config(noreplace) %{_sysconfdir}/pgpool.conf.sample
%config(noreplace) %{_sysconfdir}/pcp.conf.sample
-%files devel
+%files libs
%defattr(-,root,root)
%{_libdir}/libpcp.la
-%{_libdir}/libpcp.a
+%{_libdir}/libpcp.so.*
+
+%files devel
+%defattr(-,root,root)
%{_includedir}/pcp.h
-%{_includedir}/pool_type.h
%{_libdir}/libpcp.so
+%{_libdir}/libpcp.a
+%{_includedir}/pool_type.h
%changelog
+* Tue Feb 20 2007 Devrim Gunduz <devrim@commandprompt.com> 1.0.2-1
+- Update to 1.0.2-1
+- Fix various build problems and prepared for Fedora Submission
+
* Mon Oct 02 2006 Devrim Gunduz <devrim@commandprompt.com> 1.0.1-5
- Rebuilt
* Mon Oct 02 2006 Devrim Gunduz <devrim@commandprompt.com> 1.0.1-4
-- Added -libs and -devel RPM
+- Added -libs and RPM
- Fix .so link problem
- Cosmetic changes to spec file
@@ -101,3 +134,4 @@ rm -rf %{buildroot}
* Thu Sep 21 2006 - David Fetter <david@fetter.org> 1.0.1-1
- Initial build pgpool-II 1.0.1 for PgPool Global Development Group
+
[parent: 311fe4c169da]