diff --git a/.rpmlint b/.rpmlint deleted file mode 100644 index 0649c47..0000000 --- a/.rpmlint +++ /dev/null @@ -1,2 +0,0 @@ -from Config import * -addFilter("spelling-error .* (html|http|norobots|robotstxt|txt|wc)"); diff --git a/perl-WWW-RobotRules.rpmlintrc b/perl-WWW-RobotRules.rpmlintrc new file mode 100644 index 0000000..82766a0 --- /dev/null +++ b/perl-WWW-RobotRules.rpmlintrc @@ -0,0 +1,2 @@ +from Config import * +addFilter("spelling-error .* (html|http|robotstxt|txt|wc)"); diff --git a/perl-WWW-RobotRules.spec b/perl-WWW-RobotRules.spec index 5f2310a..6000149 100644 --- a/perl-WWW-RobotRules.spec +++ b/perl-WWW-RobotRules.spec @@ -1,18 +1,28 @@ Name: perl-WWW-RobotRules Version: 6.02 -Release: 26%{?dist} +Release: 27%{?dist} Summary: Database of robots.txt-derived permissions License: GPL+ or Artistic URL: https://metacpan.org/release/WWW-RobotRules Source0: https://cpan.metacpan.org/authors/id/G/GA/GAAS/WWW-RobotRules-%{version}.tar.gz BuildArch: noarch +BuildRequires: coreutils +BuildRequires: make BuildRequires: perl-generators +BuildRequires: perl-interpreter +BuildRequires: perl(:VERSION) >= 5.8.1 +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +BuildRequires: perl(strict) +# Run-time: BuildRequires: perl(AnyDBM_File) BuildRequires: perl(Carp) -BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Fcntl) BuildRequires: perl(URI) >= 1.10 -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +BuildRequires: perl(vars) +# Tests: +# LWP::RobotUA not used +# URI::URL not used +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(URI) >= 1.10 Conflicts: perl-libwww-perl < 6 @@ -23,7 +33,7 @@ Conflicts: perl-libwww-perl < 6 %description This module parses /robots.txt files as specified in "A Standard for Robot -Exclusion", at . Webmasters can +Exclusion", at . Webmasters can use the /robots.txt file to forbid conforming robots from accessing parts of their web site. @@ -31,13 +41,11 @@ of their web site. %setup -q -n WWW-RobotRules-%{version} %build -%{__perl} Makefile.PL INSTALLDIRS=vendor -make %{?_smp_mflags} +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 +%{make_build} %install -make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT -find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; -find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; +%{make_install} %{_fixperms} $RPM_BUILD_ROOT/* %check @@ -49,6 +57,9 @@ make test %{_mandir}/man3/* %changelog +* Fri Jan 15 2021 Petr Pisar - 6.02-27 +- Modernize a spec file + * Tue Jul 28 2020 Fedora Release Engineering - 6.02-26 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild