Name: perl-autobox Version: 2.71 Release: 2%{?dist} Summary: Call methods on native types License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/autobox/ Source0: http://www.cpan.org/authors/id/C/CH/CHOCOLATE/autobox-%{version}.tar.gz BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Scope::Guard) >= 0.20 BuildRequires: perl(Test::More) BuildRequires: perl(Test::Pod) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description The autobox pragma allows methods to be called on integers, floats, strings, arrays, hashes, and code references in exactly the same manner as blessed references. %prep %setup -q -n autobox-%{version} # Filter requires cat << \EOF > %{name}-req #!/bin/sh %{__perl_requires} $* |\ sed -e '/perl(autobox)/d' |\ sed -e '/perl(autobox::universal)/d' EOF %define __perl_requires %{_builddir}/autobox-%{version}/%{name}-req chmod +x %{__perl_requires} %build %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" make %{?_smp_mflags} %install make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \; find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; %{_fixperms} $RPM_BUILD_ROOT/* %check make test %files %defattr(-,root,root,-) %doc Changes README %{perl_vendorarch}/auto/* %{perl_vendorarch}/autobox* %{_mandir}/man3/* %changelog * Wed Feb 09 2011 Fedora Release Engineering - 2.71-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Fri Dec 17 2010 Iain Arnell 2.71-1 - update to latest upstream version - clean up spec for modern rpmbuild * Wed Dec 15 2010 Marcela Maslanova - 2.55-6 - 661697 rebuild for fixing problems with vendorach/lib * Thu Apr 29 2010 Marcela Maslanova - 2.55-5 - Mass rebuild with perl-5.12.0 * Mon Dec 7 2009 Stepan Kasal - 2.55-4 - rebuild against perl 5.10.1 * Sun Jul 26 2009 Fedora Release Engineering - 2.55-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Thu Feb 26 2009 Fedora Release Engineering - 2.55-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Wed Feb 04 2009 Allisson Azevedo 2.55-1 - Initial rpm release.