[Pgpool-hackers] .spec file for pgpool-II

David Fetter david at fetter.org
Fri Sep 22 06:55:17 UTC 2006


On Fri, Sep 22, 2006 at 03:29:28PM +0900, Tatsuo Ishii wrote:
> > Folks,
> > 
> > I have written a .spec file based on the latest pgpool .spec file but
> > applied to pgpool-II.  As I have very little experience with modern
> > RPM procedures, I am unsure whether it is reasonably correct, although
> > it builds on my FC5 machine.
> > 
> > Please find enclosed the file, and thanks in advance for any comments
> > on it. :)
> 
> I think you want to add files under doc directory. Also you might want
> to remove histories for pgpool.
> 
> BTW I have released pgpool-II 1.0.1 today. Some file names under doc
> directories are changed.

Next version attached.

Cheers,
Dave.
-- 
David Fetter <david at fetter.org> http://fetter.org/
phone: +1 415 235 3778        AIM: dfetter666
                              Skype: davidfetter

Remember to vote!
-------------- next part --------------
Summary:	Pgpool is a connection pooling/replication server for PostgreSQL
Name:		pgpool-II
Version:	1.0.1
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/1069/%{name}-%{version}.tar.gz
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires:	postgresql-server

%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.

%prep
%setup -q -n %{name}-%{version}
%build
CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS
CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS

%configure --bindir=%{_bindir} --sysconfdir=%{_sysconfdir} --mandir=%{_mandir} --libdir=%{_libdir}

make %{?smp_flags}

%install
rm -rf %{buildroot}
make DESTDIR=%{buildroot} install
install -m 755 pgpool %{buildroot}%{_bindir}
install -m 644 pgpool.conf.sample %{buildroot}%{_sysconfdir}
install -m 644 pgpool.8 %{buildroot}%{_mandir}/man8/

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc README README.euc_jp TODO COPYING INSTALL AUTHORS ChangeLog NEWS 
%{_bindir}/pgpool
%{_bindir}/pcp_attach_node
%{_bindir}/pcp_detach_node
%{_bindir}/pcp_node_count
%{_bindir}/pcp_node_info
%{_bindir}/pcp_proc_count
%{_bindir}/pcp_proc_info
%{_bindir}/pcp_stop_pgpool
%{_bindir}/pcp_systemdb_info
%{_bindir}/pg_md5
%{_includedir}/pcp.h
%{_includedir}/pool_type.h
%{_libdir}/libpcp.a
%{_libdir}/libpcp.la
%{_libdir}/libpcp.so
%{_libdir}/libpcp.so.0
%{_libdir}/libpcp.so.0.0.0
%config(noreplace) %{_sysconfdir}/pgpool.conf.sample
%config(noreplace) %{_sysconfdir}/pcp.conf.sample
%{_mandir}/man8/*
/usr/share/system_db.sql

%changelog
* Thu Sep 21 2006 - David Fetter <david at fetter.org> 1.0.1
- Initial build pgpool-II 1.0.1 for PgPool Global Development Group


More information about the Pgpool-hackers mailing list