Summary(it): Modulo che implementa la larghezza di banda e la richiesta di throttling per Apache
Summary(ja): Apache ÍÑÂÓ°èÉý¤ª¤è¤ÓÍ׵᥹¥í¥Ã¥È¥ë¤ò¼ÂÁõ¤¹¤ë¥â¥¸¥å¡¼¥ë
Summary(pl): T³umienie przepustowo¶ci i zapytañ dla Apache'a
-Summary(pt_BR): Descompressão "On-the-fly" de arquivos HTML para o Apache
+Summary(pt_BR): Descompressão "On-the-fly" de arquivos HTML para o Apache
Summary(sv): En modul som implementerar bandvidd- och begäranbegränsningar i Apache
Name: apache-mod_throttle
Version: 3.1.2
-Release: 3
+Release: 6
License: Anthony Howe
Group: Networking/Daemons
Source0: http://www.snert.com/Software/mod_throttle/mod_throttle312.tgz
+Patch0: %{name}-PLD-v6stuff.patch
URL: http://www.snert.com/Software/mod_throttle/
BuildRequires: apache-devel
BuildRequires: %{apxs}
%prep
%setup -q -n mod_throttle-%{version}
+%patch0 -p1
%build
-%{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
+%{apxs} -DSUEXEC_BIN="\"\\\"%{_sbindir}/suexec\\\"\"" -o mod_throttle.so -c mod_throttle.c
%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
%post
-%{_sbindir}/apxs -e -a -n throttle %{_libexecdir}/mod_throttle.so 1>&2
+%{apxs} -e -a -n throttle %{_libexecdir}/mod_throttle.so 1>&2
if [ -f /var/lock/subsys/httpd ]; then
/etc/rc.d/init.d/httpd restart 1>&2
else
%preun
if [ "$1" = "0" ]; then
- %{_sbindir}/apxs -e -A -n throttle %{_libexecdir}/mod_throttle.so 1>&2
+ %{apxs} -e -A -n throttle %{_libexecdir}/mod_throttle.so 1>&2
if [ -f /var/lock/subsys/httpd ]; then
/etc/rc.d/init.d/httpd restart 1>&2
fi
%files
%defattr(644,root,root,755)
-%doc *.gz
-%doc %{_htmldocdir}/index.html
+%doc *.txt *.html
%attr(755,root,root) %{_libexecdir}/*