update to 1.148 [release 1.148-1mamba;Fri Feb 03 2023]

This commit is contained in:
Silvan Calarco 2024-01-06 09:30:30 +01:00
parent 809f644438
commit 067f0a5d24

View File

@ -1,34 +1,38 @@
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-Perl-Critic
Version: 1.116
Release: 2mamba
Version: 1.148
Release: 1mamba
Summary: Perl::Critic - Critique Perl source code for best-practices
Group: System/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.cpan.org
Source: http://search.cpan.org/CPAN/authors/id/E/EL/ELLIOTJS/Perl-Critic-%{version}.tar.gz
URL: https://www.cpan.org/
Source: https://cpan.metacpan.org/authors/id/P/PE/PETDANCE/Perl-Critic-%{version}.tar.gz
License: GPL, Artistic
## AUTOBUILDREQ-BEGIN
BuildRequires: libperl
BuildRequires: perl-B-Keywords
BuildRequires: perl-Config-Tiny
BuildRequires: perl-Email-Address
BuildRequires: perl-Exception-Class
BuildRequires: perl-IO-String
BuildRequires: perl-List-MoreUtils
BuildRequires: perl-List-SomeUtils
BuildRequires: perl-Module-Pluggable
BuildRequires: perl-PPI
BuildRequires: perl-PPIx-QuoteLike
BuildRequires: perl-PPIx-Regexp
BuildRequires: perl-PPIx-Utilities
BuildRequires: perl-Perl-Tidy
BuildRequires: perl-Pod-Spell
BuildRequires: perl-Readonly
BuildRequires: perl-Scalar-List-Utils
BuildRequires: perl-String-Format
BuildRequires: perl-Test-Simple
BuildRequires: perl-devel
## AUTOBUILDREQ-END
BuildRequires: aspell-en
BuildRequires: perl-List-SomeUtils
BuildRequires: perl-PPIx-QuoteLike
BuildRequires: perl(File::HomeDir)
BuildRequires: perl-File-Which
BuildRequires: perl(Module::Build)
@ -69,7 +73,6 @@ BuildRequires: perl(English)
Requires: perl >= %perl_major_ver
Requires: perl(Module::Pluggable)
Requires: perl(PPI)
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Perl::Critic is an extensible framework for creating and applying coding standards to Perl source code. Essentially, it is a static source code analysis engine. Perl::Critic is distributed with a number of Perl::Critic::Policy modules that attempt to enforce various coding guidelines.
@ -81,13 +84,14 @@ Most Policy modules are based on Damian Conway's book Perl Best Practices. Howev
find . -type f -exec chmod -c -x {} +
%build
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
%make %{?_smp_mflags}
#% make test
%{__perl} Build.PL installdirs=vendor
./Build
./Build test
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall_perl
./Build install --destdir=%{buildroot}
packlist=`find %{buildroot} -name .packlist`
[ -z "$packlist" ] && exit 1 || cat $packlist | \
sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \
@ -106,6 +110,9 @@ done
%doc LICENSE
%changelog
* Fri Feb 03 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 1.148-1mamba
- update to 1.148
* Tue Nov 13 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.116-2mamba
- perl 5.16 mass rebuild