Update to 0.07
- New upstream release 0.07
- If the RELEASE_TESTING environment variable is true, then instead of
skipping tests, Test::Requires bails out
- Document that use Test::Requires "5.010" works
- Switch to Module::Build flow
- Classify buildreqs by usage
- Package upstream's new LICENSE and README.md files
- Drop obsoletes/provides of perl-Test-Requires-tests
This commit is contained in:
parent
35004b0dbd
commit
c5a63ef67e
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,2 +1 @@
|
||||
Test-Requires-0.03.tar.gz
|
||||
/Test-Requires-0.06.tar.gz
|
||||
/Test-Requires-[0-9.]*.tar.gz
|
||||
|
||||
@ -3,43 +3,36 @@
|
||||
|
||||
Name: perl-Test-Requires
|
||||
Summary: Checks to see if a given module can be loaded
|
||||
Version: 0.06
|
||||
Release: 10%{?dist}
|
||||
Version: 0.07
|
||||
Release: 1%{?dist}
|
||||
License: GPL+ or Artistic
|
||||
Group: Development/Libraries
|
||||
URL: http://search.cpan.org/dist/Test-Requires
|
||||
Source0: http://search.cpan.org/CPAN/authors/id/T/TO/TOKUHIROM/Test-Requires-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
|
||||
BuildArch: noarch
|
||||
# Module Build
|
||||
BuildRequires: perl(CPAN::Meta)
|
||||
BuildRequires: perl(CPAN::Meta::Prereqs)
|
||||
BuildRequires: perl(Module::Build) >= 0.38
|
||||
# Module
|
||||
BuildRequires: perl(base)
|
||||
BuildRequires: perl(Cwd)
|
||||
BuildRequires: perl(Data::Dumper)
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: perl(Test::Builder::Module)
|
||||
# Test Suite
|
||||
BuildRequires: perl(Data::Dumper)
|
||||
BuildRequires: perl(Test::More) >= 0.61
|
||||
%if ! ( 0%{?rhel} )
|
||||
# Extra Tests
|
||||
%if 0%{!?perl_bootstrap:1} && 0%{!?rhel:1}
|
||||
# Test::Perl::Critic -> Perl::Critic -> PPIx::Regexp -> Test::Kwalitee ->
|
||||
# Module::CPANTS::Analyse -> Test::Warn -> Sub::Uplevel -> Pod::Wordlist::hanekomu -> Test::Requires
|
||||
%if 0%{!?perl_bootstrap:1}
|
||||
BuildRequires: perl(Test::Perl::Critic)
|
||||
%endif
|
||||
BuildRequires: perl(Test::Pod)
|
||||
BuildRequires: perl(Test::Spelling)
|
||||
%if %(perl -e 'print $] >= 5.010 ? 1 : 0;')
|
||||
BuildRequires: hunspell-en
|
||||
%else
|
||||
BuildRequires: aspell-en
|
||||
%endif
|
||||
%endif
|
||||
# Runtime
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
%if ! %{rpm49}
|
||||
Requires: perl(Test::Builder::Module)
|
||||
%endif
|
||||
|
||||
# Obsolete/provide old -tests subpackage (can be removed in F19 development cycle)
|
||||
Obsoletes: %{name}-tests < %{version}-%{release}
|
||||
Provides: %{name}-tests = %{version}-%{release}
|
||||
|
||||
%description
|
||||
Test::Requires checks to see if the module can be loaded.
|
||||
|
||||
@ -49,29 +42,37 @@ If this fails, rather than failing tests this skips all tests.
|
||||
%setup -q -n Test-Requires-%{version}
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor
|
||||
make %{?_smp_mflags}
|
||||
perl Build.PL installdirs=vendor
|
||||
./Build
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
make pure_install DESTDIR=%{buildroot}
|
||||
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
|
||||
%{_fixperms} %{buildroot}
|
||||
./Build install destdir=%{buildroot} create_packlist=0
|
||||
|
||||
%check
|
||||
# note the "skipped" warnings indicate success :)
|
||||
make test
|
||||
make test TEST_FILES="xt/*.t"
|
||||
./Build test
|
||||
./Build test --test_files="xt/*.t"
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%doc Changes README t/ xt/
|
||||
%doc Changes LICENSE README.md t/ xt/
|
||||
%{perl_vendorlib}/Test/
|
||||
%{_mandir}/man3/Test::Requires.3pm*
|
||||
|
||||
%changelog
|
||||
* Mon Jul 1 2013 Paul Howarth <paul@city-fan.org> - 0.07-1
|
||||
- Update to 0.07
|
||||
- If the RELEASE_TESTING environment variable is true, then instead of
|
||||
skipping tests, Test::Requires bails out
|
||||
- Document that use Test::Requires "5.010" works
|
||||
- Switch to Module::Build flow
|
||||
- Classify buildreqs by usage
|
||||
- Package upstream's new LICENSE and README.md files
|
||||
- Drop obsoletes/provides of perl-Test-Requires-tests
|
||||
|
||||
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.06-10
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user