9ffeab5
Name:           perl-Test-UseAllModules
5a9c193
Version:        0.14
768ca0b
Release:        5%{?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
768ca0b
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
768ca0b
BuildArch:      noarch
768ca0b
# Build
9ffeab5
BuildRequires:  perl(ExtUtils::MakeMaker)
768ca0b
# Module
768ca0b
BuildRequires:  perl(Exporter)
9ffeab5
BuildRequires:  perl(ExtUtils::Manifest)
9ffeab5
BuildRequires:  perl(Test::Builder) >= 0.30
768ca0b
BuildRequires:  perl(Test::More) >= 0.61
768ca0b
# Test Suite
9ffeab5
BuildRequires:  perl(FindBin)
9ffeab5
BuildRequires:  perl(lib)
768ca0b
# Optional Tests
768ca0b
BuildRequires:  perl(Test::Pod) >= 1.18
768ca0b
BuildRequires:  perl(Test::Pod::Coverage) >= 1.04
768ca0b
# Runtime
768ca0b
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
9ffeab5
Requires:       perl(Test::Builder) >= 0.30
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}
768ca0b
768ca0b
# Fix line endings without changing timestamps
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
768ca0b
perl Makefile.PL INSTALLDIRS=vendor
9ffeab5
make %{?_smp_mflags}
9ffeab5
9ffeab5
%install
768ca0b
rm -rf %{buildroot}
768ca0b
make pure_install DESTDIR=%{buildroot}
768ca0b
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
768ca0b
%{_fixperms} %{buildroot}
9ffeab5
9ffeab5
%check
768ca0b
make test TEST_POD=1
768ca0b
768ca0b
%clean
768ca0b
rm -rf %{buildroot}
9ffeab5
9ffeab5
%files
9ffeab5
%doc Changes README
768ca0b
%{perl_vendorlib}/Test/
768ca0b
%{_mandir}/man3/Test::UseAllModules.3pm*
9ffeab5
9ffeab5
%changelog
768ca0b
* Mon Aug  5 2013 Paul Howarth <paul@city-fan.org> - 0.14-5
768ca0b
- Add anachronisms for EPEL-5 support
768ca0b
9306476
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14-4
9306476
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
9306476
ee73e95
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 0.14-3
ee73e95
- Perl 5.18 rebuild
ee73e95
ca3d460
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14-2
ca3d460
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
ca3d460
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