]>
Commit | Line | Data |
---|---|---|
77364fb6 | 1 | Summary: Exim DSPAM at SMTP time |
bf2f0ba6 | 2 | Summary(pl.UTF-8): Exim DSPAM w czasie SMTP |
77364fb6 AM |
3 | Name: dspam-exim |
4 | Version: 0.8 | |
5 | Release: 1 | |
6 | License: GPL | |
7 | Group: Networking/Daemons | |
8 | # http://dspamwiki.woozle.org/DspamWithEximLocalScanSourceCodeNew | |
9 | Source0: dspam_exim.c | |
10 | URL: http://dspamwiki.woozle.org/DspamWithEximLocalScan | |
77364fb6 | 11 | BuildRequires: clamav-devel |
2f63e969 JB |
12 | BuildRequires: dspam-devel |
13 | BuildRequires: exim-devel | |
77364fb6 AM |
14 | BuildRequires: mysql-devel |
15 | Requires: exim >= 2:4.52-4 | |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
18 | %description | |
19 | Exim DSPAM at SMTP time. | |
20 | ||
a105087a | 21 | %description -l pl.UTF-8 |
2f63e969 JB |
22 | Exim DSPAM w czasie SMTP. |
23 | ||
77364fb6 AM |
24 | %prep |
25 | %setup -q -T -c | |
26 | ||
27 | %build | |
28 | %{__cc} -Wall -DDLOPEN_LOCAL_SCAN=1 %{rpmcflags} %{rpmldflags} -fPIC \ | |
29 | -I%{_includedir}/exim -I%{_includedir}/mysql -I%{_includedir}/clamav -I%{_includedir}/dspam \ | |
30 | -lmysqlclient -lclamav -ldspam \ | |
31 | -shared %{SOURCE0} -o dspam.so | |
32 | ||
33 | %install | |
34 | rm -rf $RPM_BUILD_ROOT | |
35 | install -d $RPM_BUILD_ROOT{%{_sysconfdir}/mail,%{_libdir}/exim} | |
36 | ||
37 | install dspam.so $RPM_BUILD_ROOT%{_libdir}/exim/dspam.so | |
38 | ||
39 | %clean | |
40 | rm -rf $RPM_BUILD_ROOT | |
41 | ||
42 | %files | |
43 | %defattr(644,root,root,755) | |
44 | %attr(755,root,root) %{_libdir}/exim/dspam.so |