Name: perl-Type-Tie Version: 0.009 Release: 5%{?dist} Summary: Tie a variable to a type constraint # cf. README License: GPL+ or Artistic URL: http://search.cpan.org/dist/Type-Tie/ Source0: http://www.cpan.org/authors/id/T/TO/TOBYINK/Type-Tie-%{version}.tar.gz BuildArch: noarch BuildRequires: %{__perl} BuildRequires: %{__make} BuildRequires: perl-interpreter >= 0:5.008005 BuildRequires: perl-generators BuildRequires: perl(Carp) BuildRequires: perl(Exporter::Tiny) >= 0.026 BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Hash::FieldHash) BuildRequires: perl(Tie::Array) BuildRequires: perl(Tie::Hash) BuildRequires: perl(Tie::Scalar) BuildRequires: perl(strict) BuildRequires: perl(warnings) # Tests: %if !%{defined perl_bootstrap} # Build-cycle: perl-Type-Tiny → perl-Type-Tie BuildRequires: perl(Types::Standard) %endif BuildRequires: perl(Moose::Util::TypeConstraints) BuildRequires: perl(MooseX::Types::Moose) BuildRequires: perl(Test::Fatal) BuildRequires: perl(Test::More) >= 0.96 BuildRequires: perl(Test::Requires) BuildRequires: perl(constant) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) # perl-generators fails to detect this Requires: perl(Data::Dumper) %description This module exports a single function: ttie. ttie ties a variable to a type constraint, ensuring that whatever values stored in the variable will conform to the type constraint. If the type constraint has coercions, these will be used if necessary to ensure values assigned to the variable conform. %prep %setup -q -n Type-Tie-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 %{__make} %{?_smp_mflags} %install %{__make} pure_install DESTDIR=$RPM_BUILD_ROOT %{_fixperms} $RPM_BUILD_ROOT/* %check %{__make} test %files %doc Changes README %license COPYRIGHT LICENSE %{perl_vendorlib}/* %{_mandir}/man3/* %changelog * Thu Jul 27 2017 Fedora Release Engineering - 0.009-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Wed Jun 07 2017 Jitka Plesnikova - 0.009-4 - Perl 5.26 re-rebuild of bootstrapped packages * Tue Jun 06 2017 Jitka Plesnikova - 0.009-3 - Perl 5.26 rebuild * Fri Feb 03 2017 Ralf Corsépius - 0.009-2 - Reflect feedback from package review. * Fri Feb 03 2017 Ralf Corsépius - 0.009-1 - Initial Fedora package.