%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) Name: perl-Perl-Critic Version: 1.152 Release: 1mamba Summary: Perl::Critic - Critique Perl source code for best-practices Group: System/Libraries/Perl Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco 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-Exception-Class BuildRequires: perl-List-SomeUtils BuildRequires: perl-Module-Pluggable BuildRequires: perl-PPI BuildRequires: perl-PPIx-QuoteLike BuildRequires: perl-PPIx-Regexp BuildRequires: perl-PPIx-Utils BuildRequires: perl-Perl-Tidy BuildRequires: perl-Pod-Parser BuildRequires: perl-Pod-Spell BuildRequires: perl-Readonly BuildRequires: perl-Scalar-List-Utils BuildRequires: perl-String-Format BuildRequires: perl-devel ## AUTOBUILDREQ-END BuildRequires: perl >= 2:5.36.0 BuildRequires: aspell-en BuildRequires: perl-List-SomeUtils BuildRequires: perl-PPIx-QuoteLike BuildRequires: perl-PPIx-Utils BuildRequires: perl(File::HomeDir) BuildRequires: perl-File-Which BuildRequires: perl(Module::Build) BuildRequires: perl(Module::Pluggable) BuildRequires: perl(Task::Weaken) BuildRequires: perl(Term::ANSIColor) BuildRequires: perl(Test::Deep) BuildRequires: perl(Test::Kwalitee) BuildRequires: perl(Test::Memory::Cycle) # TODO BuildRequires: perl(Test::Perl::Critic) BuildRequires: perl(Test::Spelling) BuildRequires: perl(Test::Pod) BuildRequires: perl(Test::Pod::Coverage) BuildRequires: perl-devel BuildRequires: perl(strict) BuildRequires: perl(Scalar::Util) BuildRequires: perl(File::Temp) BuildRequires: perl(Pod::Usage) BuildRequires: perl(File::Find) BuildRequires: perl(charnames) BuildRequires: perl(File::Spec::Unix) BuildRequires: perl(List::Util) BuildRequires: perl(lib) BuildRequires: perl(Getopt::Long) BuildRequires: perl(Exporter) BuildRequires: perl(Test::More) BuildRequires: perl(overload) BuildRequires: perl(base) BuildRequires: perl(version) BuildRequires: perl(Carp) BuildRequires: perl(warnings) BuildRequires: perl(File::Basename) BuildRequires: perl(File::Spec) BuildRequires: perl(File::Path) BuildRequires: perl(Pod::PlainText) BuildRequires: perl(Pod::Select) BuildRequires: perl(English) Requires: perl >= %perl_major_ver Requires: perl(Module::Pluggable) Requires: perl(PPI) %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. Most Policy modules are based on Damian Conway's book Perl Best Practices. However, Perl::Critic is not limited to PBP and will even support Policies that contradict Conway. You can enable, disable, and customize those Polices through the Perl::Critic interface. You can also create new Policy modules that suit your own tastes. %prep %setup -q -n Perl-Critic-%{version} find . -type f -exec chmod -c -x {} + %build %{__perl} Build.PL installdirs=vendor ./Build ./Build test %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" ./Build install --destdir=%{buildroot} packlist=`find %{buildroot} -name .packlist` [ -z "$packlist" ] && exit 1 || cat $packlist | \ sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \ sort -u > .packlist && rm $packlist strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'` for dir in `find %{buildroot} -type d | grep $strid`; do echo "%dir ${dir#%buildroot}" >> .packlist done %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files -f .packlist %defattr(-,root,root) %doc LICENSE %changelog * Sun Aug 04 2024 Automatic Build System 1.152-1mamba - automatic version update by autodist * Mon Apr 17 2023 Sdk Build System 1.148-2mamba - rebuilt with perl 5.36.0 * Fri Feb 03 2023 Silvan Calarco 1.148-1mamba - update to 1.148 * Tue Nov 13 2012 Silvan Calarco 1.116-2mamba - perl 5.16 mass rebuild * Sat Nov 19 2011 Silvan Calarco 1.116-1mamba - update to 1.116 * Fri Feb 18 2011 gil 1.111-1mamba - package created by autospec