Spec tidy-up

- Use author-independent source URL
- Specify all build dependencies
- Simplify find command using -delete
- Fix permissions verbosely
This commit is contained in:
Paul Howarth 2021-01-11 14:53:56 +00:00
parent a7cf8f2de1
commit 0152d7bd69

View File

@ -6,16 +6,18 @@
Name: perl-IO-Socket-INET6
Version: 2.72
Release: 20%{?dist}
Release: 21%{?dist}
Summary: Perl Object interface for AF_INET|AF_INET6 domain sockets
License: GPL+ or Artistic
URL: https://metacpan.org/release/IO-Socket-INET6
Source0: https://cpan.metacpan.org/authors/id/S/SH/SHLOMIF/IO-Socket-INET6-%{version}.tar.gz
Source0: https://cpan.metacpan.org/modules/by-module/IO/IO-Socket-INET6-%{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)
@ -51,8 +53,8 @@ make %{?_smp_mflags}
%install
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
@ -64,6 +66,13 @@ make test
%{_mandir}/man3/IO::Socket::INET6.3*
%changelog
* Mon Jan 11 2021 Paul Howarth <paul@city-fan.org> - 2.72-21
- Spec tidy-up
- Use author-independent source URL
- Specify all build dependencies
- Simplify find command using -delete
- Fix permissions verbosely
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.72-20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild