1 Summary: Exim DSPAM at SMTP time
6 Group: Networking/Daemons
7 # http://dspamwiki.woozle.org/DspamWithEximLocalScanSourceCodeNew
9 URL: http://dspamwiki.woozle.org/DspamWithEximLocalScan
10 BuildRequires: exim-devel
11 BuildRequires: dspam-devel
12 BuildRequires: clamav-devel
13 BuildRequires: mysql-devel
14 Requires: exim >= 2:4.52-4
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 Exim DSPAM at SMTP time.
24 %{__cc} -Wall -DDLOPEN_LOCAL_SCAN=1 %{rpmcflags} %{rpmldflags} -fPIC \
25 -I%{_includedir}/exim -I%{_includedir}/mysql -I%{_includedir}/clamav -I%{_includedir}/dspam \
26 -lmysqlclient -lclamav -ldspam \
27 -shared %{SOURCE0} -o dspam.so
30 rm -rf $RPM_BUILD_ROOT
31 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/mail,%{_libdir}/exim}
33 install dspam.so $RPM_BUILD_ROOT%{_libdir}/exim/dspam.so
36 rm -rf $RPM_BUILD_ROOT
39 %defattr(644,root,root,755)
40 %attr(755,root,root) %{_libdir}/exim/dspam.so