@ -1,17 +1,17 @@
Name: perl-Test-Class
Name: perl-Test-Class
Version: 0.46
Version: 0.47
Release: 2 %{?dist}
Release: 1 %{?dist}
Summary: Easily create test classes in an xUnit/JUnit style
Summary: Easily create test classes in an xUnit/JUnit style
License: GPL+ or Artistic
License: GPL+ or Artistic
Group: Development/Libraries
Group: Development/Libraries
URL: http://search.cpan.org/dist/Test-Class/
URL: http://search.cpan.org/dist/Test-Class/
Source0: http://www.cpan.org/authors/id/E/ET/ETHER/Test-Class-%{version}.tar.gz
Source0: http://www.cpan.org/authors/id/E/ET/ETHER/Test-Class-%{version}.tar.gz
Patch0: perl-Test-Class-UTF8.patch
Patch0: perl-Test-Class-UTF8.patch
Patch1: Test-Class-0.43-Module-Build-version.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
BuildArch: noarch
BuildArch: noarch
# Build:
BuildRequires: perl
BuildRequires: perl
BuildRequires: perl(Module::Build)
BuildRequires: perl(Module::Build) >= 0.40.04
# Run-time:
# Run-time:
BuildRequires: perl(Attribute::Handlers) >= 0.77
BuildRequires: perl(Attribute::Handlers) >= 0.77
BuildRequires: perl(Carp)
BuildRequires: perl(Carp)
@ -58,24 +58,17 @@ find -type f -exec chmod -c -x {} \;
# Fix character encoding in documentation
# Fix character encoding in documentation
%patch0
%patch0
# Lower Module::Build version requirement so we can build for EPEL-7
%patch1 -p1
%build
%build
perl Build.PL installdirs=vendor
perl Build.PL installdirs=vendor
./Build
./Build
%install
%install
rm -rf $RPM_BUILD_ROOT
./Build install --destdir=$RPM_BUILD_ROOT --create_packlist=0
./Build install --destdir=$RPM_BUILD_ROOT --create_packlist=0
%{_fixperms} $RPM_BUILD_ROOT
%{_fixperms} $RPM_BUILD_ROOT
%check
%check
./Build test
./Build test
%clean
rm -rf $RPM_BUILD_ROOT
%files
%files
%doc Changes README
%doc Changes README
%{perl_vendorlib}/Test/
%{perl_vendorlib}/Test/
@ -84,6 +77,12 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man3/Test::Class::MethodInfo.3pm*
%{_mandir}/man3/Test::Class::MethodInfo.3pm*
%changelog
%changelog
* Mon Sep 29 2014 Paul Howarth <paul@city-fan.org> - 0.47-1
- 0.47 bump; test and documentation changes only
- Drop Module::Build version patch since we need a later Test::More than is in
EL-7
- No need to clean the buildroot
* Thu Aug 28 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.46-2
* Thu Aug 28 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.46-2
- Perl 5.20 rebuild
- Perl 5.20 rebuild