2016-10-08 15:44:49 +02:00
|
|
|
#
|
|
|
|
# spec file for package perl-Specio
|
|
|
|
#
|
2022-06-16 16:12:16 +02:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2016-10-08 15:44:49 +02: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.
|
|
|
|
|
2018-11-08 16:09:13 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-10-08 15:44:49 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2021-02-16 11:51:58 +01:00
|
|
|
%define cpan_name Specio
|
2016-10-08 15:44:49 +02:00
|
|
|
Name: perl-Specio
|
2022-06-16 16:12:16 +02:00
|
|
|
Version: 0.48
|
2016-10-08 15:44:49 +02:00
|
|
|
Release: 0
|
|
|
|
License: Artistic-2.0
|
2022-06-16 16:12:16 +02:00
|
|
|
Summary: Type constraints and coercions for Perl
|
2021-02-16 11:51:58 +01:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2017-02-13 19:37:29 +01:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/%{cpan_name}-%{version}.tar.gz
|
2016-10-08 20:15:10 +02:00
|
|
|
Source1: cpanspec.yml
|
2016-10-08 15:44:49 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
BuildRequires: perl(Devel::StackTrace)
|
|
|
|
BuildRequires: perl(Eval::Closure)
|
|
|
|
BuildRequires: perl(List::Util) >= 1.33
|
|
|
|
BuildRequires: perl(MRO::Compat)
|
2017-02-13 19:37:29 +01:00
|
|
|
BuildRequires: perl(Module::Runtime)
|
2016-10-08 20:15:10 +02:00
|
|
|
BuildRequires: perl(Role::Tiny) >= 1.003003
|
2016-10-08 15:44:49 +02:00
|
|
|
BuildRequires: perl(Role::Tiny::With)
|
2017-09-03 10:59:56 +02:00
|
|
|
BuildRequires: perl(Sub::Quote)
|
2016-10-08 15:44:49 +02:00
|
|
|
BuildRequires: perl(Test::Fatal)
|
|
|
|
BuildRequires: perl(Test::More) >= 0.96
|
|
|
|
BuildRequires: perl(Test::Needs)
|
2017-09-03 10:59:56 +02:00
|
|
|
BuildRequires: perl(Try::Tiny)
|
2020-10-20 20:15:27 +02:00
|
|
|
BuildRequires: perl(XString)
|
2016-10-08 15:44:49 +02:00
|
|
|
BuildRequires: perl(parent)
|
|
|
|
BuildRequires: perl(version) >= 0.83
|
|
|
|
Requires: perl(Devel::StackTrace)
|
|
|
|
Requires: perl(Eval::Closure)
|
|
|
|
Requires: perl(List::Util) >= 1.33
|
|
|
|
Requires: perl(MRO::Compat)
|
2017-02-13 19:37:29 +01:00
|
|
|
Requires: perl(Module::Runtime)
|
2016-10-08 20:15:10 +02:00
|
|
|
Requires: perl(Role::Tiny) >= 1.003003
|
2016-10-08 15:44:49 +02:00
|
|
|
Requires: perl(Role::Tiny::With)
|
2017-09-03 10:59:56 +02:00
|
|
|
Requires: perl(Sub::Quote)
|
2016-10-08 20:15:10 +02:00
|
|
|
Requires: perl(Test::Fatal)
|
2016-10-08 15:44:49 +02:00
|
|
|
Requires: perl(Test::More) >= 0.96
|
2017-09-03 10:59:56 +02:00
|
|
|
Requires: perl(Try::Tiny)
|
2020-10-20 20:15:27 +02:00
|
|
|
Requires: perl(XString)
|
2016-10-08 15:44:49 +02:00
|
|
|
Requires: perl(parent)
|
|
|
|
Requires: perl(version) >= 0.83
|
2017-02-13 19:37:29 +01:00
|
|
|
Recommends: perl(Ref::Util) >= 0.112
|
|
|
|
Recommends: perl(Sub::Util) >= 1.40
|
2016-10-08 15:44:49 +02:00
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
%description
|
|
|
|
The 'Specio' distribution provides classes for representing type
|
|
|
|
constraints and coercion, along with syntax sugar for declaring them.
|
|
|
|
|
|
|
|
Note that this is not a proper type system for Perl. Nothing in this
|
|
|
|
distribution will magically make the Perl interpreter start checking a
|
|
|
|
value's type on assignment to a variable. In fact, there's no built-in way
|
|
|
|
to apply a type to a variable at all.
|
|
|
|
|
|
|
|
Instead, you can explicitly check a value against a type, and optionally
|
|
|
|
coerce values to that type.
|
|
|
|
|
|
|
|
My long-term goal is to replace Moose's built-in types and MooseX::Types
|
|
|
|
with this module.
|
|
|
|
|
|
|
|
%prep
|
2021-02-16 11:51:58 +01:00
|
|
|
%autosetup -n %{cpan_name}-%{version}
|
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
2016-10-08 15:44:49 +02:00
|
|
|
|
|
|
|
%build
|
2018-11-08 16:09:13 +01:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
2021-02-16 11:51:58 +01:00
|
|
|
%make_build
|
2016-10-08 15:44:49 +02:00
|
|
|
|
|
|
|
%check
|
2019-08-15 21:02:51 +02:00
|
|
|
make test
|
2016-10-08 15:44:49 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2021-02-16 11:51:58 +01:00
|
|
|
%doc Changes CODE_OF_CONDUCT.md CONTRIBUTING.md README.md TODO.md
|
2017-02-13 19:37:29 +01:00
|
|
|
%license LICENSE
|
2016-10-08 15:44:49 +02:00
|
|
|
|
|
|
|
%changelog
|