~ubuntu-branches/ubuntu/raring/libesmtp/raring

« back to all changes in this revision

Viewing changes to libesmtp.spec

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy T. Bouse
  • Date: 2004-05-01 17:50:31 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040501175031-nf5hqbq6v1bjjm9a
Tags: 1.0.3-1
* New upstream release
* Patched libesmtp.h to include <sys/types.h> (Closes: #202648)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# libesmtp.spec.in
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>
5
 
 
6
 
Summary:        SMTP client library
7
 
 
8
 
%define pkg     libesmtp
9
 
%define ver     0.8.11
10
 
%define rel     1
11
 
%define prefix  /usr
12
 
%define plugindir %{prefix}/lib/esmtp-plugins
13
 
%define openssl 0.9.6
14
 
 
15
 
Name:           %{pkg}
16
 
Version:        %{ver}
17
 
Release:        %{rel}
18
 
 
19
 
Copyright:      LGPL
20
 
Group:          System Environment/Libraries
21
 
Summary:        SMTP client library.
22
 
Source:         %{pkg}-%{ver}.tar.bz2
23
 
 
24
 
URL:            http://www.stafford.uklinux.net/libesmtp/
25
 
BuildRoot:      /var/tmp/%{pkg}-root
26
 
Prefix:         %{prefix}
27
 
 
28
 
Packager:       Brian Stafford <brian@stafford.uklinux.net>
29
 
Provides:       %{pkg}
30
 
Docdir:         %{_docdir}
31
 
 
32
 
Requires:       openssl >= %{openssl}
33
 
BuildRequires:  openssl-devel >= %{openssl}
34
 
 
35
 
%description
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.
41
 
 
42
 
%package devel
43
 
Group:          Development/Libraries
44
 
Summary:        Headers and development libraries for libESMTP.
45
 
Requires:       %{pkg} = %{ver}
46
 
Requires:       openssl-devel >= %{openssl}
47
 
 
48
 
%description devel
49
 
The libesmtp-devel package contains headers and development libraries
50
 
necessary for building programs against libesmtp.
51
 
 
52
 
 
53
 
%prep 
54
 
%setup -T -b 0
55
 
#%patch
56
 
 
57
 
%build
58
 
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix} --enable-all --with-auth-plugin-dir=%{plugindir} --enable-pthreads 
59
 
make
60
 
 
61
 
%install
62
 
rm -rf $RPM_BUILD_ROOT
63
 
make DESTDIR="$RPM_BUILD_ROOT" install
64
 
 
65
 
%clean
66
 
rm -rf $RPM_BUILD_ROOT
67
 
 
68
 
 
69
 
%files
70
 
%defattr(-, root, root)
71
 
%doc AUTHORS COPYING COPYING.GPL NEWS Notes README
72
 
%{prefix}/lib/libesmtp.so.*
73
 
%{plugindir}/sasl-*
74
 
 
75
 
%files devel
76
 
%defattr(-,root,root)
77
 
%{prefix}/bin/libesmtp-config
78
 
%{prefix}/include/*
79
 
%{prefix}/lib/libesmtp.so
80
 
%{prefix}/lib/libesmtp.la
81
 
%{prefix}/lib/libesmtp.a
82