From 04113eb9e2d6c143d26471f945555504d0778f11 Mon Sep 17 00:00:00 2001 From: Jose Pedro Oliveira Date: Tue, 26 Sep 2006 09:31:10 +0000 Subject: [PATCH] auto-import perl-Test-Perl-Critic-0.07-1 on branch devel from perl-Test-Perl-Critic-0.07-1.src.rpm --- .cvsignore | 1 + perl-Test-Perl-Critic.spec | 59 ++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 61 insertions(+) create mode 100644 perl-Test-Perl-Critic.spec diff --git a/.cvsignore b/.cvsignore index e69de29..a1b1ab4 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Test-Perl-Critic-0.07.tar.gz diff --git a/perl-Test-Perl-Critic.spec b/perl-Test-Perl-Critic.spec new file mode 100644 index 0000000..9818a36 --- /dev/null +++ b/perl-Test-Perl-Critic.spec @@ -0,0 +1,59 @@ +Name: perl-Test-Perl-Critic +Version: 0.07 +Release: 1%{?dist} +Summary: Use Perl::Critic in test programs + +Group: Development/Libraries +License: GPL or Artistic +URL: http://search.cpan.org/dist/Test-Perl-Critic/ +Source0: http://www.cpan.org/authors/id/T/TH/THALJEF/testperlcritic/Test-Perl-Critic-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +BuildRequires: perl(Module::Build) +BuildRequires: perl(Perl::Critic) +BuildRequires: perl(Test::Pod) +BuildRequires: perl(Test::Pod::Coverage) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +Test::Perl::Critic wraps the Perl::Critic engine in a convenient +subroutine suitable for test programs written using the Test::More +framework. This makes it easy to integrate coding-standards enforcement +into the build process. For ultimate convenience (at the expense of some +flexibility), see the criticism pragma. + + +%prep +%setup -q -n Test-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 +%{perl_vendorlib}/Test/ +%{_mandir}/man3/*.3pm* + + +%changelog +* Sat Sep 23 2006 Jose Pedro Oliveira - 0.07-1 +- First build. diff --git a/sources b/sources index e69de29..7a746c5 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +91c1dc234b4c6ec1f06300085f0559cf Test-Perl-Critic-0.07.tar.gz