%{?scl:%scl_package perl-Package-Stash-XS} %{!?scl:%global pkg_name %{name}} Name: %{?scl_prefix}perl-Package-Stash-XS Version: 0.28 Release: 5%{?dist} Summary: Faster and more correct implementation of the Package::Stash API Group: Development/Libraries License: GPL+ or Artistic URL: http://search.cpan.org/dist/Package-Stash-XS/ Source0: http://search.cpan.org/CPAN/authors/id/D/DO/DOY/Package-Stash-XS-%{version}.tar.gz Patch1: Package-Stash-XS-0.27-old-Test::More.patch BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-%{release}-root-%(id -nu) BuildRequires: %{?scl_prefix}perl >= 3:5.8.1 BuildRequires: %{?scl_prefix}perl(base) BuildRequires: %{?scl_prefix}perl(constant) BuildRequires: %{?scl_prefix}perl(ExtUtils::MakeMaker) BuildRequires: %{?scl_prefix}perl(File::Temp) BuildRequires: %{?scl_prefix}perl(lib) %if ( %(perl -e 'print $] >= 5.014 ? 1 : 0;') || 0%{?scl:1} ) BuildRequires: %{?scl_prefix}perl(Package::Anon) %endif BuildRequires: %{?scl_prefix}perl(Scalar::Util) BuildRequires: %{?scl_prefix}perl(Test::Fatal) BuildRequires: %{?scl_prefix}perl(Test::More) BuildRequires: %{?scl_prefix}perl(Test::Requires) BuildRequires: %{?scl_prefix}perl(XSLoader) # Release tests %if ! 0%{?scl:1} BuildRequires: %{?scl_prefix}perl(Pod::Coverage::TrustPod) BuildRequires: %{?scl_prefix}perl(Test::EOL) %if ! (0%{?rhel} >= 7) BuildRequires: %{?scl_prefix}perl(Test::LeakTrace) %endif BuildRequires: %{?scl_prefix}perl(Test::NoTabs) BuildRequires: %{?scl_prefix}perl(Test::Pod) BuildRequires: %{?scl_prefix}perl(Test::Pod::Coverage) # No Variable::Magic in EPEL-5 and SCL %if "%{?rhel}" != "5" BuildRequires: %{?scl_prefix}perl(Variable::Magic) %endif %endif %{?scl:%global perl_version %(scl enable %{scl} 'eval "`perl -V:version`"; echo $version')} %{!?scl:%global perl_version %(eval "`perl -V:version`"; echo $version)} Requires: %{?scl_prefix}perl(:MODULE_COMPAT_%{perl_version}) # Don't "provide" private Perl libs %{?perl_default_filter} %description This is a back-end for Package::Stash, which provides the functionality in a way that's less buggy and much faster. It will be used by default if it's installed, and should be preferred in all environments with a compiler. %prep %setup -q -n Package-Stash-XS-%{version} # Patch test suite to work with old Test::More versions if necessary %if "%{?rhel}" == "5" %patch1 -p1 %endif %build %{?scl:scl enable %{scl} '} perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" %{?scl:'} %{?scl:scl enable %{scl} "} make %{?_smp_mflags} %{?scl:"} %install rm -rf %{buildroot} %{?scl:scl enable %{scl} "} make pure_install DESTDIR=%{buildroot} %{?scl:"} find %{buildroot} -type f -name .packlist -exec rm -f {} ';' find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';' %{_fixperms} %{buildroot} %check %{?scl:scl enable %{scl} "} make test %{?scl:"} %{!?scl: %if ! (0%{?rhel} >= 7) %{?scl:scl enable %{scl} - << \EOF} make test TEST_FILES="$(echo $(find xt/ -name '*.t'))" %{?scl:EOF} %else %{?scl:scl enable %{scl} - << \EOF} make test TEST_FILES="$(echo $(find xt/release/ -name '*.t'))" %{?scl:EOF} %endif } %clean rm -rf %{buildroot} %files %doc Changes LICENSE README %{perl_vendorarch}/auto/Package/ %{perl_vendorarch}/Package/ %{_mandir}/man3/Package::Stash::XS.3pm* %changelog * Thu Dec 12 2013 Jitka Plesnikova - 0.28-5 - Rebuilt for newer meta package perl516 - Resolves: rhbz#1040848 * Fri Nov 22 2013 Jitka Plesnikova - 0.28-4 - Rebuilt for SCL * Sun Aug 04 2013 Fedora Release Engineering - 0.28-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Fri Jul 26 2013 Petr Pisar - 0.28-2 - Perl 5.18 rebuild * Tue Jul 16 2013 Paul Howarth - 0.28-1 - Update to 0.28 - Fix test issue * Tue Jul 16 2013 Paul Howarth - 0.27-1 - Update to 0.27 - Handle magic more correctly in add_symbol and get_or_add_symbol - Add upstream patch to avoid build dependency on Package::Stash - BR: perl(Variable::Magic) for the test suite - Update patch for building with old Test::More versions * Thu Jan 24 2013 Paul Howarth - 0.26-2 - BR: perl(Package::Anon) if we have Perl ≥ 5.14 * Fri Jan 4 2013 Paul Howarth - 0.26-1 - Update to 0.26 - Internal refactorings to support Package::Anon stashes - BR: perl(base) and perl(Test::Requires) for test suite - Update patch for old distro compatibility - Explicitly run the release/author tests * Mon Aug 27 2012 Petr Pisar - 0.25-7 - Disable author tests on RHEL >= 7 * Sat Aug 25 2012 Paul Howarth - 0.25-6 - Drop EPEL-4 support - Test::LeakTrace now universally available - Suitably recent version of ExtUtils::MakeMaker now universally available - Drop %%defattr, redundant since rpm 4.4 - BR: perl(File::Temp) - Don't need to remove empty directories from the buildroot * Tue Aug 14 2012 Petr Pisar - 0.25-5 - Specify all dependencies * Fri Jul 20 2012 Fedora Release Engineering - 0.25-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Tue Jun 19 2012 Petr Pisar - 0.25-3 - Perl 5.16 rebuild * Thu Jan 12 2012 Paul Howarth - 0.25-2 - Use %%{_fixperms} macro instead of our own chmod incantation * Tue Sep 6 2011 Paul Howarth - 0.25-1 - Update to 0.25 - Invalid package names (for instance, Foo:Bar) are not allowed - Invalid stash entry names (anything containing ::) are not allowed - Update patches to apply cleanly * Tue Aug 9 2011 Paul Howarth - 0.23-1 - Update to 0.23 - Fix the test for scalar values, again - Disallow assigning globrefs to scalar glob slots (this doesn't actually make any sense) - Update patches for old ExtUtils::MakeMaker and Test::More versions - perl(Pod::Coverage::TrustPod) now available in EPEL-4 too - Don't use macros for commands * Tue Jul 19 2011 Petr Sabata - 0.22-2 - Perl mass rebuild * Sat Mar 5 2011 Paul Howarth - 0.22-1 - Update to 0.22 - Make the namespace cache lazy and weak, in case the stash is deleted - However, this doesn't work on 5.8, so disable the namespace caching entirely there - Update patches to apply cleanly * Tue Feb 08 2011 Fedora Release Engineering - 0.21-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Tue Jan 25 2011 Paul Howarth - 0.21-1 - Update to 0.21 - Make the leak tests author-only, since some smokers run release tests - Fix some XS forward compat stuff - Update patches to apply cleanly * Wed Jan 12 2011 Paul Howarth - 0.20-1 - Update to 0.20 - Lower perl prereq to 5.8.1 - Make the leak tests release-only - Update patches to apply cleanly - Drop no-Test::Requires patch, no longer needed - Drop buildreq perl(Test::Requires), no longer needed - Add patch to skip memory leak tests if we don't have Test::LeakTrace * Thu Jan 6 2011 Paul Howarth - 0.19-1 - Update to 0.19 (more correct validity test for scalars) - Update patch for old Test::More versions * Wed Nov 17 2010 Paul Howarth - 0.17-2 - Sanitize spec for Fedora submission * Wed Nov 17 2010 Paul Howarth - 0.17-1 - Initial RPM build