7f9456c
Name:           perl-Scalar-Does
60747a2
Version:        0.203
439c163
Release:        3%{?dist}
7f9456c
Summary:        Check an object implements an interface
7f9456c
# COPYRIGHT:    Public Domain
7f9456c
# other files:  GPL+ or Artistic
60747a2
License:        (GPL+ or Artistic) and Public Domain
7f9456c
Group:          Development/Libraries
7f9456c
URL:            http://search.cpan.org/dist/Scalar-Does/
7f9456c
Source0:        http://www.cpan.org/authors/id/T/TO/TOBYINK/Scalar-Does-%{version}.tar.gz
7f9456c
BuildArch:      noarch
7f9456c
BuildRequires:  findutils
7f9456c
BuildRequires:  make
7f9456c
BuildRequires:  perl
7f9456c
BuildRequires:  perl-generators
7f9456c
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.17
7f9456c
BuildRequires:  perl(strict)
7f9456c
# Run-time:
7f9456c
BuildRequires:  perl(:VERSION) >= 5.8
7f9456c
BuildRequires:  perl(B)
7f9456c
BuildRequires:  perl(base)
7f9456c
BuildRequires:  perl(Carp)
7f9456c
BuildRequires:  perl(constant)
7f9456c
BuildRequires:  perl(Exporter::Tiny) >= 0.026
7f9456c
BuildRequires:  perl(if)
7f9456c
BuildRequires:  perl(lexical::underscore)
7f9456c
BuildRequires:  perl(namespace::clean) >= 0.19
7f9456c
BuildRequires:  perl(overload)
7f9456c
BuildRequires:  perl(Scalar::Util) >= 1.24
7f9456c
BuildRequires:  perl(Type::Tiny) >= 0.004
7f9456c
BuildRequires:  perl(Types::Standard) >= 0.004
7f9456c
# UNIVERSAL::DOES not used with perl >= 5.10
7f9456c
BuildRequires:  perl(URI::file)
7f9456c
BuildRequires:  perl(warnings)
7f9456c
# Tests:
7f9456c
BuildRequires:  perl(Data::Dumper)
7f9456c
BuildRequires:  perl(feature)
7f9456c
BuildRequires:  perl(File::Temp)
7f9456c
BuildRequires:  perl(FileHandle)
7f9456c
BuildRequires:  perl(IO::File)
7f9456c
BuildRequires:  perl(IO::Handle)
7f9456c
BuildRequires:  perl(IO::Socket::INET)
7f9456c
BuildRequires:  perl(Test::More) >= 0.96
7f9456c
BuildRequires:  perl(Test::Requires) >= 0.06
7f9456c
BuildRequires:  perl(URI)
7f9456c
# Optional tests:
7f9456c
BuildRequires:  perl(IO::All)
7f9456c
BuildRequires:  perl(List::MoreUtils)
7f9456c
BuildRequires:  perl(Moose)
7f9456c
BuildRequires:  perl(Moose::Role)
7f9456c
BuildRequires:  perl(MooseX::Types)
7f9456c
BuildRequires:  perl(MooseX::Types::Moose)
7f9456c
BuildRequires:  perl(Path::Class)
7f9456c
BuildRequires:  perl(Path::Tiny)
7f9456c
# Test::NoWarnings used only if List::MoreUtils exists
7f9456c
BuildRequires:  perl(Test::NoWarnings)
7f9456c
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
7f9456c
Requires:       perl(B)
7f9456c
Requires:       perl(Exporter::Tiny) >= 0.026
7f9456c
Requires:       perl(lexical::underscore)
7f9456c
Requires:       perl(Type::Tiny) >= 0.004
7f9456c
7f9456c
# Remove under-specified dependencies
7f9456c
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\((Exporter::Tiny|Type::Tiny)\\)$
7f9456c
7f9456c
%description
7f9456c
It has long been noted that Perl would benefit from a does() built-in. A
7f9456c
check that ref($thing) eq 'ARRAY' doesn't allow you to accept an object
7f9456c
that uses overloading to provide an array-like interface. This package
7f9456c
delivers Scalar::Does Perl module that can do it.
7f9456c
7f9456c
%prep
7f9456c
%setup -q -n Scalar-Does-%{version}
7f9456c
7f9456c
%build
7f9456c
perl Makefile.PL INSTALLDIRS=vendor
7f9456c
make %{?_smp_mflags}
7f9456c
7f9456c
%install
7f9456c
make pure_install DESTDIR=$RPM_BUILD_ROOT
7f9456c
find $RPM_BUILD_ROOT -type f -name .packlist -delete
7f9456c
%{_fixperms} $RPM_BUILD_ROOT/*
7f9456c
7f9456c
%check
7f9456c
make test
7f9456c
7f9456c
%files
7f9456c
%license LICENSE
60747a2
%doc Changes COPYRIGHT CREDITS IO-Detect-Changes.txt NEWS README
7f9456c
%doc TODO
7f9456c
%{perl_vendorlib}/*
7f9456c
%{_mandir}/man3/*
7f9456c
7f9456c
%changelog
439c163
* Tue Jun 06 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.203-3
439c163
- Perl 5.26 rebuild
439c163
cafa23a
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.203-2
cafa23a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
cafa23a
60747a2
* Wed Feb 01 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.203-1
60747a2
- 0.203 bump
60747a2
c819b37
* Tue Nov 29 2016 Petr Pisar <ppisar@redhat.com> - 0.202-2
c819b37
- Fix a no-warnings test (bug #1399514)
c819b37
7f9456c
* Thu Jun 23 2016 Petr Pisar <ppisar@redhat.com> 0.202-1
7f9456c
- Specfile autogenerated by cpanspec 1.78.