8
0
Files
perl-Perl-Critic/perl-Perl-Critic.spec

101 lines
3.2 KiB
RPMSpec
Raw Normal View History

# Copyright (c) 2009 Novell
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://www.suse.de/feedback/
#
# norootforbuild
Name: perl-Perl-Critic
Version: 1.105
Release: 1
%define cpan_name Perl-Critic
Provides: %cpan_name
Requires: perl = %{perl_version}
Requires: perl-B-Keywords >= 1.05
Requires: perl-Carp-Clan
Requires: perl-Config-Tiny >= 2.0
Requires: perl-Exception-Class >= 1.23
Requires: perl-IO-String
Requires: perl-List-MoreUtils >= 0.19
Requires: perl-PPI >= 1.205
Requires: perl-Readonly >= 1.03
Requires: perl-String-Format >= 1.13
Autoreqprov: on
Group: Development/Libraries/Perl
License: Artistic License, GPL, see package
URL: http://search.cpan.org/~elliotjs/Perl-Critic-1.105/bin/perlcritic
Summary: Critique Perl source code for best-practices
Source0: %{cpan_name}-%{version}.tar.gz
BuildRequires: perl-B-Keywords >= 1.05
BuildRequires: perl-Carp-Clan
BuildRequires: perl-Config-Tiny >= 2.0
BuildRequires: perl-Email-Address >= 1.889
BuildRequires: perl-Exception-Class >= 1.23
BuildRequires: perl-IO-String
BuildRequires: perl-List-MoreUtils >= 0.19
BuildRequires: perl-PPI >= 1.205
BuildRequires: perl-Readonly >= 1.03
BuildRequires: perl-String-Format >= 1.13
BuildRequires: perl-Test-Deep
BuildRequires: perl-Test-Memory-Cycle >= 1.0
BuildRequires: perl-Test-Pod >= 1.0
BuildRequires: perl-Test-Pod-Coverage >= 1.0
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-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.
Also provides the commandline interface perlcritic
Authors:
Jeffrey Ryan Thalhammer <thaljef@cpan.org>
%prep
%setup -q -n %cpan_name-%{version}
%build
perl Makefile.PL
make
%check
make test
%install
%perl_make_install
%perl_process_packlist
%__rm -f %{buildroot}%{perl_vendorarch}/auto/Perl/Critic/.packlist
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc Changes LICENSE README
%doc %{_mandir}/man3/*
%doc %{_mandir}/man1/*
%doc %{perl_vendorlib}/Perl/TODO.pod
%dir %{perl_vendorlib}/Perl
%dir %{perl_vendorlib}/Perl/Critic
%{perl_vendorlib}/Perl/Critic/*
%{perl_vendorlib}/Perl/Critic.pm
/usr/bin/perlcritic
/var/adm/perl-modules/%{name}
%changelog
* Mon Nov 23 2009 Robert Schweikert <rschweikert@novell.com> - Perl-Critic
- Initial build.