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

Loading…
Cancel
Save