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