079862
%if ! (0%{?rhel})
079862
# Run extra test
079862
%bcond_without perl_Package_Stash_XS_enables_extra_test
079862
# Run optional test
079862
%bcond_without perl_Package_Stash_XS_enables_optional_test
079862
%else
079862
%bcond_with perl_Package_Stash_XS_enables_extra_test
079862
%bcond_with perl_Package_Stash_XS_enables_optional_test
079862
%endif
079862
079862
Name:		perl-Package-Stash-XS
079862
Version:	0.28
079862
Release:	17%{?dist}
079862
Summary:	Faster and more correct implementation of the Package::Stash API
079862
Group:		Development/Libraries
079862
License:	GPL+ or Artistic
079862
URL:		http://search.cpan.org/dist/Package-Stash-XS/
079862
Source0:	http://search.cpan.org/CPAN/authors/id/D/DO/DOY/Package-Stash-XS-%{version}.tar.gz
079862
Patch1:		Package-Stash-XS-0.27-old-Test::More.patch
079862
# Module Build
079862
BuildRequires:	coreutils
079862
BuildRequires:	findutils
079862
BuildRequires:	gcc
079862
BuildRequires:	make
079862
BuildRequires:	perl-interpreter >= 3:5.8.1
079862
%if "%{?rhel}" != "5"
079862
BuildRequires:	perl-devel
079862
%endif
079862
BuildRequires:	perl-generators
079862
BuildRequires:	perl(ExtUtils::MakeMaker) >= 6.30
079862
# Module Runtime
079862
BuildRequires:	perl(strict)
079862
BuildRequires:	perl(warnings)
079862
BuildRequires:	perl(XSLoader)
079862
# Test Suite
079862
BuildRequires:	perl(B)
079862
BuildRequires:	perl(base)
079862
BuildRequires:	perl(constant)
079862
BuildRequires:	perl(File::Find)
079862
BuildRequires:	perl(File::Temp)
079862
BuildRequires:	perl(lib)
079862
BuildRequires:	perl(Scalar::Util)
079862
BuildRequires:	perl(Symbol)
079862
BuildRequires:	perl(Test::Fatal)
079862
BuildRequires:	perl(Test::More)
079862
BuildRequires:	perl(Test::Requires)
079862
%if %{with perl_Package_Stash_XS_enables_optional_test}
079862
# Optional Tests
079862
%if 0%{?fedora} > 15 || 0%{?rhel} > 6
079862
BuildRequires:	perl(Package::Anon)
079862
%endif
079862
%if "%{?rhel}" != "5"
079862
BuildRequires:	perl(Variable::Magic)
079862
%endif
079862
%endif
079862
%if %{with perl_Package_Stash_XS_enables_extra_test}
079862
# Author Tests
079862
%if ! (0%{?rhel} >= 7)
079862
BuildRequires:	perl(Test::LeakTrace)
079862
%endif
079862
# Release Tests
079862
BuildRequires:	perl(Pod::Coverage::TrustPod)
079862
BuildRequires:	perl(Test::EOL)
079862
BuildRequires:	perl(Test::NoTabs)
079862
BuildRequires:	perl(Test::Pod)
079862
BuildRequires:	perl(Test::Pod::Coverage)
079862
%endif
079862
# Dependencies
079862
Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
079862
079862
# Don't "provide" private Perl libs
079862
%{?perl_default_filter}
079862
079862
%description
079862
This is a back-end for Package::Stash, which provides the functionality in a
079862
way that's less buggy and much faster. It will be used by default if it's
079862
installed, and should be preferred in all environments with a compiler.
079862
079862
%prep
079862
%setup -q -n Package-Stash-XS-%{version}
079862
079862
# Patch test suite to work with old Test::More versions if necessary
079862
%if "%{?rhel}" == "5"
079862
%patch1 -p1
079862
%endif
079862
079862
%build
079862
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
079862
make %{?_smp_mflags}
079862
079862
%install
079862
rm -rf %{buildroot}
079862
make pure_install DESTDIR=%{buildroot}
079862
find %{buildroot} -type f -name .packlist -delete
079862
find %{buildroot} -type f -name '*.bs' -empty -delete
079862
%{_fixperms} %{buildroot}
079862
079862
%check
079862
make test
079862
%if %{with perl_Package_Stash_XS_enables_extra_test}
079862
%if ! (0%{?rhel} >= 7)
079862
make test TEST_FILES="$(echo $(find xt/ -name '*.t'))"
079862
%else
079862
make test TEST_FILES="$(echo $(find xt/release/ -name '*.t'))"
079862
%endif
079862
%endif
079862
079862
%files
079862
%if 0%{?_licensedir:1}
079862
%license LICENSE
079862
%else
079862
%doc LICENSE
079862
%endif
079862
%doc Changes README
079862
%{perl_vendorarch}/auto/Package/
079862
%{perl_vendorarch}/Package/
079862
%{_mandir}/man3/Package::Stash::XS.3*
079862
079862
%changelog
079862
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.28-17
079862
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
079862
079862
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.28-16
079862
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
079862
079862
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.28-15
079862
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
079862
079862
* Mon Jun 05 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.28-14
079862
- Perl 5.26 rebuild
079862
079862
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.28-13
079862
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
079862
079862
* Thu Jul 21 2016 Paul Howarth <paul@city-fan.org> - 0.28-12
079862
- Fix FTBFS when perl is not in the SRPM build root
079862
079862
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.28-11
079862
- Perl 5.24 rebuild
079862
079862
* Tue Apr 19 2016 Paul Howarth <paul@city-fan.org> - 0.28-10
079862
- Classify buildreqs by usage
079862
- Use %%license where possible
079862
- Simplify find commands using -empty and -delete
079862
079862
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.28-9
079862
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
079862
079862
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.28-8
079862
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
079862
079862
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.28-7
079862
- Perl 5.22 rebuild
079862
079862
* Fri Aug 29 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.28-6
079862
- Perl 5.20 rebuild
079862
079862
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.28-5
079862
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
079862
079862
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.28-4
079862
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
079862
079862
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.28-3
079862
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
079862
079862
* Fri Jul 26 2013 Petr Pisar <ppisar@redhat.com> - 0.28-2
079862
- Perl 5.18 rebuild
079862
079862
* Tue Jul 16 2013 Paul Howarth <paul@city-fan.org> - 0.28-1
079862
- Update to 0.28
079862
  - Fix test issue
079862
079862
* Tue Jul 16 2013 Paul Howarth <paul@city-fan.org> - 0.27-1
079862
- Update to 0.27
079862
  - Handle magic more correctly in add_symbol and get_or_add_symbol
079862
- Add upstream patch to avoid build dependency on Package::Stash
079862
- BR: perl(Variable::Magic) for the test suite
079862
- Update patch for building with old Test::More versions
079862
079862
* Thu Jan 24 2013 Paul Howarth <paul@city-fan.org> - 0.26-2
079862
- BR: perl(Package::Anon) if we have Perl ≥ 5.14
079862
079862
* Fri Jan  4 2013 Paul Howarth <paul@city-fan.org> - 0.26-1
079862
- Update to 0.26
079862
  - Internal refactorings to support Package::Anon stashes
079862
- BR: perl(base) and perl(Test::Requires) for test suite
079862
- Update patch for old distro compatibility
079862
- Explicitly run the release/author tests
079862
079862
* Mon Aug 27 2012 Petr Pisar <ppisar@redhat.com> - 0.25-7
079862
- Disable author tests on RHEL >= 7
079862
079862
* Sat Aug 25 2012 Paul Howarth <paul@city-fan.org> - 0.25-6
079862
- Drop EPEL-4 support
079862
  - Test::LeakTrace now universally available
079862
  - Suitably recent version of ExtUtils::MakeMaker now universally available
079862
  - Drop %%defattr, redundant since rpm 4.4
079862
- BR: perl(File::Temp)
079862
- Don't need to remove empty directories from the buildroot
079862
079862
* Tue Aug 14 2012 Petr Pisar <ppisar@redhat.com> - 0.25-5
079862
- Specify all dependencies
079862
079862
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.25-4
079862
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
079862
079862
* Tue Jun 19 2012 Petr Pisar <ppisar@redhat.com> - 0.25-3
079862
- Perl 5.16 rebuild
079862
079862
* Thu Jan 12 2012 Paul Howarth <paul@city-fan.org> - 0.25-2
079862
- Use %%{_fixperms} macro instead of our own chmod incantation
079862
079862
* Tue Sep  6 2011 Paul Howarth <paul@city-fan.org> - 0.25-1
079862
- Update to 0.25
079862
  - Invalid package names (for instance, Foo:Bar) are not allowed
079862
  - Invalid stash entry names (anything containing ::) are not allowed
079862
- Update patches to apply cleanly
079862
079862
* Tue Aug  9 2011 Paul Howarth <paul@city-fan.org> - 0.23-1
079862
- Update to 0.23
079862
  - Fix the test for scalar values, again
079862
  - Disallow assigning globrefs to scalar glob slots (this doesn't actually
079862
    make any sense)
079862
- Update patches for old ExtUtils::MakeMaker and Test::More versions
079862
- perl(Pod::Coverage::TrustPod) now available in EPEL-4 too
079862
- Don't use macros for commands
079862
079862
* Tue Jul 19 2011 Petr Sabata <contyk@redhat.com> - 0.22-2
079862
- Perl mass rebuild
079862
079862
* Sat Mar  5 2011 Paul Howarth <paul@city-fan.org> - 0.22-1
079862
- Update to 0.22
079862
  - Make the namespace cache lazy and weak, in case the stash is deleted
079862
  - However, this doesn't work on 5.8, so disable the namespace caching
079862
    entirely there
079862
- Update patches to apply cleanly
079862
079862
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.21-2
079862
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
079862
079862
* Tue Jan 25 2011 Paul Howarth <paul@city-fan.org> - 0.21-1
079862
- Update to 0.21
079862
  - Make the leak tests author-only, since some smokers run release tests
079862
  - Fix some XS forward compat stuff
079862
- Update patches to apply cleanly
079862
079862
* Wed Jan 12 2011 Paul Howarth <paul@city-fan.org> - 0.20-1
079862
- Update to 0.20
079862
  - Lower perl prereq to 5.8.1
079862
  - Make the leak tests release-only
079862
- Update patches to apply cleanly
079862
- Drop no-Test::Requires patch, no longer needed
079862
- Drop buildreq perl(Test::Requires), no longer needed
079862
- Add patch to skip memory leak tests if we don't have Test::LeakTrace
079862
079862
* Thu Jan  6 2011 Paul Howarth <paul@city-fan.org> - 0.19-1
079862
- Update to 0.19 (more correct validity test for scalars)
079862
- Update patch for old Test::More versions
079862
079862
* Wed Nov 17 2010 Paul Howarth <paul@city-fan.org> - 0.17-2
079862
- Sanitize spec for Fedora submission
079862
079862
* Wed Nov 17 2010 Paul Howarth <paul@city-fan.org> - 0.17-1
079862
- Initial RPM build