]> git.pld-linux.org Git - packages/apache1-mod_rpaf.git/blobdiff - apache1-mod_rpaf.spec
- tabs in preamble
[packages/apache1-mod_rpaf.git] / apache1-mod_rpaf.spec
index f38750765a4ab73bbc184eea209b8a6fcda6ea75..521984eaa764bb7e0dee39f00efd50d5f8304de8 100644 (file)
@@ -1,25 +1,28 @@
-# TODO
-# - need ipv6 support
 #
-%bcond_with    ipv6            # disable IPv6 support
+# Conditional build:
+%bcond_without ipv6            # disable IPv6 support
 #
 %define                mod_name        rpaf
 %define        apxs            %{_sbindir}/apxs1
 Summary:       Reverse proxy add forward module for Apache
-Summary(pl):   Modu³ Apache'a dodaj±cy przekazywanie dla odwrotnych proxy
+Summary(pl.UTF-8):     Moduł Apache'a dodający przekazywanie dla odwrotnych proxy
 Name:          apache1-mod_%{mod_name}
 Version:       0.5
-Release:       0.15
+Release:       5
 License:       Apache
 Group:         Networking/Daemons
 Source0:       http://stderr.net/apache/rpaf/download/mod_%{mod_name}-%{version}.tar.gz
 # Source0-md5: 471fb059d6223a394f319b7c8ab45c4d
 Source1:       %{name}.conf
+Patch0:                %{name}-ipv6.patch
 URL:           http://stderr.net/apache/rpaf/
+%{?with_ipv6:BuildRequires:    apache1(ipv6)-devel}
 BuildRequires: apache1-devel >= 1.3.33-2
+BuildRequires: rpmbuild(macros) >= 1.268
 %{!?with_ipv6:BuildConflicts:  apache1(ipv6)-devel}
+Requires:      apache1(EAPI)
+Provides:      apache(mod_rpaf)
 %{!?with_ipv6:Conflicts:       apache1(ipv6)}
-Requires:      apache1 >= 1.3.33-2
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _pkglibdir      %(%{apxs} -q LIBEXECDIR 2>/dev/null)
@@ -31,21 +34,22 @@ frontend Apache servers. It does excactly the opposite of
 mod_proxy_add_forward written by Ask Bjoern Hansen. It will also work
 with mod_proxy in Apache starting with release 1.3.25.
 
-%description -l en
+%description -l en.UTF-8
 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
+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.
 
-%description -l pl
-rpaf jest dla backendowych serwerów Apache tym, czym
-mod_proxy_add_forward jest dla frontendowych. Wykonuje dok³adnie
+%description -l pl.UTF-8
+rpaf jest dla backendowych serwerów Apache tym, czym
+mod_proxy_add_forward jest dla frontendowych. Wykonuje dokładnie
 przeciwne operacje do mod_proxy_add_forward napisanego przez Aska
-Bjoerna Hansena. Bêdzie tak¿e dzia³aæ z mod_proxy w Apache'u pocz±wszy
+Bjoerna Hansena. Będzie także działać z mod_proxy w Apache'u począwszy
 od wersji 1.3.25.
 
 %prep
 %setup -q -n mod_%{mod_name}-%{version}
+%{?with_ipv6:%patch0 -p1}
 
 %build
 %{apxs} -c mod_%{mod_name}.c -o mod_%{mod_name}.so
@@ -61,15 +65,11 @@ install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/99_mod_%{mod_name}.conf
 rm -rf $RPM_BUILD_ROOT
 
 %post
-if [ -f /var/lock/subsys/apache ]; then
-       /etc/rc.d/init.d/apache restart 1>&2
-fi
+%service -q apache restart
 
 %postun
 if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/apache ]; then
-               /etc/rc.d/init.d/apache restart 1>&2
-       fi
+       %service -q apache restart
 fi
 
 %files
This page took 0.033913 seconds and 4 git commands to generate.