-
Notifications
You must be signed in to change notification settings - Fork 3
/
libesmtp.spec.in
82 lines (65 loc) · 1.9 KB
/
libesmtp.spec.in
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
# libesmtp.spec.in
# Based on original file by Carlos Morgado <[email protected]>
# Updates from Pawel Salek <[email protected]>
# Updates from Christophe Lambin <[email protected]>
# Meson updates from Brian Stafford <[email protected]>
Summary: SMTP client library
%define pkg @PACKAGE@
%define ver @VERSION@
%define rel 1
%define prefix /usr
%define plugindir %{prefix}/@PLUGINDIR@
%define libdir %{prefix}/@LIBDIR@
%define bindir %{prefix}/@BINDIR@
%define includedir %{prefix}/include
%define openssl 1.1.0
Name: %{pkg}
Version: %{ver}
Release: %{rel}
Copyright: LGPL
Group: System Environment/Libraries
Summary: SMTP client library.
Source: %{pkg}-%{ver}.tar.bz2
URL: @URL@
BuildRoot: /var/tmp/%{pkg}-root
Prefix: %{prefix}
Packager: @EMAIL@
Provides: %{pkg}
Docdir: %{_docdir}
BuildRequires: meson
BuildRequires: gcc
@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
%autosetup -c
%build
%meson
%meson_build
%install
%meson_install
%files
%defattr(-, root, root)
%doc AUTHORS COPYING.LIB COPYING.GPL NEWS Notes README.md
%{libdir}/libesmtp.so.*
%{plugindir}/sasl-*
%files devel
%defattr(-,root,root)
%{bindir}/libesmtp-config
%{includedir}/*
%{libdir}/libesmtp.so
%{libdir}/libesmtp.la
%{libdir}/libesmtp.a