]> git.pld-linux.org Git - packages/apache1-mod_throttle.git/commitdiff
- added %{apxs} local macro to avoid adapter problems
authorankry <ankry@pld-linux.org>
Sun, 17 Feb 2002 19:01:43 +0000 (19:01 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- fix use of %{apxs} and %{_sbindir}/apxs
- added BR %{apxs} & Prereq %{_sbindir}/apxs (if necessary); removed BR apache

Changed files:
    apache1-mod_throttle.spec -> 1.9

apache1-mod_throttle.spec

index 6c9c06729005ce0b358d2bc052b76e6dda85c1ea..612a247222966496082a43d15c8d0f487b681081 100644 (file)
@@ -1,3 +1,4 @@
+%define        apxs    /usr/sbin/apxs
 Summary:       Bandwidth & Request Throttling for Apache
 Summary(cs):   Omezení sí»ového provozu pro Apache
 Summary(de):   Ein Modul, das die Bandbreiten- und Anforderungseinschränkung für Apache implementiert
@@ -30,6 +31,8 @@ Group(uk):    
 Source0:       http://www.snert.com/Software/mod_throttle/mod_throttle312.tgz
 URL:           http://www.snert.com/Software/mod_throttle/
 BuildRequires: apache-devel
+BuildRequires: %{apxs}
+Prereq:                %{_sbindir}/apxs
 Requires:      apache >= 1.3.1
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -98,7 +101,7 @@ v
 %setup -q -n mod_throttle-%{version}
 
 %build
-/usr/sbin/apxs -DSUEXEC_BIN="\"\\\"%{_sbindir}/suexec\\\"\"" -o mod_throttle.so -c *.c
+%{apxs} -DSUEXEC_BIN="\"\\\"%{_sbindir}/suexec\\\"\"" -o mod_throttle.so -c *.c
 # to don't bother about ssi counter inside
 mv -f index.shtml index.html
 
This page took 0.116183 seconds and 4 git commands to generate.