forked from gnif/mod_rpaf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mod_rpaf.spec
52 lines (41 loc) · 1.37 KB
/
mod_rpaf.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
Summary: Reverse Proxy Add Forward module for Apache
Name: mod_rpaf
Version: 0.8
Release: 1
License: Apache
Group: System Environment/Daemons
URL: https://github.com/gnif/mod_rpaf
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: httpd-devel
Requires: httpd httpd-devel
%description
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.
%prep
%setup -q
%build
make rpaf
%install
rm -rf $RPM_BUILD_ROOT
install -m0755 -d $RPM_BUILD_ROOT$(apxs -q LIBEXECDIR)
make DESTDIR=$RPM_BUILD_ROOT install
install -m0644 -D rpaf.conf $RPM_BUILD_ROOT/etc/httpd/conf.d/mod_rpaf.conf
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%{_libdir}/httpd/modules/mod_rpaf.so
%config(noreplace) %{_sysconfdir}/httpd/conf.d/mod_rpaf.conf
%post
/usr/sbin/apxs -e -A -n rpaf $(apxs -q LIBEXECDIR)/mod_rpaf.so
%preun
/usr/sbin/apxs -e -A -n rpaf $(apxs -q LIBEXECDIR)/mod_rpaf.so
%changelog
* Mon Nov 02 2015 Marc Teale <[email protected]> - 0.8
- Update references to mod_rpaf.conf.
* Mon Oct 17 2011 Ben Walton <[email protected]> - 0.7
- Initial spec file creation