]> git.pld-linux.org Git - packages/apache-mod_clamav.git/blame - apache-mod_clamav.spec
- migrate to apache 2.4
[packages/apache-mod_clamav.git] / apache-mod_clamav.spec
CommitLineData
71357e66 1%define apxs /usr/sbin/apxs
98557b57 2%define mod_name clamav
c95298f0 3Summary: An Apache virus scanning filter
ac3d21b0 4Summary(pl.UTF-8): Filtr skanera antywirusowego dla Apache'a
d418d050 5Name: apache-mod_%{mod_name}
dbef4112 6Version: 0.23
71357e66 7Release: 1
d418d050 8License: GPL
0de851f1 9Group: Networking/Daemons/HTTP
d418d050 10Source0: http://software.othello.ch/mod_clamav/mod_%{mod_name}-%{version}.tar.gz
dbef4112 11# Source0-md5: 32c7b285dfdff5d13371b92ebe73b352
d418d050 12Source1: %{name}.conf
d418d050 13URL: http://software.othello.ch/mod_clamav/
9d6893b9 14BuildRequires: %{apxs}
ecf6a5d2 15BuildRequires: apache-devel >= 2.0
2488ddd4
ER
16BuildRequires: apr-devel >= 1:1.0
17BuildRequires: apr-util-devel >= 1:1.0
c95298f0
JB
18BuildRequires: autoconf
19BuildRequires: automake
9c2e6dce 20BuildRequires: clamav-devel
0aa5d0e9 21BuildRequires: libtool
774081d9 22BuildRequires: rpmbuild(macros) >= 1.268
2488ddd4 23Requires: apache(modules-api) = %apache_modules_api
d418d050 24Requires: apache-mod_proxy
25Requires: clamav
26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
2488ddd4 28%define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null)
b5658c7f 29%define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)/conf.d
d418d050 30
31%description
32mod_clamav is an Apache 2 filter which scans the content delivered by
33the proxy module (mod_proxy) for viruses using the Clamav virus
34scanning engine.
35
9074edcb
JR
36%description -l pl.UTF-8
37mod_clamav to filtr dla serwera Apache 2 skanujący treści dostarczane
38przez moduł proxy (mod_proxy) pod kątem wirusów przy użyciu silnika
c95298f0
JB
39skanera antywirusowego Clamav.
40
d418d050 41%prep
42%setup -q -n mod_%{mod_name}-%{version}
d418d050 43
44%build
0aa5d0e9 45%{__libtoolize}
d418d050 46%{__aclocal}
47%{__autoconf}
48%{__automake}
49
2488ddd4 50CPPFLAGS="-I `/usr/bin/apr-1-config --includedir` -I `/usr/bin/apu-1-config --includedir`"
d418d050 51%configure \
98557b57 52 --with-apxs=%{apxs}
d418d050 53%{__make}
54
55%install
56rm -rf $RPM_BUILD_ROOT
b5658c7f 57install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}}
c95298f0 58
0aa5d0e9 59install .libs/mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}/mod_%{mod_name}.so
b5658c7f 60install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/32_mod_clamav.conf
d418d050 61
62%clean
63rm -rf $RPM_BUILD_ROOT
64
65%post
774081d9 66%service -q httpd restart
d418d050 67
fd959990 68%postun
d418d050 69if [ "$1" = "0" ]; then
774081d9 70 %service -q httpd restart
d418d050 71fi
72
73%files
74%defattr(644,root,root,755)
ecf6a5d2 75%doc AUTHORS ChangeLog mod_clamav.html NEWS README TODO
b5658c7f 76%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*_mod_%{mod_name}.conf
4a9bbba3 77%attr(755,root,root) %{_pkglibdir}/*.so
This page took 0.056144 seconds and 4 git commands to generate.