475c162
Name:		perl-Test-use-ok
8d764bc
Version:	0.11
80d87c4
Release:	5%{?dist}
475c162
Summary:	Alternative to Test::More::use_ok
8d764bc
License:	CC0 
475c162
Group:		Development/Libraries
475c162
URL:		http://search.cpan.org/dist/Test-use-ok/
8d764bc
Source0:	http://search.cpan.org/CPAN/authors/id/A/AU/AUDREYT/Test-use-ok-%{version}.tar.gz
475c162
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
475c162
BuildArch:	noarch
475c162
BuildRequires:	perl(ExtUtils::MakeMaker)
475c162
BuildRequires:	perl(Test::More)
8a24292
# Requires of bundled library inc::Module::Install
8a24292
BuildRequires:	perl(Cwd)
8a24292
BuildRequires:	perl(File::Path)
8d764bc
BuildRequires:	perl(File::Spec)
475c162
Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Chris Weyl 8d9f39b
Chris Weyl 8d9f39b
%description
Chris Weyl 8d9f39b
According to the Test::More documentation, it is recommended to run
Chris Weyl 8d9f39b
use_ok() inside a BEGIN block, so functions are exported at compile-time
Chris Weyl 8d9f39b
and prototypes are properly honored.
Chris Weyl 8d9f39b
Chris Weyl 8d9f39b
However, people often either forget to add "BEGIN", or mistakenly group 
Chris Weyl 8d9f39b
"use_ok" with other tests in a single "BEGIN" block, which can create
Chris Weyl 8d9f39b
subtle differences in execution order.
Chris Weyl 8d9f39b
Chris Weyl 8d9f39b
With this module, simply change all "use_ok" in test scripts to "use ok", 
Chris Weyl 8d9f39b
and they will be executed at "BEGIN" time. The explicit space after "use"
Chris Weyl 8d9f39b
makes it clear that this is a single compile-time action.
Chris Weyl 8d9f39b
Chris Weyl 8d9f39b
%prep
Chris Weyl 8d9f39b
%setup -q -n Test-use-ok-%{version}
Chris Weyl 8d9f39b
Chris Weyl 8d9f39b
%build
475c162
perl Makefile.PL INSTALLDIRS=vendor
Chris Weyl 8d9f39b
make %{?_smp_mflags}
Chris Weyl 8d9f39b
Chris Weyl 8d9f39b
%install
Chris Weyl 8d9f39b
rm -rf %{buildroot}
475c162
make pure_install DESTDIR=%{buildroot}
Chris Weyl 8d9f39b
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
475c162
%{_fixperms} %{buildroot}
Chris Weyl 8d9f39b
Chris Weyl 8d9f39b
%check
Chris Weyl 8d9f39b
make test
Chris Weyl 8d9f39b
Chris Weyl 8d9f39b
%clean
Chris Weyl 8d9f39b
rm -rf %{buildroot}
Chris Weyl 8d9f39b
Chris Weyl 8d9f39b
%files
Chris Weyl 8d9f39b
%doc Changes README t/
475c162
%{perl_vendorlib}/ok.pm
475c162
%{perl_vendorlib}/Test/
475c162
%{_mandir}/man3/Test::use::ok.3pm*
475c162
%{_mandir}/man3/ok.3pm*
Chris Weyl 8d9f39b
Chris Weyl 8d9f39b
%changelog
80d87c4
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-5
80d87c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
80d87c4
2b6695b
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-4
2b6695b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2b6695b
8939060
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 0.11-3
8939060
- Perl 5.18 rebuild
8939060
995fa72
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-2
995fa72
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
995fa72
8d764bc
* Tue Sep 11 2012 Paul Howarth <paul@city-fan.org> - 0.11-1
8d764bc
- Update to 0.11
8d764bc
  - LICENSING CHANGE: this compilation and all individual files in it are now
8d764bc
    under the nullary CC0 1.0 Universal terms:
8d764bc
    To the extent possible under law, 唐鳳 has waived all copyright and
8d764bc
    related or neighboring rights to Test-use-ok
8d764bc
  - Update t/01-basic.t to work with Test::Simple 0.98_02 and later
8d764bc
- License changed from MIT to CC0
8d764bc
- BR: perl(File::Spec)
8d764bc
8a24292
* Tue Aug 28 2012 Jitka Plesnikova <jplesnik@redhat.com> - 0.02-16
8d764bc
- Specify all dependencies
8a24292
2dfcc1b
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.02-15
2dfcc1b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2dfcc1b
2ba37e5
* Fri Jun 08 2012 Petr Pisar <ppisar@redhat.com> - 0.02-14
2ba37e5
- Perl 5.16 rebuild
2ba37e5
475c162
* Sun Mar 25 2012 Paul Howarth <paul@city-fan.org> - 0.02-13
475c162
- Drop buildreq perl ≥ 0:5.005, satisfied by all Perls in living memory
475c162
- Drop redundant buildreq perl(Test::Harness)
475c162
- Don't need to remove empty directories from buildroot
475c162
- Don't use macros for commands
475c162
- Make %%files list more explicit
475c162
- Use DESTDIR rather than PERL_INSTALL_ROOT
475c162
- Use tabs
475c162
- Drop %%defattr, redundant since rpm 4.4
475c162
6fbb9b1
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.02-12
6fbb9b1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
6fbb9b1
b616277
* Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.02-11
b616277
- Perl mass rebuild
b616277
100c3fe
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.02-10
100c3fe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
100c3fe
1f74c14
* Wed Dec 22 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.02-9
475c162
- Rebuild to fix problems with vendorarch/lib (#661697)
1f74c14
37e7402
* Fri May 07 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.02-8
37e7402
- Mass rebuild with perl-5.12.0
37e7402
e87a164
* Fri Dec  4 2009 Stepan Kasal <skasal@redhat.com> - 0.02-7
475c162
- Rebuild against perl 5.10.1
e87a164
b89b23f
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.02-6
b89b23f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
b89b23f
765a69e
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.02-5
765a69e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
765a69e
475c162
* Wed Mar  5 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.02-4
475c162
- Rebuild for new perl
1d15cbf
475c162
* Mon Apr 30 2007 Chris Weyl <cweyl@alumni.drew.edu> - 0.02-3
475c162
- Bump
Chris Weyl 007f07f
475c162
* Tue Apr 10 2007 Chris Weyl <cweyl@alumni.drew.edu> - 0.02-2
475c162
- Updated with core modules as BR's
Chris Weyl 8d9f39b
475c162
* Tue Apr 10 2007 Chris Weyl <cweyl@alumni.drew.edu> - 0.02-1
475c162
- Specfile autogenerated by cpanspec 1.70