diff --git a/.gitignore b/.gitignore index e69de29..dbd909e 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Test-Version-[0-9.]*.tar.gz diff --git a/perl-Test-Version.spec b/perl-Test-Version.spec new file mode 100644 index 0000000..1072a9b --- /dev/null +++ b/perl-Test-Version.spec @@ -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 - 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 - 1.0.0-2 +- Sanitize for Fedora submission + +* Wed Aug 3 2011 Paul Howarth - 1.0.0-1 +- Initial RPM version diff --git a/sources b/sources index e69de29..f99d4ff 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +e7ae73bbaed646304c215c56908556b9 Test-Version-1.0.0.tar.gz