[packages/apache-mod_python] - added systemd support - rel 4

baggins baggins at pld-linux.org
Thu Nov 28 15:10:59 CET 2013


commit 604cd759607869406e5deac3b4bff9a7fc781e47
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Thu Nov 28 15:10:34 2013 +0100

    - added systemd support
    - rel 4

 apache-mod_python.spec | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)
---
diff --git a/apache-mod_python.spec b/apache-mod_python.spec
index 2f23444..3dc3c1e 100644
--- a/apache-mod_python.spec
+++ b/apache-mod_python.spec
@@ -20,7 +20,7 @@ Summary(pl.UTF-8):	Wbudowany interpreter języka Python dla serwera WWW Apache
 Summary(sv.UTF-8):	En inbyggd Python-interpretator för webbservern Apache
 Name:		apache-mod_%{mod_name}
 Version:	3.5.0
-Release:	3
+Release:	4
 License:	Apache
 Group:		Networking/Daemons/HTTP
 Source0:	http://dist.modpython.org/dist/mod_%{mod_name}-%{version}.tgz
@@ -37,7 +37,7 @@ BuildRequires:	autoconf
 BuildRequires:	automake
 BuildRequires:	flex >= 2.5.31
 BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.268
+BuildRequires:	rpmbuild(macros) >= 1.671
 %if %{with python2}
 BuildRequires:	python
 BuildRequires:	python-devel >= 2.6
@@ -46,11 +46,15 @@ BuildRequires:	python-devel >= 2.6
 BuildRequires:	python3
 BuildRequires:	python3-devel >= 3.3
 %endif
+Requires(post,preun,postun):	systemd-units >= 38
+Requires(post,preun):	sbin/chkconfig
+Requires:	rc-scripts
 Requires:	apache(modules-api) = %apache_modules_api
 Requires:	apr >= 1:1.0.0
 # apache.py uses pdb module
 Requires:	python-devel-tools
 %requires_eq	python-libs
+Requires:	systemd-units >= 38
 Conflicts:	apache-mod_python3
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -143,11 +147,15 @@ Summary(ja.UTF-8):	Apache Web サーバー用の組込み Python 3 インター
 Summary(pl.UTF-8):	Wbudowany interpreter języka Python 3 dla serwera WWW Apache
 Summary(sv.UTF-8):	En inbyggd Python3-interpretator för webbservern Apache
 Group:		Networking/Daemons/HTTP
+Requires(post,preun,postun):	systemd-units >= 38
+Requires(post,preun):	sbin/chkconfig
+Requires:	rc-scripts
 Requires:	apache(modules-api) = %apache_modules_api
 Requires:	apr >= 1:1.0.0
 # apache.py uses pdb module
 Requires:	python3-devel-tools
 %requires_eq	python3-libs
+Requires:	systemd-units >= 38
 Conflicts:	apache-mod_python
 
 %description -n apache-mod_python3
@@ -283,18 +291,22 @@ rm -rf $RPM_BUILD_ROOT
 
 %post
 %service -q httpd restart
+%systemd_service_restart httpd.service
 
 %postun
 if [ "$1" = "0" ]; then
 	%service -q httpd restart
+	%systemd_service_restart httpd.service
 fi
 
 %post -n apache-mod_python3
 %service -q httpd restart
+%systemd_service_restart httpd.service
 
 %postun -n apache-mod_python3
 if [ "$1" = "0" ]; then
 	%service -q httpd restart
+	%systemd_service_restart httpd.service
 fi
 
 %if %{with python2}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/apache-mod_python.git/commitdiff/604cd759607869406e5deac3b4bff9a7fc781e47



More information about the pld-cvs-commit mailing list