@ -1,19 +1,30 @@
Name: perl-UNIVERSAL-can
Name: perl-UNIVERSAL-can
Version: 1.20140328
Version: 1.20140328
Release: 14 %{?dist}
Release: 15 %{?dist}
Summary: Hack around people calling UNIVERSAL::can() as a function
Summary: Hack around people calling UNIVERSAL::can() as a function
License: GPL+ or Artistic
License: GPL+ or Artistic
URL: https://metacpan.org/release/UNIVERSAL-can
URL: https://metacpan.org/release/UNIVERSAL-can
Source0: https://cpan.metacpan.org/authors/id/C/CH/CHROMATIC /UNIVERSAL-can-%{version}.tar.gz
Source0: https://cpan.metacpan.org/modules/by-module/UNIVERSAL /UNIVERSAL-can-%{version}.tar.gz
BuildArch: noarch
BuildArch: noarch
# Build:
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: make
BuildRequires: perl-generators
BuildRequires: perl-generators
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl-interpreter
BuildRequires: perl(Test::Simple) >= 0.60
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30
BuildRequires: perl(Test::Pod) >= 1.14
# Module:
BuildRequires: perl(Test::Pod::Coverage) >= 1.04
BuildRequires: perl(Scalar::Util)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
BuildRequires: perl(strict)
BuildRequires: perl(vars)
%{?perl_default_filter}
BuildRequires: perl(warnings)
BuildRequires: perl(warnings::register)
# Test Suite:
BuildRequires: perl(lib)
BuildRequires: perl(overload)
BuildRequires: perl(Test::More)
# Dependencies:
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%description
%description
The UNIVERSAL class provides a few default methods so that all objects
The UNIVERSAL class provides a few default methods so that all objects
@ -34,19 +45,29 @@ make %{?_smp_mflags}
%install
%install
make pure_install DESTDIR=%{buildroot}
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -type f -name .packlist -delete
find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null
%{_fixperms} -c %{buildroot}
%{_fixperms} %{buildroot}
%check
%check
PERL_RUN_ALL_TESTS=1 make test
make test
%files
%files
%license LICENSE
%doc Changes README
%doc Changes README
%{perl_vendorlib}/UNIVERSAL/
%{perl_vendorlib}/UNIVERSAL/
%{_mandir}/man3/* .3*
%{_mandir}/man3/UNIVERSAL::can .3*
%changelog
%changelog
* Sun Oct 13 2019 Paul Howarth <paul@city-fan.org> - 1.20140328-15
- Spec tidy-up
- Use author-independent source URL
- Classify buildreqs by usage
- Simplify find command using -delete
- Don't need to remove empty directories from the buildroot
- Fix permissions verbosely
- Package LICENSE file
- Make %%files list more explicit
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.20140328-14
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.20140328-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild