# # spec file for package perl-Email-Stuffer # # Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define cpan_name Email-Stuffer Name: perl-Email-Stuffer Version: 0.20.0 Release: 0 # 0.020 -> normalize -> 0.20.0 %define cpan_version 0.020 License: Artistic-1.0 OR GPL-1.0-or-later Summary: More casual approach to creating and sending Email:: emails URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/R/RJ/RJBS/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml Source100: README.md BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Email::MIME) >= 1.943 BuildRequires: perl(Email::MIME::Creator) BuildRequires: perl(Email::Sender::Simple) BuildRequires: perl(Email::Sender::Transport::Test) >= 0.120000 BuildRequires: perl(ExtUtils::MakeMaker) >= 6.78 BuildRequires: perl(Module::Runtime) BuildRequires: perl(Moo) BuildRequires: perl(Params::Util) >= 1.05 BuildRequires: perl(Test::Fatal) BuildRequires: perl(Test::More) >= 0.96 Requires: perl(Email::MIME) >= 1.943 Requires: perl(Email::MIME::Creator) Requires: perl(Email::Sender::Simple) Requires: perl(Module::Runtime) Requires: perl(Params::Util) >= 1.05 Provides: perl(Email::Stuffer) = %{version} %undefine __perllib_provides %{perl_requires} %description *The basics should all work, but this module is still subject to name and/or API changes* Email::Stuffer, as its name suggests, is a fairly casual module used to stuff things into an email and send them. It is a high-level module designed for ease of use when doing a very specific common task, but implemented on top of the light and tolerable Email:: modules. Email::Stuffer is typically used to build emails and send them in a single statement, as seen in the synopsis. And it is certain only for use when creating and sending emails. As such, it contains no email parsing capability, and little to no modification support. To re-iterate, this is very much a module for those "slap it together and fire it off" situations, but that still has enough grunt behind the scenes to do things properly. %prep %autosetup -n %{cpan_name}-%{cpan_version} %build perl Makefile.PL INSTALLDIRS=vendor %make_build %check make test %install %perl_make_install %perl_process_packlist %perl_gen_filelist %files -f %{name}.files %doc Changes README %license LICENSE %changelog