File perl-Sisimai.spec of Package perl-Sisimai

#
# spec file for package perl-Sisimai
#
# Copyright (c) 2025 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 Sisimai
Name:           perl-Sisimai
Version:        5.4.0
Release:        0
License:        SUSE-Public-Domain
Summary:        Mail Analyzing Interface for bounce mails
URL:            https://metacpan.org/release/%{cpan_name}
Source0:        https://cpan.metacpan.org/authors/id/A/AK/AKXLIX/%{cpan_name}-v%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Class::Accessor::Lite) >= 0.05
BuildRequires:  perl(JSON) >= 2.90
BuildRequires:  perl(Module::Build::Tiny) >= 0.035
BuildRequires:  perl(Module::Load) >= 0.32
BuildRequires:  perl(Test::More) >= 0.98
BuildRequires:  perl(Time::Local) >= 1.19
BuildRequires:  perl(Time::Piece) >= 1.29
Requires:       perl(Class::Accessor::Lite) >= 0.05
Requires:       perl(JSON) >= 2.90
Requires:       perl(Module::Load) >= 0.32
Requires:       perl(Time::Local) >= 1.19
Requires:       perl(Time::Piece) >= 1.29
%{perl_requires}

%description
*Sisimai* (pronounced /ɕi.ɕi.ma.i/) is a library that decodes complex and
diverse bounce emails and outputs the results of the delivery failure, such
as the reason for the bounce and the recipient email address, in structured
data. It is also possible to output in JSON format.

%prep
%autosetup  -n %{cpan_name}-v%{version}

%build
perl Build.PL --installdirs=vendor
./Build build --flags=%{?_smp_mflags}

%check
./Build test

%install
./Build install --destdir=%{buildroot} --create_packlist=0
%perl_gen_filelist

%files -f %{name}.files
%doc ANALYTICAL-PRECISION Benchmarks.mk ChangeLog.md Changes CONTRIBUTING Developers.mk KNOWNBUGS Makefile README-JA.md README.md Repository.mk
%license LICENSE

%changelog
openSUSE Build Service is sponsored by