[perl-aliased] Update to 0.31
Paul Howarth
pghmcfc at fedoraproject.org
Tue Feb 19 10:03:43 UTC 2013
commit 8f4b999d69ade2405667e2d6a4c6b0ef7d06f0c2
Author: Paul Howarth <paul at city-fan.org>
Date: Tue Feb 19 10:02:54 2013 +0000
Update to 0.31
- New upstream release 0.31
- Added prefix() function (CPAN RT#48289)
- Moved Test::More to build_requires (CPAN RT#48926)
- Moved author tests to xt/author
- Explicitly run the author tests
- BR: perl(lib) and perl(Test::More) for the test suite
- Add patch to support building with Test::More < 0.88
- Drop %defattr, redundant since rpm 4.4
- Don't need to remove empty directories from the buildroot
.gitignore | 2 +-
aliased-0.31-old-Test::More.patch | 16 ++++++++++++++++
perl-aliased.spec | 29 +++++++++++++++++++++++++----
sources | 2 +-
4 files changed, 43 insertions(+), 6 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 8c48daa..a86788e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1 @@
-aliased-0.30.tar.gz
+/aliased-[0-9.]*.tar.gz
diff --git a/aliased-0.31-old-Test::More.patch b/aliased-0.31-old-Test::More.patch
new file mode 100644
index 0000000..e12065c
--- /dev/null
+++ b/aliased-0.31-old-Test::More.patch
@@ -0,0 +1,16 @@
+--- t/export.t
++++ t/export.t
+@@ -2,7 +2,7 @@
+ use warnings;
+ use strict;
+
+-use Test::More;
++use Test::More tests => 1;
+ use B;
+ use lib "t/lib";
+
+@@ -11,4 +11,3 @@
+ my $cv = B::svref_2object(\&Name);
+ is($cv->GV->STASH->NAME, 'aliased', 'installed symbol was compiled in the aliased package');
+
+-done_testing;
diff --git a/perl-aliased.spec b/perl-aliased.spec
index bc27bf6..4b2db09 100644
--- a/perl-aliased.spec
+++ b/perl-aliased.spec
@@ -1,15 +1,21 @@
+# We need to patch the test suite if we have an old version of Test::More
+%global old_test_more %(perl -MTest::More -e 'print (($Test::More::VERSION < 0.88) ? 1 : 0);' 2>/dev/null || echo 0)
+
Name: perl-aliased
-Version: 0.30
-Release: 11%{?dist}
+Version: 0.31
+Release: 1%{?dist}
Summary: Use shorter versions of class names
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/aliased/
Source0: http://search.cpan.org/CPAN/authors/id/O/OV/OVID/aliased-%{version}.tar.gz
+Patch0: aliased-0.31-old-Test::More.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
BuildArch: noarch
BuildRequires: perl(Exporter)
+BuildRequires: perl(lib)
BuildRequires: perl(Module::Build)
+BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::Pod::Coverage)
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
@@ -24,6 +30,11 @@ subroutine is the last part of the class name.
%prep
%setup -q -n aliased-%{version}
+# We need to patch the test suite if we have an old version of Test::More
+%if %{old_test_more}
+%patch0
+%endif
+
%build
perl Build.PL installdirs=vendor
./Build
@@ -31,22 +42,32 @@ perl Build.PL installdirs=vendor
%install
rm -rf %{buildroot}
./Build install destdir=%{buildroot} create_packlist=0
-find %{buildroot} -depth -type d -exec rmdir {} \; 2>/dev/null
%{_fixperms} %{buildroot}
%check
./Build test
+./Build test --test_files="xt/author/*.t"
%clean
rm -rf %{buildroot}
%files
-%defattr(-,root,root,-)
%doc Changes README
%{perl_vendorlib}/aliased.pm
%{_mandir}/man3/aliased.3pm*
%changelog
+* Tue Feb 19 2013 Paul Howarth <paul at city-fan.org> - 0.31-1
+- Update to 0.31
+ - Added prefix() function (CPAN RT#48289)
+ - Moved Test::More to build_requires (CPAN RT#48926)
+ - Moved author tests to xt/author
+- Explicitly run the author tests
+- BR: perl(lib) and perl(Test::More) for the test suite
+- Add patch to support building with Test::More < 0.88
+- Drop %%defattr, redundant since rpm 4.4
+- Don't need to remove empty directories from the buildroot
+
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.30-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
diff --git a/sources b/sources
index 440b38c..58e7abe 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-8c2ee486901dae7d1c31e9a2d69c6c8f aliased-0.30.tar.gz
+869a73038bd769b5528ac81c326162f2 aliased-0.31.tar.gz
More information about the perl-devel
mailing list