2011-12-26 07:32:52 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-MooseX-Types-Parameterizable
|
|
|
|
#
|
2024-07-24 21:21:44 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2011-12-26 07:32:52 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2022-11-08 12:40:27 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-12-26 07:32:52 +00:00
|
|
|
#
|
|
|
|
|
2011-04-30 00:07:58 +00:00
|
|
|
|
2022-11-08 12:40:27 +00:00
|
|
|
%define cpan_name MooseX-Types-Parameterizable
|
2011-04-30 00:07:58 +00:00
|
|
|
Name: perl-MooseX-Types-Parameterizable
|
2024-07-24 21:21:44 +00:00
|
|
|
Version: 0.90.0
|
2011-04-30 00:07:58 +00:00
|
|
|
Release: 0
|
2024-07-24 21:21:44 +00:00
|
|
|
# 0.09 -> normalize -> 0.90.0
|
|
|
|
%define cpan_version 0.09
|
2022-11-08 12:40:27 +00:00
|
|
|
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}
|
2024-07-24 21:21:44 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/J/JJ/JJNAPIORK/%{cpan_name}-%{cpan_version}.tar.gz
|
2017-11-08 16:43:29 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:15:49 +02:00
|
|
|
Source100: README.md
|
2017-11-08 16:43:29 +00:00
|
|
|
Patch0: remove-buggy-test.patch
|
2011-12-26 07:32:52 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl
|
2011-04-30 00:07:58 +00:00
|
|
|
BuildRequires: perl-macros
|
|
|
|
BuildRequires: perl(Data::Dump) >= 1.17
|
|
|
|
BuildRequires: perl(Devel::PartialDump) >= 0.13
|
2011-12-26 07:32:52 +00:00
|
|
|
BuildRequires: perl(Digest::MD5) >= 2.39
|
2022-11-08 12:40:27 +00:00
|
|
|
BuildRequires: perl(Moose) >= 2.0604
|
|
|
|
BuildRequires: perl(MooseX::NonMoose) >= 0.22
|
|
|
|
BuildRequires: perl(MooseX::Types) >= 0.35
|
|
|
|
BuildRequires: perl(MooseX::Types::Structured)
|
2017-11-08 16:43:29 +00:00
|
|
|
BuildRequires: perl(Scalar::Util) >= 1.19
|
2022-11-08 12:40:27 +00:00
|
|
|
BuildRequires: perl(Set::Scalar)
|
|
|
|
BuildRequires: perl(Test::Most)
|
|
|
|
BuildRequires: perl(Test::Requires)
|
2011-04-30 00:07:58 +00:00
|
|
|
Requires: perl(Data::Dump) >= 1.17
|
|
|
|
Requires: perl(Devel::PartialDump) >= 0.13
|
2011-12-26 07:32:52 +00:00
|
|
|
Requires: perl(Digest::MD5) >= 2.39
|
2022-11-08 12:40:27 +00:00
|
|
|
Requires: perl(Moose) >= 2.0604
|
|
|
|
Requires: perl(MooseX::NonMoose) >= 0.22
|
|
|
|
Requires: perl(MooseX::Types) >= 0.35
|
2017-11-08 16:43:29 +00:00
|
|
|
Requires: perl(Scalar::Util) >= 1.19
|
2024-07-24 21:21:44 +00:00
|
|
|
Provides: perl(MooseX::Types::Parameterizable) = 0.100.0
|
|
|
|
%undefine __perllib_provides
|
2011-12-26 07:32:52 +00:00
|
|
|
%{perl_requires}
|
2011-04-30 00:07:58 +00:00
|
|
|
|
|
|
|
%description
|
2017-11-08 16:43:29 +00:00
|
|
|
A MooseX::Types library for creating parameterizable types. A
|
2011-12-26 07:32:52 +00:00
|
|
|
parameterizable type constraint for all intents and uses is a subclass of a
|
|
|
|
parent type, but adds additional type parameters which are available to
|
2011-04-30 00:07:58 +00:00
|
|
|
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
|
2024-07-24 21:21:44 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version} -p1
|
|
|
|
|
2017-11-08 16:43:29 +00:00
|
|
|
# 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
|
2011-04-30 00:07:58 +00:00
|
|
|
|
|
|
|
%build
|
2022-11-08 12:40:27 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%make_build
|
2011-12-26 07:32:52 +00:00
|
|
|
|
|
|
|
%check
|
2022-11-08 12:40:27 +00:00
|
|
|
make test
|
2011-04-30 00:07:58 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
2011-12-26 07:32:52 +00:00
|
|
|
%perl_gen_filelist
|
2011-04-30 00:07:58 +00:00
|
|
|
|
2011-12-26 07:32:52 +00:00
|
|
|
%files -f %{name}.files
|
2022-11-08 12:40:27 +00:00
|
|
|
%doc Changes README README.mkdn
|
|
|
|
%license LICENSE
|
2011-04-30 00:07:58 +00:00
|
|
|
|
2011-12-26 07:32:52 +00:00
|
|
|
%changelog
|