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
epel9
Paul Howarth 12 years ago
parent 1b4f562e83
commit 8f4b999d69

2
.gitignore vendored

@ -1 +1 @@
aliased-0.30.tar.gz
/aliased-[0-9.]*.tar.gz

@ -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;

@ -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@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@lists.fedoraproject.org> - 0.30-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

@ -1 +1 @@
8c2ee486901dae7d1c31e9a2d69c6c8f aliased-0.30.tar.gz
869a73038bd769b5528ac81c326162f2 aliased-0.31.tar.gz

Loading…
Cancel
Save