Initial import (perl-Test-Version-1.0.0-3)

This module's goal is to be a one stop shop for checking to see that your
versions across your dist are sane.
This commit is contained in:
Paul Howarth 2011-09-04 20:33:11 +01:00
parent c9ca9326bc
commit 6beed13af3
3 changed files with 115 additions and 0 deletions

1
.gitignore vendored
View File

@ -0,0 +1 @@
/Test-Version-[0-9.]*.tar.gz

113
perl-Test-Version.spec Normal file
View File

@ -0,0 +1,113 @@
# noarch, but to avoid debug* files interfering with manifest test:
%global debug_package %{nil}
Name: perl-Test-Version
Version: 1.0.0
Release: 3%{?dist}
Summary: Check to see that versions in modules are sane
License: Artistic 2.0
Group: Development/Libraries
URL: http://search.cpan.org/dist/Test-Version/
Source0: http://search.cpan.org/CPAN/authors/id/X/XE/XENO/Test-Version-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
BuildArch: noarch
# ===================================================================
# Module build requirements
# ===================================================================
BuildRequires: perl(ExtUtils::MakeMaker)
# ===================================================================
# Module requirements
# ===================================================================
BuildRequires: perl(Exporter)
BuildRequires: perl(File::Find::Rule::Perl)
BuildRequires: perl(Module::Extract::VERSION)
BuildRequires: perl(parent)
BuildRequires: perl(Test::Builder)
BuildRequires: perl(Test::More)
BuildRequires: perl(version) >= 0.86
# ===================================================================
# Regular test suite requirements
# ===================================================================
BuildRequires: perl(Carp)
BuildRequires: perl(File::Find)
BuildRequires: perl(File::Temp)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Test::Tester)
# ===================================================================
# Author/Release test requirements
#
# Don't run these tests or include their requirements if we're
# bootstrapping, as many of these modules require each other for
# their author/release tests.
# ===================================================================
%if 0%{!?perl_bootstrap:1}
BuildRequires: perl(English)
BuildRequires: perl(Pod::Coverage::TrustPod)
BuildRequires: perl(Pod::Wordlist::hanekomu)
BuildRequires: perl(Test::CPAN::Changes)
BuildRequires: perl(Test::CPAN::Meta)
BuildRequires: perl(Test::CPAN::Meta::JSON)
BuildRequires: perl(Test::DistManifest)
BuildRequires: perl(Test::EOL)
BuildRequires: perl(Test::Kwalitee)
BuildRequires: perl(Test::MinimumVersion)
BuildRequires: perl(Test::Mojibake)
BuildRequires: perl(Test::Perl::Critic)
BuildRequires: perl(Test::Pod) >= 1.41
BuildRequires: perl(Test::Pod::Coverage) >= 1.08
BuildRequires: perl(Test::Portability::Files)
BuildRequires: perl(Test::Spelling) >= 0.12, aspell-en
BuildRequires: perl(Test::Synopsis)
BuildRequires: perl(Test::Vars)
%endif
# ===================================================================
# Runtime requirements
# ===================================================================
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%description
This module's goal is to be a one stop shop for checking to see that your
versions across your dist are sane.
%prep
%setup -q -n Test-Version-%{version}
%build
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make pure_install PERL_INSTALL_ROOT=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
find %{buildroot} -depth -type d -exec rmdir {} \; 2>/dev/null
chmod -R u+w %{buildroot}
%check
make test AUTHOR_TESTING=1 RELEASE_TESTING=1
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc Changes LICENSE README
%{perl_vendorlib}/Test/
%{_mandir}/man3/Test::Version.3pm*
%changelog
* Thu Aug 11 2011 Paul Howarth <paul@city-fan.org> - 1.0.0-3
- Don't run the author/release tests when bootstrapping
- BR: perl(Test::DistManifest) unconditionally
- Additional BR's for improved release test coverage:
- perl(Pod::Wordlist::hanekomu)
- perl(Test::CPAN::Meta::JSON)
- perl(Test::Mojibake)
- perl(Test::Spelling) 0.12 and aspell-en
- perl(Test::Vars)
* Thu Aug 4 2011 Paul Howarth <paul@city-fan.org> - 1.0.0-2
- Sanitize for Fedora submission
* Wed Aug 3 2011 Paul Howarth <paul@city-fan.org> - 1.0.0-1
- Initial RPM version

View File

@ -0,0 +1 @@
e7ae73bbaed646304c215c56908556b9 Test-Version-1.0.0.tar.gz