]> git.pld-linux.org Git - packages/apache1-mod_throttle.git/blobdiff - apache1-mod_throttle.spec
- apxs1 in apache1-devel now
[packages/apache1-mod_throttle.git] / apache1-mod_throttle.spec
index 79f9a122afcf219edb0a6ff42773ca5091267d1e..cf6ac6fefa3c3b07a0bb4b498eeb2c3058332b3a 100644 (file)
@@ -3,34 +3,35 @@
 %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
+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:       1.2
+Release:       4
 License:       BSD-like
 Group:         Networking/Daemons
 Source0:       http://www.snert.com/Software/mod_throttle/mod_throttle312.tgz
 # Source0-md5: 6edc45c3ea8a0855d4b0b14cf0f76404
 Patch0:                apache1-mod_throttle-PLD-v6stuff.patch
 URL:           http://www.snert.com/Software/mod_throttle/
-BuildRequires: %{apxs}
-BuildRequires: apache1-devel >= 1.3.33-2
-%{?with_ipv6:BuildRequires:    apache1(ipv6)-devel}
+#{?with_ipv6:BuildRequires:    apache1(ipv6)-devel}
+BuildRequires: apache1-devel >= 1.3.39
+BuildRequires: rpmbuild(macros) >= 1.268
 Requires(triggerpostun):       %{apxs}
-Requires:      apache1 >= 1.3.33-2
-Obsoletes:     apache-mod_%{mod_name} <= %{version}
+Requires:      apache1(EAPI)
+Obsoletes:     apache-mod_throttle <= 3.1.2
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %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 &
@@ -39,56 +40,56 @@ 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
+servidor web va a servir. Estos límites se pueden configurar para
 hosts virtuales individuales, directorios, lugares o usuarios
 autenticados.
 
-%description -l fr
-Mod_throttle peut être utilisé pour limiter la quantité de données
-servies par votre serveur Web. Ces limites peuvent être définies pour
-des hôtes virtuels individuels, répertoires, emplacements ou
-utilisateurs authentifiés.
+%description -l fr.UTF-8
+Mod_throttle peut être utilisé pour limiter la quantité de données
+servies par votre serveur Web. Ces limites peuvent être définies pour
+des hôtes virtuels individuels, répertoires, emplacements ou
+utilisateurs authentifiés.
 
-%description -l it
-Mod_throttle può essere usato per limitare la quantità di dati che il
-server Web dovrà servire. Queste limitazioni possono essere
+%description -l it.UTF-8
+Mod_throttle può essere usato per limitare la quantità di dati che il
+server Web dovrà servire. Queste limitazioni possono essere
 configurate per singoli host virtuali, directory, indirizzi o utenti
 autenticati.
 
-%description -l ja
-Mod_throttle ¤Ë¤è¤Ã¤Æ Web ¥µ¡¼¥Ð¡¼¤¬½èÍý¤¹¤ë¥Ç¡¼¥¿Î̤òÀ©¸Â¤Ç¤­¤Þ¤¹
-¤³¤ì¤é¤ÎÀ©¸Â¤Ï¡¢¸Ä¡¹¤Î²¾ÁÛ¥Û¥¹¥È¡¢¥Ç¥£¥ì¥¯¥È¥ê¡¢¾ì½ê¡¢¤Þ¤¿¤Ï
-ǧ¾Ú¥æ¡¼¥¶¡¼ÍѤˤĤ¤¤ÆÀßÄê¤Ç¤­¤Þ¤¹¡£
+%description -l ja.UTF-8
+Mod_throttle によって Web サーバーが処理するデータ量を制限できます
+これらの制限は、個々の仮想ホスト、ディレクトリ、場所、または
+認証ユーザー用について設定できます。
 
-%description -l pl
-Ten modu³ Apache ma s³u¿yæ do zmniejszania obci±¿enia serwera i ruchu
+%description -l pl.UTF-8
+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
-t³umiæ po³±czenia przychodz±ce z danego adresu IP lub danego,
-autentykuj±cego siê, u¿ytkownika.
+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
+tłumić połączenia przychodzące z danego adresu IP lub danego,
+autentykującego się, użytkownika.
 
-%description -l pt_BR
-Descompressão "On-the-fly" de arquivos HTML para o Apache.
+%description -l pt_BR.UTF-8
+Descompressão "On-the-fly" de arquivos HTML para o Apache.
 
-%description -l sv
-Mod_throttle kan användas för att begränsa mängden data som din
-webbserver skickar. Dessa gränser kan sättas för enskilda virtuella
-värdar, kataloger, platser eller autenticerade användare.
+%description -l sv.UTF-8
+Mod_throttle kan användas för att begränsa mängden data som din
+webbserver skickar. Dessa gränser kan sättas för enskilda virtuella
+värdar, kataloger, platser eller autenticerade användare.
 
 %prep
 %setup -q -n mod_%{mod_name}-%{version}
@@ -99,7 +100,7 @@ v
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/conf.d}
+install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/conf.d,%{_pkglogdir}}
 
 install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
 
@@ -108,21 +109,17 @@ echo 'LoadModule %{mod_name}_module       modules/mod_%{mod_name}.so' > \
 
 sed -e 's/<!--#/<!--/g' index.shtml > mod_%{mod_name}.html
 
+> $RPM_BUILD_ROOT%{_pkglogdir}/mod_throttle.runtime
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post
-if [ -f /var/lock/subsys/apache ]; then
-       /etc/rc.d/init.d/apache restart 1>&2
-else
-       echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
-fi
+%service -q apache restart
 
-%preun
+%postun
 if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/apache ]; then
-               /etc/rc.d/init.d/apache restart 1>&2
-       fi
+       %service -q apache restart
 fi
 
 %triggerpostun -- apache1-mod_%{mod_name} < 3.1.2-1.1
@@ -134,5 +131,6 @@ fi
 %files
 %defattr(644,root,root,755)
 %doc *.txt *.html
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_%{mod_name}.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_%{mod_name}.conf
 %attr(755,root,root) %{_pkglibdir}/*
+%attr(660,root,http) %ghost %{_pkglogdir}/*
This page took 0.0984699999999999 seconds and 4 git commands to generate.