5b8f957
# Run extra test
5b8f957
%if ! (0%{?rhel})
5b8f957
%bcond_without perl_Test_CleanNamespaces_enables_extra_test
5b8f957
%else
5b8f957
%bcond_with perl_Test_CleanNamespaces_enables_extra_test
5b8f957
%endif
5b8f957
cf26133
Name:		perl-Test-CleanNamespaces
cf26133
Summary:	Check for uncleaned imports
a18a832
Version:	0.24
8d656c4
Release:	18%{?dist}
cf26133
License:	GPL+ or Artistic
cf26133
URL:		https://metacpan.org/release/Test-CleanNamespaces
a18a832
Source0:	https://cpan.metacpan.org/modules/by-module/Test/Test-CleanNamespaces-%{version}.tar.gz
cf26133
BuildArch:	noarch
cf26133
# Module Build
16c1295
BuildRequires:	coreutils
16c1295
BuildRequires:	findutils
16c1295
BuildRequires:	make
16c1295
BuildRequires:	perl-generators
481ca03
BuildRequires:	perl-interpreter
16c1295
BuildRequires:	perl(CPAN::Meta::Requirements) >= 2.120620
cf26133
BuildRequires:	perl(ExtUtils::MakeMaker)
16c1295
BuildRequires:	perl(Module::Metadata)
cf26133
# Module
e607690
BuildRequires:	perl(Exporter) >= 5.57
16c1295
BuildRequires:	perl(File::Find)
16c1295
BuildRequires:	perl(File::Spec)
cf26133
BuildRequires:	perl(Module::Runtime)
cf26133
BuildRequires:	perl(Package::Stash) >= 0.14
cf26133
BuildRequires:	perl(Package::Stash::XS)
cf26133
BuildRequires:	perl(strict)
cf26133
BuildRequires:	perl(Sub::Identify)
cf26133
BuildRequires:	perl(Test::Builder)
cf26133
BuildRequires:	perl(warnings)
16c1295
# Optional Runtime
16c1295
BuildRequires:	perl(Role::Tiny) >= 1.003000
cf26133
# Test Suite
cf26133
BuildRequires:	perl(constant)
cf26133
BuildRequires:	perl(CPAN::Meta) >= 2.120900
cf26133
BuildRequires:	perl(CPAN::Meta::Prereqs)
6ec21f8
BuildRequires:	perl(File::pushd)
16c1295
BuildRequires:	perl(File::Spec::Functions)
cf26133
BuildRequires:	perl(if)
cf26133
BuildRequires:	perl(lib)
cf26133
BuildRequires:	perl(Module::Runtime)
16c1295
BuildRequires:	perl(namespace::clean)
cf26133
BuildRequires:	perl(overload)
cf26133
BuildRequires:	perl(parent)
cf26133
BuildRequires:	perl(Scalar::Util)
16c1295
BuildRequires:	perl(Sub::Exporter)
cf26133
BuildRequires:	perl(Test::Deep)
481ca03
BuildRequires:	perl(Test::More) >= 0.96
e607690
BuildRequires:	perl(Test::Needs)
cf26133
BuildRequires:	perl(Test::Tester)
a18a832
BuildRequires:	perl(Test::Warnings) >= 0.009
cf26133
# Optional Test Requirements
5b8f957
%if 0%{!?perl_bootstrap:1} && %{with perl_Test_CleanNamespaces_enables_extra_test}
cf26133
BuildRequires:	perl(Class::MOP::Class)
cf26133
BuildRequires:	perl(metaclass)
cf26133
BuildRequires:	perl(Moo) >= 1.000007
cf26133
BuildRequires:	perl(Moo::Role)
cf26133
BuildRequires:	perl(Moose)
cf26133
BuildRequires:	perl(Moose::Exporter)
cf26133
BuildRequires:	perl(Moose::Role)
cf26133
BuildRequires:	perl(MooseX::Role::Parameterized)
d0af287
BuildRequires:	perl(Mouse)
cf26133
BuildRequires:	perl(Mouse::Role)
cf26133
%endif
cf26133
# Runtime
cf26133
Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
16c1295
Recommends:	perl(Role::Tiny) >= 1.003000
cf26133
cf26133
%description
cf26133
This module lets you check your module's namespaces for imported functions you
cf26133
might have forgotten to remove with namespace::autoclean or namespace::clean
cf26133
and are therefore available to be called as methods, which usually isn't want
cf26133
you want.
cf26133
cf26133
%prep
cf26133
%setup -q -n Test-CleanNamespaces-%{version}
cf26133
cf26133
%build
cf26133
perl Makefile.PL INSTALLDIRS=vendor
cf26133
make %{?_smp_mflags}
cf26133
cf26133
%install
cf26133
make pure_install DESTDIR=%{buildroot}
16c1295
find %{buildroot} -type f -name .packlist -delete
481ca03
%{_fixperms} -c %{buildroot}
cf26133
cf26133
%check
5b8f957
make test AUTOMATED_TESTING=1
cf26133
cf26133
%files
16c1295
%license LICENCE
cf26133
%doc Changes CONTRIBUTING README
cf26133
%{perl_vendorlib}/Test/
d0af287
%{_mandir}/man3/Test::CleanNamespaces.3*
cf26133
cf26133
%changelog
8d656c4
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.24-18
8d656c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
8d656c4
fb02606
* Fri Jun 03 2022 Jitka Plesnikova <jplesnik@redhat.com> - 0.24-17
fb02606
- Perl 5.36 re-rebuild of bootstrapped packages
fb02606
c29eb6b
* Wed Jun 01 2022 Jitka Plesnikova <jplesnik@redhat.com> - 0.24-16
c29eb6b
- Perl 5.36 rebuild
c29eb6b
9d28250
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.24-15
9d28250
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
9d28250
6265fbe
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.24-14
6265fbe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
6265fbe
00f97cd
* Mon May 24 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.24-13
00f97cd
- Perl 5.34 re-rebuild of bootstrapped packages
00f97cd
b72e4fd
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.24-12
b72e4fd
- Perl 5.34 rebuild
b72e4fd
70b712c
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.24-11
70b712c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
70b712c
8e7fa93
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.24-10
8e7fa93
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
8e7fa93
a933cf5
* Fri Jun 26 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.24-9
a933cf5
- Perl 5.32 re-rebuild of bootstrapped packages
a933cf5
3bd2a9a
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.24-8
3bd2a9a
- Perl 5.32 rebuild
3bd2a9a
2946c96
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.24-7
2946c96
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
2946c96
5b8f957
* Wed Oct 16 2019 Paul Howarth <paul@city-fan.org> - 0.24-6
5b8f957
- Don't run optional tests for EPEL builds (avoids need for bootstrapping)
5b8f957
9e0119f
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.24-5
9e0119f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
9e0119f
0045c6f
* Sun Jun 02 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.24-4
0045c6f
- Perl 5.30 re-rebuild of bootstrapped packages
0045c6f
94716f4
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.24-3
94716f4
- Perl 5.30 rebuild
94716f4
66ccddb
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.24-2
66ccddb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
66ccddb
a18a832
* Mon Dec 10 2018 Paul Howarth <paul@city-fan.org> - 0.24-1
a18a832
- Update to 0.24
a18a832
  - Fix detection of constant subs on some platforms
a18a832
28d7290
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.23-4
28d7290
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
28d7290
027464c
* Sat Jun 30 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.23-3
027464c
- Perl 5.28 re-rebuild of bootstrapped packages
027464c
2300a2f
* Fri Jun 29 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.23-2
2300a2f
- Perl 5.28 rebuild
2300a2f
481ca03
* Tue Jun 26 2018 Paul Howarth <paul@city-fan.org> - 0.23-1
481ca03
- Update to 0.23
481ca03
  - Properly skip potentially-problematic tests when needed, due to circular
481ca03
    dependencies between Moose and Test::CleanNamespaces (CPAN RT#125678)
481ca03
2e6c5e8
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.22-6
2e6c5e8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2e6c5e8
1a2b9b0
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.22-5
1a2b9b0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
1a2b9b0
570f93c
* Wed Jun 07 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.22-4
570f93c
- Perl 5.26 re-rebuild of bootstrapped packages
570f93c
6e421bd
* Mon Jun 05 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.22-3
6e421bd
- Perl 5.26 rebuild
6e421bd
0c86e35
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.22-2
0c86e35
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
0c86e35
6ec21f8
* Fri Aug 19 2016 Paul Howarth <paul@city-fan.org> - 0.22-1
6ec21f8
- Update to 0.22
6ec21f8
  - Properly find the list of modules to test (regression since 0.19)
6ec21f8
e607690
* Tue Aug 16 2016 Paul Howarth <paul@city-fan.org> - 0.21-1
e607690
- Update to 0.21
e607690
  - Switch to plain old Exporter, removing build_* subs from the API
e607690
16c1295
* Fri Jun 17 2016 Paul Howarth <paul@city-fan.org> - 0.19-1
16c1295
- Update to 0.19
16c1295
  - Removed dependencies on namespace::clean, Sub::Exporter, File::Find::Rule
16c1295
- Simplify find command using -delete
16c1295
- Downgrade Role::Tiny dependency to Recommends: on Fedora
16c1295
- BR: perl-generators where available
16c1295
90bac2e
* Wed May 18 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.18-7
90bac2e
- Perl 5.24 re-rebuild of bootstrapped packages
90bac2e
9a6c2dc
* Mon May 16 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.18-6
9a6c2dc
- Perl 5.24 rebuild
9a6c2dc
29fe8c6
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.18-5
29fe8c6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
29fe8c6
0bf647f
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.18-4
0bf647f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
0bf647f
010f641
* Wed Jun 10 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.18-3
010f641
- Perl 5.22 re-rebuild of bootstrapped packages
010f641
0e19a96
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.18-2
0e19a96
- Perl 5.22 rebuild
0e19a96
382164f
* Wed Jan 21 2015 Paul Howarth <paul@city-fan.org> - 0.18-1
382164f
- Update to 0.18
382164f
  - Remove Moose test requires <-> Test::CleanNamespaces test recommends
382164f
    circular relationship (softened to suggests)
382164f
d0af287
* Tue Jan 20 2015 Paul Howarth <paul@city-fan.org> - 0.17-1
d0af287
- Update to 0.17
d0af287
  - Skip Mouse tests if some required interfaces are not available
d0af287
cf26133
* Mon Nov 10 2014 Paul Howarth <paul@city-fan.org> - 0.16-2
cf26133
- Sanitize for Fedora submission
cf26133
cf26133
* Thu Sep  4 2014 Paul Howarth <paul@city-fan.org> - 0.16-1
cf26133
- Update to 0.16
cf26133
  - Bump Package::Stash prereq to ensure used methods are available
cf26133
  - Skip Moose-related tests for normal installs, to get out of circularity
cf26133
    hell if Moose is installed but broken and needing an upgrade
cf26133
cf26133
* Wed Aug 27 2014 Paul Howarth <paul@city-fan.org> - 0.14-2
cf26133
- Don't run the optional tests when bootstrapping, to avoid circular build
cf26133
  dependencies
cf26133
- perl(Test::Warnings) is required when bootstrapping
cf26133
cf26133
* Thu Aug 14 2014 Paul Howarth <paul@city-fan.org> - 0.14-1
cf26133
- Update to 0.14
cf26133
  - Remove accidental dependency on Class::MOP (which turned into a circular
cf26133
    dependency with Moose-2.1211)
cf26133
- Use %%license where possible
cf26133
cf26133
* Wed Jun 25 2014 Paul Howarth <paul@city-fan.org> - 0.13-1
cf26133
- Update to 0.13
cf26133
  - Bump (optional) prereq on Moo to get some fixes for handling roles
cf26133
- Edit out use of Test::Warnings in the test suite for old distributions that
cf26133
  can't provide it
cf26133
cf26133
* Wed Jun 18 2014 Paul Howarth <paul@city-fan.org> - 0.12-1
cf26133
- Update to 0.12
cf26133
  - Also special case constant subs, which show up in the symbol table before
cf26133
    perl 5.010 as 'constant::__ANON__'
cf26133
cf26133
* Tue Jun 17 2014 Paul Howarth <paul@city-fan.org> - 0.11-2
cf26133
- Add upstream fix for Perl 5.8 compatibility
cf26133
cf26133
* Mon Jun 16 2014 Paul Howarth <paul@city-fan.org> - 0.11-1
cf26133
- Update to 0.11
cf26133
  - Increased version for optional Role::Tiny prereq, to get the needed is_role
cf26133
    interface
cf26133
  - Now ignoring 'import', 'unimport' subs; also handle users of
cf26133
    Moose::Exporter without erroring
cf26133
  - Now ignoring overloaded methods
cf26133
  - Now also properly handle classes using Class::MOP directly
cf26133
  - Fix test diagnostics in the success case
cf26133
  - Fix use of a new Scalar::Util export in tests
cf26133
  - The return value of namespaces_clean() and all_namespaces_clean() is now
cf26133
    consistent with the result of the test(s)
cf26133
  - Fixed tests to expose an issue with Mouse classes, and documented this
cf26133
    (now) known issue
cf26133
- Switch to ExtUtils::MakeMaker flow
cf26133
- Test suite now relies on perl 5.10 or later, so don't build for anything
cf26133
  older
cf26133
- Drop %%defattr, redundant since rpm 4.4
cf26133
- BR: perl(Test::Requires) unconditionally
cf26133
cf26133
* Sun Mar  9 2014 Paul Howarth <paul@city-fan.org> - 0.08-1
cf26133
- Update to 0.08
cf26133
  - Fixed method identification in Moose and Mouse roles
cf26133
- Update patch for building without Test::Requires
cf26133
cf26133
* Mon Mar  3 2014 Paul Howarth <paul@city-fan.org> - 0.07-1
cf26133
- Update to 0.07
cf26133
  - Lots more tests
cf26133
  - In failing tests, identify the source of the uncleaned sub(s)
cf26133
  - Remove the dependency on Class::MOP by inspecting the package stash
cf26133
    directly
cf26133
- Switch to Module::Build::Tiny flow
cf26133
- Package upstream's new CONTRIBUTING and README.md files
cf26133
- Don't bother trying to run the extra tests
cf26133
- Test suite actually requires Test::More ≥ 0.94, so bundle a suitable
cf26133
  version to use if necessary
cf26133
- Drop all existing patches
cf26133
- Add a patch to support building with old Module::Build::Tiny versions
cf26133
- Add a patch to support building without Test::Requires if necessary
cf26133
cf26133
* Wed Sep 25 2013 Paul Howarth <paul@city-fan.org> - 0.05-1
cf26133
- Update to 0.05
cf26133
  - Re-release with fixed compile test
cf26133
- Update patches as needed
cf26133
cf26133
* Thu Sep 19 2013 Paul Howarth <paul@city-fan.org> - 0.04-2
cf26133
- Don't run the extra tests when bootstrapping
cf26133
cf26133
* Sun Sep 15 2013 Paul Howarth <paul@city-fan.org> - 0.04-1
cf26133
- Update to 0.04
cf26133
  - Remove use of deprecated Class::MOP::load_class
cf26133
- This release by ETHER -> update source URL
cf26133
- Add patches to support building with old Test::More versions
cf26133
- Add buildreqs for and explicitly run the extra tests
cf26133
cf26133
* Thu Jul 25 2013 Paul Howarth <paul@city-fan.org> - 0.03-2
cf26133
- Perl 5.18 rebuild
cf26133
cf26133
* Sat Jun 29 2013 Paul Howarth <paul@city-fan.org> - 0.03-1
cf26133
- Initial RPM version