|
|
5e27442 |
Name: perl-Test-Vars
|
|
|
868fb7e |
Version: 0.014
|
|
|
fb0580e |
Release: 8%{?dist}
|
|
|
5e27442 |
Summary: Detects unused variables
|
|
|
5e27442 |
License: GPL+ or Artistic
|
|
|
71bff59 |
URL: https://metacpan.org/release/Test-Vars
|
|
|
71bff59 |
Source0: https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/Test-Vars-%{version}.tar.gz
|
|
|
5e27442 |
BuildArch: noarch
|
|
|
59b21b4 |
# ===================================================================
|
|
|
59b21b4 |
# Build requirements
|
|
|
59b21b4 |
# ===================================================================
|
|
|
4ace591 |
BuildRequires: coreutils
|
|
|
ad11b19 |
BuildRequires: perl-interpreter >= 4:5.10.0
|
|
|
f906183 |
BuildRequires: perl-generators
|
|
|
f906183 |
BuildRequires: perl(Module::Build::Tiny) >= 0.035
|
|
|
4ace591 |
BuildRequires: sed
|
|
|
59b21b4 |
# ===================================================================
|
|
|
59b21b4 |
# Module requirements
|
|
|
59b21b4 |
# ===================================================================
|
|
|
5e27442 |
BuildRequires: perl(B)
|
|
|
9f9a477 |
BuildRequires: perl(constant)
|
|
|
ed8834d |
BuildRequires: perl(ExtUtils::Manifest)
|
|
|
4ace591 |
BuildRequires: perl(IO::Pipe)
|
|
|
868fb7e |
BuildRequires: perl(List::Util) >= 1.33
|
|
|
5e27442 |
BuildRequires: perl(parent)
|
|
|
4ace591 |
BuildRequires: perl(Storable)
|
|
|
4ace591 |
BuildRequires: perl(strict)
|
|
|
ed8834d |
BuildRequires: perl(Symbol)
|
|
|
9f9a477 |
BuildRequires: perl(Test::Builder::Module)
|
|
|
4ace591 |
BuildRequires: perl(warnings)
|
|
|
59b21b4 |
# ===================================================================
|
|
|
59b21b4 |
# Test suite requirements
|
|
|
59b21b4 |
# ===================================================================
|
|
|
f906183 |
BuildRequires: perl(File::Spec::Functions)
|
|
|
ed8834d |
BuildRequires: perl(Test::More) >= 0.88
|
|
|
4ace591 |
BuildRequires: perl(Test::Tester)
|
|
|
59b21b4 |
# ===================================================================
|
|
|
fad28b9 |
# Optional test requirements
|
|
|
fad28b9 |
# ===================================================================
|
|
|
fad28b9 |
%if !0%{?rhel:1} && !0%{?perl_bootstrap:1}
|
|
|
fad28b9 |
BuildRequires: perl(Moose::Role)
|
|
|
fad28b9 |
%endif
|
|
|
18b52e6 |
BuildRequires: perl(Test::Output)
|
|
|
fad28b9 |
# ===================================================================
|
|
|
59b21b4 |
# Author/Release test requirements
|
|
|
59b21b4 |
# ===================================================================
|
|
|
ed8834d |
BuildRequires: perl(Test::Pod::Coverage) >= 1.04
|
|
|
ed8834d |
BuildRequires: perl(Test::Pod) >= 1.14
|
|
|
5e27442 |
BuildRequires: perl(Test::Synopsis)
|
|
|
59b21b4 |
# ===================================================================
|
|
|
59b21b4 |
# Runtime requirements
|
|
|
59b21b4 |
# ===================================================================
|
|
|
5e27442 |
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
5e27442 |
|
|
|
5e27442 |
%description
|
|
|
5e27442 |
Test::Vars finds unused variables in order to keep the source code tidy.
|
|
|
5e27442 |
|
|
|
5e27442 |
%prep
|
|
|
5e27442 |
%setup -q -n Test-Vars-%{version}
|
|
|
5e27442 |
|
|
|
5e27442 |
# Placate rpmlint about script interpreters in examples
|
|
|
5e27442 |
sed -i -e '1s|^#!perl|#!/usr/bin/perl|' example/*.t
|
|
|
5e27442 |
|
|
|
5e27442 |
%build
|
|
|
4ace591 |
perl Build.PL --installdirs=vendor
|
|
|
59b21b4 |
./Build
|
|
|
5e27442 |
|
|
|
5e27442 |
%install
|
|
|
4ace591 |
./Build install --destdir=%{buildroot} --create_packlist=0
|
|
|
e8e9669 |
%{_fixperms} -c %{buildroot}
|
|
|
5e27442 |
|
|
|
5e27442 |
%check
|
|
|
59b21b4 |
./Build test
|
|
|
f906183 |
prove -Ilib $(echo $(find xt/ -name '*.t'))
|
|
|
5e27442 |
|
|
|
5e27442 |
%files
|
|
|
4ace591 |
%if 0%{?_licensedir:1}
|
|
|
4ace591 |
%license LICENSE
|
|
|
4ace591 |
%else
|
|
|
4ace591 |
%doc LICENSE
|
|
|
4ace591 |
%endif
|
|
|
4ace591 |
%doc Changes README.md example/
|
|
|
5e27442 |
%{perl_vendorlib}/Test/
|
|
|
4ace591 |
%{_mandir}/man3/Test::Vars.3*
|
|
|
5e27442 |
|
|
|
5e27442 |
%changelog
|
|
|
fb0580e |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.014-8
|
|
|
fb0580e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
fb0580e |
|
|
|
72b37d5 |
* Sun Jul 01 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.014-7
|
|
|
72b37d5 |
- Perl 5.28 re-rebuild of bootstrapped packages
|
|
|
72b37d5 |
|
|
|
3f13615 |
* Fri Jun 29 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.014-6
|
|
|
3f13615 |
- Perl 5.28 rebuild
|
|
|
3f13615 |
|
|
|
de04d8f |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.014-5
|
|
|
de04d8f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
de04d8f |
|
|
|
21de9f2 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.014-4
|
|
|
21de9f2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
21de9f2 |
|
|
|
a340440 |
* Wed Jun 07 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.014-3
|
|
|
a340440 |
- Perl 5.26 re-rebuild of bootstrapped packages
|
|
|
a340440 |
|
|
|
d26e9a2 |
* Mon Jun 05 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.014-2
|
|
|
d26e9a2 |
- Perl 5.26 rebuild
|
|
|
d26e9a2 |
|
|
|
868fb7e |
* Wed Apr 12 2017 Paul Howarth <paul@city-fan.org> - 0.014-1
|
|
|
868fb7e |
- Update to 0.014
|
|
|
868fb7e |
- Fixed a bug where false positives were reported for some code constructs
|
|
|
868fb7e |
where a variable was used on the right side of an lvalue-expression
|
|
|
868fb7e |
- Drop redundant Group: tag
|
|
|
868fb7e |
|
|
|
18b52e6 |
* Fri Mar 17 2017 Paul Howarth <paul@city-fan.org> - 0.013-1
|
|
|
18b52e6 |
- Update to 0.013
|
|
|
18b52e6 |
- Worked around a very weird bug with B's handling of multideref aux_list
|
|
|
18b52e6 |
values on 5.22 and 5.24. This could cause a warning like "Use of
|
|
|
18b52e6 |
uninitialized value $i in array element at lib/Test/Vars.pm line ..." when
|
|
|
18b52e6 |
testing certain Perl constructs for unused vars; this appears to be fixed
|
|
|
18b52e6 |
in blead's B
|
|
|
18b52e6 |
|
|
|
68ff46e |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.012-2
|
|
|
68ff46e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
68ff46e |
|
|
|
d107a6d |
* Sun Dec 11 2016 Paul Howarth <paul@city-fan.org> - 0.012-1
|
|
|
d107a6d |
- Update to 0.012
|
|
|
d107a6d |
- On Perl 5.22+, variables used in a substitution operator
|
|
|
d107a6d |
($foo =~ s/foo/bar/) would be ignored (GH#28)
|
|
|
d107a6d |
|
|
|
e8e9669 |
* Mon Oct 17 2016 Paul Howarth <paul@city-fan.org> - 0.011-1
|
|
|
e8e9669 |
- Update to 0.011
|
|
|
e8e9669 |
- Fixed tests to pass on Windows (GH#26 and GH#27)
|
|
|
e8e9669 |
- This release by DROLSKY → update source URL
|
|
|
e8e9669 |
|
|
|
bf68ed2 |
* Fri Jul 1 2016 Paul Howarth <paul@city-fan.org> - 0.010-1
|
|
|
bf68ed2 |
- Update to 0.010
|
|
|
bf68ed2 |
- Fix for pp_match in Perl 5.22+ (GH#23)
|
|
|
bf68ed2 |
- This release by GFUJI → update source URL
|
|
|
bf68ed2 |
|
|
|
f906183 |
* Sun May 22 2016 Paul Howarth <paul@city-fan.org> - 0.009-1
|
|
|
f906183 |
- Update to 0.009
|
|
|
f906183 |
- On recent Perls (5.22 and 5.24, maybe more) this module could detect an
|
|
|
f906183 |
unused variable named "$"; this was a bogus false positive, as opposed to
|
|
|
f906183 |
just a missing variable name in the output (GH#22)
|
|
|
f906183 |
- Fixed tests to use File::Spec->catfile to generate paths so that tests pass
|
|
|
f906183 |
on Windows (based on GH#20)
|
|
|
f906183 |
- Switch to Module::Build::Tiny flow
|
|
|
f906183 |
- BR: perl-generators
|
|
|
f906183 |
|
|
|
1605880 |
* Wed May 18 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.008-4
|
|
|
1605880 |
- Perl 5.24 re-rebuild of bootstrapped packages
|
|
|
1605880 |
|
|
|
fe2766d |
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.008-3
|
|
|
fe2766d |
- Perl 5.24 rebuild
|
|
|
fe2766d |
|
|
|
bcb2bbc |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.008-2
|
|
|
bcb2bbc |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
bcb2bbc |
|
|
|
fad28b9 |
* Thu Aug 20 2015 Paul Howarth <paul@city-fan.org> - 0.008-1
|
|
|
fad28b9 |
- Update to 0.008
|
|
|
fad28b9 |
- In some corner cases, Test::Vars would try to look inside the body of a
|
|
|
fad28b9 |
stub sub ("sub foo;") and then blow up; this could be triggered by
|
|
|
fad28b9 |
declaring a stub sub and then an attribute with a reader of the same name
|
|
|
fad28b9 |
in a Moose::Role, for example
|
|
|
fad28b9 |
|
|
|
35a7f9f |
* Wed Aug 19 2015 Paul Howarth <paul@city-fan.org> - 0.007-1
|
|
|
35a7f9f |
- Update to 0.007
|
|
|
35a7f9f |
- Fix tests with threaded Perl 5.22+
|
|
|
35a7f9f |
|
|
|
4ace591 |
* Wed Aug 19 2015 Paul Howarth <paul@city-fan.org> - 0.006-1
|
|
|
4ace591 |
- Update to 0.006
|
|
|
4ace591 |
- This module now calls Test::Builder->diag and ->note _after_ calling ->ok;
|
|
|
4ace591 |
this is more in line with how most test modules work
|
|
|
4ace591 |
- Added a new exported sub, test_vars(), which does not output TAP; this is
|
|
|
4ace591 |
useful for integrating this module with things like Code::TidyAll
|
|
|
4ace591 |
- This release by DROLSKY → update source URL
|
|
|
4ace591 |
- Use %%license where possible
|
|
|
4ace591 |
|
|
|
0152f01 |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.005-8
|
|
|
0152f01 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
0152f01 |
|
|
|
7b4c3da |
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.005-7
|
|
|
7b4c3da |
- Perl 5.22 rebuild
|
|
|
7b4c3da |
|
|
|
6853ac7 |
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.005-6
|
|
|
6853ac7 |
- Perl 5.20 rebuild
|
|
|
6853ac7 |
|
|
|
bb4c294 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.005-5
|
|
|
bb4c294 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
bb4c294 |
|
|
|
152c326 |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.005-4
|
|
|
152c326 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
152c326 |
|
|
|
61b4968 |
* Sun Jul 21 2013 Petr Pisar <ppisar@redhat.com> - 0.005-3
|
|
|
61b4968 |
- Perl 5.18 rebuild
|
|
|
61b4968 |
|
|
|
ed8834d |
* Mon Jul 01 2013 Jitka Plesnikova <jplesnik@redhat.com> - 0.005-2
|
|
|
ed8834d |
- Update dependencies
|
|
|
ed8834d |
|
|
|
5619d8e |
* Fri May 31 2013 Paul Howarth <paul@city-fan.org> - 0.005-1
|
|
|
5619d8e |
- Update to 0.005
|
|
|
5619d8e |
- Use skip_all instead of planning 0 tests (#4)
|
|
|
5619d8e |
|
|
|
59b21b4 |
* Sun May 5 2013 Paul Howarth <paul@city-fan.org> - 0.004-1
|
|
|
59b21b4 |
- Update to 0.004
|
|
|
59b21b4 |
- Re-package with Module::Build
|
|
|
59b21b4 |
- Remove an unnecessary use of smart match operator
|
|
|
59b21b4 |
- Switch to Module::Build flow
|
|
|
59b21b4 |
- Classify buildreqs by usage
|
|
|
59b21b4 |
- Drop Test::Spelling requirement, no longer used
|
|
|
59b21b4 |
|
|
|
e51a249 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.002-3
|
|
|
e51a249 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
e51a249 |
|
|
|
9f9a477 |
* Thu Oct 25 2012 Jitka Plesnikova <jplesnik@redhat.com> - 0.002-2
|
|
|
9f9a477 |
- Specify all dependencies.
|
|
|
9f9a477 |
|
|
|
c335b7e |
* Wed Oct 10 2012 Paul Howarth <paul@city-fan.org> - 0.002-1
|
|
|
c335b7e |
- Update to 0.002
|
|
|
c335b7e |
- Fix compatibility with Perl 5.16 (CPAN RT#72133)
|
|
|
c335b7e |
- Drop upstreamed patch for 5.16 compatibility
|
|
|
c335b7e |
|
|
|
22bb7b3 |
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.001-6
|
|
|
22bb7b3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
22bb7b3 |
|
|
|
0286f96 |
* Tue Jun 12 2012 Paul Howarth <paul@city-fan.org> - 0.001-5
|
|
|
0286f96 |
- Fix compatibility with Perl 5.16 (CPAN RT#72133)
|
|
|
0286f96 |
- Don't need to remove empty directories from buildroot
|
|
|
0286f96 |
|
|
|
f8d86f0 |
* Tue Jun 12 2012 Petr Pisar <ppisar@redhat.com> - 0.001-4
|
|
|
f8d86f0 |
- Perl 5.16 rebuild
|
|
|
f8d86f0 |
|
|
|
4f8b197 |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.001-3
|
|
|
4f8b197 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
4f8b197 |
|
|
|
5e27442 |
* Mon Aug 8 2011 Paul Howarth <paul@city-fan.org> - 0.001-2
|
|
|
5e27442 |
- Sanitize for Fedora submission
|
|
|
5e27442 |
- Clean up for modern rpm
|
|
|
5e27442 |
|
|
|
5e27442 |
* Mon Aug 8 2011 Paul Howarth <paul@city-fan.org> - 0.001-1
|
|
|
5e27442 |
- Initial RPM version
|