File perl-Type-Tiny.spec of Package perl-Type-Tiny

#
# spec file for package perl-Type-Tiny
#
# 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 Type-Tiny
Name:           perl-Type-Tiny
Version:        2.008002
Release:        0
License:        Artistic-1.0 OR GPL-1.0-or-later
Summary:        Tiny, yet Moo(se)-compatible type constraint
URL:            https://metacpan.org/release/%{cpan_name}
Source0:        https://cpan.metacpan.org/authors/id/T/TO/TOBYINK/%{cpan_name}-%{version}.tar.gz
Source1:        cpanspec.yml
BuildArch:      noarch
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Exporter::Tiny) >= 1.006000
BuildRequires:  perl(Test::More) >= 0.96
Requires:       perl(Exporter::Tiny) >= 1.006000
Recommends:     perl(Class::XSAccessor) >= 1.170
Recommends:     perl(Devel::LexAlias) >= 0.50.0
Recommends:     perl(Devel::StackTrace)
Recommends:     perl(Ref::Util::XS) >= 0.100
Recommends:     perl(Regexp::Util) >= 0.3.0
Recommends:     perl(Sub::Util)
Recommends:     perl(Type::Tiny::XS) >= 0.25.0
%{perl_requires}

%description
This documents the internals of the Type::Tiny class. Type::Tiny::Manual is
a better starting place if you're new.

Type::Tiny is a small class for creating Moose-like type constraint objects
which are compatible with Moo, Moose and Mouse.

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

%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 CONTRIBUTING COPYRIGHT CREDITS doap.ttl examples NEWS README
%license LICENSE

%changelog
openSUSE Build Service is sponsored by