auto-import perl-Perl-Critic-0.2-1 on branch devel from

perl-Perl-Critic-0.2-1.src.rpm
This commit is contained in:
Jose Pedro Oliveira 2006-09-23 17:07:14 +00:00
parent b94f9e17c7
commit f0165e2329
3 changed files with 75 additions and 0 deletions

View File

@ -0,0 +1 @@
Perl-Critic-0.2.tar.gz

73
perl-Perl-Critic.spec Normal file
View File

@ -0,0 +1,73 @@
Name: perl-Perl-Critic
Version: 0.2
Release: 1%{?dist}
Summary: Critique Perl source code for best-practices
Group: Development/Libraries
License: GPL or Artistic
URL: http://search.cpan.org/dist/Perl-Critic/
Source0: http://www.cpan.org/authors/id/T/TH/THALJEF/perlcritic/Perl-Critic-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: perl(Module::Build)
BuildRequires: perl(Config::Tiny) >= 2
BuildRequires: perl(IO::String)
BuildRequires: perl(List::MoreUtils)
BuildRequires: perl(Module::Pluggable)
BuildRequires: perl(PPI) >= 1.117
BuildRequires: perl(String::Format) >= 1.13
BuildRequires: perl(Perl::Tidy)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::Pod::Coverage)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires: perl(Module::Pluggable)
Requires(hint): perl(Perl::Tidy)
%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}
%build
%{__perl} Build.PL installdirs=vendor
./Build
%install
rm -rf $RPM_BUILD_ROOT
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
chmod -R u+w $RPM_BUILD_ROOT/*
%check
./Build test
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc Changes LICENSE README TODO.pod
%{_bindir}/*
%{perl_vendorlib}/Perl/
%{_mandir}/man1/*.1*
%{_mandir}/man3/*.3pm*
%changelog
* Sat Sep 16 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.2-1
- First build.

View File

@ -0,0 +1 @@
a31ab7c92cdb0501c1a3e298495f61c5 Perl-Critic-0.2.tar.gz