perl-B-Lint/perl-B-Lint.spec
2022-07-06 10:34:03 +08:00

53 lines
1.6 KiB
RPMSpec

Name: perl-B-Lint
Version: 1.20
Release: 15
Summary: perl linter
License: GPL-1.0-or-later or Artistic-1.0-Perl
Group: Development/Libraries
URL: https://metacpan.org/release/B-Lint
Source0: https://cpan.metacpan.org/authors/id/R/RJ/RJBS/B-Lint-%{version}.tar.gz
Patch0: B-Lint-1.20-Skip-a-bare-sub-test.patch
BuildArch: noarch
BuildRequires: findutils make perl-interpreter perl-generators perl(ExtUtils::MakeMaker)
BuildRequires: sed perl(B) perl(Carp) perl(constant) perl(deprecate) perl(if)
BuildRequires: perl(List::Util) perl(Module::Pluggable) perl(overload) perl(strict)
BuildRequires: perl(Config) perl(File::Spec) perl(O) perl(warnings)
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(constant) perl(deprecate)
%description
Provides program checking for Perl programs,equivalent to running Perl with the -w option.
Named after the Unix lint program for checking C programs.
%package_help
%prep
%autosetup -n B-Lint-%{version} -p1
sed -i '/PM *=>/,/}/d' Makefile.PL
%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%install
make pure_install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%files
%{perl_vendorlib}/*
%files help
%doc Changes README
%{_mandir}/man3/*
%changelog
* Wed Jul 06 2022 yaoxin <yaoxin30@h-partners.com> - 1.20-15
- License compliance rectification
* Thu Apr 16 2020 wangyue<wangyue92@huawei.com> - 1.20-14
- Package init