summaryrefslogtreecommitdiffstats
path: root/libesmtp.spec.in
blob: a4d3da47eac785c0b589a41e40ca8de21f801f6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# libesmtp.spec.in
# Based on original file by Carlos Morgado <chbm@chbm.nu>
# Updates from Pawel Salek <pawsa@theochem.kth.se>
# Updates from Christophe Lambin <clambin@easynet.be>

Summary:  	SMTP client library

%define pkg	@PACKAGE@
%define ver	@VERSION@
%define rel    	1
%define prefix 	/usr
%define plugindir %{prefix}/lib/esmtp-plugins
%define openssl	0.9.6

Name:     	%{pkg}
Version:  	%{ver}
Release:  	%{rel}

Copyright:	LGPL
Group:    	System Environment/Libraries
Summary:        SMTP client library.
Source:  	%{pkg}-%{ver}.tar.bz2

URL:       	http://www.stafford.uklinux.net/libesmtp/
BuildRoot:	/var/tmp/%{pkg}-root
Prefix:		%{prefix}

Packager:	Brian Stafford <brian@stafford.uklinux.net>
Provides:	%{pkg}
Docdir:		%{_docdir}

@RPM_REQUIRES@	@RPM_OPENSSL@
@RPM_BUILDREQUIRES@	@RPM_OPENSSLDEVEL@

%description
LibESMTP is a library to manage posting (or submission of) electronic
mail using SMTP to a preconfigured Mail Transport Agent (MTA) such as
Exim.  It may be used as part of a Mail User Agent (MUA) or another
program that must be able to post electronic mail but where mail
functionality is not the program's primary purpose.

%package devel
Group:		Development/Libraries
Summary:	Headers and development libraries for libESMTP.
Requires:	%{pkg} = %{ver}
@RPM_REQUIRES@	@RPM_OPENSSLDEVEL@

%description devel
The libesmtp-devel package contains headers and development libraries
necessary for building programs against libesmtp.

 
%prep 
%setup -T -b 0
#%patch

%build
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix} --enable-all --with-auth-plugin-dir=%{plugindir} --enable-pthreads 
make

%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR="$RPM_BUILD_ROOT" install

%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-, root, root)
%doc AUTHORS COPYING COPYING.GPL NEWS Notes README
%{prefix}/lib/libesmtp.so.*
%{plugindir}/sasl-*

%files devel
%defattr(-,root,root)
%{prefix}/bin/libesmtp-config
%{prefix}/include/*
%{prefix}/lib/libesmtp.so
%{prefix}/lib/libesmtp.la
%{prefix}/lib/libesmtp.a