From: Jan Rękorajski Date: Thu, 28 Nov 2013 14:10:34 +0000 (+0100) Subject: - added systemd support X-Git-Tag: auto/th/apache-mod_python-3.5.0-4 X-Git-Url: https://git.pld-linux.org/?p=packages%2Fapache-mod_python.git;a=commitdiff_plain;h=604cd759607869406e5deac3b4bff9a7fc781e47;hp=08225cf832b549de055a8a93c46669c0e37e48c4 - added systemd support - rel 4 --- 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}