Spec tidy-up

- Use author-independent source URL
- 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 2021-01-08 13:36:59 +00:00
parent 1912579f57
commit f06412a6d9

View File

@ -1,15 +1,17 @@
Summary: Manage IO on many file handles
Name: perl-IO-Multiplex
Version: 1.16
Release: 17%{?dist}
Release: 18%{?dist}
License: GPL+ or Artistic
URL: https://metacpan.org/release/IO-Multiplex
Source0: https://cpan.metacpan.org/authors/id/B/BB/BBB/IO-Multiplex-%{version}.tar.gz
Source0: https://cpan.metacpan.org/modules/by-module/IO/IO-Multiplex-%{version}.tar.gz
BuildArch: noarch
# Module Build
BuildRequires: make
BuildRequires: perl-interpreter
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: make
BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(ExtUtils::MakeMaker)
# Module Runtime
BuildRequires: perl(Carp)
@ -46,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}
%check
make test
@ -60,6 +61,14 @@ make test
%{_mandir}/man3/IO::Multiplex.3*
%changelog
* Fri Jan 8 2021 Paul Howarth <paul@city-fan.org> - 1.16-18
- Spec tidy-up
- Use author-independent source URL
- 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.16-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild