PAM for SMTP Authentication
リビジョン | 0e90c8e5c924f5fec105d3346d04b6d9a7e8265e (tree) |
---|---|
日時 | 2010-04-21 17:36:37 |
作者 | Taizo ITO <taizo.ito@hde....> |
コミッター | Taizo ITO |
commited.
@@ -5,6 +5,7 @@ | ||
5 | 5 | |
6 | 6 | %define vendor_openssl %([ "%{?_vendor_openssl}" = "" ] && echo || echo %{_vendor_openssl}) |
7 | 7 | %define vendor_libdir %([ "%{?_vendor_libdir}" = "" ] && echo || echo %{_vendor_libdir}) |
8 | +%define vendor_includedir %([ "%{?_vendor_includedir}" = "" ] && echo || echo %{_vendor_includedir}) | |
8 | 9 | |
9 | 10 | %define version @VERSION@ |
10 | 11 | %define release 1 |
@@ -48,6 +49,8 @@ Linux-PAM and SMTP Authentication. | ||
48 | 49 | |
49 | 50 | %build |
50 | 51 | %if "%{vendor_libdir}" != "" |
52 | +LIBS="-I%{vendor_includedir} -L%{vendor_libdir}" | |
53 | +export LIBS | |
51 | 54 | LDFLAGS="-Wl,-rpath,%{vendor_libdir} -L%{vendor_libdir}" |
52 | 55 | export LDFLAGS |
53 | 56 | %endif |
@@ -55,12 +58,20 @@ export LDFLAGS | ||
55 | 58 | --prefix=%{_prefix} \ |
56 | 59 | --libdir=%{_libdir} \ |
57 | 60 | --enable-debug=yes \ |
61 | + --includedir=%{vendor_includedir} \ | |
58 | 62 | %if %{with_smtps} |
59 | 63 | --enable-ssl=yes \ |
60 | 64 | --with-krb5-dir=%{_prefix}/kerberos \ |
61 | 65 | %endif |
62 | 66 | |
67 | +%if "%{vendor_libdir}" != "" | |
68 | +CFLAGS="-I%{vendor_includedir} -Wl,-rpath,%{vendor_libdir} -L%{vendor_libdir}" | |
69 | +export CFLAGS | |
70 | +make %{?_smp_mflags} CFLAGS="${CFLAGS}" || make CFLAGS="${CFLAGS}" | |
71 | +%else | |
63 | 72 | make %{?_smp_mflags} || make |
73 | +%endif | |
74 | + | |
64 | 75 | ## make check |
65 | 76 | |
66 | 77 | %install |