Update to 1.1903

- New upstream release 1.1903
  - Fix documentation typos (CPAN RT#84981)
  - Add -w and -i switches to diffnew.pl (CPAN RT#69945)
  - Remove Algorithm::DiffOld from the index; the module is still distributed
    with Algorithm::Diff, but is not indexed on CPAN because this is an
    ***UNAUTHORIZED*** release of Algorithm::DiffOld
- Add patch to generate provide for perl(Algorithm::DiffOld)
- Drop %defattr, redundant since rpm 4.4
- General spec tidy-up
This commit is contained in:
Paul Howarth 2014-11-27 12:13:12 +00:00
parent 2db013ca9c
commit af25f4aabb
4 changed files with 56 additions and 28 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
Algorithm-Diff-1.1902.tar.gz /Algorithm-Diff-[0-9.]*.tar.gz

View File

@ -0,0 +1,12 @@
--- lib/Algorithm/DiffOld.pm
+++ lib/Algorithm/DiffOld.pm
@@ -2,8 +2,7 @@
# like versions <= 0.59 used to.
# $Revision: 1.3 $
-package # don't index
- Algorithm::DiffOld;
+package Algorithm::DiffOld;
use strict;
use vars qw($VERSION @EXPORT_OK @ISA @EXPORT);
use integer; # see below in _replaceNextLargerWith() for mod to make

View File

@ -1,64 +1,80 @@
Name: perl-Algorithm-Diff Name: perl-Algorithm-Diff
Version: 1.1902 Version: 1.1903
Release: 21%{?dist} Release: 1%{?dist}
Summary: Algorithm::Diff Perl module Summary: Compute `intelligent' differences between two files/lists
License: GPL+ or Artistic License: GPL+ or Artistic
Group: Development/Libraries Group: Development/Libraries
URL: http://search.cpan.org/dist/Algorithm-Diff/ URL: http://search.cpan.org/dist/Algorithm-Diff/
Source0: http://www.cpan.org/authors/id/T/TY/TYEMQ/Algorithm-Diff-%{version}.tar.gz Source0: http://www.cpan.org/authors/id/T/TY/TYEMQ/Algorithm-Diff-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Patch0: Algorithm-Diff-1.1903-provides.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
BuildArch: noarch BuildArch: noarch
# Build:
BuildRequires: perl
BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(ExtUtils::MakeMaker)
# Run-time: # Run-time:
BuildRequires: perl(Carp) BuildRequires: perl(Carp)
BuildRequires: perl(Exporter) BuildRequires: perl(Exporter)
BuildRequires: perl(integer)
BuildRequires: perl(strict)
BuildRequires: perl(vars)
# Tests: # Tests:
BuildRequires: perl(Data::Dumper) BuildRequires: perl(Data::Dumper)
BuildRequires: perl(lib) BuildRequires: perl(lib)
BuildRequires: perl(Test) BuildRequires: perl(Test)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) # Explicit requirements:
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(Carp) Requires: perl(Carp)
%description %description
This is a module for computing the difference between two files, two This is a module for computing the difference between two files, two strings,
strings, or any other two lists of things. It uses an intelligent or any other two lists of things. It uses an intelligent algorithm similar to
algorithm similar to (or identical to) the one used by the Unix "diff" (or identical to) the one used by the Unix "diff" program. It is guaranteed to
program. It is guaranteed to find the *smallest possible* set of find the *smallest possible* set of differences.
differences.
%prep %prep
%setup -q -n Algorithm-Diff-%{version} %setup -q -n Algorithm-Diff-%{version}
chmod 644 *.pl
# Generate provide for perl(Algorithm::DiffOld)
%patch0
%build %build
%{__perl} Makefile.PL INSTALLDIRS=vendor perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf %{buildroot}
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
%{_fixperms} %{buildroot}
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT # Remove example scripts we're shipping as documentation
rm -f %{buildroot}%{perl_vendorlib}/Algorithm/*.pl
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/*
rm -f $RPM_BUILD_ROOT%{perl_vendorlib}/Algorithm/*.pl
%check %check
make test make test
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf %{buildroot}
%files %files
%defattr(-,root,root,-)
%doc Changes README *.pl %doc Changes README *.pl
%{perl_vendorlib}/* %{perl_vendorlib}/Algorithm/
%{_mandir}/man3/* %{_mandir}/man3/Algorithm::Diff.3*
%{_mandir}/man3/Algorithm::DiffOld.3*
%changelog %changelog
* Thu Nov 27 2014 Paul Howarth <paul@city-fan.org> - 1.1903-1
- Update to 1.1903
- Fix documentation typos (CPAN RT#84981)
- Add -w and -i switches to diffnew.pl (CPAN RT#69945)
- Remove Algorithm::DiffOld from the index; the module is still distributed
with Algorithm::Diff, but is not indexed on CPAN because this is an
***UNAUTHORIZED*** release of Algorithm::DiffOld
- Add patch to generate provide for perl(Algorithm::DiffOld)
- Drop %%defattr, redundant since rpm 4.4
- General spec tidy-up
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.1902-21 * Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.1902-21
- Perl 5.20 rebuild - Perl 5.20 rebuild
@ -91,7 +107,7 @@ rm -rf $RPM_BUILD_ROOT
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Tue Dec 14 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.1902-11 * Tue Dec 14 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.1902-11
- 661697 rebuild for fixing problems with vendorach/lib - Rebuild to fix problems with vendorarch/lib (#661697)
* Thu Apr 29 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.1902-10 * Thu Apr 29 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.1902-10
- Mass rebuild with perl-5.12.0 - Mass rebuild with perl-5.12.0

View File

@ -1 +1 @@
ff3e17ae485f8adfb8857b183991fbce Algorithm-Diff-1.1902.tar.gz 0e8add21a641b8d66436df0c2024bf3b Algorithm-Diff-1.1903.tar.gz