Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 612981 Details for
Bug 845394
pgpool-II spec file enhancements for easy build of the package for EPEL + addition of "recovery" subpackage
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Updated Full SPEC file as used on RHEL6
postgresql-pgpool-II.spec (text/plain), 12.20 KB, created by
Dmitry S. Makovey
on 2012-09-14 19:52:03 UTC
(
hide
)
Description:
Updated Full SPEC file as used on RHEL6
Filename:
MIME Type:
Creator:
Dmitry S. Makovey
Created:
2012-09-14 19:52:03 UTC
Size:
12.20 KB
patch
obsolete
>%define short_name pgpool-II >%if 0%{?rhel} && 0%{?rhel} <= 6 >%define systemd_enabled 0 >%else >%define systemd_enabled 1 >%endif >## %global systemd_present %([ -d /run/lock ] && rpm --quiet -qf /run/lock && echo 1 || echo 0) > >Summary: Pgpool is a connection pooling/replication server for PostgreSQL >Name: postgresql-%{short_name} >Version: 3.1.2 >Release: 1%{?dist}.4au >License: BSD >Group: Applications/Databases >URL: http://pgpool.projects.PostgreSQL.org >Source0: http://pgfoundry.org/frs/download.php/3114/%{short_name}-%{version}.tar.gz >Source1: pgpool.service >Source2: pgpool.sysconfig >Source3: pgpool.init >Patch1: pgpool-3.1-conf.sample.patch >BuildRequires: postgresql-devel pam-devel >%if %{systemd_enabled} >BuildRequires: systemd-units >Requires(post): systemd-sysv >Requires(post): systemd-units >Requires(preun): systemd-units >Requires(postun): systemd-units >%endif > >Obsoletes: postgresql-pgpool > >%description >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 devel >Summary: The development files for pgpool-II >Group: Development/Libraries >Requires: %{name} = %{version}-%{release} > >%description devel >Development headers and libraries for pgpool-II. > >%package recovery >Summary: PGPool recovery add-on for PostgreSQL >Group: Applications/Databases >Requires: %{name} = %{version}-%{release} > >%description recovery >PGPool recovery add-on > >%prep >%setup -q -n %{short_name}-%{version} >%patch1 -p1 -b .samplefix > >%build >%configure --with-pgsql-includedir=%{_includedir}/pgsql --with-pgsql-lib=%{_libdir}/pgsql --disable-static --with-pam --disable-rpath --sysconfdir=%{_sysconfdir}/%{short_name}/ > >make %{?_smp_flags} >( cd sql/pgpool-recovery && make %{?_smp_flags} ) ># ( cd sql/pgpool-walrecrunning && make %{?_smp_flags} ) > > >%install >make %{?_smp_flags} DESTDIR=%{buildroot} install >( cd sql/pgpool-recovery && make %{?_smp_flags} DESTDIR=%{buildroot} install ) ># ( cd sql/pgpool-walrecrunning && make %{?_smp_flags} DESTDIR=%{buildroot} install ) >install -d %{buildroot}%{_datadir}/%{short_name} >install -d %{buildroot}%{_sysconfdir}/%{short_name} >mv %{buildroot}/%{_sysconfdir}/%{short_name}/pcp.conf.sample %{buildroot}%{_sysconfdir}/%{short_name}/pcp.conf >mv %{buildroot}/%{_sysconfdir}/%{short_name}/pgpool.conf.sample %{buildroot}%{_sysconfdir}/%{short_name}/pgpool.conf >mv %{buildroot}/%{_sysconfdir}/%{short_name}/pool_hba.conf.sample %{buildroot}%{_sysconfdir}/%{short_name}/pool_hba.conf >mv %{buildroot}/%{_sysconfdir}/%{short_name}/pgpool.conf.sample-master-slave %{buildroot}%{_datadir}/%{short_name}/ >mv %{buildroot}/%{_sysconfdir}/%{short_name}/pgpool.conf.sample-replication %{buildroot}%{_datadir}/%{short_name}/ >mv %{buildroot}/%{_sysconfdir}/%{short_name}/pgpool.conf.sample-stream %{buildroot}%{_datadir}/%{short_name}/ > >%if %{systemd_enabled} >install -d %{buildroot}%{_unitdir} >install -m 755 %{SOURCE1} %{buildroot}%{_unitdir}/pgpool.service >%else >install -d %{buildroot}%{_sysconfdir}/init.d >install -m 755 %{SOURCE3} %{buildroot}%{_sysconfdir}/init.d/pgpool >%endif > >install -d %{buildroot}%{_sysconfdir}/sysconfig >install -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/pgpool > ># nuke libtool archive and static lib >rm -f %{buildroot}%{_libdir}/libpcp.{a,la} > >%post >/sbin/ldconfig >%if %{systemd_enabled} >if [ $1 -eq 1 ] ; then > # Initial installation > /bin/systemctl daemon-reload >/dev/null 2>&1 || : >fi >%endif > >%preun >if [ $1 -eq 0 ] ; then > # Package removal, not upgrade >%if %{systemd_enabled} > /bin/systemctl --no-reload disable pgpool.service > /dev/null 2>&1 || : > /bin/systemctl stop pgpool.service > /dev/null 2>&1 || : >%else > /sbin/service pgpool stop >%endif >fi > >%postun >/sbin/ldconfig ># /bin/systemctl daemon-reload >/dev/null 2>&1 || : >%if %{systemd_enabled} >if [ $1 -ge 1 ] ; then > # Package upgrade, not uninstall > /bin/systemctl try-restart pgpool.service >/dev/null 2>&1 || : >fi >%endif > >%triggerun -- pgpool < 3.1-1 ># Save the current service runlevel info ># User must manually run systemd-sysv-convert --apply pgpool ># to migrate them to systemd targets ># /usr/bin/systemd-sysv-convert --save pgpool >/dev/null 2>&1 ||: > ># Run these because the SysV package being removed won't do them >/sbin/chkconfig --del pgpool >/dev/null 2>&1 || : >%if %{systemd_enabled} >/bin/systemctl try-restart pgpool.service >/dev/null 2>&1 || : >%endif > >%files >%doc README README.euc_jp TODO COPYING INSTALL AUTHORS ChangeLog NEWS doc/pgpool-en.html doc/pgpool-ja.html doc/pgpool.css doc/tutorial-en.html doc/tutorial-ja.html >%{_bindir}/pgpool >%{_bindir}/pcp_attach_node >%{_bindir}/pcp_detach_node >%{_bindir}/pcp_node_count >%{_bindir}/pcp_node_info >%{_bindir}/pcp_pool_status >%{_bindir}/pcp_proc_count >%{_bindir}/pcp_proc_info >%{_bindir}/pcp_promote_node >%{_bindir}/pcp_recovery_node >%{_bindir}/pcp_stop_pgpool >%{_bindir}/pcp_systemdb_info >%{_bindir}/pg_md5 >%{_mandir}/man8/pgpool* >%dir %{_datadir}/%{short_name} >%{_datadir}/%{short_name}/insert_lock.sql >%{_datadir}/%{short_name}/system_db.sql >%{_datadir}/%{short_name}/pgpool.conf.sample-master-slave >%{_datadir}/%{short_name}/pgpool.conf.sample-replication >%{_datadir}/%{short_name}/pgpool.conf.sample-stream >%{_libdir}/libpcp.so.* >%{_datadir}/%{short_name}/pgpool.pam > >%if %{systemd_enabled} >%{_unitdir}/pgpool.service >%else >%{_sysconfdir}/init.d/pgpool >%endif > >%attr(764,root,root) %config(noreplace) %{_sysconfdir}/%{short_name}/*.conf >%config(noreplace) %{_sysconfdir}/sysconfig/pgpool > >%files devel >%{_includedir}/libpcp_ext.h >%{_includedir}/pcp.h >%{_includedir}/pool_process_reporting.h >%{_includedir}/pool_type.h >%{_libdir}/libpcp.so > >%files recovery >%{_libdir}/pgsql/pgpool-recovery.so >%{_datadir}/pgsql/contrib/pgpool-recovery.sql >%{_datadir}/pgsql/contrib/uninstall_pgpool-recovery.sql >%doc sample > > >%changelog >* Wed Aug 1 2012 Dmitry S. Makovey <dmakovey@yahoo.com> - 3.1.2-2.el6.4au >- added "recovery" subpackage >- added "samples" as a documentation to "recovery" subpackage >* Wed Aug 1 2012 Dmitry S. Makovey <dmakovey@yahoo.com> - 3.1.2 >- rebuilt for EL6 >- removed systemd references >* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1-2 >* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1-2 >- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild > >* Mon Sep 12 2011 Tom Callaway <spot@fedoraproject.org> - 3.1-1 >- update to 3.1 >- convert to systemd > >* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.1-2 >- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild > >* Fri Dec 25 2009 Devrim GUNDUZ <devrim@gunduz.org> - 2.3.1-1 >- Update to 2.3.1 >- Adjust order of startup and kill, per RH bugzilla #545739. > >* Tue Dec 1 2009 Devrim GUNDUZ <devrim@gunduz.org> - 2.2.6-1 >- Update to 2.2.6 > >* Sun Nov 01 2009 Devrim GUNDUZ <devrim@gunduz.org> - 2.2.5-2 >- Remove init script from all runlevels before uninstall. Per RH Bugzilla > #532177 > >* Sun Oct 4 2009 Devrim Gunduz <devrim@CommandPrompt.com> 2.2.5-1 >- Update to 2.2.5, for various fixes described at > http://lists.pgfoundry.org/pipermail/pgpool-general/2009-October/002188.html > >* Sat Oct 3 2009 Devrim Gunduz <devrim@CommandPrompt.com> 2.2.4-1 >- Update to 2.2.4 >- Re-apply a fix for #442372 > >* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.2-2 >- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild > >* Thu May 7 2009 Devrim Gunduz <devrim@CommandPrompt.com> 2.2.2-1 >- Update to 2.2.2 > >* Mon Mar 23 2009 Devrim Gunduz <devrim@CommandPrompt.com> 2.2-1.1 >- Fix pid file path in init script. >- Fix spec file -- we don't use short_name macro in pgcore spec file. >- Create pgpool pid file directory. >- Fix stop/start routines, also improve init script a bit. >- Install conf files to a new directory (/etc/pgpool-II), and get rid > of sample conf files. > >* Sun Mar 1 2009 Devrim Gunduz <devrim@CommandPrompt.com> 2.2-1 >- Update to 2.2 >- Update URL > >* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-3 >- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild > >* Thu Dec 4 2008 Michael Schwendt <mschwendt@fedoraproject.org> 2.1-2 >- Include /usr/share/pgpool-II directory. > >* Tue Aug 12 2008 Devrim Gunduz <devrim@CommandPrompt.com> 2.1-1 >- Update to 2.1 Gold >- Set group of sample config files to root, not apache. Fixes RH #442372. >- Update patch #1: Fix build failure caused by new default patch >fuzz = 0 policy in rawhide > >* Fri Apr 11 2008 Devrim Gunduz <devrim@CommandPrompt.com> 2.1-0.2.beta2 >- Fix Requires: issue, per #442021 (Alex Lancaster) > >* Sun Apr 6 2008 Devrim Gunduz <devrim@CommandPrompt.com> 2.1-beta2 >- Update to 2.1 beta2 > >* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.0.1-3.1 >- Autorebuild for GCC 4.3 > >* Mon Jan 21 2008 Devrim GUNDUZ <devrim@commandprompt.com> 2.0.1-2.1 >- Rebuilt against PostgreSQL 8.3 > >* Sat Jan 19 2008 Devrim Gunduz <devrim@CommandPrompt.com> 2.0.1-2 >- Fix Requires of -devel package, per bz#429436 > >* Sun Jan 13 2008 Devrim Gunduz <devrim@CommandPrompt.com> 2.0.1-1 >- Update to 2.0.1 >- Add a temp patch that will disappear in 2.0.2 > >* Tue Oct 23 2007 Devrim Gunduz <devrim@CommandPrompt.com> 1.3-1 >- Update to 1.3 > >* Fri Oct 5 2007 Devrim Gunduz <devrim@CommandPrompt.com> 1.2.1-1 >- Update to 1.2.1 > >* Wed Aug 29 2007 Devrim Gunduz <devrim@CommandPrompt.com> 1.2-5 >- Chmod sysconfig/pgpool to 644, not 755. Per BZ review. >- Run chkconfig --add pgpool during %%post. > >* Thu Aug 16 2007 Devrim Gunduz <devrim@CommandPrompt.com> 1.2-4 >- Fixed the directory name where sample conf files and sql files > are installed. > >* Sun Aug 5 2007 Devrim Gunduz <devrim@CommandPrompt.com> 1.2-3 >- Added a patch for sample conf file to use Fedora defaults > >* Sun Aug 5 2007 Devrim Gunduz <devrim@CommandPrompt.com> 1.2-2 >- Added an init script for pgpool >- Added /etc/sysconfig/pgpool > >* Wed Aug 1 2007 Devrim Gunduz <devrim@CommandPrompt.com> 1.2-1 >- Update to 1.2 > >* Fri Jun 15 2007 Devrim Gunduz <devrim@CommandPrompt.com> 1.1.1-1 >- Update to 1.1.1 > >* Sat Jun 2 2007 Devrim Gunduz <devrim@CommandPrompt.com> 1.1-1 >- Update to 1.1 >- added --disable-rpath configure parameter. >- Chowned sample conf files, so that they can work with pgpoolAdmin. > >* Thu Apr 22 2007 Devrim Gunduz <devrim@CommandPrompt.com> 1.0.2-4 >- Added postgresql-devel as BR, per bugzilla review. >- Added --disable-static flan, per bugzilla review. >- Removed superfluous manual file installs, per bugzilla review. > >* Thu Apr 22 2007 Devrim Gunduz <devrim@CommandPrompt.com> 1.0.2-3 >- Rebuilt for the correct tarball >- Fixed man8 file ownership, per bugzilla review #229321 > >* Tue Feb 20 2007 Jarod Wilson <jwilson@redhat.com> 1.0.2-2 >- Create proper devel package, drop -libs package >- Nuke rpath >- Don't install libtool archive and static lib >- Clean up %%configure line >- Use proper %%_smp_mflags >- Install config files properly, without .sample on the end >- Preserve timestamps on header files > >* Tue Feb 20 2007 Devrim Gunduz <devrim@commandprompt.com> 1.0.2-1 >- Update to 1.0.2-1 > >* 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 RPM >- Fix .so link problem >- Cosmetic changes to spec file > >* Thu Sep 27 2006 - Devrim GUNDUZ <devrim@commandprompt.com> 1.0.1-3 >- Fix spec, per Yoshiyuki Asaba > >* Thu Sep 26 2006 - Devrim GUNDUZ <devrim@commandprompt.com> 1.0.1-2 >- Fixed rpmlint errors >- Fixed download url >- Added ldconfig for .so files > >* 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 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 845394
:
602037
|
602038
|
605228
|
605229
|
612980
| 612981