6beed13
# noarch, but to avoid debug* files interfering with manifest test:
6beed13
%global debug_package %{nil}
6beed13
6beed13
Name:		perl-Test-Version
1a5274b
Version:	1.004001
822c9f8
Release:	1%{?dist}
6beed13
Summary:	Check to see that versions in modules are sane
6beed13
License:	Artistic 2.0
6beed13
Group:		Development/Libraries
6beed13
URL:		http://search.cpan.org/dist/Test-Version/
6beed13
Source0:	http://search.cpan.org/CPAN/authors/id/X/XE/XENO/Test-Version-%{version}.tar.gz
6beed13
BuildArch:	noarch
6beed13
# ===================================================================
6beed13
# Module build requirements
6beed13
# ===================================================================
822c9f8
BuildRequires:	perl
822c9f8
BuildRequires:	perl(ExtUtils::MakeMaker)
6beed13
# ===================================================================
6beed13
# Module requirements
6beed13
# ===================================================================
0ba5460
BuildRequires:	perl(Carp)
6beed13
BuildRequires:	perl(Exporter)
6beed13
BuildRequires:	perl(File::Find::Rule::Perl)
0ba5460
BuildRequires:	perl(Module::Metadata)
6beed13
BuildRequires:	perl(parent)
0ba5460
BuildRequires:	perl(strict)
6beed13
BuildRequires:	perl(Test::Builder)
e6fd350
BuildRequires:	perl(Test::More) >= 0.88
6beed13
BuildRequires:	perl(version) >= 0.86
0ba5460
BuildRequires:	perl(warnings)
6beed13
# ===================================================================
6beed13
# Regular test suite requirements
6beed13
# ===================================================================
822c9f8
BuildRequires:	perl(CPAN::Meta) >= 2.120900
e6fd350
BuildRequires:	perl(File::Spec)
e6fd350
BuildRequires:	perl(IO::Handle)
e6fd350
BuildRequires:	perl(IPC::Open3)
0ba5460
BuildRequires:	perl(Test::Exception)
6beed13
BuildRequires:	perl(Test::Tester)
6beed13
# ===================================================================
6beed13
# Author/Release test requirements
6beed13
#
6beed13
# Don't run these tests or include their requirements if we're
6beed13
# bootstrapping, as many of these modules require each other for
6beed13
# their author/release tests.
6beed13
# ===================================================================
6beed13
%if 0%{!?perl_bootstrap:1}
6beed13
BuildRequires:	perl(English)
6beed13
BuildRequires:	perl(Pod::Coverage::TrustPod)
822c9f8
BuildRequires:	perl(Test::CPAN::Changes) >= 0.19
6beed13
BuildRequires:	perl(Test::CPAN::Meta::JSON)
6beed13
BuildRequires:	perl(Test::DistManifest)
6beed13
BuildRequires:	perl(Test::EOL)
6beed13
BuildRequires:	perl(Test::MinimumVersion)
e6fd350
BuildRequires:	perl(Test::More) >= 0.96
6beed13
BuildRequires:	perl(Test::Perl::Critic)
6beed13
BuildRequires:	perl(Test::Pod) >= 1.41
6beed13
BuildRequires:	perl(Test::Pod::Coverage) >= 1.08
6beed13
BuildRequires:	perl(Test::Portability::Files)
6beed13
BuildRequires:	perl(Test::Vars)
6beed13
%endif
6beed13
# ===================================================================
6beed13
# Runtime requirements
6beed13
# ===================================================================
6beed13
Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
6beed13
6beed13
%description
6beed13
This module's goal is to be a one stop shop for checking to see that your
6beed13
versions across your dist are sane.
6beed13
6beed13
%prep
6beed13
%setup -q -n Test-Version-%{version}
6beed13
6beed13
%build
6beed13
perl Makefile.PL INSTALLDIRS=vendor
6beed13
make %{?_smp_mflags}
6beed13
6beed13
%install
f53a56f
make pure_install DESTDIR=%{buildroot}
6beed13
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
f53a56f
%{_fixperms} %{buildroot}
6beed13
6beed13
%check
822c9f8
make test
822c9f8
%if 0%{!?perl_bootstrap:1}
822c9f8
make test TEST_FILES="$(echo $(find xt/ -name '*.t'))"
822c9f8
%endif
6beed13
6beed13
%files
822c9f8
%license LICENSE
822c9f8
%doc Changes CONTRIBUTING README
6beed13
%{perl_vendorlib}/Test/
6beed13
%{_mandir}/man3/Test::Version.3pm*
6beed13
6beed13
%changelog
1a5274b
* Tue Oct 21 2014 Paul Howarth <paul@city-fan.org> - 1.004001-1
1a5274b
- Update to 1.004001
1a5274b
  - Improved consistent check diagnostics (GH#11)
1a5274b
6dee4ce
* Mon Oct 20 2014 Paul Howarth <paul@city-fan.org> - 1.004000-1
6dee4ce
- Update to 1.004000
6dee4ce
  - Add consistent check (GH#10)
6dee4ce
822c9f8
* Wed Sep 24 2014 Paul Howarth <paul@city-fan.org> - 1.003001-1
822c9f8
- Update to 1.003001
822c9f8
  - Skip packages unindexable by pause (GH#4)
822c9f8
  - Remove inline and remove _get_version; trying to skip test there won't work
822c9f8
    (GH#4)
822c9f8
89cc0f4
* Sun Sep 07 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.002004-6
89cc0f4
- Perl 5.20 re-rebuild of bootstrapped packages
89cc0f4
8b96eaf
* Thu Aug 28 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.002004-5
8b96eaf
- Perl 5.20 rebuild
8b96eaf
4d0a7ce
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.002004-4
4d0a7ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
4d0a7ce
dc10383
* Mon Jan 27 2014 Paul Howarth <paul@city-fan.org> - 1.002004-3
dc10383
- Bootstrap build for epel7 done
dc10383
ebcd0ba
* Mon Jan 27 2014 Paul Howarth <paul@city-fan.org> - 1.002004-2
ebcd0ba
- Bootstrap epel7 build
ebcd0ba
cc17dcb
* Thu Nov 21 2013 Paul Howarth <paul@city-fan.org> - 1.002004-1
cc17dcb
- Update to 1.002004
cc17dcb
  - Fix bugs in argument handling
cc17dcb
  - Fix whitespace
cc17dcb
e6fd350
* Tue Oct 15 2013 Paul Howarth <paul@city-fan.org> - 1.002003-1
e6fd350
- Update to 1.002003
e6fd350
  - Fix synopsis (https://github.com/xenoterracide/Test-Version/pull/6)
e6fd350
  - Change Dist::Zilla plugins
e6fd350
  - Remove old documentation that no longer applies
e6fd350
  - Fix misgithap
e6fd350
  - More dist.ini updates
e6fd350
- Update patches and buildreqs as needed
e6fd350
- Drop support for old rpm versions as this package's requirements will never
e6fd350
  be satisfied in EPEL-5
e6fd350
521b188
* Wed Aug 14 2013 Jitka Plesnikova <jplesnik@redhat.com> - 1.002001-13
521b188
- Perl 5.18 re-rebuild of bootstrapped packages
521b188
54eaa6f
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.002001-12
54eaa6f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
54eaa6f
96dcd66
* Mon Jul 22 2013 Petr Pisar <ppisar@redhat.com> - 1.002001-11
96dcd66
- Perl 5.18 rebuild
96dcd66
ed0306e
* Fri Jun 14 2013 Paul Howarth <paul@city-fan.org> - 1.002001-10
ed0306e
- Fix FTBFS with current test modules
ed0306e
  - Disable Test::Kwalitee's "use_strict" test
ed0306e
  - Schwern not in dictionary
ed0306e
84fc337
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.002001-9
84fc337
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
84fc337
5b216a2
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.002001-8
5b216a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
5b216a2
587805b
* Tue Jul 10 2012 Petr Pisar <ppisar@redhat.com> - 1.002001-7
587805b
- Perl 5.16 re-rebuild of bootstrapped packages
587805b
d54bc76
* Wed Jun 13 2012 Petr Pisar <ppisar@redhat.com> - 1.002001-6
d54bc76
- Perl 5.16 rebuild
d54bc76
282a38a
* Thu Jun  7 2012 Paul Howarth <paul@city-fan.org> - 1.002001-5
282a38a
- If we don't have buildreqs aspell-en and perl(Pod::Wordlist::hanekomu), we
282a38a
  don't need perl(Test::Spelling) either
282a38a
0e7061c
* Thu Jun  7 2012 Marcela Mašláňová <mmaslano@redhat.com> - 1.002001-4
282a38a
- Conditionalize aspell-en dependency
0e7061c
422bd8b
* Tue Apr 24 2012 Paul Howarth <paul@city-fan.org> - 1.002001-3
422bd8b
- Don't BR: perl(Pod::Wordlist::hanekomu) for RHEL-7+ either (#815759)
422bd8b
f4bcae7
* Tue Apr 24 2012 Paul Howarth <paul@city-fan.org> - 1.002001-2
f4bcae7
- RHEL-7+ package cannot BR: perl(Test::Kwalitee) from EPEL (#815759)
f4bcae7
f53a56f
* Wed Mar 14 2012 Paul Howarth <paul@city-fan.org> - 1.002001-1
f53a56f
- Update to 1.002001:
f53a56f
  - Fix metadata caused by a bug in DZP::GitHub after asking repo to be
f53a56f
    unlinked from gitpan
f53a56f
- Don't need to remove empty directories from buildroot
f53a56f
- Use %%{_fixperms} macro rather than our own chmod incantation
f53a56f
- Use DESTDIR rather than PERL_INSTALL_ROOT
f53a56f
- Drop %%defattr, redundant since rpm 4.4
f53a56f
- Don't attempt to run author/release tests when bootstrapping
f53a56f
0ba5460
* Tue Jan 10 2012 Paul Howarth <paul@city-fan.org> - 1.002000-1
0ba5460
- Update to 1.002000:
0ba5460
  - Use Module::Metadata - apparently it's closer to how Perl works than
0ba5460
    Module::Extract::VERSION
0ba5460
  - Use perl decimal style semantic versioning because of bugs in EUMM with
0ba5460
    vstring versions
0ba5460
  - Allow disabling of 'has_version'
0ba5460
  - Require at least 1 version
0ba5460
  - Allow for checking that a module is_strict
0ba5460
  - Fix some issues in the pod
0ba5460
- BR: perl(Module::Metadata) rather than perl(Module::Extract::VERSION)
0ba5460
- BR: perl(Test::Exception) and perl(Test::Requires) for test suite
0ba5460
- BR: perl(strict) and perl(warnings) for completeness
0ba5460
6beed13
* Thu Aug 11 2011 Paul Howarth <paul@city-fan.org> - 1.0.0-3
6beed13
- Don't run the author/release tests when bootstrapping
6beed13
- BR: perl(Test::DistManifest) unconditionally
6beed13
- Additional BR's for improved release test coverage:
6beed13
  - perl(Pod::Wordlist::hanekomu)
6beed13
  - perl(Test::CPAN::Meta::JSON)
6beed13
  - perl(Test::Mojibake)
6beed13
  - perl(Test::Spelling) ≥ 0.12 and aspell-en
6beed13
  - perl(Test::Vars)
6beed13
6beed13
* Thu Aug  4 2011 Paul Howarth <paul@city-fan.org> - 1.0.0-2
6beed13
- Sanitize for Fedora submission
6beed13
6beed13
* Wed Aug  3 2011 Paul Howarth <paul@city-fan.org> - 1.0.0-1
6beed13
- Initial RPM version