]> git.pld-linux.org Git - packages/apache-mod_cband.git/blobdiff - apache-mod_cband.spec
- updated to 0.9.7.5
[packages/apache-mod_cband.git] / apache-mod_cband.spec
index e21bf9bd0583d2f0f1561a3dc23a07b5ad695cf9..5f76b9296a296bac596b3533504d5c8dfe1ac0b0 100644 (file)
@@ -3,16 +3,17 @@
 Summary:       Apache module: bandwidth limits per vhosts
 Summary(pl):   Modu³ do Apache: limity pasma dla poszczególnych vhostów
 Name:          apache-mod_%{mod_name}
-Version:       0.9.7.0
+Version:       0.9.7.5
 Release:       1
 License:       Apache
 Group:         Networking/Daemons
 Source0:       http://cband.linux.pl/download/mod-%{mod_name}-%{version}.tgz
-# Source0-md5: b6ded42ab8559dbb56e34fa2d370ff4d
+# Source0-md5: 5c5d65dc9abe6cdc6931b6dd33be5018
 Source1:       %{name}.conf
 URL:           http://cband.linux.pl/
 BuildRequires: %{apxs}
 BuildRequires: apache-devel >= 2.0.0
+BuildRequires: rpmbuild(macros) >= 1.268
 Requires:      apache(modules-api) = %apache_modules_api
 Requires:      crondaemon
 Requires:      procps
@@ -52,15 +53,11 @@ install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/97_mod_%{mod_name}.c
 rm -rf $RPM_BUILD_ROOT
 
 %post
-if [ -f /var/lock/subsys/httpd ]; then
-       /etc/rc.d/init.d/httpd restart 1>&2
-fi
+%service -q httpd restart
 
-%preun
+%postun
 if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/httpd ]; then
-               /etc/rc.d/init.d/httpd restart 1>&2
-       fi
+       %service -q httpd restart
 fi
 
 %files
This page took 0.047138 seconds and 4 git commands to generate.