public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/perl-WWW-RobotRules] rawhide: Move DB_File.pm to subpackage
@ 2026-06-09 15:32 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-06-09 15:32 UTC (permalink / raw)
  To: git-commits

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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-09 15:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-09 15:32 [rpms/perl-WWW-RobotRules] rawhide: Move DB_File.pm to subpackage 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox