From 1f44c47077aa4994950eac9cec8e449c4e49f565 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 13 Jun 2012 18:43:31 +0200 Subject: reorg repo --- mod_limitipconn.spec | 96 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 mod_limitipconn.spec (limited to 'mod_limitipconn.spec') diff --git a/mod_limitipconn.spec b/mod_limitipconn.spec new file mode 100644 index 0000000..34d1bc3 --- /dev/null +++ b/mod_limitipconn.spec @@ -0,0 +1,96 @@ +%{!?_httpd_apxs: %{expand: %%global _httpd_apxs %%{_sbindir}/apxs}} +%{!?_httpd_mmn: %{expand: %%global _httpd_mmn %%(cat %{_includedir}/httpd/.mmn || echo missing-httpd-devel)}} +%{!?_httpd_confdir: %{expand: %%global _httpd_confdir %%{_sysconfdir}/httpd/conf.d}} +# /etc/httpd/conf.d with httpd < 2.4 and defined as /etc/httpd/conf.modules.d with httpd >= 2.4 +%{!?_httpd_modconfdir: %{expand: %%global _httpd_modconfdir %%{_sysconfdir}/httpd/conf.d}} +%{!?_httpd_moddir: %{expand: %%global _httpd_moddir %%{_libdir}/httpd/modules}} + +Summary: Simultaneous connection limiting module for Apache +Name: mod_limitipconn +Version: 0.23 +Release: 9%{?dist} +Group: System Environment/Daemons +License: ASL 2.0 +URL: http://dominia.org/djao/limitipconn2.html +Source0: http://dominia.org/djao/limit/mod_limitipconn-%{version}.tar.bz2 +Source1: mod_limitipconn.conf +Patch0: mod_limitipconn-0.23-httpd24.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root +Requires: httpd-mmn = %{_httpd_mmn} +BuildRequires: httpd-devel + +%description +Apache module which allows web server administrators to limit the number of +simultaneous downloads permitted from a single IP address. + +%prep +%setup -q + +%patch0 -p1 -b .httpd24 + +%build +%{_httpd_apxs} -Wc,"%{optflags}" -c mod_limitipconn.c + + +%install +rm -rf %{buildroot} + +%if "%{_httpd_modconfdir}" == "%{_httpd_confdir}" +# httpd <= 2.2.x +install -D -p -m 0644 %{SOURCE1} \ + %{buildroot}%{_httpd_modconfdir}/limitipconn.conf +%else +# httpd >= 2.4.x +install -D -p -m 0644 %{SOURCE1} \ + %{buildroot}%{_httpd_modconfdir}/10-limitipconn.conf +%endif +install -D -p -m 0755 .libs/mod_limitipconn.so \ + %{buildroot}%{_httpd_moddir}/mod_limitipconn.so + + +%clean +rm -rf %{buildroot} + + +%files +%defattr(-,root,root,-) +%doc README INSTALL LICENSE +%config(noreplace) %{_httpd_modconfdir}/*.conf +%{_httpd_moddir}/mod_limitipconn.so + + +%changelog +* Thu Apr 19 2012 Remi Collet - 0.23-9 +- sync with rawhide, rebuild for remi repo + +* Thu Apr 19 2012 Joe Orton - 0.23-9 +- add _httpd_moddir compat macro as well (#809730) + +* Tue Apr 17 2012 Remi Collet - 0.23-8 +- rebuild for remi repo and httpd 2.4 + +* Tue Apr 17 2012 Joe Orton - 0.23-8 +- improve handling of absent content-type w/2.4 + +* Tue Apr 17 2012 Joe Orton - 0.23-7 +- update for 2.4 (patch from Jan Kaluza, #809730) + +* Thu Mar 29 2012 Matthias Saou 0.23-6 +- Rebuild for new apache httpd... not, we will require patching. +- Use rpm macros provided by the httpd-devel package, with sane fallbacks. + +* Fri Jan 13 2012 Fedora Release Engineering - 0.23-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue Feb 08 2011 Fedora Release Engineering - 0.23-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Sat Jul 25 2009 Fedora Release Engineering - 0.23-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Wed Feb 25 2009 Fedora Release Engineering - 0.23-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Mon Dec 1 2008 Matthias Saou 0.23-1 +- Initial RPM release. + -- cgit