X-Git-Url: http://git.pld-linux.org/?p=packages%2Fapache1-mod_rpaf.git;a=blobdiff_plain;f=apache1-mod_rpaf.spec;h=2f2af705ca0196aa7d0efa114439145e555859d1;hp=3bfcaf7c4d7d49b20e85635047987da74be90084;hb=e0289d5ddb4f1f434bba5be572f74964eb5aa7e3;hpb=391ca2cdec28471784b07611490d68118fe9163b diff --git a/apache1-mod_rpaf.spec b/apache1-mod_rpaf.spec index 3bfcaf7..2f2af70 100644 --- a/apache1-mod_rpaf.spec +++ b/apache1-mod_rpaf.spec @@ -1,20 +1,23 @@ # TODO # - compile fails when apache1 is compiled with ipv6 + +%bcond_with ipv6 # disable IPv6 support + %define mod_name rpaf %define apxs %{_sbindir}/apxs1 Summary: Apache module: record traffic statistics into a database Summary(pl): Modu³ Apache'a: zapisywanie statystyk ruchu do bazy danych Name: apache1-mod_%{mod_name} Version: 0.5 -Release: 0.12 +Release: 0.14 License: Apache Group: Networking/Daemons Source0: http://stderr.net/apache/rpaf/download/mod_%{mod_name}-%{version}.tar.gz # Source0-md5: 471fb059d6223a394f319b7c8ab45c4d Source1: %{name}.conf URL: http://stderr.net/apache/rpaf/ -BuildRequires: apache1-devel >= 1.3.33-2 -BuildConflicts: apache(ipv6)-devel +%{?with_ipv6:BuildRequires: apache1-devel >= 1.3.33-2} +%{!?with_ipv6:BuildConflicts: apache1(ipv6)-devel} Requires: apache1 >= 1.3.33-2 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -55,7 +58,7 @@ if [ -f /var/lock/subsys/apache ]; then /etc/rc.d/init.d/apache restart 1>&2 fi -%preun +%postun if [ "$1" = "0" ]; then if [ -f /var/lock/subsys/apache ]; then /etc/rc.d/init.d/apache restart 1>&2