2011-02-17 01:06:58 +00:00
|
|
|
# vim: set sw=4 ts=4 et nu:
|
2011-12-21 09:41:11 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-MooseX-Meta-TypeConstraint-ForceCoercion
|
|
|
|
#
|
|
|
|
# Copyright (c) 2011 SUSE LINUX Products 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.
|
2011-02-17 01:06:58 +00:00
|
|
|
|
2011-12-21 09:41:11 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
2011-02-17 01:06:58 +00:00
|
|
|
Name: perl-MooseX-Meta-TypeConstraint-ForceCoercion
|
|
|
|
Version: 0.01
|
|
|
|
Release: 0
|
|
|
|
Summary: Force coercion when validating type constraints
|
2011-12-21 09:41:11 +00:00
|
|
|
License: Artistic-1.0 or GPL-1.0+
|
2011-02-17 01:06:58 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2011-12-21 09:41:11 +00:00
|
|
|
Source: http://search.cpan.org/CPAN/authors/id/F/FL/FLORA/MooseX-Meta-TypeConstraint-ForceCoercion-%{version}.tar.gz
|
2025-08-12 18:15:44 +02:00
|
|
|
Source100: README.md
|
2011-12-21 09:41:11 +00:00
|
|
|
Url: http://search.cpan.org/dist/MooseX-Meta-TypeConstraint-ForceCoercion
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-02-17 01:06:58 +00:00
|
|
|
%{perl_requires}
|
|
|
|
BuildRequires: make
|
2011-12-21 09:41:11 +00:00
|
|
|
BuildRequires: perl-macros
|
2011-02-17 01:06:58 +00:00
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
BuildRequires: perl(Moose)
|
2011-12-21 09:41:11 +00:00
|
|
|
BuildRequires: perl(namespace::autoclean)
|
2011-02-17 01:06:58 +00:00
|
|
|
Requires: perl(namespace::autoclean)
|
|
|
|
Requires: perl(Moose)
|
|
|
|
%if 0%{?suse_version} >= 1120
|
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
This class allows to wrap any "Moose::Meta::TypeConstraint" in a way that
|
|
|
|
will force coercion of the value when checking or validating a value
|
|
|
|
against it.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n "MooseX-Meta-TypeConstraint-ForceCoercion-%{version}"
|
|
|
|
%__sed -i '/^auto_install/d' Makefile.PL
|
|
|
|
|
|
|
|
%build
|
|
|
|
%__perl Makefile.PL PREFIX="%{_prefix}"
|
2025-06-11 06:27:42 +00:00
|
|
|
%make_build
|
2011-02-17 01:06:58 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
|
|
|
|
%check
|
|
|
|
%__make test
|
|
|
|
|
|
|
|
%clean
|
|
|
|
%{?buildroot:%__rm -rf "%{buildroot}"}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc Changes LICENSE README
|
|
|
|
%dir %{perl_vendorlib}/MooseX
|
|
|
|
%dir %{perl_vendorlib}/MooseX/Meta
|
|
|
|
%dir %{perl_vendorlib}/MooseX/Meta/TypeConstraint
|
|
|
|
%{perl_vendorlib}/MooseX/Meta/TypeConstraint/ForceCoercion.pm
|
|
|
|
%doc %{perl_man3dir}/MooseX::Meta::TypeConstraint::ForceCoercion.%{perl_man3ext}%{ext_man}
|
|
|
|
|
2011-12-21 09:41:11 +00:00
|
|
|
%changelog
|