|
|
9ffeab5 |
Name: perl-Test-UseAllModules
|
|
|
5a9c193 |
Version: 0.14
|
|
|
5a9c193 |
Release: 1%{?dist}
|
|
|
9ffeab5 |
Summary: Do use_ok() for all the MANIFESTed modules
|
|
|
9ffeab5 |
License: GPL+ or Artistic
|
|
|
9ffeab5 |
Group: Development/Libraries
|
|
|
9ffeab5 |
URL: http://search.cpan.org/dist/Test-UseAllModules/
|
|
|
9ffeab5 |
Source0: http://www.cpan.org/authors/id/I/IS/ISHIGAKI/Test-UseAllModules-%{version}.tar.gz
|
|
|
9ffeab5 |
BuildArch: noarch
|
|
|
9ffeab5 |
BuildRequires: perl(Exporter)
|
|
|
9ffeab5 |
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
9ffeab5 |
BuildRequires: perl(ExtUtils::Manifest)
|
|
|
9ffeab5 |
# perl(Test::Builder) needed for lib/Test/UseAllModules.pm:55:
|
|
|
9ffeab5 |
# Test::More->builder->{Have_Plan};
|
|
|
9ffeab5 |
BuildRequires: perl(Test::Builder) >= 0.30
|
|
|
9ffeab5 |
BuildRequires: perl(Test::More) >= 0.60
|
|
|
9ffeab5 |
# Tests only:
|
|
|
9ffeab5 |
BuildRequires: perl(FindBin)
|
|
|
9ffeab5 |
BuildRequires: perl(lib)
|
|
|
9ffeab5 |
Requires: perl(Test::Builder) >= 0.30
|
|
|
9ffeab5 |
Requires: perl(Test::More) >= 0.60
|
|
|
9ffeab5 |
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
9ffeab5 |
|
|
|
9ffeab5 |
# Remove underspecifies dependencies
|
|
|
9ffeab5 |
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(Test::More\\)
|
|
|
9ffeab5 |
|
|
|
9ffeab5 |
%description
|
|
|
5a9c193 |
I'm sick of writing 00_load.t (or something like that) that will do use_ok()
|
|
|
9ffeab5 |
for every module I write. I'm sicker of updating 00_load.t when I add
|
|
|
9ffeab5 |
another file to the distribution. This module reads MANIFEST to find modules
|
|
|
9ffeab5 |
to be tested and does use_ok() for each of them. Now all you have to do is
|
|
|
9ffeab5 |
update MANIFEST. You don't have to modify the test any more (hopefully).
|
|
|
9ffeab5 |
|
|
|
9ffeab5 |
%prep
|
|
|
9ffeab5 |
%setup -q -n Test-UseAllModules-%{version}
|
|
|
9ffeab5 |
for F in Changes README; do
|
|
|
9ffeab5 |
tr -d '\r' <"$F" >"$F.unix"
|
|
|
9ffeab5 |
touch -r "$F"{,.unix}
|
|
|
9ffeab5 |
mv "${F}"{.unix,}
|
|
|
9ffeab5 |
done
|
|
|
9ffeab5 |
|
|
|
9ffeab5 |
%build
|
|
|
9ffeab5 |
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
9ffeab5 |
make %{?_smp_mflags}
|
|
|
9ffeab5 |
|
|
|
9ffeab5 |
%install
|
|
|
9ffeab5 |
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
|
|
9ffeab5 |
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
|
|
9ffeab5 |
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
|
|
|
9ffeab5 |
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
9ffeab5 |
|
|
|
9ffeab5 |
%check
|
|
|
9ffeab5 |
make test
|
|
|
9ffeab5 |
|
|
|
9ffeab5 |
%files
|
|
|
9ffeab5 |
%doc Changes README
|
|
|
9ffeab5 |
%{perl_vendorlib}/*
|
|
|
9ffeab5 |
%{_mandir}/man3/*
|
|
|
9ffeab5 |
|
|
|
9ffeab5 |
%changelog
|
|
|
5a9c193 |
* Fri Aug 03 2012 Petr Pisar <ppisar@redhat.com> - 0.14-1
|
|
|
5a9c193 |
- 0.14 bump
|
|
|
5a9c193 |
|
|
|
ebc1782 |
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13-4
|
|
|
ebc1782 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
ebc1782 |
|
|
|
f8ba93f |
* Fri Jun 08 2012 Petr Pisar <ppisar@redhat.com> - 0.13-3
|
|
|
f8ba93f |
- Perl 5.16 rebuild
|
|
|
f8ba93f |
|
|
|
ebf2940 |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13-2
|
|
|
ebf2940 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
ebf2940 |
|
|
|
9ffeab5 |
* Tue Sep 20 2011 Petr Pisar <ppisar@redhat.com> 0.13-1
|
|
|
9ffeab5 |
- Specfile autogenerated by cpanspec 1.78.
|
|
|
9ffeab5 |
- Remove BuildRoot and defattr code
|
|
|
9ffeab5 |
- Recode documentation to UNIX end-of-lines
|