2
# Based on original file by Carlos Morgado <chbm@chbm.nu>
3
# Updates from Pawel Salek <pawsa@theochem.kth.se>
4
# Updates from Christophe Lambin <clambin@easynet.be>
6
Summary: SMTP client library
12
%define plugindir %{prefix}/lib/esmtp-plugins
20
Group: System Environment/Libraries
21
Summary: SMTP client library.
22
Source: %{pkg}-%{ver}.tar.bz2
24
URL: http://www.stafford.uklinux.net/libesmtp/
25
BuildRoot: /var/tmp/%{pkg}-root
28
Packager: Brian Stafford <brian@stafford.uklinux.net>
32
Requires: openssl >= %{openssl}
33
BuildRequires: openssl-devel >= %{openssl}
36
LibESMTP is a library to manage posting (or submission of) electronic
37
mail using SMTP to a preconfigured Mail Transport Agent (MTA) such as
38
Exim. It may be used as part of a Mail User Agent (MUA) or another
39
program that must be able to post electronic mail but where mail
40
functionality is not the program's primary purpose.
43
Group: Development/Libraries
44
Summary: Headers and development libraries for libESMTP.
45
Requires: %{pkg} = %{ver}
46
Requires: openssl-devel >= %{openssl}
49
The libesmtp-devel package contains headers and development libraries
50
necessary for building programs against libesmtp.
58
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix} --enable-all --with-auth-plugin-dir=%{plugindir} --enable-pthreads
62
rm -rf $RPM_BUILD_ROOT
63
make DESTDIR="$RPM_BUILD_ROOT" install
66
rm -rf $RPM_BUILD_ROOT
70
%defattr(-, root, root)
71
%doc AUTHORS COPYING COPYING.GPL NEWS Notes README
72
%{prefix}/lib/libesmtp.so.*
77
%{prefix}/bin/libesmtp-config
79
%{prefix}/lib/libesmtp.so
80
%{prefix}/lib/libesmtp.la
81
%{prefix}/lib/libesmtp.a