]> git.pld-linux.org Git - packages/apache-mod_clamav.git/blobdiff - apache-mod_clamav.spec
- "HTTP" unification
[packages/apache-mod_clamav.git] / apache-mod_clamav.spec
index 1a4621d30139769c4249804384b4f3db2ed005f5..680117728c44f4950e841bef0ffca9a7f31ab168 100644 (file)
@@ -3,12 +3,12 @@
 Summary:       An Apache virus scanning filter
 Summary(pl):   Filtr skanera antywirusowego dla Apache'a
 Name:          apache-mod_%{mod_name}
-Version:       0.13
+Version:       0.21
 Release:       1
 License:       GPL
 Group:         Networking/Daemons
 Source0:       http://software.othello.ch/mod_clamav/mod_%{mod_name}-%{version}.tar.gz
-# Source0-md5: e6cc9a4d7a1b29a38ca4c42d85fe8ef6
+# Source0-md5: 98bd0d8628be8ddeae21da6623e57d20
 Source1:       %{name}.conf
 Patch0:                %{name}-libtool-tag.patch
 URL:           http://software.othello.ch/mod_clamav/
@@ -18,16 +18,15 @@ BuildRequires:      apr-devel
 BuildRequires: apr-util-devel
 BuildRequires: autoconf
 BuildRequires: automake
-BuildRequires: bzip2-devel
 BuildRequires: clamav-devel
-BuildRequires: gmp-devel
+BuildRequires: libtool
 Requires:      apache >= 2
 Requires:      apache-mod_proxy
 Requires:      clamav
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _pkglibdir      %(%{apxs} -q LIBEXECDIR)
-%define                _sysconfdir     /etc/httpd
+%define                _sysconfdir     %(%{apxs} -q SYSCONFDIR)
 %define                _libexecdir     %{_libdir}/apache
 
 %description
@@ -44,14 +43,15 @@ skanera antywirusowego Clamav.
 %setup -q -n mod_%{mod_name}-%{version}
 %patch0 -p0
 
+%{__perl} -pi -e 's/(-module)/$1 -avoid-version/' Makefile.am
+
 %build
+%{__libtoolize}
 %{__aclocal}
 %{__autoconf}
 %{__automake}
 
 CPPFLAGS="-I `/usr/bin/apr-config --includedir` -I `/usr/bin/apu-config --includedir`"
-export CPPFLAGS
-
 %configure \
        --with-apxs=%{apxs}
 
@@ -61,7 +61,7 @@ export CPPFLAGS
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/httpd.conf}
 
-install .libs/mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
+install .libs/mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}/mod_%{mod_name}.so
 
 CFG="$RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf"
 install %{SOURCE1} ${CFG}/32_mod_clamav.conf
@@ -73,7 +73,7 @@ rm -rf $RPM_BUILD_ROOT
 if [ -f /var/lock/subsys/httpd ]; then
        /etc/rc.d/init.d/httpd restart 1>&2
 else
-       echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
+       echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache HTTP daemon."
 fi
 
 %preun
This page took 0.079487 seconds and 4 git commands to generate.