2016-10-08 15:44:49 +02:00
|
|
|
#
|
|
|
|
# spec file for package perl-Specio
|
|
|
|
#
|
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# 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 http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: perl-Specio
|
2016-10-08 20:15:10 +02:00
|
|
|
Version: 0.28
|
2016-10-08 15:44:49 +02:00
|
|
|
Release: 0
|
|
|
|
%define cpan_name Specio
|
|
|
|
Summary: Type constraints and coercions for Perl
|
|
|
|
License: Artistic-2.0
|
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
Url: http://search.cpan.org/dist/Specio/
|
|
|
|
Source0: http://www.cpan.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
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
BuildRequires: perl(Devel::StackTrace)
|
|
|
|
BuildRequires: perl(Eval::Closure)
|
|
|
|
BuildRequires: perl(List::Util) >= 1.33
|
|
|
|
BuildRequires: perl(MRO::Compat)
|
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)
|
|
|
|
BuildRequires: perl(Test::Fatal)
|
|
|
|
BuildRequires: perl(Test::More) >= 0.96
|
|
|
|
BuildRequires: perl(Test::Needs)
|
|
|
|
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)
|
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)
|
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
|
|
|
|
Requires: perl(parent)
|
|
|
|
Requires: perl(version) >= 0.83
|
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
%description
|
|
|
|
*WARNING: This thing is very alpha.*
|
|
|
|
|
|
|
|
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
|
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
|
|
|
|
%check
|
|
|
|
%{__make} test
|
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,755)
|
|
|
|
%doc Changes CONTRIBUTING.md LICENSE README.md
|
|
|
|
|
|
|
|
%changelog
|