[5871] | 1 | # RPM version needs 4 digits after the decimal to preserve upgrade path |
---|
| 2 | %global module_version 0.500 |
---|
| 3 | %global RPM_version %(echo %{module_version} | %{__perl} -pi -e 's/(.*)/sprintf("%.4f", $1)/e') |
---|
| 4 | |
---|
| 5 | Name: perl-Test-Differences |
---|
| 6 | Version: %{RPM_version} |
---|
| 7 | Release: 1%{?_dist_release} |
---|
| 8 | Summary: Test strings and data structures and show differences if not OK |
---|
| 9 | |
---|
| 10 | Group: Development/Libraries |
---|
| 11 | License: GPL+ or Artistic |
---|
| 12 | URL: http://search.cpan.org/dist/Test-Differences/ |
---|
| 13 | Source0: http://search.cpan.org/CPAN/authors/id/O/OV/OVID/Test-Differences-%{module_version}.tar.gz |
---|
| 14 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
---|
| 15 | |
---|
| 16 | BuildArch: noarch |
---|
| 17 | BuildRequires: perl(Text::Diff) >= 0.35 |
---|
| 18 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
| 19 | BuildRequires: perl(Test::More) |
---|
| 20 | BuildRequires: perl(Test::Pod) |
---|
| 21 | BuildRequires: perl(Test::Pod::Coverage) |
---|
| 22 | # not detected |
---|
| 23 | Requires: perl(Text::Diff) >= 0.35 |
---|
| 24 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
| 25 | |
---|
| 26 | %description |
---|
| 27 | When the code you're testing returns multiple lines, records or data |
---|
| 28 | structures and they're just plain wrong, an equivalent to the Unix |
---|
| 29 | diff utility may be just what's needed. |
---|
| 30 | |
---|
| 31 | |
---|
| 32 | %prep |
---|
| 33 | %setup -q -n Test-Differences-%{module_version} |
---|
| 34 | |
---|
| 35 | |
---|
| 36 | %build |
---|
| 37 | %{__perl} Makefile.PL INSTALLDIRS=vendor |
---|
| 38 | make %{?_smp_mflags} |
---|
| 39 | |
---|
| 40 | |
---|
| 41 | %install |
---|
| 42 | rm -rf %{buildroot} |
---|
| 43 | make pure_install PERL_INSTALL_ROOT=%{buildroot} |
---|
| 44 | find %{buildroot} -type f -name .packlist -exec rm -f {} ';' |
---|
| 45 | find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';' |
---|
| 46 | chmod -R u+w %{buildroot}/* |
---|
| 47 | |
---|
| 48 | |
---|
| 49 | %check |
---|
| 50 | make test |
---|
| 51 | |
---|
| 52 | |
---|
| 53 | %clean |
---|
| 54 | rm -rf %{buildroot} |
---|
| 55 | |
---|
| 56 | |
---|
| 57 | %files |
---|
| 58 | %defattr(-,root,root,-) |
---|
| 59 | %doc Changes README |
---|
| 60 | %{perl_vendorlib}/Test/ |
---|
| 61 | %{_mandir}/man3/Test::Differences.3pm* |
---|
| 62 | |
---|
| 63 | |
---|
| 64 | %changelog |
---|
| 65 | * Fri Mar 09 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.5000-1 |
---|
| 66 | - initial build for Vine Linux |
---|
| 67 | |
---|
| 68 | * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5000-6 |
---|
| 69 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild |
---|
| 70 | |
---|
| 71 | * Mon Jun 20 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.5000-5 |
---|
| 72 | - Perl mass rebuild |
---|
| 73 | |
---|
| 74 | * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5000-4 |
---|
| 75 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
---|
| 76 | |
---|
| 77 | * Wed Dec 22 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.5000-3 |
---|
| 78 | - 661697 rebuild for fixing problems with vendorach/lib |
---|
| 79 | |
---|
| 80 | * Thu Jul 08 2010 Iain Arnell <iarnell@gmail.com> 0.500-2 |
---|
| 81 | - explicitly require perl(Text::Diff) |
---|
| 82 | |
---|
| 83 | * Tue Jun 29 2010 Paul Howarth <paul@city-fan.org> - 0.5000-1 |
---|
| 84 | - Update to 0.500 |
---|
| 85 | - Add support for all diff styles supplied by Text::Diff (CPAN RT#23579) |
---|
| 86 | - Add Build.PL |
---|
| 87 | - Convert to universally use Test::More instead of Test |
---|
| 88 | - Convert to modern Perl distribution. |
---|
| 89 | - Applied doc suggestion from CPAN RT#24297 |
---|
| 90 | - Fix the { a => 1 } versus { a => '1' } bug (CPAN RT#3029) |
---|
| 91 | - Upstream dropped eg/ docs |
---|
| 92 | - Bump perl(Text::Diff) requirement to 0.35 |
---|
| 93 | - BR: perl(Test::Pod) and perl(Test::Pod::Coverage) for extra test cover |
---|
| 94 | |
---|
| 95 | * Thu May 06 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.4801-5 |
---|
| 96 | - Mass rebuild with perl-5.12.0 |
---|
| 97 | |
---|
| 98 | * Fri Dec 4 2009 Stepan Kasal <skasal@redhat.com> - 0.4801-4 |
---|
| 99 | - rebuild against perl 5.10.1 |
---|
| 100 | |
---|
| 101 | * Wed Aug 19 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 0.4801-3 |
---|
| 102 | - fix source url |
---|
| 103 | |
---|
| 104 | * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4801-2 |
---|
| 105 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
| 106 | |
---|
| 107 | * Fri Mar 13 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 0.4801-1 |
---|
| 108 | - update to 0.4801 |
---|
| 109 | |
---|
| 110 | * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.47-5 |
---|
| 111 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
| 112 | |
---|
| 113 | * Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.47-4 |
---|
| 114 | - Rebuild for perl 5.10 (again) |
---|
| 115 | |
---|
| 116 | * Thu Jan 24 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.47-3 |
---|
| 117 | - rebuild for new perl |
---|
| 118 | |
---|
| 119 | * Tue Oct 16 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 0.47-2.2 |
---|
| 120 | - add BR: perl(Test::More) |
---|
| 121 | |
---|
| 122 | * Tue Oct 16 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 0.47-2.1 |
---|
| 123 | - correct license tag |
---|
| 124 | - add BR: perl(ExtUtils::MakeMaker) |
---|
| 125 | |
---|
| 126 | * Sun May 14 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.47-2 |
---|
| 127 | - Bumping release (repodata checksum inconsistency for previous release). |
---|
| 128 | |
---|
| 129 | * Mon May 01 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.47-1 |
---|
| 130 | - First build. |
---|