Red Hat / Fedora Core spec file for pgpool-ha, per David Fetter and Devrim Gunduz
authorDevrim GÜNDÜZ <devrim at gunduz.org>
Wed, 11 Oct 2006 07:50:14 +0000 (07:50 +0000)
committerDevrim GÜNDÜZ <devrim at gunduz.org>
Wed, 11 Oct 2006 07:50:14 +0000 (07:50 +0000)
pgpool-ha.spec [new file with mode: 0644]

diff --git a/pgpool-ha.spec b/pgpool-ha.spec
new file mode 100644 (file)
index 0000000..a2bf263
--- /dev/null
@@ -0,0 +1,49 @@
+Summary:       Pgpool-HA uses heartbeat to keep pgpool from being a single point of failure
+Name:          pgpool-ha
+Version:       1.0.0
+Release:       2%{?dist}
+License:       BSD
+Vendor:                PgPool Global Development Group
+Group:         Applications/Databases
+URL:           http://pgpool.projects.PostgreSQL.org
+Source0:       http://pgfoundry.org/frs/download.php/1124/%{name}-%{version}.tar.bz2
+BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Requires:      heartbeat >= 2.0
+BuildArch:     noarch
+
+%description
+Pgpool-HA combines pgpool with heartbeat. Pgpool is a replication
+server of PostgreSQL and makes reliability, but the pgpool server is
+always a single point failure.  Pgpool-HA uses heartbeat to eliminate
+this.
+
+%prep
+%setup -q -n %{name}-%{version}
+
+%build
+%configure --bindir=%{_bindir} --sysconfdir=%{_sysconfdir} --mandir=%{_mandir} --libdir=%{_libdir}
+
+%install
+rm -rf %{buildroot}
+cd src
+make %{?smp_flags} install
+install -d %{buildroot}%{_bindir}
+install -d %{buildroot}%{_sysconfdir}/ha.d/resource.d/heartbeat/
+install -m 755 pgpool.monitor %{buildroot}%{_bindir}/pgpool.monitor
+install -m 755 pgpool %{buildroot}%{_sysconfdir}/ha.d/resource.d/heartbeat/pgpool
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-,root,root,-)
+%{_bindir}/pgpool.monitor
+%{_sysconfdir}/ha.d/resource.d/heartbeat/pgpool
+%doc AUTHORS COPYING INSTALL README.ja ChangeLog doc README 
+
+%changelog
+* Tue Oct 10 2006 Devrim GUNDUZ <devrim@CommandPrompt.com> 1.0.0-2
+- Some fixes to spec file
+
+* Tue Oct 10 2006 David Fetter <david@fetter.org> 1.0.0-1
+- Initial build pgpool-HA 1.0.0 for PgPool Global Development Group