[perl-Test-Differences] Update to 0.63
Paul Howarth
pghmcfc at fedoraproject.org
Fri Nov 21 15:16:58 UTC 2014
commit 7b4bd763b7bf99978a30378d1e650eb717e9ffc7
Author: Paul Howarth <paul at city-fan.org>
Date: Fri Nov 21 15:13:40 2014 +0000
Update to 0.63
- New upstream release 0.63
- Make '' and undef not equal
- Made Data::Dumper minimum version 2.126 to resolve CPAN RT#60798
- Allow an option to override Sortkeys in C<eq_or_diff>
- Unnumbered tests; there's no point to them
- Document the Text::Diff unicode fix
- Add ability to customize 'Got' and 'Expected' column headers
- Minor doco-fixes
- Remove use of flatten, always use Data::Dumper for saner, more readable
output (CPAN RT#95446)
- This release by DCANTRELL → update source URL
- Drop %defattr, redundant since rpm 4.4
- Use %{_fixperms} macro rather than our own chmod incantation
- Don't need to remove empty directories from the buildroot
.gitignore | 2 +-
perl-Test-Differences.spec | 83 ++++++++++++++++++++++++-------------------
sources | 2 +-
3 files changed, 48 insertions(+), 39 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 949e77e..ecca492 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1 @@
-Test-Differences-0.500.tar.gz
+/Test-Differences-[0-9.]*.tar.gz
diff --git a/perl-Test-Differences.spec b/perl-Test-Differences.spec
index 145c019..4cbb427 100644
--- a/perl-Test-Differences.spec
+++ b/perl-Test-Differences.spec
@@ -1,77 +1,86 @@
# RPM version needs 4 digits after the decimal to preserve upgrade path
-%global module_version 0.500
-%global RPM_version %(echo %{module_version} | %{__perl} -pi -e 's/(.*)/sprintf("%.4f", $1)/e')
+%global module_version 0.63
+%global RPM_version %(echo %{module_version} | perl -p -e 's/(.*)/sprintf("%.4f", $1)/e')
Name: perl-Test-Differences
Version: %{RPM_version}
-Release: 13%{?dist}
+Release: 1%{?dist}
Summary: Test strings and data structures and show differences if not OK
-
Group: Development/Libraries
License: GPL+ or Artistic
URL: http://search.cpan.org/dist/Test-Differences/
-Source0: http://search.cpan.org/CPAN/authors/id/O/OV/OVID/Test-Differences-%{module_version}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
+Source0: http://search.cpan.org/CPAN/authors/id/D/DC/DCANTRELL/Test-Differences-%{module_version}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
BuildArch: noarch
+# Module Build
+BuildRequires: perl
BuildRequires: perl(ExtUtils::MakeMaker)
-# Run-time
+# Module Runtime
BuildRequires: perl(Carp)
-BuildRequires: perl(constant)
-BuildRequires: perl(Data::Dumper)
+BuildRequires: perl(Data::Dumper) >= 2.126
BuildRequires: perl(Exporter)
+BuildRequires: perl(strict)
BuildRequires: perl(Text::Diff) >= 0.35
-# Tests
-BuildRequires: perl(Test)
-BuildRequires: perl(Test::More)
-# Optional tests
-BuildRequires: perl(Test::Pod) >= 1.08
-BuildRequires: perl(Test::Pod::Coverage) >= 0.18
-# not detected
-Requires: perl(Carp)
-Requires: perl(Data::Dumper)
+BuildRequires: perl(warnings)
+# Test Suite
+BuildRequires: perl(Capture::Tiny) >= 0.24
+BuildRequires: perl(Config)
+BuildRequires: perl(Test::Builder) >= 0.33
+BuildRequires: perl(Test::More) >= 0.88
+# Optional Tests
+BuildRequires: perl(Pod::Coverage) >= 0.18
+BuildRequires: perl(Test::Pod) >= 1.22
+BuildRequires: perl(Test::Pod::Coverage) >= 1.08
+# Explicit Requirements
+Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(Text::Diff) >= 0.35
-Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
When the code you're testing returns multiple lines, records or data
structures and they're just plain wrong, an equivalent to the Unix
diff utility may be just what's needed.
-
%prep
%setup -q -n Test-Differences-%{module_version}
-
%build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
+perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
-
%install
-rm -rf $RPM_BUILD_ROOT
-make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
-find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
-find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
-chmod -R u+w $RPM_BUILD_ROOT/*
-
+rm -rf %{buildroot}
+make pure_install DESTDIR=%{buildroot}
+find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
+%{_fixperms} %{buildroot}
%check
make test
-
%clean
-rm -rf $RPM_BUILD_ROOT
-
+rm -rf %{buildroot}
%files
-%defattr(-,root,root,-)
%doc Changes README
%{perl_vendorlib}/Test/
-%{_mandir}/man3/Test::Differences.3pm*
-
+%{_mandir}/man3/Test::Differences.3*
%changelog
+* Fri Nov 21 2014 Paul Howarth <paul at city-fan.org> - 0.6300-1
+- Update to 0.63
+ - Make '' and undef not equal
+ - Made Data::Dumper minimum version 2.126 to resolve CPAN RT#60798
+ - Allow an option to override Sortkeys in C<eq_or_diff>
+ - Unnumbered tests; there's no point to them
+ - Document the Text::Diff unicode fix
+ - Add ability to customize 'Got' and 'Expected' column headers
+ - Minor doco-fixes
+ - Remove use of flatten, always use Data::Dumper for saner, more readable
+ output (CPAN RT#95446)
+- This release by DCANTRELL → update source URL
+- Drop %%defattr, redundant since rpm 4.4
+- Use %%{_fixperms} macro rather than our own chmod incantation
+- Don't need to remove empty directories from the buildroot
+
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik at redhat.com> - 0.5000-13
- Perl 5.20 rebuild
@@ -104,7 +113,7 @@ 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.5000-3
-- 661697 rebuild for fixing problems with vendorach/lib
+- Rebuild to fix problems with vendorarch/lib (#661697)
* Thu Jul 08 2010 Iain Arnell <iarnell at gmail.com> 0.500-2
- explicitly require perl(Text::Diff)
diff --git a/sources b/sources
index 6305609..49c0f50 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-9eb50dc627296ea46cd4d3200a61d6e9 Test-Differences-0.500.tar.gz
+473cce4879642e29d41bdfafd89c821d Test-Differences-0.63.tar.gz
More information about the perl-devel
mailing list