Spec tidy-up

- Modernize spec using %{make_build} and %{make_install}
- Use author-independent source URL
- Make %files list more explicit
epel9 imports/e9/perl-Test-Memory-Cycle-1.06-13.el9
Paul Howarth 5 years ago
parent 8716b2aa22
commit 3faaf5ab3a

@ -1,21 +1,22 @@
Name: perl-Test-Memory-Cycle
Version: 1.06
Release: 12%{?dist}
Release: 13%{?dist}
Summary: Check for memory leaks and circular memory references
License: Artistic 2.0
URL: https://metacpan.org/release/Test-Memory-Cycle
Source0: https://cpan.metacpan.org/authors/id/P/PE/PETDANCE/Test-Memory-Cycle-%{version}.tar.gz
Source0: https://cpan.metacpan.org/modules/by-module/Test/Test-Memory-Cycle-%{version}.tar.gz
BuildArch: noarch
# Build
BuildRequires: coreutils
BuildRequires: make
BuildRequires: perl-interpreter
BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
# Runtime
BuildRequires: perl(Devel::Cycle) >= 1.07
BuildRequires: perl(strict)
BuildRequires: perl(Test::Builder)
BuildRequires: perl(warnings)
# Tests only
BuildRequires: perl(Getopt::Long)
BuildRequires: perl(lib)
@ -25,6 +26,7 @@ BuildRequires: perl(Test::More)
# Optional tests only
BuildRequires: perl(Test::Pod) >= 1.14
BuildRequires: perl(Test::Pod::Coverage) >= 1.04
# Dependencies
Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
Requires: perl(Devel::Cycle) >= 1.07
@ -34,6 +36,7 @@ Requires: perl(Devel::Cycle) >= 1.07
Perl's garbage collection has one big problem: Circular references
can't get cleaned up. A circular reference can be as simple as two
objects that refer to each other.
"Test::Memory::Cycle" is built on top of "Devel::Cycle" to give you an
easy way to check for these circular references.
@ -41,12 +44,12 @@ easy way to check for these circular references.
%setup -q -n Test-Memory-Cycle-%{version}
%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
make %{?_smp_mflags}
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}
%install
make pure_install DESTDIR=%{buildroot}
%{_fixperms} %{buildroot}/*
%{make_install}
%{_fixperms} -c %{buildroot}
%check
make test
@ -54,10 +57,15 @@ make test
%files
%license LICENSE
%doc Changes README.md
%{perl_vendorlib}/*
%{_mandir}/man3/*
%{perl_vendorlib}/Test/
%{_mandir}/man3/Test::Memory::Cycle.3*
%changelog
* Thu Sep 5 2019 Paul Howarth <paul@city-fan.org> - 1.06-13
- Modernize spec using %%{make_build} and %%{make_install}
- Use author-independent source URL
- Make %%files list more explicit
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.06-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

Loading…
Cancel
Save