]> git.pld-linux.org Git - packages/apache1-mod_throttle.git/blobdiff - apache1-mod_throttle.spec
- massive attack: adding Source-md5
[packages/apache1-mod_throttle.git] / apache1-mod_throttle.spec
index 8f78ead26a07af7a27ac9f01eaf554efdffb4593..c919cd33b1fcc420e3d3a43c241a516ae6ec8e61 100644 (file)
@@ -11,11 +11,12 @@ Summary(pt_BR):     Descompress
 Summary(sv):   En modul som implementerar bandvidd- och begäranbegränsningar i Apache
 Name:          apache-mod_throttle
 Version:       3.1.2
-Release:       4
+Release:       6
 License:       Anthony Howe
 Group:         Networking/Daemons
 Source0:       http://www.snert.com/Software/mod_throttle/mod_throttle312.tgz
-Patch0:                apache-mod_throttle-throttle-ip-off.patch
+# Source0-md5: 6edc45c3ea8a0855d4b0b14cf0f76404
+Patch0:                %{name}-PLD-v6stuff.patch
 URL:           http://www.snert.com/Software/mod_throttle/
 BuildRequires: apache-devel
 BuildRequires: %{apxs}
@@ -69,7 +70,7 @@ Mod_throttle 
 Ç§¾Ú¥æ¡¼¥¶¡¼ÍѤˤĤ¤¤ÆÀßÄê¤Ç¤­¤Þ¤¹¡£
 
 %description -l pl
-Ten modu³ Apache ma s³u¿yæ do zmniejsszania obci±¿enia serwera i ruchu
+Ten modu³ Apache ma s³u¿yæ do zmniejszania obci±¿enia serwera i ruchu
 generowanego przez popularne hosty wirtualne, katalogi, pliki lub
 u¿ytkowników zgodnie z obs³ugiwanymi polisami, które decyduj± kiedy
 opó¼niæ lub odrzuciæ zapytanie. mod_throttle mo¿e tak¿e ¶ledziæ i
@@ -86,21 +87,18 @@ v
 
 %prep
 %setup -q -n mod_throttle-%{version}
-%patch0 -p0
+%patch0 -p1
 
 %build
 %{apxs} -DSUEXEC_BIN="\"\\\"%{_sbindir}/suexec\\\"\"" -o mod_throttle.so -c mod_throttle.c
-# to don't bother about ssi counter inside
-mv -f index.shtml index.html
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_libexecdir},%{_htmldocdir}}
 
 install mod_throttle.so $RPM_BUILD_ROOT%{_libexecdir}
-install *.html $RPM_BUILD_ROOT%{_htmldocdir}
 
-gzip -9nf *.txt
+sed -e 's/<!--#/<!--/g' index.shtml > mod_throttle.html
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -123,6 +121,5 @@ fi
 
 %files
 %defattr(644,root,root,755)
-%doc *.gz
-%doc %{_htmldocdir}/index.html
+%doc *.txt *.html
 %attr(755,root,root) %{_libexecdir}/*
This page took 0.105412 seconds and 4 git commands to generate.