95e6a7
Name:           perl-Algorithm-Diff
95e6a7
Version:        1.1903
95e6a7
Release:        9%{?dist}
95e6a7
Summary:        Compute `intelligent' differences between two files/lists
95e6a7
License:        GPL+ or Artistic
95e6a7
Group:          Development/Libraries
95e6a7
URL:            http://search.cpan.org/dist/Algorithm-Diff/
95e6a7
Source0:        http://www.cpan.org/authors/id/T/TY/TYEMQ/Algorithm-Diff-%{version}.tar.gz
95e6a7
Patch0:         Algorithm-Diff-1.1903-provides.patch
95e6a7
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
95e6a7
BuildArch:      noarch
95e6a7
# Build:
95e6a7
BuildRequires:  perl-interpreter
95e6a7
BuildRequires:  perl-generators
95e6a7
BuildRequires:  perl(ExtUtils::MakeMaker)
95e6a7
# Run-time:
95e6a7
BuildRequires:  perl(Carp)
95e6a7
BuildRequires:  perl(Exporter)
95e6a7
BuildRequires:  perl(integer)
95e6a7
BuildRequires:  perl(strict)
95e6a7
BuildRequires:  perl(vars)
95e6a7
# Tests:
95e6a7
BuildRequires:  perl(Data::Dumper)
95e6a7
BuildRequires:  perl(lib)
95e6a7
BuildRequires:  perl(Test)
95e6a7
# Explicit requirements:
95e6a7
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
95e6a7
Requires:       perl(Carp)
95e6a7
95e6a7
%description
95e6a7
This is a module for computing the difference between two files, two strings,
95e6a7
or any other two lists of things. It uses an intelligent algorithm similar to
95e6a7
(or identical to) the one used by the Unix "diff" program. It is guaranteed to
95e6a7
find the *smallest possible* set of differences.
95e6a7
95e6a7
%prep
95e6a7
%setup -q -n Algorithm-Diff-%{version}
95e6a7
95e6a7
# Generate provide for perl(Algorithm::DiffOld)
95e6a7
%patch0
95e6a7
95e6a7
%build
95e6a7
perl Makefile.PL INSTALLDIRS=vendor
95e6a7
make %{?_smp_mflags}
95e6a7
95e6a7
%install
95e6a7
rm -rf %{buildroot}
95e6a7
make pure_install DESTDIR=%{buildroot}
95e6a7
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
95e6a7
%{_fixperms} %{buildroot}
95e6a7
95e6a7
# Remove example scripts we're shipping as documentation
95e6a7
rm -f %{buildroot}%{perl_vendorlib}/Algorithm/*.pl
95e6a7
95e6a7
%check
95e6a7
make test
95e6a7
95e6a7
%clean
95e6a7
rm -rf %{buildroot}
95e6a7
95e6a7
%files
95e6a7
%doc Changes README *.pl
95e6a7
%{perl_vendorlib}/Algorithm/
95e6a7
%{_mandir}/man3/Algorithm::Diff.3*
95e6a7
%{_mandir}/man3/Algorithm::DiffOld.3*
95e6a7
95e6a7
%changelog
95e6a7
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1903-9
95e6a7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
95e6a7
95e6a7
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1903-8
95e6a7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
95e6a7
95e6a7
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.1903-7
95e6a7
- Perl 5.26 rebuild
95e6a7
95e6a7
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1903-6
95e6a7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
95e6a7
95e6a7
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.1903-5
95e6a7
- Perl 5.24 rebuild
95e6a7
95e6a7
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1903-4
95e6a7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
95e6a7
95e6a7
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1903-3
95e6a7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
95e6a7
95e6a7
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.1903-2
95e6a7
- Perl 5.22 rebuild
95e6a7
95e6a7
* Thu Nov 27 2014 Paul Howarth <paul@city-fan.org> - 1.1903-1
95e6a7
- Update to 1.1903
95e6a7
  - Fix documentation typos (CPAN RT#84981)
95e6a7
  - Add -w and -i switches to diffnew.pl (CPAN RT#69945)
95e6a7
  - Remove Algorithm::DiffOld from the index; the module is still distributed
95e6a7
    with Algorithm::Diff, but is not indexed on CPAN because this is an
95e6a7
    ***UNAUTHORIZED*** release of Algorithm::DiffOld
95e6a7
- Add patch to generate provide for perl(Algorithm::DiffOld)
95e6a7
- Drop %%defattr, redundant since rpm 4.4
95e6a7
- General spec tidy-up
95e6a7
95e6a7
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.1902-21
95e6a7
- Perl 5.20 rebuild
95e6a7
95e6a7
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1902-20
95e6a7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
95e6a7
95e6a7
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1902-19
95e6a7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
95e6a7
95e6a7
* Thu Jul 18 2013 Petr Pisar <ppisar@redhat.com> - 1.1902-18
95e6a7
- Perl 5.18 rebuild
95e6a7
95e6a7
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1902-17
95e6a7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
95e6a7
95e6a7
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1902-16
95e6a7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
95e6a7
95e6a7
* Mon Jun 11 2012 Petr Pisar <ppisar@redhat.com> - 1.1902-15
95e6a7
- Perl 5.16 rebuild
95e6a7
- Specify all dependencies
95e6a7
95e6a7
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1902-14
95e6a7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
95e6a7
95e6a7
* Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.1902-13
95e6a7
- Perl mass rebuild
95e6a7
95e6a7
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1902-12
95e6a7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
95e6a7
95e6a7
* Tue Dec 14 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.1902-11
95e6a7
- Rebuild to fix problems with vendorarch/lib (#661697)
95e6a7
95e6a7
* Thu Apr 29 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.1902-10
95e6a7
- Mass rebuild with perl-5.12.0
95e6a7
95e6a7
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 1.1902-9
95e6a7
- rebuild against perl 5.10.1
95e6a7
95e6a7
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1902-8
95e6a7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
95e6a7
95e6a7
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1902-7
95e6a7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
95e6a7
95e6a7
* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.1902-6
95e6a7
- Rebuild for perl 5.10 (again)
95e6a7
95e6a7
* Sun Jan 20 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.1902-5
95e6a7
- rebuild for new perl
95e6a7
95e6a7
* Thu Jan 10 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.1902-4
95e6a7
- fix license tag, rebuild for perl
95e6a7
95e6a7
* Wed Apr 18 2007 Steven Pritchard <steve@kspei.com> 1.1902-3
95e6a7
- Use fixperms macro instead of our own chmod incantation.
95e6a7
- BR ExtUtils::MakeMaker.
95e6a7
95e6a7
* Sun Sep 17 2006 Steven Pritchard <steve@kspei.com> 1.1902-2
95e6a7
- Rebuild.
95e6a7
95e6a7
* Sat Aug 05 2006 Steven Pritchard <steve@kspei.com> 1.1902-1
95e6a7
- Update to 1.1902.
95e6a7
- Minor spec cleanup to match current template/cpanspec output.
95e6a7
95e6a7
* Mon Sep 05 2005 Steven Pritchard <steve@kspei.com> 1.1901-1
95e6a7
- Updated to 1.1901.
95e6a7
95e6a7
* Sat Sep 03 2005 Steven Pritchard <steve@kspei.com> 1.15-2
95e6a7
- Move example files to %%doc.
95e6a7
95e6a7
* Sat Aug 27 2005 Steven Pritchard <steve@kspei.com> 1.15-1
95e6a7
- Specfile autogenerated.