2 # - Obsolete perl-Email-Send?
5 %bcond_without tests # do not perform "make test"
9 Summary: Email::Sender - a library for sending email
10 Name: perl-Email-Sender
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/Email/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: 20aed58073155ac38530b3d64eb73379
18 URL: https://github.com/rjbs/Email-Sender
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRequires: perl(Capture::Tiny) >= 0.08
23 BuildRequires: perl(Email::Abstract) >= 3.006
24 BuildRequires: perl(Email::Simple) >= 1.998
25 BuildRequires: perl(Moo) >= 1.000008
26 BuildRequires: perl(MooX::Types::MooseLike) >= 0.15
27 BuildRequires: perl(MooX::Types::MooseLike::Base)
28 BuildRequires: perl(Throwable::Error) >= 0.200003
29 BuildRequires: perl-Class-Method-Modifiers
30 BuildRequires: perl-Email-Address
31 BuildRequires: perl-List-MoreUtils
32 BuildRequires: perl-Module-Runtime
33 BuildRequires: perl-Moo
34 BuildRequires: perl-Sub-Exporter
35 BuildRequires: perl-Try-Tiny
37 Requires: perl-Throwable
39 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42 Email::Sender replaces the old and sometimes problematic Email::Send
43 library, which did a decent job at handling very simple email sending
44 tasks, but was not suitable for serious use, for a variety of reasons.
46 Most users will be able to use Email::Sender::Simple to send mail.
47 Users with more specific needs should look at the available
48 Email::Sender::Transport classes.
51 %setup -q -n %{pdir}-%{pnam}-%{version}
54 %{__perl} Makefile.PL \
58 %{?with_tests:%{__make} test}
61 rm -rf $RPM_BUILD_ROOT
62 %{__make} pure_install \
63 DESTDIR=$RPM_BUILD_ROOT
66 rm -rf $RPM_BUILD_ROOT
69 %defattr(644,root,root,755)
71 %{perl_vendorlib}/Email/*.pm
72 %{perl_vendorlib}/Email/Sender