X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=apache1-mod_throttle.spec;h=cf6ac6fefa3c3b07a0bb4b498eeb2c3058332b3a;hb=HEAD;hp=2d3032f3709446f3623a52865f3ba8d0f8a3a7f0;hpb=7c71cfb9693917c54e2a81bd711e69d315218dc4;p=packages%2Fapache1-mod_throttle.git diff --git a/apache1-mod_throttle.spec b/apache1-mod_throttle.spec index 2d3032f..cf6ac6f 100644 --- a/apache1-mod_throttle.spec +++ b/apache1-mod_throttle.spec @@ -1,31 +1,37 @@ -%define apxs /usr/sbin/apxs +%bcond_without ipv6 # disable IPv6 support + +%define mod_name throttle +%define apxs /usr/sbin/apxs1 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 -Summary(es): Módulo que implementa la gestión de ancho de banda y peticiones para Apache -Summary(fr): Module qui met en oeuvre la bande passante et l'étranglement requis pour Apache -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(sv): En modul som implementerar bandvidd- och begäranbegränsningar i Apache -Name: apache-mod_throttle +Summary(cs.UTF-8): Omezení síťového provozu pro Apache +Summary(de.UTF-8): Ein Modul, das die Bandbreiten- und Anforderungseinschränkung für Apache implementiert +Summary(es.UTF-8): Módulo que implementa la gestión de ancho de banda y peticiones para Apache +Summary(fr.UTF-8): Module qui met en oeuvre la bande passante et l'étranglement requis pour Apache +Summary(it.UTF-8): Modulo che implementa la larghezza di banda e la richiesta di throttling per Apache +Summary(ja.UTF-8): Apache 用帯域幅および要求スロットルを実装するモジュール +Summary(pl.UTF-8): Tłumienie przepustowości i zapytań dla Apache'a +Summary(pt_BR.UTF-8): Descompressão "On-the-fly" de arquivos HTML para o Apache +Summary(sv.UTF-8): En modul som implementerar bandvidd- och begäranbegränsningar i Apache +Name: apache1-mod_%{mod_name} Version: 3.1.2 -Release: 6 -License: Anthony Howe +Release: 4 +License: BSD-like Group: Networking/Daemons Source0: http://www.snert.com/Software/mod_throttle/mod_throttle312.tgz # Source0-md5: 6edc45c3ea8a0855d4b0b14cf0f76404 -Patch0: %{name}-PLD-v6stuff.patch +Patch0: apache1-mod_throttle-PLD-v6stuff.patch URL: http://www.snert.com/Software/mod_throttle/ -BuildRequires: %{apxs} -BuildRequires: apache-devel -Requires(post,preun): %{apxs} -Requires: apache >= 1.3.1 +#{?with_ipv6:BuildRequires: apache1(ipv6)-devel} +BuildRequires: apache1-devel >= 1.3.39 +BuildRequires: rpmbuild(macros) >= 1.268 +Requires(triggerpostun): %{apxs} +Requires: apache1(EAPI) +Obsoletes: apache-mod_throttle <= 3.1.2 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) -%define _libexecdir %{_libdir}/apache -%define _htmldocdir /home/httpd/manual/mod +%define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null) +%define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null) +%define _pkglogdir %(%{apxs} -q PREFIX 2>/dev/null)/logs %description This Apache module is intended to reduce the load on your server & @@ -34,92 +40,97 @@ or users according to supported polices (see below) that decide when to delay or refuse requests. Also mod_throttle can track and throttle incoming connections by IP address or by authenticated remote user. -%description -l cs -Balíèek mod_throttle obsahuje modul, který umo¾òuje omezit prùtok dat, -která odcházejí z WWW serveru Apache. Limity mohou být nastaveny pro -jednotlivé virtuální weby, adresáøe, umístìní nebo autentizované -u¾ivatele. +%description -l cs.UTF-8 +Balíček mod_throttle obsahuje modul, který umožňuje omezit průtok dat, +která odcházejí z WWW serveru Apache. Limity mohou být nastaveny pro +jednotlivé virtuální weby, adresáře, umístění nebo autentizované +uživatele. -%description -l de -Mod_throttle kann verwendet werden, um die Datenmenge zu beschränken, -die Ihr Web-Server behandelt. Diese Einschränkungen können für +%description -l de.UTF-8 +Mod_throttle kann verwendet werden, um die Datenmenge zu beschränken, +die Ihr Web-Server behandelt. Diese Einschränkungen können für einzelne virtuelle Rechner, Verzeichnisse, Speicherstellen oder authentifizierte Benutzer eingestellt werden. -%description -l es +%description -l es.UTF-8 Mod_throttle puede usarse para limitar la cantidad de datos que su -servidor web va a servir. Estos límites se pueden configurar para -hosts virtuales individuales, directorios, lug \ + $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/90_mod_%{mod_name}.conf -install mod_throttle.so $RPM_BUILD_ROOT%{_libexecdir} +sed -e 's/