public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/perl-WWW-RobotRules] rawhide: Move DB_File.pm to subpackage
Date: Tue, 09 Jun 2026 15:32:46 GMT [thread overview]
Message-ID: <178101916695.1.7834849329640416043.rpms-perl-WWW-RobotRules-030bcb623152@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/perl-WWW-RobotRules
Branch : rawhide
Commit : 030bcb623152c61a8a3e3f420417de231ec54480
Author : Michal Josef Špaček <mspacek@redhat.com>
Date : 2026-06-09T17:11:39+02:00
Stats : +28/-0 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/perl-WWW-RobotRules/c/030bcb623152c61a8a3e3f420417de231ec54480?branch=rawhide
Log:
Move DB_File.pm to subpackage
---
diff --git a/perl-WWW-RobotRules.spec b/perl-WWW-RobotRules.spec
index 4e41e84..cb46102 100644
--- a/perl-WWW-RobotRules.spec
+++ b/perl-WWW-RobotRules.spec
@@ -1,3 +1,5 @@
+%bcond perl_WWW_RobotRules_enables_DB_File %{undefined rhel}
+
Name: perl-WWW-RobotRules
Version: 6.03
Release: 2%{?dist}
@@ -16,6 +18,9 @@ BuildRequires: perl(strict)
# Run-time:
BuildRequires: perl(AnyDBM_File)
BuildRequires: perl(Carp)
+%if %{with perl_WWW_RobotRules_enables_DB_File}
+BuildRequires: perl(DB_File)
+%endif
BuildRequires: perl(Fcntl)
BuildRequires: perl(URI) >= 1.10
BuildRequires: perl(vars)
@@ -27,6 +32,9 @@ BuildRequires: perl(Test::More)
# URI::URL not used
Requires: perl(URI) >= 1.10
Conflicts: perl-libwww-perl < 6
+%if %{with perl_WWW_RobotRules_enables_DB_File}
+Suggests: perl(WWW::RobotRules::DB_File)
+%endif
# Remove underspecified dependencies
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(URI\\)$
@@ -39,6 +47,16 @@ Exclusion", at <https://www.robotstxt.org/robotstxt.html>. Webmasters can
use the /robots.txt file to forbid conforming robots from accessing parts
of their web site.
+%if %{with perl_WWW_RobotRules_enables_DB_File}
+%package DB_File
+Summary: Parse robots.txt files using a disk cache
+Conflicts: perl-WWW-RobotRules < 6.03-2
+
+%description DB_File
+This is a subclass of WWW::RobotRules that uses the DB_File package to
+implement disk caching of robots.txt.
+%endif
+
%package tests
Summary: Tests for %{name}
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
@@ -87,9 +105,18 @@ make test
%files
%doc Changes
%license LICENSE
+%exclude %{perl_vendorlib}/WWW/RobotRules/DB_File.pm
%{perl_vendorlib}/*
+%exclude %{_mandir}/man3/WWW::RobotRules::DB_File.3*
%{_mandir}/man3/*
+%if %{with perl_WWW_RobotRules_enables_DB_File}
+%files DB_File
+%license LICENSE
+%{perl_vendorlib}/WWW/RobotRules/DB_File.pm
+%{_mandir}/man3/WWW::RobotRules::DB_File.3*
+%endif
+
%files tests
%{_libexecdir}/%{name}
@@ -97,6 +124,7 @@ make test
* Tue Jun 09 2026 Michal Josef Špaček <mspacek@redhat.com> - 6.03-2
- Fix BuildRequires
- Fix Source0
+- Move DB_File.pm to subpackage
* Tue Jun 02 2026 Michal Josef Špaček <mspacek@redhat.com> - 6.03-1
- 6.03 bump
reply other threads:[~2026-06-09 15:32 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178101916695.1.7834849329640416043.rpms-perl-WWW-RobotRules-030bcb623152@fedoraproject.org \
--to=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox