2024-01-06 09:30:30 +01:00
|
|
|
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
|
|
|
|
|
|
|
Name: perl-Perl-Critic
|
2024-01-06 09:30:30 +01:00
|
|
|
Version: 1.148
|
|
|
|
Release: 1mamba
|
2024-01-06 09:30:30 +01:00
|
|
|
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>
|
2024-01-06 09:30:30 +01:00
|
|
|
URL: https://www.cpan.org/
|
|
|
|
Source: https://cpan.metacpan.org/authors/id/P/PE/PETDANCE/Perl-Critic-%{version}.tar.gz
|
2024-01-06 09:30:30 +01:00
|
|
|
License: GPL, Artistic
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: libperl
|
|
|
|
BuildRequires: perl-B-Keywords
|
|
|
|
BuildRequires: perl-Config-Tiny
|
|
|
|
BuildRequires: perl-Exception-Class
|
2024-01-06 09:30:30 +01:00
|
|
|
BuildRequires: perl-List-SomeUtils
|
|
|
|
BuildRequires: perl-Module-Pluggable
|
2024-01-06 09:30:30 +01:00
|
|
|
BuildRequires: perl-PPI
|
2024-01-06 09:30:30 +01:00
|
|
|
BuildRequires: perl-PPIx-QuoteLike
|
2024-01-06 09:30:30 +01:00
|
|
|
BuildRequires: perl-PPIx-Regexp
|
|
|
|
BuildRequires: perl-PPIx-Utilities
|
|
|
|
BuildRequires: perl-Perl-Tidy
|
|
|
|
BuildRequires: perl-Pod-Spell
|
|
|
|
BuildRequires: perl-Readonly
|
2024-01-06 09:30:30 +01:00
|
|
|
BuildRequires: perl-Scalar-List-Utils
|
2024-01-06 09:30:30 +01:00
|
|
|
BuildRequires: perl-String-Format
|
2024-01-06 09:30:30 +01:00
|
|
|
BuildRequires: perl-Test-Simple
|
2024-01-06 09:30:30 +01:00
|
|
|
BuildRequires: perl-devel
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRequires: aspell-en
|
2024-01-06 09:30:30 +01:00
|
|
|
BuildRequires: perl-List-SomeUtils
|
|
|
|
BuildRequires: perl-PPIx-QuoteLike
|
2024-01-06 09:30:30 +01:00
|
|
|
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
|
2024-01-06 09:30:30 +01:00
|
|
|
%{__perl} Build.PL installdirs=vendor
|
|
|
|
./Build
|
|
|
|
./Build test
|
2024-01-06 09:30:30 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-06 09:30:30 +01:00
|
|
|
./Build install --destdir=%{buildroot}
|
|
|
|
|
2024-01-06 09:30:30 +01:00
|
|
|
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
|
2024-01-06 09:30:30 +01:00
|
|
|
* Fri Feb 03 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 1.148-1mamba
|
|
|
|
- update to 1.148
|
|
|
|
|
2024-01-06 09:30:30 +01:00
|
|
|
* Tue Nov 13 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.116-2mamba
|
|
|
|
- perl 5.16 mass rebuild
|
|
|
|
|
|
|
|
* Sat Nov 19 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 1.116-1mamba
|
|
|
|
- update to 1.116
|
|
|
|
|
|
|
|
* Fri Feb 18 2011 gil <puntogil@libero.it> 1.111-1mamba
|
|
|
|
- package created by autospec
|