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