# # spec file for package perl-MooseX-Types-Parameterizable # # 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 MooseX-Types-Parameterizable Name: perl-MooseX-Types-Parameterizable Version: 0.90.0 Release: 0 # 0.09 -> normalize -> 0.90.0 %define cpan_version 0.09 License: Artistic-1.0 OR GPL-1.0-or-later Summary: Create your own Parameterizable Types for Moose URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/J/JJ/JJNAPIORK/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml Source100: README.md Patch0: remove-buggy-test.patch BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Data::Dump) >= 1.17 BuildRequires: perl(Devel::PartialDump) >= 0.13 BuildRequires: perl(Digest::MD5) >= 2.39 BuildRequires: perl(Moose) >= 2.0604 BuildRequires: perl(MooseX::NonMoose) >= 0.22 BuildRequires: perl(MooseX::Types) >= 0.35 BuildRequires: perl(MooseX::Types::Structured) BuildRequires: perl(Scalar::Util) >= 1.19 BuildRequires: perl(Set::Scalar) BuildRequires: perl(Test::Most) BuildRequires: perl(Test::Requires) Requires: perl(Data::Dump) >= 1.17 Requires: perl(Devel::PartialDump) >= 0.13 Requires: perl(Digest::MD5) >= 2.39 Requires: perl(Moose) >= 2.0604 Requires: perl(MooseX::NonMoose) >= 0.22 Requires: perl(MooseX::Types) >= 0.35 Requires: perl(Scalar::Util) >= 1.19 Provides: perl(MooseX::Types::Parameterizable) = 0.100.0 %undefine __perllib_provides %{perl_requires} %description A MooseX::Types library for creating parameterizable types. A parameterizable type constraint for all intents and uses is a subclass of a parent type, but adds additional type parameters which are available to constraint callbacks (such as inside the 'where' clause of a type constraint definition) or in the coercions you define for a given type constraint. %prep %autosetup -n %{cpan_name}-%{cpan_version} -p1 # MANUAL BEGIN sed -i -e 's/use inc::Module::Install/use lib q[.];\nuse inc::Module::Install/' Makefile.PL rm t/09-coercions-bug.t # MANUAL END %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 README.mkdn %license LICENSE %changelog