[phpPgAdmin] incorrect disabling of httpd during uninstallation

Jozef Mlich jmlich at fedoraproject.org
Wed Aug 28 12:12:32 UTC 2013


commit 0e5c8f35997610f495e0c9d07600cc33cf4c5850
Author: Jozef Mlich <jmlich at redhat.com>
Date:   Wed Aug 28 14:12:16 2013 +0200

    incorrect disabling of httpd during uninstallation

 phpPgAdmin.spec |   13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)
---
diff --git a/phpPgAdmin.spec b/phpPgAdmin.spec
index 8a292e1..c7b946f 100644
--- a/phpPgAdmin.spec
+++ b/phpPgAdmin.spec
@@ -1,7 +1,7 @@
 Summary:	Web-based PostgreSQL administration
 Name:		phpPgAdmin
 Version:	5.1
-Release:	1%{?dist}
+Release:	2%{?dist}
 License:	GPLv2+ and (LGPLv2+ or BSD) and ASL 2.0 and MIT
 Group:		Applications/Databases
 URL:		http://phppgadmin.sourceforge.net/
@@ -13,7 +13,6 @@ Source1:	%{name}.conf
 Requires:	php >= 4.2, gawk
 Requires:	php-pgsql >= 4.2, httpd
 Requires(post): systemd
-Requires(preun): systemd
 Requires(postun): systemd
 Buildarch:	noarch
 
@@ -47,13 +46,10 @@ ln -s %{_sysconfdir}/%{name}/config.inc.php %{buildroot}/%{_phppgadmindir}/conf/
 ln -s %{_sysconfdir}/%{name}/config.inc.php-dist %{buildroot}/%{_phppgadmindir}/conf/config.inc.php-dist
 
 %post
-%systemd_post httpd.service
-
-%preun
-%systemd_preun httpd.service
+/usr/bin/systemctl reload httpd.service
 
 %postun
-%systemd_postun_with_restart httpd.service 
+/usr/bin/systemctl reload httpd.service
 
 %clean
 rm -rf %{buildroot}
@@ -86,6 +82,9 @@ rm -rf %{buildroot}
 %attr(755,root,root) %{_phppgadmindir}/lang/synch
 
 %changelog
+* Wed Aug 28 2013 Jozef Mlich <jmlich at redhat.com> 5.1-2
+- incorrect disabling of httpd during uninstallation
+
 * Thu Aug 22 2013 Jozef Mlich <jmlich at redhat.com> 5.1-1
 - post, preun, postun phases modified accoding to Fedora Packaging Guidelines
 - Update to 5.1, per changes described at


More information about the scm-commits mailing list