File perl-MooseX-Meta-TypeConstraint-ForceCoercion.spec of Package perl-MooseX-Meta-TypeConstraint-ForceCoercion

# vim: set sw=4 ts=4 et nu:
# 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.

# Please submit bugfixes or comments via
Name:           perl-MooseX-Meta-TypeConstraint-ForceCoercion
Version:        0.01
Release:        0
Summary:        Force coercion when validating type constraints
License:        Artistic-1.0 or GPL-1.0+
Group:          Development/Libraries/Perl
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  make
BuildRequires:  perl-macros
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(Moose)
BuildRequires:  perl(namespace::autoclean)
Requires:       perl(namespace::autoclean)
Requires:       perl(Moose)
%if 0%{?suse_version} >= 1120
BuildArch:      noarch

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.

%setup -q -n "MooseX-Meta-TypeConstraint-ForceCoercion-%{version}"
%__sed -i '/^auto_install/d' Makefile.PL

%__perl Makefile.PL PREFIX="%{_prefix}"
%__make %{?jobs:-j%{jobs}}


%__make test

%{?buildroot:%__rm -rf "%{buildroot}"}

%dir %{perl_vendorlib}/MooseX
%dir %{perl_vendorlib}/MooseX/Meta
%dir %{perl_vendorlib}/MooseX/Meta/TypeConstraint
%doc %{perl_man3dir}/MooseX::Meta::TypeConstraint::ForceCoercion.%{perl_man3ext}%{ext_man}