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

117 lines
3.5 KiB
RPMSpec
Raw Normal View History

Name: perl-Perl-Critic
2007-03-20 15:51:44 +00:00
Version: 1.05
2007-02-15 17:25:44 +00:00
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)
2007-01-25 00:25:06 +00:00
BuildRequires: perl(B::Keywords) >= 1.05
BuildRequires: perl(Config::Tiny) >= 2
BuildRequires: perl(File::HomeDir)
BuildRequires: perl(IO::String)
BuildRequires: perl(List::MoreUtils)
2006-12-17 15:02:30 +00:00
BuildRequires: perl(Module::Pluggable) >= 3.1
BuildRequires: perl(PPI) >= 1.118
BuildRequires: perl(String::Format) >= 1.13
BuildRequires: perl(Perl::Tidy)
2007-01-26 15:25:30 +00:00
BuildRequires: perl(Test::Memory::Cycle)
# Author tests
2007-01-25 00:25:06 +00:00
#BuildRequires: perl(Test::Perl::Critic)
#BuildRequires: perl(Test::Kwalitee)
2007-01-25 00:25:06 +00:00
BuildRequires: aspell
BuildRequires: perl(File::Which)
BuildRequires: perl(Test::Spelling)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::Pod::Coverage)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires: perl(Module::Pluggable) >= 3.1
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
# Additional requirements of author tests:
2007-01-25 00:25:06 +00:00
# Test::Perl::Critic, Test::Kwalitee
TEST_AUTHOR=1 ./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
2007-03-20 15:51:44 +00:00
* Tue Mar 20 2007 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.05-1
- Update to 1.05.
2007-02-15 17:25:44 +00:00
* Thu Feb 15 2007 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.03-1
- Update to 1.03.
2007-01-26 15:33:26 +00:00
* Fri Jan 26 2007 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.01-2
- Bumping release (forgot to commit sources and .cvsignore changes).
2007-01-26 15:25:30 +00:00
* Fri Jan 26 2007 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.01-1
- Update to 1.01.
- New build requirement: perl(Test::Memory::Cycle).
* Thu Jan 25 2007 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.23-2
- perl(Set::Scalar) is no longer required.
2007-01-25 00:25:06 +00:00
* Wed Jan 24 2007 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.23-1
- Update to 0.23.
- New requirement: perl(B::Keywords).
- Author tests coverage improved.
* Sun Dec 17 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.22-2
- Enabled author tests.
- BR perl(HomeDir).
2006-12-17 15:02:30 +00:00
* Sun Dec 17 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.22-1
- Update to 0.22.
* Sat Nov 11 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.21-1
- Update to 0.21.
- New BR: perl(Set::Scalar).
* Sat Sep 16 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.2-1
- First build.