Blame SPECS/perl-Package-Stash.spec

9ff606
# Run optional test
9ff606
%if ! (0%{?rhel})
9ff606
%bcond_without perl_Package_Stash_enables_optional_test
9ff606
%else
9ff606
%bcond_with perl_Package_Stash_enables_optional_test
9ff606
%endif
9ff606
9ff606
Name:		perl-Package-Stash
9ff606
Version:	0.39
9ff606
Release:	4%{?dist}
9ff606
Summary:	Routines for manipulating stashes
9ff606
License:	GPL+ or Artistic
9ff606
URL:		https://metacpan.org/release/Package-Stash
9ff606
Source0:	https://cpan.metacpan.org/modules/by-module/Package/Package-Stash-%{version}.tar.gz
9ff606
BuildArch:	noarch
9ff606
# Module Build
9ff606
BuildRequires:	coreutils
9ff606
BuildRequires:	findutils
9ff606
BuildRequires:	make
9ff606
BuildRequires:	perl-generators
9ff606
BuildRequires:	perl-interpreter
9ff606
BuildRequires:	perl(Config)
9ff606
BuildRequires:	perl(DynaLoader)
9ff606
BuildRequires:	perl(Exporter)
9ff606
BuildRequires:	perl(ExtUtils::MakeMaker)
9ff606
BuildRequires:	perl(ExtUtils::Mksymlists)
9ff606
BuildRequires:	perl(File::Basename)
9ff606
BuildRequires:	perl(File::Spec::Functions)
9ff606
BuildRequires:	perl(File::Temp)
9ff606
BuildRequires:	perl(Text::ParseWords)
9ff606
# Module Runtime
9ff606
BuildRequires:	perl(B)
9ff606
BuildRequires:	perl(Carp)
9ff606
BuildRequires:	perl(constant)
9ff606
BuildRequires:	perl(Dist::CheckConflicts) >= 0.02
9ff606
BuildRequires:	perl(Getopt::Long)
9ff606
BuildRequires:	perl(Module::Implementation) >= 0.06
9ff606
BuildRequires:	perl(Package::Stash::XS) >= 0.26
9ff606
BuildRequires:	perl(Scalar::Util)
9ff606
BuildRequires:	perl(strict)
9ff606
BuildRequires:	perl(Symbol)
9ff606
BuildRequires:	perl(warnings)
9ff606
# Test Suite
9ff606
BuildRequires:	perl(base)
9ff606
BuildRequires:	perl(CPAN::Meta::Check) >= 0.011
9ff606
BuildRequires:	perl(CPAN::Meta::Requirements)
9ff606
BuildRequires:	perl(File::Spec)
9ff606
BuildRequires:	perl(lib)
9ff606
BuildRequires:	perl(Test::Fatal)
9ff606
BuildRequires:	perl(Test::More) >= 0.88
9ff606
BuildRequires:	perl(Test::Needs)
9ff606
%if %{with perl_Package_Stash_enables_optional_test}
9ff606
# Optional Tests
9ff606
BuildRequires:	perl(CPAN::Meta) >= 2.120900
9ff606
BuildRequires:	perl(Module::Runtime::Conflicts)
9ff606
BuildRequires:	perl(Package::Anon)
9ff606
BuildRequires:	perl(Variable::Magic)
9ff606
%endif
9ff606
# Runtime
9ff606
Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
9ff606
# For performance and consistency
9ff606
Requires:	perl(Package::Stash::XS) >= 0.26
9ff606
# Not found by rpm auto-provides
9ff606
Provides:	perl(Package::Stash::Conflicts) = 0
9ff606
9ff606
%description
9ff606
Manipulating stashes (Perl's symbol tables) is occasionally necessary, but
9ff606
incredibly messy, and easy to get wrong. This module hides all of that behind
9ff606
a simple API.
9ff606
9ff606
%prep
9ff606
%setup -q -n Package-Stash-%{version}
9ff606
9ff606
%build
9ff606
perl Makefile.PL INSTALLDIRS=vendor
9ff606
make %{?_smp_mflags}
9ff606
9ff606
%install
9ff606
make pure_install DESTDIR=%{buildroot}
9ff606
find %{buildroot} -type f -name .packlist -delete
9ff606
%{_fixperms} -c %{buildroot}
9ff606
9ff606
%check
9ff606
make test
9ff606
9ff606
%files
9ff606
%if 0%{?_licensedir:1}
9ff606
%license LICENSE
9ff606
%else
9ff606
%doc LICENSE
9ff606
%endif
9ff606
%doc Changes CONTRIBUTING README
9ff606
%{_bindir}/package-stash-conflicts
9ff606
%{perl_vendorlib}/Package/
9ff606
%{_mandir}/man3/Package::Stash.3*
9ff606
%{_mandir}/man3/Package::Stash::PP.3*
9ff606
9ff606
%changelog
9ff606
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.39-4
9ff606
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
9ff606
  Related: rhbz#1991688
9ff606
9ff606
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.39-3
9ff606
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
9ff606
9ff606
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.39-2
9ff606
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
9ff606
9ff606
* Sun Nov 22 2020 Paul Howarth <paul@city-fan.org> - 0.39-1
9ff606
- Update to 0.39
9ff606
  - Updated distribution metadata and packaging
9ff606
  - Configuration phase now uses ExtUtils::HasCompiler
9ff606
9ff606
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.38-8
9ff606
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
9ff606
9ff606
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.38-7
9ff606
- Perl 5.32 rebuild
9ff606
9ff606
* Tue Mar 10 2020 Paul Howarth <paul@city-fan.org> - 0.38-6
9ff606
- BR: perl(blib) for t/00-compile.t
9ff606
9ff606
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.38-5
9ff606
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
9ff606
9ff606
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.38-4
9ff606
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
9ff606
9ff606
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.38-3
9ff606
- Perl 5.30 rebuild
9ff606
9ff606
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.38-2
9ff606
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
9ff606
9ff606
* Wed Jan  2 2019 Paul Howarth <paul@city-fan.org> - 0.38-1
9ff606
- Update to 0.38
9ff606
  - Avoid new warning in 5.21.x regarding too many arguments for printf/sprintf
9ff606
  - Canonical repository moved to https://github.com/moose/Package-Stash
9ff606
- Package new CONTRIBUTING file
9ff606
- Specify all build dependencies
9ff606
- Don't bother running the extra tests
9ff606
- Simplify find command using -delete
9ff606
- Drop EL-5 support
9ff606
  - Drop legacy Group: tag
9ff606
  - Drop explicit buildroot cleaning in %%install section
9ff606
  - Drop workaround for building with Test::More < 0.88
9ff606
9ff606
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.37-11
9ff606
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
9ff606
9ff606
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.37-10
9ff606
- Perl 5.28 rebuild
9ff606
9ff606
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.37-9
9ff606
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
9ff606
9ff606
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.37-8
9ff606
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
9ff606
9ff606
* Mon Jun 05 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.37-7
9ff606
- Perl 5.26 rebuild
9ff606
9ff606
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.37-6
9ff606
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
9ff606
9ff606
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.37-5
9ff606
- Perl 5.24 rebuild
9ff606
9ff606
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.37-4
9ff606
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
9ff606
9ff606
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.37-3
9ff606
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
9ff606
9ff606
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.37-2
9ff606
- Perl 5.22 rebuild
9ff606
9ff606
* Tue Sep 23 2014 Paul Howarth <paul@city-fan.org> - 0.37-1
9ff606
- Update to 0.37
9ff606
  - Fix spurious warning in taint mode (GH#12)
9ff606
- Update patch for building with old Test::More versions
9ff606
- No documentation for Package::Stash::Conflicts in this release
9ff606
- Classify buildreqs by usage
9ff606
- Use %%license where possible
9ff606
- Don't try to run the extra tests for EL builds as we won't have the
9ff606
  dependencies
9ff606
9ff606
* Fri Aug 29 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.36-3
9ff606
- Perl 5.20 rebuild
9ff606
9ff606
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.36-2
9ff606
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
9ff606
9ff606
* Wed Sep  4 2013 Paul Howarth <paul@city-fan.org> - 0.36-1
9ff606
- Update to 0.36
9ff606
  - Support building with PUREPERL_ONLY
9ff606
- BR: perl(Config), perl(Text::ParseWords) and perl(Variable::Magic)
9ff606
- Update patch for building with old Test::More version in EPEL-5
9ff606
9ff606
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.35-3
9ff606
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
9ff606
9ff606
* Mon Jul 29 2013 Petr Pisar <ppisar@redhat.com> - 0.35-2
9ff606
- Perl 5.18 rebuild
9ff606
9ff606
* Wed Jul 10 2013 Paul Howarth <paul@city-fan.org> - 0.35-1
9ff606
- Update to 0.35
9ff606
  - Remove old, deprecated API
9ff606
- BR: perl(Getopt::Long)
9ff606
- perl(Package::DeprecationManager) is no longer needed
9ff606
9ff606
* Thu Jan 24 2013 Paul Howarth <paul@city-fan.org> - 0.34-2
9ff606
- BR: perl(Package::Anon) if we have Perl ≥ 5.14
9ff606
9ff606
* Sun Jan  6 2013 Paul Howarth <paul@city-fan.org> - 0.34-1
9ff606
- Update to 0.34
9ff606
  - Support anonymous stashes on newer perl versions
9ff606
  - Prevent harmful effects from invalid settings for
9ff606
    $ENV{PACKAGE_STASH_IMPLEMENTATION}
9ff606
  - Switch to Module::Implementation
9ff606
- BR: perl(Module::Implementation) ≥ 0.06
9ff606
- BR: perl(base) for test suite
9ff606
- Bump Package::Stash::XS version requirement to 0.26
9ff606
- Explicitly run extra tests (except on RHEL ≥ 7, where the necessary
9ff606
  build dependencies may not be available)
9ff606
- Update patch for building with old Test::More version in EPEL-5
9ff606
9ff606
* Mon Aug 27 2012 Petr Pisar <ppisar@redhat.com> - 0.33-7
9ff606
- Disable author tests on RHEL >= 7
9ff606
9ff606
* Fri Aug 24 2012 Paul Howarth <paul@city-fan.org> - 0.33-6
9ff606
- Drop EPEL-4 support
9ff606
  - Drop %%defattr, redundant since rpm 4.4
9ff606
  - Test::LeakTrace, Test::Requires and Test::Script are now universally available
9ff606
  - A suitably recent version of ExtUtils::MakeMaker is now universally available
9ff606
- Don't need to remove empty directories from the buildroot
9ff606
9ff606
* Tue Aug 14 2012 Petr Pisar <ppisar@redhat.com> - 0.33-5
9ff606
- Specify all dependendencies
9ff606
9ff606
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.33-4
9ff606
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
9ff606
9ff606
* Tue Jun 19 2012 Petr Pisar <ppisar@redhat.com> - 0.33-3
9ff606
- Perl 5.16 rebuild
9ff606
9ff606
* Thu Jan 12 2012 Paul Howarth <paul@city-fan.org> - 0.33-2
9ff606
- Fedora 17 mass rebuild
9ff606
9ff606
* Thu Sep 29 2011 Paul Howarth <paul@city-fan.org> - 0.33-1
9ff606
- Update to 0.33
9ff606
  - Add conflict on MooseX::Method::Signatures 0.36
9ff606
- BR: perl(Carp)
9ff606
9ff606
* Tue Sep  6 2011 Paul Howarth <paul@city-fan.org> - 0.32-1
9ff606
- Update to 0.32
9ff606
  - Bring the behavior of has_symbol for nonexistant scalars into line with the
9ff606
    XS version
9ff606
  - Invalid package names (for instance, Foo:Bar) are not allowed
9ff606
  - Invalid stash entry names (anything containing ::) are not allowed
9ff606
- Update patches to apply cleanly
9ff606
- Bump perl(Package::Stash::XS) version requirement to 0.24
9ff606
9ff606
* Tue Aug  9 2011 Paul Howarth <paul@city-fan.org> - 0.31-1
9ff606
- Update to 0.31
9ff606
  - Fix ->add_symbol('$foo', qr/sdlfk/) on 5.12+
9ff606
  - Fix ->add_symbol('$foo', \v1.2.3) on 5.10+
9ff606
- Update patch for old Test::More versions
9ff606
- Update patch for no Test::Requires
9ff606
9ff606
* Thu Jul 21 2011 Paul Howarth <paul@city-fan.org> - 0.30-2
9ff606
- Perl mass rebuild
9ff606
9ff606
* Thu Jul 21 2011 Paul Howarth <paul@city-fan.org> - 0.30-1
9ff606
- Update to 0.30
9ff606
  - Fix compiler detection in Makefile.PL
9ff606
- Update patch for old ExtUtils::MakeMaker versions
9ff606
- Drop usage of macros for commands
9ff606
- Drop redundant %%{?perl_default_filter}
9ff606
- perl(Pod::Coverage::TrustPod) now available everywhere
9ff606
9ff606
* Tue Jul 19 2011 Petr Sabata <contyk@redhat.com> - 0.29-2
9ff606
- Perl mass rebuild
9ff606
9ff606
* Wed Apr  6 2011 Paul Howarth <paul@city-fan.org> - 0.29-1
9ff606
- Update to 0.29
9ff606
  - Really skip the package-stash-conflict script in the compile test
9ff606
9ff606
* Wed Mar 30 2011 Paul Howarth <paul@city-fan.org> - 0.28-1
9ff606
- Update to 0.28
9ff606
  - META.json fixes
9ff606
- Update patch for old ExtUtils::MakeMaker versions to apply cleanly
9ff606
9ff606
* Mon Mar 28 2011 Paul Howarth <paul@city-fan.org> - 0.27-1
9ff606
- Update to 0.27
9ff606
  - Skip the package-stash-conflicts script in the compile test
9ff606
9ff606
* Sat Mar  5 2011 Paul Howarth <paul@city-fan.org> - 0.26-1
9ff606
- Update to 0.26
9ff606
  - Make the namespace cache lazy and weak, in case the stash is deleted
9ff606
  - However, this doesn't work on 5.8, so disable the namespace caching
9ff606
    entirely there
9ff606
- Update patches to apply cleanly
9ff606
- Bump perl(Package::Stash::XS) version requirement to 0.22
9ff606
- Bump perl(Dist::CheckConflicts) version requirement to 0.02
9ff606
9ff606
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.25-2
9ff606
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
9ff606
9ff606
* Tue Jan 25 2011 Paul Howarth <paul@city-fan.org> - 0.25-1
9ff606
- Update to 0.25 (make the leak tests author-only, since some smokers run
9ff606
  release tests)
9ff606
- Update patches to apply cleanly
9ff606
- Bump perl(Package::Stash::XS) version requirement to 0.21
9ff606
- Drop buildreq perl(Test::Exception), no longer needed
9ff606
9ff606
* Tue Jan 18 2011 Paul Howarth <paul@city-fan.org> - 0.24-1
9ff606
- Update to 0.24 (reinstate Test::Requires dependency)
9ff606
9ff606
* Wed Jan 12 2011 Paul Howarth <paul@city-fan.org> - 0.23-1
9ff606
- Update to 0.23
9ff606
  - Lower perl prereq to 5.8.1
9ff606
  - Make the leak tests release-only
9ff606
- Update patches to apply cleanly
9ff606
- Add patch to skip memory leak tests if we don't have Test::LeakTrace
9ff606
9ff606
* Thu Jan  6 2011 Paul Howarth <paul@city-fan.org> - 0.22-1
9ff606
- Update to 0.22 (bump Package::Stash::XS version requirement since a bug was
9ff606
  fixed there)
9ff606
- Update patches for old ExtUtils::MakeMaker and Test::More versions
9ff606
- BR/R perl(Package::Stash::XS) >= 0.19
9ff606
- Content-free manpages for package-stash-conflicts and
9ff606
  Package::Stash::Conflicts dropped upstream
9ff606
9ff606
* Tue Jan  4 2011 Paul Howarth <paul@city-fan.org> - 0.20-1
9ff606
- Update to 0.20
9ff606
  - Methods were renamed for brevity: s/_package//
9ff606
  - Convert Package::Stash into a module which loads either the XS or pure perl
9ff606
    implementation, depending on what's available
9ff606
  - Use Test::Fatal instead of Test::Exception
9ff606
  - Use Dist::CheckConflicts
9ff606
  - Silence deprecation warnings for the method renaming for now
9ff606
- New script and manpage: package-stash-conflicts
9ff606
- New modules and manpages: Package::Stash::Conflicts and Package::Stash::PP
9ff606
- New build requirements:
9ff606
  - perl(Dist::CheckConflicts)
9ff606
  - perl(Package::DeprecationManager)
9ff606
  - perl(Package::Stash::XS)
9ff606
  - perl(Test::LeakTrace)
9ff606
  - perl(Test::Requires)
9ff606
  - perl(Test::Script)
9ff606
- Update patches for old ExtUtils::MakeMaker and Test::More versions
9ff606
- Add new patch to work around absence of Test::Requires in EPEL-4
9ff606
- Require perl(Package::Stash::XS) for performance and consistency
9ff606
- Manually provide perl(Package::Stash::Conflicts), hidden from auto-provides
9ff606
9ff606
* Tue Dec 21 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.08-2
9ff606
- Rebuild to fix problems with vendorarch/lib (#661697)
9ff606
9ff606
* Mon Sep 20 2010 Paul Howarth <paul@city-fan.org> - 0.08-1
9ff606
- Update to 0.08 (re-enable the caching of the stash)
9ff606
- Update patch for old ExtUtils::MakeMaker and Test::More versions
9ff606
9ff606
* Wed Jun 16 2010 Paul Howarth <paul@city-fan.org> - 0.05-1
9ff606
- Update to 0.05
9ff606
  - Bump Test::More requirement for done_testing
9ff606
  - Update packaging stuff
9ff606
- BR: perl(Test::EOL) and perl(Test::NoTabs)
9ff606
- Unify spec for all active branches, adding patches for back-compatibility
9ff606
9ff606
* Mon Jun 14 2010 Paul Howarth <paul@city-fan.org> - 0.04-1
9ff606
- Update to 0.04 (get_package_symbol now doesn't autovivify stash entries; a
9ff606
  new method get_or_add_package_symbol can now be used for that behavior)
9ff606
9ff606
* Mon Jun 14 2010 Paul Howarth <paul@city-fan.org> - 0.03-2
9ff606
- Incorporate package review suggestions (#602597)
9ff606
  - Use %%{?perl_default_filter}
9ff606
  - Use DESTDIR instead of PERL_INSTALL_ROOT
9ff606
9ff606
* Mon Jun  7 2010 Paul Howarth <paul@city-fan.org> - 0.03-1
9ff606
- Initial RPM version