[perl-Test-Vars] Initial import (perl-Test-Vars-0.001-2)

Paul Howarth pghmcfc at fedoraproject.org
Mon Aug 8 18:27:10 UTC 2011


commit 5e27442df887757bec5f7b20eeca19a2dab5c30c
Author: Paul Howarth <paul at city-fan.org>
Date:   Mon Aug 8 19:26:06 2011 +0100

    Initial import (perl-Test-Vars-0.001-2)
    
    Test::Vars finds unused variables in order to keep the source code tidy.

 .gitignore          |    1 +
 perl-Test-Vars.spec |   56 +++++++++++++++++++++++++++++++++++++++++++++++++++
 sources             |    1 +
 3 files changed, 58 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..c6431b8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Test-Vars-[0-9.]*.tar.gz
diff --git a/perl-Test-Vars.spec b/perl-Test-Vars.spec
new file mode 100644
index 0000000..1c1efc7
--- /dev/null
+++ b/perl-Test-Vars.spec
@@ -0,0 +1,56 @@
+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 at city-fan.org> - 0.001-2
+- Sanitize for Fedora submission
+- Clean up for modern rpm
+
+* Mon Aug  8 2011 Paul Howarth <paul at city-fan.org> - 0.001-1
+- Initial RPM version
diff --git a/sources b/sources
index e69de29..6a89af7 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+4ce99ba8318634a16a04e59b20cc5798  Test-Vars-0.001.tar.gz



More information about the perl-devel mailing list