]>
Commit | Line | Data |
---|---|---|
77364fb6 AM |
1 | Summary: Exim DSPAM at SMTP time |
2 | Name: dspam-exim | |
3 | Version: 0.8 | |
4 | Release: 1 | |
5 | License: GPL | |
6 | Group: Networking/Daemons | |
7 | # http://dspamwiki.woozle.org/DspamWithEximLocalScanSourceCodeNew | |
8 | Source0: dspam_exim.c | |
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) | |
16 | ||
17 | %description | |
18 | Exim DSPAM at SMTP time. | |
19 | ||
20 | %prep | |
21 | %setup -q -T -c | |
22 | ||
23 | %build | |
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 | |
28 | ||
29 | %install | |
30 | rm -rf $RPM_BUILD_ROOT | |
31 | install -d $RPM_BUILD_ROOT{%{_sysconfdir}/mail,%{_libdir}/exim} | |
32 | ||
33 | install dspam.so $RPM_BUILD_ROOT%{_libdir}/exim/dspam.so | |
34 | ||
35 | %clean | |
36 | rm -rf $RPM_BUILD_ROOT | |
37 | ||
38 | %files | |
39 | %defattr(644,root,root,755) | |
40 | %attr(755,root,root) %{_libdir}/exim/dspam.so |