Update to 1.200

- New upstream release 1.200
  - New release with no new features, just preparing for a series of bugfix
    releases
- Specify all build dependencies
- Drop redundant buildroot cleaning in %install section
- Simplify find command using -delete
- Fix permissions verbosely
This commit is contained in:
Paul Howarth 2020-09-28 08:57:28 +01:00
parent 3d22ff9f07
commit bf7d20d6ae
2 changed files with 24 additions and 10 deletions

View File

@ -1,15 +1,21 @@
%global upstream_version 1.200
%global extra_version 0
Name: perl-Algorithm-Diff
Version: 1.1903
Release: 17%{?dist}
Summary: Compute `intelligent' differences between two files/lists
Version: %{upstream_version}%{?extra_version}
Release: 1%{?dist}
Summary: Compute 'intelligent' differences between two files/lists
License: GPL+ or Artistic
URL: https://metacpan.org/release/Algorithm-Diff
Source0: https://cpan.metacpan.org/authors/id/T/TY/TYEMQ/Algorithm-Diff-%{version}.tar.gz
Source0: https://cpan.metacpan.org/modules/by-module/Algorithm/Algorithm-Diff-%{upstream_version}.tar.gz
Patch0: Algorithm-Diff-1.1903-provides.patch
BuildArch: noarch
# Build:
BuildRequires: perl-interpreter
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: make
BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(ExtUtils::MakeMaker)
# Run-time:
BuildRequires: perl(Carp)
@ -32,7 +38,7 @@ or any other two lists of things. It uses an intelligent algorithm similar to
find the *smallest possible* set of differences.
%prep
%setup -q -n Algorithm-Diff-%{version}
%setup -q -n Algorithm-Diff-%{upstream_version}
# Generate provide for perl(Algorithm::DiffOld)
%patch0
@ -42,10 +48,9 @@ perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
%{_fixperms} %{buildroot}
find %{buildroot} -type f -name .packlist -delete
%{_fixperms} -c %{buildroot}
# Remove example scripts we're shipping as documentation
rm -f %{buildroot}%{perl_vendorlib}/Algorithm/*.pl
@ -60,6 +65,15 @@ make test
%{_mandir}/man3/Algorithm::DiffOld.3*
%changelog
* Mon Sep 28 2020 Paul Howarth <paul@city-fan.org> - 1.2000-1
- Update to 1.200
- New release with no new features, just preparing for a series of bugfix
releases
- Specify all build dependencies
- Drop redundant buildroot cleaning in %%install section
- Simplify find command using -delete
- Fix permissions verbosely
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1903-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

View File

@ -1 +1 @@
0e8add21a641b8d66436df0c2024bf3b Algorithm-Diff-1.1903.tar.gz
SHA512 (Algorithm-Diff-1.200.tar.gz) = ce94d3d11506e8050cf4ae439abfd9da1ece09819c97ac1fba0022dfe4f7eb79a0cae2a380eeacd4d0526c6309ea5582d5ea9903b4df72a1652827309496b39d