From ffeba8241ae8d9c85892967dd47d2c0ccdaec0d1 Mon Sep 17 00:00:00 2001 From: DistroBaker Date: Fri, 15 Jan 2021 13:15:55 +0000 Subject: [PATCH] Merged update from upstream sources This is an automated DistroBaker update from upstream sources. If you do not know what this is about or would like to opt out, contact the OSCI team. Source: https://src.fedoraproject.org/rpms/perl-WWW-RobotRules.git#055cb4a7e897b0424855804b4065937cf28dc9a0 --- .rpmlint | 2 -- perl-WWW-RobotRules.rpmlintrc | 2 ++ perl-WWW-RobotRules.spec | 29 ++++++++++++++++++++--------- 3 files changed, 22 insertions(+), 11 deletions(-) delete mode 100644 .rpmlint create mode 100644 perl-WWW-RobotRules.rpmlintrc 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