]> 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 e684a7dfb21fc457228d023073e6538faffa6652..5f76b9296a296bac596b3533504d5c8dfe1ac0b0 100644 (file)
@@ -3,18 +3,18 @@
 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.6.0
-Release:       2
+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: 6df461ef7cc61c5133a0d69deefe1902
+# 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:      apache >= 2.0.0
 Requires:      crondaemon
 Requires:      procps
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -53,19 +53,15 @@ 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
 %defattr(644,root,root,755)
-%doc AUTHORS Changes INSTALL TODO  conf/*.example
+%doc AUTHORS Changes INSTALL conf/*.example
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*mod_*.conf
-%attr(755,root,root) %{_pkglibdir}/*
+%attr(755,root,root) %{_pkglibdir}/*.so
This page took 0.070314 seconds and 4 git commands to generate.