1 | %define pkgname Test-Perl-Critic |
---|
2 | |
---|
3 | Name: perl-%{pkgname} |
---|
4 | Summary: Use Perl::Critic in test programs |
---|
5 | Version: 1.02 |
---|
6 | Release: 3%{?_dist_release} |
---|
7 | License: Artistic or GPL+ |
---|
8 | Group: Development/Libraries |
---|
9 | Source0: http://search.cpan.org/CPAN/authors/id/T/TH/THALJEF/Test-Perl-Critic-%{version}.tar.gz |
---|
10 | URL: http://search.cpan.org/dist/Test-Perl-Critic/ |
---|
11 | |
---|
12 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
13 | BuildArch: noarch |
---|
14 | |
---|
15 | BuildRequires: perl(Carp) |
---|
16 | BuildRequires: perl(English) |
---|
17 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
18 | BuildRequires: perl(Module::Build) >= 0.35 |
---|
19 | BuildRequires: perl(Perl::Critic) >= 1.105 |
---|
20 | BuildRequires: perl(Perl::Critic::Utils) >= 1.105 |
---|
21 | BuildRequires: perl(Perl::Critic::Violation) >= 1.105 |
---|
22 | BuildRequires: perl(Test::Builder) |
---|
23 | BuildRequires: perl(Test::More) |
---|
24 | |
---|
25 | Requires: perl(Carp) |
---|
26 | Requires: perl(English) |
---|
27 | Requires: perl(Perl::Critic) >= 1.105 |
---|
28 | Requires: perl(Perl::Critic::Utils) >= 1.105 |
---|
29 | Requires: perl(Perl::Critic::Violation) >= 1.105 |
---|
30 | Requires: perl(Test::Builder) |
---|
31 | |
---|
32 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
33 | |
---|
34 | Vendor: Project Vine |
---|
35 | Distribution: Vine Linux |
---|
36 | Packager: shaolin |
---|
37 | |
---|
38 | |
---|
39 | %{?perl_default_filter} |
---|
40 | %{?perl_default_subpackage_tests} |
---|
41 | |
---|
42 | %description |
---|
43 | Test::Perl::Critic wraps the Perl::Critic engine in a convenient |
---|
44 | subroutine suitable for test programs written using the Test::More |
---|
45 | framework. This makes it easy to integrate coding-standards enforcement |
---|
46 | into the build process. For ultimate convenience (at the expense of some |
---|
47 | flexibility), see the criticism pragma. |
---|
48 | |
---|
49 | |
---|
50 | %prep |
---|
51 | %setup -q -n Test-Perl-Critic-%{version} |
---|
52 | |
---|
53 | |
---|
54 | %build |
---|
55 | %{__perl} Build.PL installdirs=vendor |
---|
56 | ./Build |
---|
57 | |
---|
58 | |
---|
59 | %install |
---|
60 | rm -rf ${RPM_BUILD_ROOT} |
---|
61 | ./Build install destdir=${RPM_BUILD_ROOT} create_packlist=0 |
---|
62 | %{_fixperms} ${RPM_BUILD_ROOT}/* |
---|
63 | |
---|
64 | |
---|
65 | %check |
---|
66 | # Tests are failing with odd unpack errors. |
---|
67 | # TEST_AUTHOR=1 ./Build test |
---|
68 | ./Build test |
---|
69 | |
---|
70 | |
---|
71 | %clean |
---|
72 | rm -rf ${RPM_BUILD_ROOT} |
---|
73 | |
---|
74 | |
---|
75 | %files |
---|
76 | %defattr(-,root,root,-) |
---|
77 | %doc Changes LICENSE README |
---|
78 | %{perl_vendorlib}/Test/ |
---|
79 | %{_mandir}/man3/*.3pm* |
---|
80 | |
---|
81 | |
---|
82 | %changelog |
---|
83 | * Sat Nov 22 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 1.02-3 |
---|
84 | - rebuilt with perl 5.16.3 |
---|
85 | |
---|
86 | * Thu Mar 01 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.02-2 |
---|
87 | - rebuild |
---|
88 | |
---|
89 | * Fri Feb 24 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.02-1 |
---|
90 | - initial package for Vine Linux |
---|
91 | |
---|
92 | * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.02-6 |
---|
93 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild |
---|
94 | |
---|
95 | * Tue Jul 19 2011 Petr Sabata <contyk@redhat.com> - 1.02-5 |
---|
96 | - Perl mass rebuild |
---|
97 | |
---|
98 | * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.02-4 |
---|
99 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
---|
100 | |
---|
101 | * Wed Dec 22 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.02-3 |
---|
102 | - 661697 rebuild for fixing problems with vendorach/lib |
---|
103 | |
---|
104 | * Fri May 07 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.02-2 |
---|
105 | - Mass rebuild with perl-5.12.0 |
---|
106 | |
---|
107 | * Sun Mar 14 2010 Chris Weyl <cweyl@alumni.drew.edu> 1.02-1 |
---|
108 | - update by Fedora::App::MaintainerTools 0.006 |
---|
109 | - updating to latest GA CPAN version (1.02) |
---|
110 | - added a new br on perl(Carp) (version 0) |
---|
111 | - added a new br on perl(English) (version 0) |
---|
112 | - altered br on perl(Module::Build) (0 => 0.35) |
---|
113 | - altered br on perl(Perl::Critic) (0.21 => 1.105) |
---|
114 | - added a new br on perl(Perl::Critic::Utils) (version 1.105) |
---|
115 | - added a new br on perl(Perl::Critic::Violation) (version 1.105) |
---|
116 | - added a new br on perl(Test::Builder) (version 0) |
---|
117 | - added a new br on perl(Test::More) (version 0) |
---|
118 | - force-adding ExtUtils::MakeMaker as a BR |
---|
119 | - dropped old BR on perl(Test::Pod) |
---|
120 | - dropped old BR on perl(Test::Pod::Coverage) |
---|
121 | - added a new req on perl(Carp) (version 0) |
---|
122 | - added a new req on perl(English) (version 0) |
---|
123 | - added a new req on perl(Perl::Critic) (version 1.105) |
---|
124 | - added a new req on perl(Perl::Critic::Utils) (version 1.105) |
---|
125 | - added a new req on perl(Perl::Critic::Violation) (version 1.105) |
---|
126 | - added a new req on perl(Test::Builder) (version 0) |
---|
127 | |
---|
128 | * Fri Dec 4 2009 Stepan Kasal <skasal@redhat.com> - 1.01-8 |
---|
129 | - rebuild against perl 5.10.1 |
---|
130 | |
---|
131 | * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.01-7 |
---|
132 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
133 | |
---|
134 | * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.01-6 |
---|
135 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
136 | |
---|
137 | * Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.01-5 |
---|
138 | - Rebuild for perl 5.10 (again) |
---|
139 | |
---|
140 | * Tue Jan 15 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.01-4 |
---|
141 | - disable tests, take out patch, doesn't fix test failures |
---|
142 | |
---|
143 | * Tue Jan 15 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.01-3 |
---|
144 | - patch for test failure |
---|
145 | |
---|
146 | * Mon Jan 14 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.01-2 |
---|
147 | - rebuild for new perl |
---|
148 | |
---|
149 | * Sat Jan 27 2007 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.01-1 |
---|
150 | - Update to 1.01. |
---|
151 | |
---|
152 | * Sun Nov 12 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.08-1 |
---|
153 | - Update to 0.08. |
---|
154 | |
---|
155 | * Sat Sep 23 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.07-1 |
---|
156 | - First build. |
---|