%define mod_name vhost_limit
%define apxs /usr/sbin/apxs1
Summary: Apache module: vhost_limit limits
-Summary(pl): Modu³ do apache: limity pasma dla serwerów wirtualnych
+Summary(pl.UTF-8): Moduł do apache: limity pasma dla serwerów wirtualnych
Name: apache1-mod_%{mod_name}
Version: 0.4
-Release: 2
+Release: 3
License: Apache
Group: Networking/Daemons
Source0: http://www.nowhere-land.org/programs/mod_vhost_limit/mod_%{mod_name}-%{version}.tar.gz
# Source0-md5: bae36a7174e184804b91356ef67d0b5d
URL: http://www.nowhere-land.org/programs/mod_vhost_limit/
-BuildRequires: apache1-devel >= 1.3.33-2
+BuildRequires: apache1-devel >= 1.3.39
+BuildRequires: rpmbuild(macros) >= 1.268
Requires(triggerpostun): %{apxs}
-Requires: apache1 >= 1.3.33-2
+Requires: apache1(EAPI)
Requires: crondaemon
Requires: procps
-Obsoletes: apache-mod_%{mod_name} <= 0.4
+Obsoletes: apache-mod_vhost_limit <= 0.4
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null)
This is the module for Apache Web Server to restrict the number of
simultaneous connections per a virtual host.
-%description -l pl
-Ten pakiet zawiera modu³ dla serwera WWW Apache s³u¿±cy do
-ograniczania liczby jednoczesnych po³±czeñ dla serwerów wirtualnych.
+%description -l pl.UTF-8
+Ten pakiet zawiera moduł dla serwera WWW Apache służący do
+ograniczania liczby jednoczesnych połączeń dla serwerów wirtualnych.
%prep
%setup -q -n mod_%{mod_name}-%{version}
rm -rf $RPM_BUILD_ROOT
%post
-if [ -f /var/lock/subsys/apache ]; then
- /etc/rc.d/init.d/apache restart 1>&2
-fi
+%service -q apache restart
%postun
if [ "$1" = "0" ]; then
- if [ -f /var/lock/subsys/apache ]; then
- /etc/rc.d/init.d/apache restart 1>&2
- fi
+ %service -q apache restart
fi
%triggerpostun -- apache1-mod_%{mod_name} < 0.4-1.1