Update to 0.33

- New upstream release 0.33
  - Don't inherit from Exporter
  - Fix docs issues
  - Fix warnings on perl 5.21.6 and up (CPAN RT#100359)
- This release by ETHER → update source URL
- Switch to Module::Build::Tiny flow
- Modernize spec, dropping support for ancient distributions
epel9
Paul Howarth 10 years ago
parent 062962e11b
commit af7d7b3f1d

@ -1,24 +1,28 @@
# 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.31
Release: 5%{?dist}
Version: 0.33
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)
Source0: http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/aliased-%{version}.tar.gz
BuildArch: noarch
# Module Build
BuildRequires: perl
BuildRequires: perl(Module::Build::Tiny) >= 0.039
BuildRequires: perl(warnings)
# Module Runtime
BuildRequires: perl(Carp)
BuildRequires: perl(Exporter)
BuildRequires: perl(strict)
# Test Suite
BuildRequires: perl(B)
BuildRequires: perl(CPAN::Meta) >= 2.120900
BuildRequires: perl(File::Spec)
BuildRequires: perl(lib)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::Pod::Coverage)
BuildRequires: perl(Test::More) >= 0.88
# Runtime
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(Carp)
%description
aliased is simple in concept but is a rather handy module. It loads the
@ -30,33 +34,33 @@ 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
perl Build.PL --installdirs=vendor
./Build
%install
rm -rf %{buildroot}
./Build install destdir=%{buildroot} create_packlist=0
./Build install --destdir=%{buildroot} --create_packlist=0
%{_fixperms} %{buildroot}
%check
./Build test
./Build test --test_files="xt/author/*.t"
%clean
rm -rf %{buildroot}
%files
%doc Changes README
%license LICENSE
%doc Changes CONTRIBUTING README
%{perl_vendorlib}/aliased.pm
%{_mandir}/man3/aliased.3pm*
%{_mandir}/man3/aliased.3*
%changelog
* Mon Dec 22 2014 Paul Howarth <paul@city-fan.org> - 0.33-1
- Update to 0.33
- Don't inherit from Exporter
- Fix docs issues
- Fix warnings on perl 5.21.6 and up (CPAN RT#100359)
- This release by ETHER → update source URL
- Switch to Module::Build::Tiny flow
- Modernize spec, dropping support for ancient distributions
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.31-5
- Perl 5.20 rebuild

@ -1 +1 @@
869a73038bd769b5528ac81c326162f2 aliased-0.31.tar.gz
af0b619806b8ecb764ee7e643c5541e9 aliased-0.33.tar.gz

Loading…
Cancel
Save