]> git.pld-linux.org Git - packages/apache1-mod_vhost_limit.git/blobdiff - apache1-mod_vhost_limit.spec
- apxs1 in apache1-devel now
[packages/apache1-mod_vhost_limit.git] / apache1-mod_vhost_limit.spec
index e855ae4acf1b7cbbb75b40a9276610a615e4acf9..3b28794ae940f75b3f8bab9bce6eefab020735f3 100644 (file)
@@ -1,21 +1,22 @@
 %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)
@@ -25,9 +26,9 @@ BuildRoot:    %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 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}
@@ -48,15 +49,11 @@ echo 'LoadModule %{mod_name}_module modules/mod_%{mod_name}.so' > \
 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
This page took 0.045474 seconds and 4 git commands to generate.