Update to 0.24

- Update to 0.24 (compatibility with Carp 1.25) (#808856)
- BR: Perl core modules that might be dual-lived
- BR/R: at least version 1.02 of perl(Tree::DAG_Node)
- Drop redundant buildreq perl(Test::Exception)
- Don't need to remove empty directories from buildroot
- Drop explicit versioned runtime dependency on Test::Builder, satisfied in
  all distributions since the dawn of time (nearly)
- Use DESTDIR rather than PERL_INSTALL_ROOT
- Drop %defattr, redundant since rpm 4.4
- Drop redundant %{?perl_default_filter}
- Make %files list more explicit
- Don't use macros for commands
This commit is contained in:
Paul Howarth 2012-04-01 12:02:17 +01:00
parent cba2e44b19
commit b8e52c0f1e
3 changed files with 29 additions and 26 deletions

4
.gitignore vendored
View File

@ -1,3 +1 @@
Test-Warn-0.21.zip
/Test-Warn-0.22.tar.gz
/Test-Warn-0.23.tar.gz
/Test-Warn-[0-9.]*.tar.gz

View File

@ -1,61 +1,66 @@
Name: perl-Test-Warn
Version: 0.23
Release: 3%{?dist}
Version: 0.24
Release: 1%{?dist}
Summary: Perl extension to test methods for warnings
Group: Development/Libraries
License: GPL+ or Artistic
URL: http://search.cpan.org/dist/Test-Warn/
Source0: http://search.cpan.org/CPAN/authors/id/C/CH/CHORNY/Test-Warn-%{version}.tar.gz
BuildArch: noarch
BuildRequires: perl(base)
BuildRequires: perl(Carp) >= 1.22
BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Spec)
BuildRequires: perl(Sub::Uplevel) >= 0.12
BuildRequires: perl(Test::Builder) >= 0.13
BuildRequires: perl(Test::Builder::Tester) >= 1.02
BuildRequires: perl(Test::Exception)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Tree::DAG_Node)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires: perl(Test::Builder) >= 0.13
BuildRequires: perl(Tree::DAG_Node) >= 1.02
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(Test::Builder::Tester) >= 1.02
Requires: perl(Tree::DAG_Node)
%{?perl_default_filter}
Requires: perl(Tree::DAG_Node) >= 1.02
%description
This module provides a few convenience methods for testing warning
based code.
%prep
%setup -q -n Test-Warn-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
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/*
%{_fixperms} $RPM_BUILD_ROOT
%check
make test
%files
%defattr(-,root,root,-)
%doc Changes README
%{perl_vendorlib}/Test/
%{_mandir}/man3/*.3pm*
%{_mandir}/man3/Test::Warn.3pm*
%changelog
* Sun Apr 1 2012 Paul Howarth <paul@city-fan.org> - 0.24-1
- Update to 0.24 (compatibility with Carp 1.25) (#808856)
- BR: Perl core modules that might be dual-lived
- BR/R: at least version 1.02 of perl(Tree::DAG_Node)
- Drop redundant buildreq perl(Test::Exception)
- Don't need to remove empty directories from buildroot
- Drop explicit versioned runtime dependency on Test::Builder, satisfied in
all distributions since the dawn of time (nearly)
- Use DESTDIR rather than PERL_INSTALL_ROOT
- Drop %%defattr, redundant since rpm 4.4
- Drop redundant %%{?perl_default_filter}
- Make %%files list more explicit
- Don't use macros for commands
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.23-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
@ -73,7 +78,7 @@ make test
- update to 0.22
* Wed Dec 22 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.21-4
- 661697 rebuild for fixing problems with vendorach/lib
- Rebuild to fix problems with vendorarch/lib (#661697)
* Fri May 07 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.21-3
- Mass rebuild with perl-5.12.0

View File

@ -1 +1 @@
96e224cba15bf69b7513c08e70496457 Test-Warn-0.23.tar.gz
a27990b62f8fd0aa290bb617ae0157a5 Test-Warn-0.24.tar.gz