Changes of Revision 10
[-] | Added | apache2-mod_rpaf-RHEL_5.spec |
x 1
2 +Name: mod_rpaf 3 +Version: 0.6 4 +Release: 3%{?dist} 5 +Summary: opposite of mod_proxy_add_forward 6 + 7 +Group: System Environment/Daemons 8 +License: GPL 9 +Url: http://stderr.net/apache/rpaf/ 10 +Source0: http://stderr.net/apache/rpaf/download/%{name}-%{version}.tar.gz 11 +Source1: mod_rpaf.conf 12 + 13 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 14 + 15 +BuildRequires: httpd-devel 16 +Requires: httpd 17 + 18 +%description 19 +rpaf is for backend Apache servers what mod_proxy_add_forward is for frontend Apache servers. It does excactly the opposite of mod_proxy_add_forward written by Ask Bjørn Hansen. It will also work with mod_proxy in Apache starting with release 1.3.25 and mod_proxy that is distributed with Apache2 from version 2.0.36. 20 + 21 +%debug_package 22 +%prep 23 +%setup -n %{name}-%{version} 24 + 25 +%build 26 +%{_sbindir}/apxs -Wc,"%{optflags}" -a -n %{name}.so -c %{name}-2.0.c 27 + 28 + 29 + 30 +%install 31 +rm -rf $RPM_BUILD_ROOT 32 +mkdir -pm 755 \ 33 + $RPM_BUILD_ROOT%{_libdir}/httpd/modules \ 34 + $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d 35 +install -pm 755 .libs/mod_rpaf-2.0.so $RPM_BUILD_ROOT%{_libdir}/httpd/modules/ 36 +install -pm 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/ 37 + 38 + 39 +%clean 40 +rm -rf $RPM_BUILD_ROOT 41 + 42 + 43 +%files 44 +%defattr(-,root,root,-) 45 +%doc CHANGES README 46 +%config(noreplace) %{_sysconfdir}/httpd/conf.d/* 47 +%{_libdir}/httpd/modules/* 48 + 49 + 50 +%changelog 51 +* Thu Mar 10 2009 Carsten Schoene <cs@linux-administrator.com> - 0.6 52 +- initial RHEL 5 build 53 |