f4c78f3
Name:           perl-B-Lint
7f8423c
Version:        1.20
e8f73cc
Release:        14%{?dist}
f4c78f3
Summary:        Perl lint
f4c78f3
License:        GPL+ or Artistic
c7ee412
URL:            https://metacpan.org/release/B-Lint
c7ee412
Source0:        https://cpan.metacpan.org/authors/id/R/RJ/RJBS/B-Lint-%{version}.tar.gz
04e00bf
# Work around for Perl 5.22, bug #1231112, CPAN RT#101115
04e00bf
Patch0:         B-Lint-1.20-Skip-a-bare-sub-test.patch
f4c78f3
BuildArch:      noarch
01f7902
BuildRequires:  findutils
01f7902
BuildRequires:  make
2e86d92
BuildRequires:  perl-interpreter
798e880
BuildRequires:  perl-generators
f4c78f3
BuildRequires:  perl(ExtUtils::MakeMaker)
01f7902
BuildRequires:  sed
7f8423c
# Run-Time:
f4c78f3
BuildRequires:  perl(B) 
f4c78f3
BuildRequires:  perl(Carp)
f4c78f3
BuildRequires:  perl(constant)
82fd97e
%if 0%(perl -e 'print $] > 5.017')
76f2d78
BuildRequires:  perl(deprecate)
82fd97e
%endif
f4c78f3
BuildRequires:  perl(if)
f4c78f3
BuildRequires:  perl(List::Util)
f4c78f3
BuildRequires:  perl(Module::Pluggable)
f4c78f3
BuildRequires:  perl(overload)
f4c78f3
BuildRequires:  perl(strict)
f4c78f3
# Tests:
f4c78f3
BuildRequires:  perl(Config)
f4c78f3
BuildRequires:  perl(File::Spec)
f4c78f3
BuildRequires:  perl(O)
f4c78f3
BuildRequires:  perl(warnings)
f4c78f3
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
f4c78f3
Requires:       perl(constant)
82fd97e
%if 0%(perl -e 'print $] > 5.017')
76f2d78
Requires:       perl(deprecate)
82fd97e
%endif
f4c78f3
f4c78f3
%description
f4c78f3
The B::Lint module is equivalent to an extended version of the -w option of
f4c78f3
perl. It is named after the program lint which carries out a similar process
f4c78f3
for C programs.
f4c78f3
f4c78f3
%prep
f4c78f3
%setup -q -n B-Lint-%{version}
04e00bf
%patch0 -p1
01f7902
# Install into architecture-agnostic path, CPAN RT#83049
f4c78f3
sed -i '/PM *=>/,/}/d' Makefile.PL
f4c78f3
f4c78f3
%build
f4c78f3
perl Makefile.PL INSTALLDIRS=vendor
f4c78f3
make %{?_smp_mflags}
f4c78f3
f4c78f3
%install
f4c78f3
make pure_install DESTDIR=$RPM_BUILD_ROOT
f4c78f3
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
f4c78f3
%{_fixperms} $RPM_BUILD_ROOT/*
f4c78f3
f4c78f3
%check
f4c78f3
make test
f4c78f3
f4c78f3
%files
f4c78f3
%doc Changes README
f4c78f3
%{perl_vendorlib}/*
f4c78f3
%{_mandir}/man3/*
f4c78f3
f4c78f3
%changelog
e8f73cc
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.20-14
e8f73cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
e8f73cc
df2c404
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.20-13
df2c404
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
df2c404
0b69f13
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1.20-12
0b69f13
- Perl 5.28 rebuild
0b69f13
b83174e
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.20-11
b83174e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
b83174e
bb9c902
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.20-10
bb9c902
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
bb9c902
14cb691
* Mon Jun 05 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.20-9
14cb691
- Perl 5.26 rebuild
14cb691
262bc1a
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.20-8
262bc1a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
262bc1a
6c9139b
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.20-7
6c9139b
- Perl 5.24 rebuild
6c9139b
009cba3
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.20-6
009cba3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
009cba3
5f25ce0
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.20-5
5f25ce0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
5f25ce0
04e00bf
* Fri Jun 12 2015 Petr Pisar <ppisar@redhat.com> - 1.20-4
04e00bf
- Work around an incompatibility with Perl 5.22 (bug #1231112)
04e00bf
4b35932
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.20-3
4b35932
- Perl 5.22 rebuild
4b35932
d718c3d
* Wed Oct 29 2014 Petr Pisar <ppisar@redhat.com> - 1.20-2
d718c3d
- Do not build-require version module
d718c3d
7f8423c
* Mon Oct 27 2014 Petr Pisar <ppisar@redhat.com> - 1.20-1
7f8423c
- 1.20 bump
7f8423c
8a56ed1
* Tue Sep 30 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.18-1
8a56ed1
- 1.18 bump
8a56ed1
6654627
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.17-293
6654627
- Perl 5.20 rebuild
6654627
46c9412
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.17-292
46c9412
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
46c9412
3e6b1ca
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.17-291
3e6b1ca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
3e6b1ca
8897f69
* Mon Jul 15 2013 Petr Pisar <ppisar@redhat.com> - 1.17-290
8897f69
- Increase release to favour standalone package
8897f69
a49020f
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 1.17-3
a49020f
- Perl 5.18 rebuild
a49020f
76f2d78
* Tue May 28 2013 Petr Pisar <ppisar@redhat.com> - 1.17-2
76f2d78
- Correct typo in dependencies
76f2d78
f4c78f3
* Wed Jan 30 2013 Petr Pisar <ppisar@redhat.com> 1.17-1
f4c78f3
- Specfile autogenerated by cpanspec 1.78.