- tabs in preamble
[packages/apache1-mod_rpaf.git] / apache1-mod_rpaf.spec
CommitLineData
fc6d7217 1#
9882a031
ER
2# Conditional build:
3%bcond_without ipv6 # disable IPv6 support
fc6d7217 4#
27c146b7
ER
5%define mod_name rpaf
6%define apxs %{_sbindir}/apxs1
76305c57 7Summary: Reverse proxy add forward module for Apache
238fefaa 8Summary(pl.UTF-8): Moduł Apache'a dodający przekazywanie dla odwrotnych proxy
27c146b7
ER
9Name: apache1-mod_%{mod_name}
10Version: 0.5
eb5d1321 11Release: 5
27c146b7
ER
12License: Apache
13Group: Networking/Daemons
14Source0: http://stderr.net/apache/rpaf/download/mod_%{mod_name}-%{version}.tar.gz
15# Source0-md5: 471fb059d6223a394f319b7c8ab45c4d
16Source1: %{name}.conf
9882a031 17Patch0: %{name}-ipv6.patch
27c146b7 18URL: http://stderr.net/apache/rpaf/
9882a031 19%{?with_ipv6:BuildRequires: apache1(ipv6)-devel}
a727494b 20BuildRequires: apache1-devel >= 1.3.33-2
9882a031 21BuildRequires: rpmbuild(macros) >= 1.268
df884369 22%{!?with_ipv6:BuildConflicts: apache1(ipv6)-devel}
f90f2dda 23Requires: apache1(EAPI)
eb5d1321 24Provides: apache(mod_rpaf)
9882a031 25%{!?with_ipv6:Conflicts: apache1(ipv6)}
27c146b7
ER
26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28%define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null)
29%define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)
30
31%description
32rpaf is for backend Apache servers what mod_proxy_add_forward is for
33frontend Apache servers. It does excactly the opposite of
de142cd5
JB
34mod_proxy_add_forward written by Ask Bjoern Hansen. It will also work
35with mod_proxy in Apache starting with release 1.3.25.
36
aea7e3a1 37%description -l en.UTF-8
de142cd5
JB
38rpaf is for backend Apache servers what mod_proxy_add_forward is for
39frontend Apache servers. It does excactly the opposite of
aea7e3a1 40mod_proxy_add_forward written by Ask Bjørn Hansen. It will also work
9f190657
JB
41with mod_proxy in Apache starting with release 1.3.25.
42
aea7e3a1
JR
43%description -l pl.UTF-8
44rpaf jest dla backendowych serwerów Apache tym, czym
45mod_proxy_add_forward jest dla frontendowych. Wykonuje dokładnie
9f190657 46przeciwne operacje do mod_proxy_add_forward napisanego przez Aska
aea7e3a1 47Bjoerna Hansena. Będzie także działać z mod_proxy w Apache'u począwszy
9f190657 48od wersji 1.3.25.
27c146b7
ER
49
50%prep
51%setup -q -n mod_%{mod_name}-%{version}
9882a031 52%{?with_ipv6:%patch0 -p1}
27c146b7
ER
53
54%build
55%{apxs} -c mod_%{mod_name}.c -o mod_%{mod_name}.so
56
57%install
58rm -rf $RPM_BUILD_ROOT
0bd3dc42 59install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/conf.d}
27c146b7
ER
60
61install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
0bd3dc42 62install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/99_mod_%{mod_name}.conf
27c146b7
ER
63
64%clean
65rm -rf $RPM_BUILD_ROOT
66
67%post
9882a031 68%service -q apache restart
27c146b7 69
3df1e034 70%postun
27c146b7 71if [ "$1" = "0" ]; then
9882a031 72 %service -q apache restart
27c146b7
ER
73fi
74
75%files
76%defattr(644,root,root,755)
77%doc README CHANGES test.pl
76305c57 78%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_%{mod_name}.conf
27c146b7 79%attr(755,root,root) %{_pkglibdir}/*
This page took 0.097112 seconds and 4 git commands to generate.