Name: perl-Test-Vars Version: 0.001 Release: 2%{?dist} Summary: Detects unused variables License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/Test-Vars/ Source0: http://search.cpan.org/CPAN/authors/id/G/GF/GFUJI/Test-Vars-%{version}.tar.gz BuildArch: noarch BuildRequires: perl >= 4:5.10.0 BuildRequires: perl(B) BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(parent) BuildRequires: perl(Test::Builder::Tester) BuildRequires: perl(Test::More) BuildRequires: perl(Test::Pod::Coverage) BuildRequires: perl(Test::Pod) BuildRequires: perl(Test::Spelling), hunspell-en BuildRequires: perl(Test::Synopsis) Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) %description Test::Vars finds unused variables in order to keep the source code tidy. %prep %setup -q -n Test-Vars-%{version} # Placate rpmlint about script interpreters in examples sed -i -e '1s|^#!perl|#!/usr/bin/perl|' example/*.t %build perl Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install make pure_install DESTDIR=%{buildroot} find %{buildroot} -type f -name .packlist -exec rm -f {} \; find %{buildroot} -depth -type d -exec rmdir {} \; 2>/dev/null %{_fixperms} %{buildroot} %check make test make test TEST_FILES="xt/*.t" %files %doc Changes README example/ %{perl_vendorlib}/Test/ %{_mandir}/man3/Test::Vars.3pm* %changelog * Mon Aug 8 2011 Paul Howarth <paul@city-fan.org> - 0.001-2 - Sanitize for Fedora submission - Clean up for modern rpm * Mon Aug 8 2011 Paul Howarth <paul@city-fan.org> - 0.001-1 - Initial RPM version