Update to 1.6

- New upstream release 1.6
  - Fixed confusing Changes entry about Perl's licensing terms (CPAN RT#132843)
  - Added optional Changes testing (skipped unless AUTHOR_TESTING)
  - Reformatted Changes file as per CPAN::Changes::Spec
  - Added optional POD coverage testing (skipped unless AUTHOR_TESTING)
  - Added optional Perl::Critic testing (skipped unless AUTHOR_TESTING)
  - Made code Perl::Critic clean
  - Added optional POD testing (skipped unless AUTHOR_TESTING)
  - Included GitHub repository URLs in metadata now that source code has been
    uploaded to GitHub (as of version 1.5)
  - Included META.json file in addition to META.yml
  - Set minimum required ExtUtils::MakeMaker version to 6.64 to ensure that all
    parameters used are supported, to save jumping through hoops to support
    earlier versions (this should not be a problem since ExtUtils::MakeMaker
    6.64 is easily installed into Perl 5.8.1 and above, that being the whole
    point of the new choice of minimum supported Perl version)
  - Set minimum required Perl version to 5.8.1; this is in line with the
    minimum requirement of the "Perl Toolchain"
  - Corrected typo in a comment (CPAN RT#86336)
- Use author-independent source URL
- Specify all build dependencies
- Drop redundant buildroot cleaning in %install section
- Simplify find command using -delete
- Fix permissions verbosely
- Package Artistic, Copying and LICENCE licence files
This commit is contained in:
Paul Howarth 2020-12-03 14:19:15 +00:00
parent a095cb3e90
commit c8d4b1f0cf
3 changed files with 44 additions and 11 deletions

View File

@ -0,0 +1,4 @@
from Config import *
addFilter("spelling-error %description -l en_US spooler -> ")
addFilter("spelling-error %description -l en_US instantiation -> ")

View File

@ -1,21 +1,23 @@
Name: perl-Class-Singleton
Version: 1.5
Release: 17%{?dist}
Version: 1.6
Release: 1%{?dist}
Summary: Implementation of a "Singleton" class
License: GPL+ or Artistic
URL: https://metacpan.org/release/Class-Singleton
Source0: https://cpan.metacpan.org/authors/id/S/SH/SHAY/Class-Singleton-%{version}.tar.gz
Source0: https://cpan.metacpan.org/modules/by-module/Class/Class-Singleton-%{version}.tar.gz
BuildArch: noarch
# Module Build
BuildRequires: perl-interpreter
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: make
BuildRequires: perl-generators
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl-interpreter
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.64
# Module Runtime
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
# Test Suite
BuildRequires: perl(base)
BuildRequires: perl(lib)
BuildRequires: perl(Test::More)
# Runtime
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
@ -38,20 +40,47 @@ perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make pure_install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
%{_fixperms} $RPM_BUILD_ROOT
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -delete
%{_fixperms} -c %{buildroot}
%check
make test
%files
%license Artistic Copying LICENCE
%doc Changes README
%{perl_vendorlib}/Class/
%{_mandir}/man3/Class::Singleton.3*
%changelog
* Thu Dec 3 2020 Paul Howarth <paul@city-fan.org> - 1.6-1
- Update to 1.6
- Fixed confusing Changes entry about Perl's licensing terms (CPAN RT#132843)
- Added optional Changes testing (skipped unless AUTHOR_TESTING)
- Reformatted Changes file as per CPAN::Changes::Spec
- Added optional POD coverage testing (skipped unless AUTHOR_TESTING)
- Added optional Perl::Critic testing (skipped unless AUTHOR_TESTING)
- Made code Perl::Critic clean
- Added optional POD testing (skipped unless AUTHOR_TESTING)
- Included GitHub repository URLs in metadata now that source code has been
uploaded to GitHub (as of version 1.5)
- Included META.json file in addition to META.yml
- Set minimum required ExtUtils::MakeMaker version to 6.64 to ensure that all
parameters used are supported, to save jumping through hoops to support
earlier versions (this should not be a problem since ExtUtils::MakeMaker
6.64 is easily installed into Perl 5.8.1 and above, that being the whole
point of the new choice of minimum supported Perl version)
- Set minimum required Perl version to 5.8.1; this is in line with the
minimum requirement of the "Perl Toolchain"
- Corrected typo in a comment (CPAN RT#86336)
- Use author-independent source URL
- Specify all build dependencies
- Drop redundant buildroot cleaning in %%install section
- Simplify find command using -delete
- Fix permissions verbosely
- Package Artistic, Copying and LICENCE licence files
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

View File

@ -1 +1 @@
6a2524f590eda075f4bc929598119241 Class-Singleton-1.5.tar.gz
SHA512 (Class-Singleton-1.6.tar.gz) = 68b637ba57d5da70ac8e7a8a5e1874481681d6a217bb0c58a232d4329c582f32d29b5ac4c60a131bc863c8faf2852c5249bced9d286e87fefe4960e95f35b1ec