From: radek Date: Sun, 19 Sep 2004 19:19:19 +0000 (+0000) Subject: - release 1: unifications / cleanup X-Git-Tag: auto/ac/apache1-mod_throttle-3_1_2-1~2 X-Git-Url: http://git.pld-linux.org/cgi-bin/gitweb.cgi?p=packages%2Fapache1-mod_throttle.git;a=commitdiff_plain;h=6d6464d30e071c28af6851eb4a9028292653adda - release 1: unifications / cleanup - renamed to apache1-*; waiting for server-side cp Changed files: apache1-mod_throttle.spec -> 1.26 --- diff --git a/apache1-mod_throttle.spec b/apache1-mod_throttle.spec index 61543ad..9639a58 100644 --- a/apache1-mod_throttle.spec +++ b/apache1-mod_throttle.spec @@ -1,4 +1,5 @@ -%define apxs /usr/sbin/apxs +%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 @@ -9,23 +10,23 @@ 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 +Name: apache1-mod_%{mod_name} Version: 3.1.2 -Release: 6 +Release: 1 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: apache-mod_throttle-PLD-v6stuff.patch URL: http://www.snert.com/Software/mod_throttle/ BuildRequires: %{apxs} -BuildRequires: apache-devel +BuildRequires: apache1-devel >= 1.3.1 Requires(post,preun): %{apxs} -Requires: apache >= 1.3.1 +Requires: apache1 >= 1.3.1 +Obsoletes: apache-mod_%{mod_name} <= %{version} BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) -%define _libexecdir %{_libdir}/apache -%define _htmldocdir /home/httpd/manual/mod +%define _pkglibdir %(%{apxs} -q LIBEXECDIR) %description This Apache module is intended to reduce the load on your server & @@ -86,40 +87,40 @@ webbserver skickar. Dessa gr värdar, kataloger, platser eller autenticerade användare. %prep -%setup -q -n mod_throttle-%{version} +%setup -q -n mod_%{mod_name}-%{version} %patch0 -p1 %build -%{apxs} -o mod_throttle.so -c mod_throttle.c +%{apxs} -o mod_%{mod_name}.so -c mod_%{mod_name}.c %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT{%{_libexecdir},%{_htmldocdir}} +install -d $RPM_BUILD_ROOT%{_pkglibdir} -install mod_throttle.so $RPM_BUILD_ROOT%{_libexecdir} +install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir} -sed -e 's/