]>
Commit | Line | Data |
---|---|---|
11b94456 | 1 | Summary: SMTP client library |
ce08ee8e | 2 | Summary(pl.UTF-8): Biblioteka kliencka SMTP |
11b94456 | 3 | Name: libesmtp |
8bd1f4c8 JB |
4 | Version: 1.0.6 |
5 | Release: 1 | |
6 | License: LGPL v2.1+ | |
11b94456 | 7 | Group: Libraries |
08b8f211 | 8 | #Source0Download: http://www.stafford.uklinux.net/libesmtp/download.html |
11b94456 | 9 | Source0: http://www.stafford.uklinux.net/libesmtp/%{name}-%{version}.tar.bz2 |
8bd1f4c8 | 10 | # Source0-md5: bf3915e627fd8f35524a8fdfeed979c8 |
11b94456 | 11 | URL: http://www.stafford.uklinux.net/libesmtp/ |
c5f65402 | 12 | BuildRequires: automake |
cdb7eb46 | 13 | BuildRequires: openssl-devel >= 0.9.7c |
11b94456 | 14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
8f7a0eb8 | 15 | |
2849f324 | 16 | %undefine __cxx |
17 | ||
8f7a0eb8 | 18 | %description |
19 | LibESMTP is a library to manage posting (or submission of) electronic | |
20 | mail using SMTP to a preconfigured Mail Transport Agent (MTA) such as | |
11b94456 | 21 | Exim. It may be used as part of a Mail User Agent (MUA) or another |
8f7a0eb8 | 22 | program that must be able to post electronic mail but where mail |
23 | functionality is not the program's primary purpose. | |
11b94456 | 24 | |
d587149c JR |
25 | %description -l pl.UTF-8 |
26 | LibESMTP to biblioteka obsługująca wysyłanie poczty elektronicznej | |
27 | przy użyciu SMTP do prekonfigurowanego MTA, np. exima. Może być | |
28 | używana jako część MTA lub innego programu, który musi umieć wysyłać | |
29 | pocztę. | |
0f25e8e6 | 30 | |
11b94456 | 31 | %package devel |
32 | Summary: Development resources for libesmtp | |
ce08ee8e | 33 | Summary(pl.UTF-8): Pliki dla programistów używających libesmtp |
11b94456 | 34 | Group: Development/Libraries |
08b8f211 JB |
35 | Requires: %{name} = %{version}-%{release} |
36 | Requires: openssl-devel >= 0.9.7c | |
11b94456 | 37 | |
38 | %description devel | |
39 | Development resources for libesmtp. | |
40 | ||
d587149c JR |
41 | %description devel -l pl.UTF-8 |
42 | Pliki dla programistów używających libesmtp. | |
0f25e8e6 | 43 | |
11b94456 | 44 | %package static |
45 | Summary: Static libesmtp libraries | |
ce08ee8e | 46 | Summary(pl.UTF-8): Statyczne biblioteki libesmtp |
11b94456 | 47 | Group: Development/Libraries |
08b8f211 | 48 | Requires: %{name}-devel = %{version}-%{release} |
11b94456 | 49 | |
c5f65402 | 50 | %description static |
11b94456 | 51 | Static libesmtp libraries. |
52 | ||
d587149c | 53 | %description static -l pl.UTF-8 |
0f25e8e6 JB |
54 | Statyczne biblioteki libesmtp. |
55 | ||
8cb755bd | 56 | %prep |
11b94456 | 57 | %setup -q |
8f7a0eb8 | 58 | |
59 | %build | |
f1730b4f | 60 | cp -f /usr/share/automake/config.sub . |
08b8f211 | 61 | %configure \ |
673a71f1 | 62 | %{?debug:--enable-debug}%{!?debug:--disable-debug} \ |
08b8f211 JB |
63 | --enable-etrn \ |
64 | --enable-ntlm \ | |
11b94456 | 65 | --enable-pthreads \ |
08b8f211 | 66 | --with-auth-plugin-dir=%{_libdir}/esmtp-plugins |
11b94456 | 67 | %{__make} |
68 | ||
8f7a0eb8 | 69 | %install |
70 | rm -rf $RPM_BUILD_ROOT | |
11b94456 | 71 | |
f1730b4f | 72 | %{__make} install \ |
73 | DESTDIR=$RPM_BUILD_ROOT | |
11b94456 | 74 | |
8bd1f4c8 | 75 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/esmtp-plugins/*.{a,la} |
08b8f211 | 76 | |
8f7a0eb8 | 77 | %clean |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | ||
0f25e8e6 JB |
80 | %post -p /sbin/ldconfig |
81 | %postun -p /sbin/ldconfig | |
82 | ||
8f7a0eb8 | 83 | %files |
11b94456 | 84 | %defattr(644,root,root,755) |
8bd1f4c8 JB |
85 | %doc AUTHORS ChangeLog NEWS Notes README |
86 | %attr(755,root,root) %{_libdir}/libesmtp.so.*.*.* | |
87 | %attr(755,root,root) %ghost %{_libdir}/libesmtp.so.6 | |
11b94456 | 88 | %dir %{_libdir}/esmtp-plugins |
8bd1f4c8 | 89 | %attr(755,root,root) %{_libdir}/esmtp-plugins/sasl-*.so |
11b94456 | 90 | |
91 | %files devel | |
92 | %defattr(644,root,root,755) | |
11b94456 | 93 | %attr(755,root,root) %{_bindir}/libesmtp-config |
08b8f211 JB |
94 | %attr(755,root,root) %{_libdir}/libesmtp.so |
95 | %{_libdir}/libesmtp.la | |
8bd1f4c8 JB |
96 | %{_includedir}/auth-client.h |
97 | %{_includedir}/auth-plugin.h | |
98 | %{_includedir}/libesmtp.h | |
11b94456 | 99 | |
100 | %files static | |
101 | %defattr(644,root,root,755) | |
08b8f211 | 102 | %{_libdir}/libesmtp.a |