# # spec file for package perl-Dancer-Plugin-Email # # 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 Dancer-Plugin-Email Name: perl-Dancer-Plugin-Email Version: 1.40.0 Release: 0 %define cpan_version 1.0400 License: Artistic-1.0 OR GPL-1.0-or-later Summary: Simple email sending for Dancer applications URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/I/IR/IRONCAMEL/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml Source100: README.md BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Authen::SASL) >= 2.16 BuildRequires: perl(Dancer) BuildRequires: perl(Dancer::Plugin) BuildRequires: perl(Email::Date::Format) BuildRequires: perl(Email::Sender::Simple) BuildRequires: perl(File::Type) BuildRequires: perl(MIME::Base64) >= 3.14 BuildRequires: perl(MIME::Entity) BuildRequires: perl(Module::Load) BuildRequires: perl(Net::SMTP::SSL) >= 1.01 BuildRequires: perl(Net::SSLeay) >= 1.58 Requires: perl(Authen::SASL) >= 2.16 Requires: perl(Dancer) Requires: perl(Dancer::Plugin) Requires: perl(Email::Date::Format) Requires: perl(Email::Sender::Simple) Requires: perl(File::Type) Requires: perl(MIME::Base64) >= 3.14 Requires: perl(MIME::Entity) Requires: perl(Module::Load) Requires: perl(Net::SMTP::SSL) >= 1.01 Requires: perl(Net::SSLeay) >= 1.58 Provides: perl(Dancer::Plugin::Email) = %{version} %undefine __perllib_provides %{perl_requires} %description This plugin tries to make sending emails from Dancer applications as simple as possible. It uses Email::Sender under the hood. In a lot of cases, no configuration is required. For example, if your app is hosted on a unix-like server with sendmail installed, calling 'email()' will just do the right thing. IMPORTANT: Version 1.x of this module is not backwards compatible with the 0.x versions. This module was originally built on Email::Stuff which was built on Email::Send which has been deprecated in favor of Email::Sender. Versions 1.x and on have be refactored to use Email::Sender. I have tried to keep the interface the same as much as possible. The main difference is the configuration. If there are features missing that you were using in older versions, then please let me know by creating an issue on at https://github.com/ironcamel/Dancer-Plugin-Email. %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