From 7c0634d2408824f5e685f19d8fe46af4eb785249 Mon Sep 17 00:00:00 2001 From: Paul Howarth paul@city-fan.org Date: Sun, 3 Jan 2016 13:21:47 +0000 Subject: Update to 0.014
- New upstream release 0.014 - Fix spelling error in manpage (CPAN RT#110709) - Add LICENSE file to the distribution (GH#1) - Fix all_pm_version_ok() failure reporting (CPAN RT#78758) - Rewrite t/04_all_ok.t using Test::Builder::Tester (CPAN RT#78758) - Classify buildreqs by usage - Drop %defattr, redundant since rpm 4.4 - Make %files list more explicit --- .gitignore | 2 +- perl-Test-HasVersion.spec | 64 ++++++++++++++++++++++++++++++----------------- sources | 2 +- 3 files changed, 43 insertions(+), 25 deletions(-)
diff --git a/.gitignore b/.gitignore index 22ba297..3794058 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -/Test-HasVersion-0.012.tar.gz +/Test-HasVersion-[0-9.]*.tar.gz diff --git a/perl-Test-HasVersion.spec b/perl-Test-HasVersion.spec index b469063..13a4cb9 100644 --- a/perl-Test-HasVersion.spec +++ b/perl-Test-HasVersion.spec @@ -1,57 +1,75 @@ Name: perl-Test-HasVersion -Version: 0.012 -Release: 13%{?dist} +Version: 0.014 +Release: 1%{?dist} Summary: Check Perl modules have version numbers License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/Test-HasVersion/ Source0: http://www.cpan.org/authors/id/F/FE/FERREIRA/Test-HasVersion-%%7Bversion%7D.... BuildArch: noarch +# Module Build +BuildRequires: coreutils +BuildRequires: findutils +BuildRequires: make +BuildRequires: perl +# Module Runtime BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(File::Find) -BuildRequires: perl(File::Spec) BuildRequires: perl(strict) BuildRequires: perl(Test::Builder) +BuildRequires: perl(warnings) +# Test Suite BuildRequires: perl(Test::Builder::Tester) >= 1.04 BuildRequires: perl(Test::More) -BuildRequires: perl(Test::Pod) -BuildRequires: perl(Test::Pod::Coverage) -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) - -%{?perl_default_filter} +# Optional Tests +BuildRequires: perl(Test::Pod) >= 1.18 +BuildRequires: perl(Test::Pod::Coverage) >= 1.04 +# Runtime +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%description -Do you wanna check that every one of your Perl modules in a distribution -has a version number? You wanna make sure you don't forget the brand new -modules you just added? Well, that's the module you have been looking -for. Use it! +Do you want to check that every one of your Perl modules in a distribution has +a version number? You want to make sure you don't forget the brand new modules +you just added? Well, this is the module you have been looking for. + +Do you want to check someone else's distribution to make sure the author has +not committed the sin of leaving Perl modules without a version that can be +used to tell if you have this or that feature? Test::HasVersion is also for +you.
%prep %setup -q -n Test-HasVersion-%{version}
%build -%{__perl} Makefile.PL INSTALLDIRS=vendor +perl Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags}
%install -make pure_install DESTDIR=$RPM_BUILD_ROOT - -find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ; -find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ; - -%{_fixperms} $RPM_BUILD_ROOT/* +make pure_install DESTDIR=%{buildroot} +find %{buildroot} -type f -name .packlist -exec rm -f {} ; +%{_fixperms} %{buildroot}
%check make test
%files -%defattr(-,root,root,-) +%license LICENSE %doc Changes README -%{_bindir}/* -%{perl_vendorlib}/* -%{_mandir}/man3/* +%{_bindir}/test_version +%{perl_vendorlib}/Test/ +%{_mandir}/man3/Test::HasVersion.3*
%changelog +* Sun Jan 3 2016 Paul Howarth paul@city-fan.org - 0.014-1 +- Update to 0.014 + - Fix spelling error in manpage (CPAN RT#110709) + - Add LICENSE file to the distribution (GH#1) + - Fix all_pm_version_ok() failure reporting (CPAN RT#78758) + - Rewrite t/04_all_ok.t using Test::Builder::Tester (CPAN RT#78758) +- Classify buildreqs by usage +- Drop %%defattr, redundant since rpm 4.4 +- Make %%files list more explicit + * Thu Jun 18 2015 Fedora Release Engineering rel-eng@lists.fedoraproject.org - 0.012-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
diff --git a/sources b/sources index d1c7e7a..819ec31 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -d9cb18aa27bbbb95b96a008248ebfb27 Test-HasVersion-0.012.tar.gz +15682f35d3e204c86329042d87046142 Test-HasVersion-0.014.tar.gz