|
|
c3256c3 |
# Report a difference on string nonequivalnce
|
|
|
c3256c3 |
%bcond_without perl_Test_Base_enables_diff
|
|
|
c3256c3 |
# Run extra test
|
|
|
c3256c3 |
%bcond_without perl_Test_Base_enables_extra_test
|
|
|
c3256c3 |
# Enable getting documents by URLs
|
|
|
c3256c3 |
%bcond_without perl_Test_Base_enables_network
|
|
|
c3256c3 |
|
|
|
824affe |
Name: perl-Test-Base
|
|
|
b8a784b |
Version: 0.89
|
|
|
7923a22 |
Release: 12%{?dist}
|
|
|
824affe |
Summary: Data Driven Testing Framework
|
|
|
40bf4ca |
License: GPL+ or Artistic
|
|
|
0288f38 |
URL: https://metacpan.org/release/Test-Base
|
|
|
0288f38 |
Source0: https://cpan.metacpan.org/authors/id/I/IN/INGY/Test-Base-%{version}.tar.gz
|
|
|
824affe |
BuildArch: noarch
|
|
|
b8a784b |
# Module Build
|
|
|
b8a784b |
BuildRequires: coreutils
|
|
|
b8a784b |
BuildRequires: findutils
|
|
|
b8a784b |
BuildRequires: make
|
|
|
fd02504 |
BuildRequires: perl-generators
|
|
|
b8a784b |
BuildRequires: perl-interpreter
|
|
|
b8a784b |
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.52
|
|
|
b8a784b |
# Module Runtime
|
|
|
c3256c3 |
%if %{with perl_Test_Base_enables_diff}
|
|
|
4f28794 |
BuildRequires: perl(Algorithm::Diff) >= 1.15
|
|
|
c3256c3 |
%endif
|
|
|
fc5d7ce |
BuildRequires: perl(Carp)
|
|
|
1eafccf |
BuildRequires: perl(Data::Dumper)
|
|
|
fc5d7ce |
BuildRequires: perl(File::Path)
|
|
|
1eafccf |
BuildRequires: perl(Filter::Util::Call)
|
|
|
c3256c3 |
%if %{with perl_Test_Base_enables_network}
|
|
|
c3256c3 |
# LWP::Simple not used at tests
|
|
|
c3256c3 |
%endif
|
|
|
1eafccf |
BuildRequires: perl(MIME::Base64)
|
|
|
b8a784b |
BuildRequires: perl(Scalar::Util) >= 1.07
|
|
|
4f28794 |
BuildRequires: perl(Spiffy) >= 0.40
|
|
|
b8a784b |
BuildRequires: perl(strict)
|
|
|
23081e0 |
BuildRequires: perl(Test::Deep)
|
|
|
1b6275c |
BuildRequires: perl(Test::More) >= 0.88
|
|
|
c3256c3 |
%if %{with perl_Test_Base_enables_diff}
|
|
|
824affe |
BuildRequires: perl(Text::Diff) >= 0.35
|
|
|
c3256c3 |
%endif
|
|
|
b8a784b |
BuildRequires: perl(warnings)
|
|
|
4d06eac |
BuildRequires: perl(YAML)
|
|
|
b8a784b |
# Test Suite
|
|
|
b8a784b |
BuildRequires: perl(base)
|
|
|
b8a784b |
BuildRequires: perl(File::Find)
|
|
|
b8a784b |
BuildRequires: perl(lib)
|
|
|
b8a784b |
BuildRequires: perl(Test::Tester)
|
|
|
c3256c3 |
%if %{with perl_Test_Base_enables_extra_test}
|
|
|
b8a784b |
# Release Tests
|
|
|
b8a784b |
BuildRequires: perl(Test::Pod) >= 1.41
|
|
|
c3256c3 |
%endif
|
|
|
b8a784b |
# Dependencies
|
|
|
1eafccf |
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
c3256c3 |
%if %{with perl_Test_Base_enables_diff}
|
|
|
b8a784b |
Requires: perl(Algorithm::Diff) >= 1.15
|
|
|
c3256c3 |
%endif
|
|
|
fc5d7ce |
Requires: perl(Data::Dumper)
|
|
|
fc5d7ce |
Requires: perl(File::Path)
|
|
|
fc5d7ce |
Requires: perl(Filter::Util::Call)
|
|
|
c3256c3 |
%if %{with perl_Test_Base_enables_network}
|
|
|
5ab3031 |
Requires: perl(LWP::Simple)
|
|
|
c3256c3 |
%endif
|
|
|
fc5d7ce |
Requires: perl(MIME::Base64)
|
|
|
b8a784b |
Requires: perl(Scalar::Util) >= 1.07
|
|
|
fc5d7ce |
Requires: perl(Test::Deep)
|
|
|
b8a784b |
Requires: perl(Test::More) >= 0.88
|
|
|
c3256c3 |
%if %{with perl_Test_Base_enables_diff}
|
|
|
1eafccf |
Requires: perl(Text::Diff) >= 0.35
|
|
|
c3256c3 |
%endif
|
|
|
fc5d7ce |
Requires: perl(YAML)
|
|
|
824affe |
|
|
|
824affe |
%description
|
|
|
824affe |
Testing is usually the ugly part of Perl module authoring. Perl gives you a
|
|
|
824affe |
standard way to run tests with Test::Harness, and basic testing primitives
|
|
|
824affe |
with Test::More. After that you are pretty much on your own to develop a
|
|
|
824affe |
testing framework and philosophy. Test::More encourages you to make your
|
|
|
824affe |
own framework by subclassing Test::Builder, but that is not trivial.
|
|
|
824affe |
|
|
|
1eafccf |
Test::Base gives you a way to write your own test framework base class that
|
|
|
1eafccf |
*is* trivial.
|
|
|
1eafccf |
|
|
|
824affe |
%prep
|
|
|
824affe |
%setup -q -n Test-Base-%{version}
|
|
|
824affe |
|
|
|
824affe |
%build
|
|
|
fc5d7ce |
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
824affe |
make %{?_smp_mflags}
|
|
|
824affe |
|
|
|
824affe |
%install
|
|
|
b8a784b |
make pure_install DESTDIR=%{buildroot}
|
|
|
b8a784b |
find %{buildroot} -type f -name .packlist -delete
|
|
|
b8a784b |
%{_fixperms} -c %{buildroot}
|
|
|
824affe |
|
|
|
824affe |
%check
|
|
|
c3256c3 |
make test %{?with_perl_Test_Base_enables_extra_test:RELEASE_TESTING=1}
|
|
|
824affe |
|
|
|
824affe |
%files
|
|
|
4f28794 |
%license LICENSE
|
|
|
4f28794 |
%doc Changes CONTRIBUTING README
|
|
|
1eafccf |
%{perl_vendorlib}/Test/
|
|
|
b8a784b |
%{_mandir}/man3/Test::Base.3*
|
|
|
b8a784b |
%{_mandir}/man3/Test::Base::Filter.3*
|
|
|
824affe |
|
|
|
824affe |
%changelog
|
|
|
7923a22 |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.89-12
|
|
|
7923a22 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
7923a22 |
|
|
|
8fe27b5 |
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.89-11
|
|
|
8fe27b5 |
- Perl 5.34 rebuild
|
|
|
8fe27b5 |
|
|
|
d6d8f4a |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.89-10
|
|
|
d6d8f4a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
d6d8f4a |
|
|
|
4dbcb32 |
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.89-9
|
|
|
4dbcb32 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
4dbcb32 |
|
|
|
12911ac |
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.89-8
|
|
|
12911ac |
- Perl 5.32 rebuild
|
|
|
12911ac |
|
|
|
ad35028 |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.89-7
|
|
|
ad35028 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
ad35028 |
|
|
|
864bce9 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.89-6
|
|
|
864bce9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
864bce9 |
|
|
|
d73234b |
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.89-5
|
|
|
d73234b |
- Perl 5.30 rebuild
|
|
|
d73234b |
|
|
|
b29ae6a |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.89-4
|
|
|
b29ae6a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
b29ae6a |
|
|
|
532f88e |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.89-3
|
|
|
532f88e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
532f88e |
|
|
|
626f7f8 |
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.89-2
|
|
|
626f7f8 |
- Perl 5.28 rebuild
|
|
|
626f7f8 |
|
|
|
b8a784b |
* Fri Apr 20 2018 Paul Howarth <paul@city-fan.org> - 0.89-1
|
|
|
b8a784b |
- Update to 0.89
|
|
|
b8a784b |
- Require Test::More ≥ 0.88 (GH#19)
|
|
|
b8a784b |
- Support the use of plain 'use Test::Base' without any tests (GH#21)
|
|
|
b8a784b |
- Classify buildreqs by usage
|
|
|
b8a784b |
- Drop legacy Group: tag
|
|
|
b8a784b |
- Simplify find command using -delete
|
|
|
b8a784b |
|
|
|
2328150 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.88-10
|
|
|
2328150 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
2328150 |
|
|
|
eab9aae |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.88-9
|
|
|
eab9aae |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
eab9aae |
|
|
|
c3e4021 |
* Mon Jun 05 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.88-8
|
|
|
c3e4021 |
- Perl 5.26 rebuild
|
|
|
c3e4021 |
|
|
|
89b6eee |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.88-7
|
|
|
89b6eee |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
89b6eee |
|
|
|
c2e1b09 |
* Mon May 16 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.88-6
|
|
|
c2e1b09 |
- Perl 5.24 rebuild
|
|
|
c2e1b09 |
|
|
|
ef321ce |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.88-5
|
|
|
ef321ce |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
ef321ce |
|
|
|
ab1fce9 |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.88-4
|
|
|
ab1fce9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
ab1fce9 |
|
|
|
2507225 |
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.88-3
|
|
|
2507225 |
- Perl 5.22 rebuild
|
|
|
2507225 |
|
|
|
d7d4ccf |
* Thu Aug 28 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.88-2
|
|
|
d7d4ccf |
- Perl 5.20 rebuild
|
|
|
d7d4ccf |
|
|
|
1b6275c |
* Tue Aug 26 2014 Paul Howarth <paul@city-fan.org> - 0.88-1
|
|
|
1b6275c |
- Update to 0.88
|
|
|
1b6275c |
- Add t/000-require-modules.t
|
|
|
1b6275c |
- Eliminate File::Basename from test/
|
|
|
1b6275c |
- Eliminate spurious trailing whitespace
|
|
|
1b6275c |
- Meta 0.0.2
|
|
|
1b6275c |
- Fix Meta error (s/zild/=zild/)
|
|
|
1b6275c |
- Unbundle Module::Install::TestBase
|
|
|
1b6275c |
- Fix failing t/diff_is.t (Issue/15)
|
|
|
1b6275c |
- Replace tabs with spaces
|
|
|
1b6275c |
|
|
|
22a1de5 |
* Sat Aug 9 2014 Paul Howarth <paul@city-fan.org> - 0.79-1
|
|
|
22a1de5 |
- Update to 0.79
|
|
|
22a1de5 |
- Change Provider test to use string eval, keeping it out of the eyes of
|
|
|
22a1de5 |
Perl::Prereqs
|
|
|
22a1de5 |
- Fix swim errors
|
|
|
22a1de5 |
- Dep on EU::MM 6.52
|
|
|
22a1de5 |
|
|
|
4f28794 |
* Thu Aug 7 2014 Paul Howarth <paul@city-fan.org> - 0.76-1
|
|
|
4f28794 |
- Update to 0.76
|
|
|
4f28794 |
- Switch to Zilla-Dist
|
|
|
4f28794 |
- Add Algorithm::Diff and Text::Diff to test.requires
|
|
|
4f28794 |
- Fix copyright years
|
|
|
4f28794 |
- Remove (c) from Copyright
|
|
|
4f28794 |
- Switch docs to Swim
|
|
|
4f28794 |
- Add badges to docs
|
|
|
4f28794 |
- PR/11 and fixes
|
|
|
4f28794 |
- Add $VERSION back into Test::Base
|
|
|
4f28794 |
- Applied PR/4 from schwern++
|
|
|
4f28794 |
- Dep on new Spiffy-0.40 to get rid of warnings on blead 5.21.x
|
|
|
4f28794 |
- Use PR/14 which makes old and new Test::Builders work
|
|
|
4f28794 |
- Fix bad encoding in Pod
|
|
|
4f28794 |
- Use %%license
|
|
|
4f28794 |
|
|
|
b41f83a |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.62-2
|
|
|
b41f83a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
b41f83a |
|
|
|
cd7e604 |
* Tue Feb 11 2014 Paul Howarth <paul@city-fan.org> - 0.62-1
|
|
|
cd7e604 |
- Update to 0.62
|
|
|
cd7e604 |
- Fix bad skip counts in tests
|
|
|
cd7e604 |
|
|
|
1eafccf |
* Mon Feb 10 2014 Paul Howarth <paul@city-fan.org> - 0.61-1
|
|
|
1eafccf |
- Update to 0.61
|
|
|
1eafccf |
- Switch to dzil
|
|
|
1eafccf |
- Package upstream's LICENSE file
|
|
|
1eafccf |
- Make %%files list more explicit
|
|
|
1eafccf |
- Run the pod test too
|
|
|
1eafccf |
- Update dependencies
|
|
|
1eafccf |
- Extend %%description a little
|
|
|
1eafccf |
|
|
|
5d50b9f |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.60-9
|
|
|
5d50b9f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
5d50b9f |
|
|
|
fbf9e44 |
* Sat Jul 20 2013 Petr Pisar <ppisar@redhat.com> - 0.60-8
|
|
|
fbf9e44 |
- Perl 5.18 rebuild
|
|
|
fbf9e44 |
|
|
|
f50674d |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.60-7
|
|
|
f50674d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
f50674d |
|
|
|
fc5d7ce |
* Thu Nov 08 2012 Jitka Plesnikova <jplesnik@redhat.com> - 0.60-6
|
|
|
fc5d7ce |
- Update dependencies
|
|
|
fc5d7ce |
- Use DESTDIR rather than PERL_INSTALL_ROOT
|
|
|
fc5d7ce |
- Don't use macros for commands
|
|
|
fc5d7ce |
- Don't need to remove empty directories from the buildroot
|
|
|
fc5d7ce |
|
|
|
f9a4bac |
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.60-5
|
|
|
f9a4bac |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
f9a4bac |
|
|
|
9217089 |
* Wed Jun 13 2012 Petr Pisar <ppisar@redhat.com> - 0.60-4
|
|
|
9217089 |
- Perl 5.16 rebuild
|
|
|
9217089 |
|
|
|
01fe124 |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.60-3
|
|
|
01fe124 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
01fe124 |
|
|
|
8e0ed93 |
* Wed Jun 29 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.60-2
|
|
|
8e0ed93 |
- Perl mass rebuild
|
|
|
8e0ed93 |
|
|
|
6e9c963 |
* Sat May 14 2011 Iain Arnell <iarnell@gmail.com> 0.60-1
|
|
|
6e9c963 |
- update to latest upstream version
|
|
|
6e9c963 |
- clean up spec for modern rpmbuild
|
|
|
6e9c963 |
|
|
|
72babae |
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.59-3
|
|
|
72babae |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
72babae |
|
|
|
a136fb9 |
* Wed Dec 22 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.59-2
|
|
|
1eafccf |
- Rebuild to fix problems with vendorarch/lib (#661697)
|
|
|
a136fb9 |
|
|
Steven Pritchard |
722e9d0 |
* Mon Dec 13 2010 Steven Pritchard <steve@kspei.com> 0.59-1
|
|
Steven Pritchard |
722e9d0 |
- Update to 0.59.
|
|
Steven Pritchard |
722e9d0 |
|
|
|
d082963 |
* Thu May 06 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.58-4
|
|
|
d082963 |
- Mass rebuild with perl-5.12.0
|
|
|
d082963 |
|
|
|
0fef2d7 |
* Fri Dec 4 2009 Stepan Kasal <skasal@redhat.com> - 0.58-3
|
|
|
0fef2d7 |
- rebuild against perl 5.10.1
|
|
|
0fef2d7 |
|
|
|
760d10c |
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.58-2
|
|
|
760d10c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
760d10c |
|
|
|
23081e0 |
* Sun May 17 2009 Steven Pritchard <steve@kspei.com> 0.58-1
|
|
|
23081e0 |
- Update to 0.58.
|
|
|
23081e0 |
- BR Test::Deep and Test::Tester.
|
|
|
23081e0 |
|
|
|
67cfd60 |
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.55-2
|
|
|
67cfd60 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
67cfd60 |
|
|
|
4d06eac |
* Wed Dec 10 2008 Steven Pritchard <steve@kspei.com> 0.55-1
|
|
|
4d06eac |
- Update to 0.55.
|
|
|
4d06eac |
- Explicitly BR Test::More >= 0.62.
|
|
|
4d06eac |
- BR YAML.
|
|
|
4d06eac |
|
|
|
40bf4ca |
* Thu Mar 06 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.54-3
|
|
|
4d06eac |
- Rebuild for new perl
|
|
|
40bf4ca |
|
|
|
b4499ae |
* Sat Jul 07 2007 Steven Pritchard <steve@kspei.com> 0.54-2
|
|
|
b4499ae |
- BR Test::More.
|
|
|
b4499ae |
|
|
|
618fdb8 |
* Mon Jul 02 2007 Steven Pritchard <steve@kspei.com> 0.54-1
|
|
|
618fdb8 |
- Update to 0.54.
|
|
|
618fdb8 |
|
|
|
d31079a |
* Wed Apr 18 2007 Steven Pritchard <steve@kspei.com> 0.53-2
|
|
|
d31079a |
- BR ExtUtils::MakeMaker.
|
|
|
d31079a |
|
|
|
7268d71 |
* Sat Dec 09 2006 Steven Pritchard <steve@kspei.com> 0.53-1
|
|
|
7268d71 |
- Update to 0.53.
|
|
|
7268d71 |
- Use fixperms macro instead of our own chmod incantation.
|
|
|
7268d71 |
|
|
|
40d58ae |
* Sat Sep 16 2006 Steven Pritchard <steve@kspei.com> 0.52-2
|
|
|
40d58ae |
- Fix find option order.
|
|
|
40d58ae |
|
|
|
713cc5d |
* Sat Jul 01 2006 Steven Pritchard <steve@kspei.com> 0.52-1
|
|
|
713cc5d |
- Update to 0.52.
|
|
|
713cc5d |
|
|
|
824affe |
* Mon May 08 2006 Steven Pritchard <steve@kspei.com> 0.50-2
|
|
|
5ab3031 |
- Add explicit dependencies for Text::Diff and LWP::Simple.
|
|
|
824affe |
|
|
|
824affe |
* Thu May 04 2006 Steven Pritchard <steve@kspei.com> 0.50-1
|
|
|
824affe |
- Specfile autogenerated by cpanspec 1.65.
|
|
|
824affe |
- Remove explicit BR: perl and Requires: perl(Spiffy).
|