Spec tidy-up
- Use author-independent source URL - Specify all build requirements - Simplify find command using -delete
This commit is contained in:
parent
15761d9421
commit
88f3a38565
3
perl-Test-RequiresInternet.rpmlintrc
Normal file
3
perl-Test-RequiresInternet.rpmlintrc
Normal file
@ -0,0 +1,3 @@
|
||||
from Config import *
|
||||
|
||||
addFilter("spelling-error %description -l en_US (getservbyname|ldap|www)")
|
||||
@ -1,14 +1,17 @@
|
||||
Name: perl-Test-RequiresInternet
|
||||
Version: 0.05
|
||||
Release: 14%{?dist}
|
||||
Release: 15%{?dist}
|
||||
Summary: Easily test network connectivity
|
||||
License: GPL+ or Artistic
|
||||
URL: https://metacpan.org/release/Test-RequiresInternet
|
||||
Source0: https://cpan.metacpan.org/authors/id/M/MA/MALLEN/Test-RequiresInternet-%{version}.tar.gz
|
||||
Source0: https://cpan.metacpan.org/modules/by-module/Test/Test-RequiresInternet-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
# Build
|
||||
BuildRequires: perl-interpreter
|
||||
BuildRequires: coreutils
|
||||
BuildRequires: findutils
|
||||
BuildRequires: make
|
||||
BuildRequires: perl-generators
|
||||
BuildRequires: perl-interpreter
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
# Module
|
||||
BuildRequires: perl(Socket)
|
||||
@ -45,8 +48,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
|
||||
@ -62,6 +65,12 @@ make test
|
||||
%{_mandir}/man3/Test::RequiresInternet.3*
|
||||
|
||||
%changelog
|
||||
* Sat Sep 28 2019 Paul Howarth <paul@city-fan.org> - 0.05-15
|
||||
- Spec tidy-up
|
||||
- Use author-independent source URL
|
||||
- Specify all build requirements
|
||||
- Simplify find command using -delete
|
||||
|
||||
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.05-14
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user