[perl-Test-UseAllModules] Import

Petr Pisar ppisar at fedoraproject.org
Mon Sep 26 08:57:48 UTC 2011


commit 9ffeab5677052f692cc7d0f4dd8313f227cb6cca
Author: Petr Písař <ppisar at redhat.com>
Date:   Mon Sep 26 10:57:24 2011 +0200

    Import

 .gitignore                   |    1 +
 perl-Test-UseAllModules.spec |   64 ++++++++++++++++++++++++++++++++++++++++++
 sources                      |    1 +
 3 files changed, 66 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..fcaf9f4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Test-UseAllModules-0.13.tar.gz
diff --git a/perl-Test-UseAllModules.spec b/perl-Test-UseAllModules.spec
new file mode 100644
index 0000000..a7de2a4
--- /dev/null
+++ b/perl-Test-UseAllModules.spec
@@ -0,0 +1,64 @@
+Name:           perl-Test-UseAllModules
+Version:        0.13
+Release:        1%{?dist}
+Summary:        Do use_ok() for all the MANIFESTed modules
+License:        GPL+ or Artistic
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/Test-UseAllModules/
+Source0:        http://www.cpan.org/authors/id/I/IS/ISHIGAKI/Test-UseAllModules-%{version}.tar.gz
+BuildArch:      noarch
+BuildRequires:  perl(Exporter)
+BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(ExtUtils::Manifest)
+# perl(Test::Builder) needed for lib/Test/UseAllModules.pm:55:
+# Test::More->builder->{Have_Plan};
+BuildRequires:  perl(Test::Builder) >= 0.30
+BuildRequires:  perl(Test::More) >= 0.60
+# Tests only:
+BuildRequires:  perl(FindBin)
+BuildRequires:  perl(lib)
+Requires:       perl(Test::Builder) >= 0.30
+Requires:       perl(Test::More) >= 0.60
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+# Remove underspecifies dependencies
+%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(Test::More\\)
+
+%description
+I'm sick of writing 00_load.t (or something like that) that'll do use_ok()
+for every module I write. I'm sicker of updating 00_load.t when I add
+another file to the distribution. This module reads MANIFEST to find modules
+to be tested and does use_ok() for each of them. Now all you have to do is
+update MANIFEST. You don't have to modify the test any more (hopefully).
+
+%prep
+%setup -q -n Test-UseAllModules-%{version}
+for F in Changes README; do
+    tr -d '\r' <"$F" >"$F.unix"
+    touch -r "$F"{,.unix}
+    mv "${F}"{.unix,}
+done
+
+%build
+%{__perl} Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
+
+%install
+make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
+find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
+find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
+%{_fixperms} $RPM_BUILD_ROOT/*
+
+%check
+make test
+
+%files
+%doc Changes README
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%changelog
+* Tue Sep 20 2011 Petr Pisar <ppisar at redhat.com> 0.13-1
+- Specfile autogenerated by cpanspec 1.78.
+- Remove BuildRoot and defattr code
+- Recode documentation to UNIX end-of-lines
diff --git a/sources b/sources
index e69de29..6dd97c2 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+b591f8f8de76dd36422a60e2d02fcbdd  Test-UseAllModules-0.13.tar.gz



More information about the perl-devel mailing list