1 |
%define upstream_name Test-Perl-Critic-Progressive |
2 |
%define upstream_version 0.03 |
3 |
|
4 |
Name: perl-%{upstream_name} |
5 |
Version: %perl_convert_version %{upstream_version} |
6 |
Release: %mkrel 1 |
7 |
|
8 |
Summary: Gradually enforce coding standards |
9 |
License: GPL+ or Artistic |
10 |
Group: Development/Perl |
11 |
Url: http://search.cpan.org/dist/%{upstream_name} |
12 |
Source0: http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz |
13 |
|
14 |
BuildRequires: perl(Carp) |
15 |
BuildRequires: perl(Data::Dumper) |
16 |
BuildRequires: perl(English) |
17 |
BuildRequires: perl(Exporter) |
18 |
BuildRequires: perl(File::Spec) |
19 |
BuildRequires: perl(FindBin) |
20 |
BuildRequires: perl(Perl::Critic) |
21 |
BuildRequires: perl(Perl::Critic::Utils) |
22 |
BuildRequires: perl(Test::Builder) |
23 |
BuildRequires: perl(Test::More) |
24 |
BuildRequires: perl(base) |
25 |
BuildRequires: perl(strict) |
26 |
BuildRequires: perl(warnings) |
27 |
BuildArch: noarch |
28 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} |
29 |
|
30 |
%description |
31 |
Applying coding standards to large amounts of legacy code is a daunting |
32 |
task. Often times, legacy code is so non-compliant that it seems downright |
33 |
impossible. But, if you consistently chip away at the problem, you will |
34 |
eventually succeed! Test::Perl::Critic::Progressive uses the the |
35 |
Perl::Critic manpage engine to prevent further deterioration of your code |
36 |
and *gradually* steer it towards conforming with your chosen coding |
37 |
standards. |
38 |
|
39 |
The most effective way to use Test::Perl::Critic::Progressive is as a unit |
40 |
test that is run under a continuous-integration system like CruiseControl |
41 |
or AntHill. Each time a developer commits changes to the code, this test |
42 |
will fail and the build will break unless it has the same (or fewer) |
43 |
Perl::Critic violations than the last successful test. |
44 |
|
45 |
See the the "NOTES" manpage for more details about how this test works. |
46 |
|
47 |
%prep |
48 |
%setup -q -n %{upstream_name}-%{upstream_version} |
49 |
|
50 |
%build |
51 |
%{__perl} Makefile.PL INSTALLDIRS=vendor |
52 |
|
53 |
%make |
54 |
|
55 |
%check |
56 |
%make test |
57 |
|
58 |
%install |
59 |
rm -rf %buildroot |
60 |
%makeinstall_std |
61 |
|
62 |
%clean |
63 |
rm -rf %buildroot |
64 |
|
65 |
%files |
66 |
%defattr(-,root,root) |
67 |
%doc Changes LICENSE META.yml README |
68 |
%{_mandir}/man3/* |
69 |
%perl_vendorlib/* |
70 |
|
71 |
|