]>
Commit | Line | Data |
---|---|---|
9b9f1910 | 1 | Summary: Greylisting for Exim |
7a246c01 | 2 | Summary(pl.UTF-8): Obsługa "szarych list" dla Exima |
9b9f1910 AM |
3 | Name: exim-greylist-af |
4 | Version: 0.02 | |
5 | Release: 1 | |
6 | License: GPL | |
7 | Group: Networking/Daemons | |
8 | Source0: http://andrew-ford.com/exim/%{name}-%{version}.tar.gz | |
9 | Patch0: %{name}-dlopen.patch | |
10 | URL: http://andrew-ford.com/exim/ | |
11 | BuildRequires: exim-devel | |
9b9f1910 | 12 | BuildRequires: mysql-devel |
d751535e | 13 | BuildRequires: openssl-devel |
9b9f1910 AM |
14 | Requires: exim >= 2:4.52-4 |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
16 | ||
17 | %description | |
18 | Greylisting for exim. | |
19 | ||
fff7d9d2 JR |
20 | %description -l pl.UTF-8 |
21 | Obsługa "szarych list" dla Exima. | |
d751535e | 22 | |
9b9f1910 AM |
23 | %prep |
24 | %setup -q | |
25 | %patch0 -p1 | |
26 | ||
27 | %build | |
28 | rm -f local_scan.h | |
29 | %{__cc} -Wall -DDLOPEN_LOCAL_SCAN=1 %{rpmcflags} %{rpmldflags} -fPIC \ | |
30 | -I%{_includedir}/exim -I%{_includedir}/mysql -I%{_includedir}/openssl \ | |
31 | -lmysqlclient -lcrypto \ | |
32 | -shared local_scan.c -o %{name}.so | |
33 | ||
34 | %install | |
35 | rm -rf $RPM_BUILD_ROOT | |
36 | install -d $RPM_BUILD_ROOT{%{_sysconfdir}/mail,%{_libdir}/exim} | |
37 | ||
38 | install %{name}.so $RPM_BUILD_ROOT%{_libdir}/exim/%{name}.so | |
39 | ||
40 | %clean | |
41 | rm -rf $RPM_BUILD_ROOT | |
42 | ||
43 | %files | |
44 | %defattr(644,root,root,755) | |
45 | %doc greylisting-localscan.txt *.sql | |
46 | %attr(755,root,root) %{_libdir}/exim/%{name}.so |