View Issue Details

IDProjectCategoryView StatusLast Update
0000113Pgpool-IIEnhancementpublic2014-09-15 17:52
ReporterAndorAssigned Tot-ishii 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionopen 
Product Version 
Target VersionFixed in Version 
Summary0000113: Split rpm packages also to "pgpool-II-${pg_version}-extensions"
DescriptionOn host with postgresql i dont need install full pgpool distribution, only extenstions.
I wrote small patch thats split builed rpms to "pgpool-II-${pg_version}-extensions"
TagsNo tags attached.

Activities

Andor

2014-09-08 16:51

reporter  

0001-split-packages-pgpool-extensions.patch (2,620 bytes)
From 21ef8e6dcca7210566afcab6cf6d5badff155187 Mon Sep 17 00:00:00 2001
From: Andrew N Golovkov <andor000@yandex.ru>
Date: Tue, 2 Sep 2014 15:44:22 +0400
Subject: [PATCH] split packages to pgpool, pgpool-devel and pgpool-extensions

---
 pgpool.spec | 26 ++++++++++++++++++--------
 1 file changed, 18 insertions(+), 8 deletions(-)

diff --git a/pgpool.spec b/pgpool.spec
index 1d149c2..689f240 100644
--- a/pgpool.spec
+++ b/pgpool.spec
@@ -4,6 +4,7 @@
 # expecting RPM name are:
 #   pgpool-II-pg{xx}-{version}.pgdg.{arch}.rpm
 #   pgpool-II-pg{xx}-devel-{version}.pgdg.{arch}.rpm
+#   pgpool-II-pg{xx}-extensions-{version}.pgdg.{arch}.rpm
 #   pgpool-II-pg{xx}-{version}.pgdg.src.rpm
 
 Summary:        Pgpool is a connection pooling/replication server for PostgreSQL
@@ -51,6 +52,12 @@ Requires:    %{name} = %{version}
 %description devel
 Development headers and libraries for pgpool-II.
 
+%package extensions
+Summary:     Postgersql extensions for pgpool-II
+Group:       Applications/Databases
+%description extensions
+Postgresql extensions libraries and sql files for pgpool-II.
+
 %prep
 %setup -q -n %{archive_name}
 %patch1 -p0
@@ -125,18 +132,10 @@ fi
 %{_datadir}/pgpool-II/insert_lock.sql
 %{_datadir}/pgpool-II/system_db.sql
 %{_datadir}/pgpool-II/pgpool.pam
-%{pghome}/share/extension/pgpool-recovery.sql
-%{pghome}/share/extension/pgpool_recovery--1.0.sql
-%{pghome}/share/extension/pgpool_recovery.control
-%{pghome}/share/extension/pgpool-regclass.sql
-%{pghome}/share/extension/pgpool_regclass--1.0.sql
-%{pghome}/share/extension/pgpool_regclass.control
 %{_sysconfdir}/pgpool-II/pgpool.conf.sample-master-slave
 %{_sysconfdir}/pgpool-II/pgpool.conf.sample-replication
 %{_sysconfdir}/pgpool-II/pgpool.conf.sample-stream
 %{_libdir}/libpcp.so.*
-%{pghome}/lib/pgpool-recovery.so
-%{pghome}/lib/pgpool-regclass.so
 %{_initrddir}/pgpool
 %attr(764,root,root) %config(noreplace) %{_sysconfdir}/pgpool-II/*.conf
 %config(noreplace) %{_sysconfdir}/sysconfig/pgpool
@@ -149,6 +148,17 @@ fi
 %{_includedir}/pool_type.h
 %{_libdir}/libpcp.so
 
+%files extensions
+%defattr(-,root,root,-)
+%{pghome}/share/extension/pgpool-recovery.sql
+%{pghome}/share/extension/pgpool_recovery--1.0.sql
+%{pghome}/share/extension/pgpool_recovery.control
+%{pghome}/share/extension/pgpool-regclass.sql
+%{pghome}/share/extension/pgpool_regclass--1.0.sql
+%{pghome}/share/extension/pgpool_regclass.control
+%{pghome}/lib/pgpool-recovery.so
+%{pghome}/lib/pgpool-regclass.so
+
 %changelog
 * Tue Nov 26 2013 Nozomi Anzai <anzai@sraoss.co.jp> 3.3.1-1
 - Improved to specify the versions of pgool-II and PostgreSQL
-- 
1.9.1

t-ishii

2014-09-11 10:02

developer   ~0000471

Thanks. I will look into this.

t-ishii

2014-09-15 17:51

developer   ~0000472

Done. Patch committed to V3_3_STABLE.

Issue History

Date Modified Username Field Change
2014-09-08 16:51 Andor New Issue
2014-09-08 16:51 Andor File Added: 0001-split-packages-pgpool-extensions.patch
2014-09-11 10:02 t-ishii Note Added: 0000471
2014-09-11 10:02 t-ishii Assigned To => t-ishii
2014-09-11 10:02 t-ishii Status new => assigned
2014-09-15 17:51 t-ishii Note Added: 0000472
2014-09-15 17:52 t-ishii Status assigned => resolved