]> git.pld-linux.org Git - packages/apache1-mod_rpaf.git/blobdiff - apache1-mod_rpaf.spec
- added ipv6 bcond
[packages/apache1-mod_rpaf.git] / apache1-mod_rpaf.spec
index 3bfcaf7c4d7d49b20e85635047987da74be90084..2f2af705ca0196aa7d0efa114439145e555859d1 100644 (file)
@@ -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
This page took 0.502097 seconds and 4 git commands to generate.