perl-Perl-Critic/perl-Perl-Critic.spec

117 lines
4.0 KiB
RPMSpec
Raw Permalink Normal View History

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-Perl-Critic
Version: 1.116
Release: 2mamba
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
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-PPI
BuildRequires: perl-PPIx-Regexp
BuildRequires: perl-PPIx-Utilities
BuildRequires: perl-Perl-Tidy
BuildRequires: perl-Pod-Spell
BuildRequires: perl-Readonly
BuildRequires: perl-String-Format
BuildRequires: perl-devel
## AUTOBUILDREQ-END
BuildRequires: aspell-en
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)
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.
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 Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
%make %{?_smp_mflags}
#% make test
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall_perl
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
* 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