[perl-Test-Assert] Update to 0.0504
Paul Howarth
pghmcfc at fedoraproject.org
Fri Mar 9 15:59:17 UTC 2012
commit ab75957cf66665e451ce8e7d3a276824a394b678
Author: Paul Howarth <paul at city-fan.org>
Date: Fri Mar 9 12:55:28 2012 +0000
Update to 0.0504
- New upstream release 0.0504:
- Fixed error message for assert_deep_equals
- Uses Symbol::Util as exported; all exported symbols can be removed with
"no Test::Assert" statement
- Minor refactoring of "assert_deep_equals" method and its private methods
- Require Symbol::Util ≥ 0.0202 and constant::boolean ≥ 0.02
- Build requires Class::Inspector
- The ":assert" tag also imports the "ASSERT" constant
- Spec clean-up:
- Include LICENSE file
- Include eg/ directory as %%doc
- Add %%{?perl_default_filter} to avoid doc-file dependencies from examples
- BR: Perl core modules that might be dual-lived
- Don't need to remove empty directories from buildroot
- Make %%files list more explicit
- Drop %%defattr, redundant since rpm 4.4
- Drop buildroot definition and cleaning, redundant since rpm 4.6
- Don't use macros for commands
- Drop unnecessary dependency filtering
- Use tabs
.gitignore | 2 +-
perl-Test-Assert.spec | 103 +++++++++++++++++++++++++++---------------------
sources | 2 +-
3 files changed, 60 insertions(+), 47 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 049ac71..363a58c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1 @@
-Test-Assert-0.0501.tar.gz
+/Test-Assert-[0-9.]*.tar.gz
diff --git a/perl-Test-Assert.spec b/perl-Test-Assert.spec
index a867b6b..6692432 100644
--- a/perl-Test-Assert.spec
+++ b/perl-Test-Assert.spec
@@ -1,20 +1,27 @@
-Name: perl-Test-Assert
-Version: 0.0501
-Release: 9%{?dist}
-Summary: Assertion methods for those who like JUnit
-License: GPL+ or Artistic
-Group: Development/Libraries
-URL: http://search.cpan.org/dist/Test-Assert/
-Source0: http://www.cpan.org/authors/id/D/DE/DEXTER/Test-Assert-%{version}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildArch: noarch
-BuildRequires: perl(constant::boolean)
-BuildRequires: perl(Exception::Base) >= 0.21
-BuildRequires: perl(Module::Build)
-BuildRequires: perl(parent)
-BuildRequires: perl(Test::Unit::Lite) >= 0.11
-BuildRequires: perl(Test::More)
-Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Name: perl-Test-Assert
+Version: 0.0504
+Release: 1%{?dist}
+Summary: Assertion methods for those who like JUnit
+License: GPL+ or Artistic
+Group: Development/Libraries
+URL: http://search.cpan.org/dist/Test-Assert/
+Source0: http://search.cpan.org/CPAN/authors/id/D/DE/DEXTER/Test-Assert-%{version}.tar.gz
+BuildArch: noarch
+BuildRequires: perl(Class::Inspector)
+BuildRequires: perl(constant)
+BuildRequires: perl(constant::boolean) >= 0.02
+BuildRequires: perl(Exception::Base) >= 0.21
+BuildRequires: perl(Module::Build)
+BuildRequires: perl(parent)
+BuildRequires: perl(strict)
+BuildRequires: perl(Symbol::Util) >= 0.0202
+BuildRequires: perl(Test::More)
+BuildRequires: perl(Test::Unit::Lite) >= 0.11
+BuildRequires: perl(warnings)
+Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+
+# Avoid doc-file dependencies
+%{?perl_default_filter}
%description
This class provides a set of assertion methods useful for writing tests.
@@ -23,41 +30,47 @@ The API is based on JUnit4 and Test::Unit and the methods die on failure.
%prep
%setup -q -n Test-Assert-%{version}
-# Filter requires
-cat << \EOF > %{name}-req
-#!/bin/sh
-%{__perl_requires} $* |\
-sed -e '/perl(Exception::Base) >= 0.21/d'
-EOF
-
-%define __perl_requires %{_builddir}/Test-Assert-%{version}/%{name}-req
-chmod +x %{__perl_requires}
-
%build
-%{__perl} Build.PL installdirs=vendor
+perl Build.PL installdirs=vendor
./Build
%install
-rm -rf $RPM_BUILD_ROOT
-
-./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
-find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
-
-%{_fixperms} $RPM_BUILD_ROOT/*
+./Build install destdir=%{buildroot} create_packlist=0
+%{_fixperms} %{buildroot}
%check
./Build test
-%clean
-rm -rf $RPM_BUILD_ROOT
-
%files
-%defattr(-,root,root,-)
-%doc Changes README
-%{perl_vendorlib}/*
-%{_mandir}/man3/*
+%doc Changes LICENSE README eg/
+%{perl_vendorlib}/Exception/
+%{perl_vendorlib}/Test/
+%{_mandir}/man3/Exception::Assertion.3pm*
+%{_mandir}/man3/Test::Assert.3pm*
%changelog
+* Fri Mar 9 2012 Paul Howarth <paul at city-fan.org> - 0.0504-1
+- Update to 0.0504:
+ - Fixed error message for assert_deep_equals
+ - Uses Symbol::Util as exported; all exported symbols can be removed with
+ "no Test::Assert" statement
+ - Minor refactoring of "assert_deep_equals" method and its private methods
+ - Require Symbol::Util ≥ 0.0202 and constant::boolean ≥ 0.02
+ - Build requires Class::Inspector
+ - The ":assert" tag also imports the "ASSERT" constant
+- Spec clean-up:
+ - Include LICENSE file
+ - Include eg/ directory as %%doc
+ - Add %%{?perl_default_filter} to avoid doc-file dependencies from examples
+ - BR: Perl core modules that might be dual-lived
+ - Don't need to remove empty directories from buildroot
+ - Make %%files list more explicit
+ - Drop %%defattr, redundant since rpm 4.4
+ - Drop buildroot definition and cleaning, redundant since rpm 4.6
+ - Don't use macros for commands
+ - Drop unnecessary dependency filtering
+ - Use tabs
+
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.0501-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
@@ -68,13 +81,13 @@ rm -rf $RPM_BUILD_ROOT
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Wed Dec 22 2010 Marcela Maslanova <mmaslano at redhat.com> - 0.0501-6
-- 661697 rebuild for fixing problems with vendorach/lib
+- Rebuild to fix problems with vendorarch/lib (#661697)
* Thu May 06 2010 Marcela Maslanova <mmaslano at redhat.com> - 0.0501-5
- Mass rebuild with perl-5.12.0
* Fri Dec 4 2009 Stepan Kasal <skasal at redhat.com> - 0.0501-4
-- rebuild against perl 5.10.1
+- Rebuild against perl 5.10.1
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.0501-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
@@ -82,5 +95,5 @@ rm -rf $RPM_BUILD_ROOT
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.0501-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
-* Thu Jan 29 2009 Allisson Azevedo <allisson at gmail.com> 0.0501-1
-- Initial rpm release.
+* Thu Jan 29 2009 Allisson Azevedo <allisson at gmail.com> - 0.0501-1
+- Initial rpm release
diff --git a/sources b/sources
index 2ac821b..abec651 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-f14e7aafc0940cc6d02ead992d92d823 Test-Assert-0.0501.tar.gz
+238dfef9e583a79d612eb59947eb1249 Test-Assert-0.0504.tar.gz
More information about the scm-commits
mailing list