public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/perl-Razor-Agent] rawhide: 2.88 bump (rhbz#2450185)
@ 2026-07-09 5:38 Jitka Plesnikova
0 siblings, 0 replies; only message in thread
From: Jitka Plesnikova @ 2026-07-09 5:38 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/perl-Razor-Agent
Branch : rawhide
Commit : fe7f3caa9cb51d0ea3d948d4c3c63436046bb12f
Author : Jitka Plesnikova <jplesnik@redhat.com>
Date : 2026-07-08T16:35:26+02:00
Stats : +18/-237 in 4 file(s)
URL : https://src.fedoraproject.org/rpms/perl-Razor-Agent/c/fe7f3caa9cb51d0ea3d948d4c3c63436046bb12f?branch=rawhide
Log:
2.88 bump (rhbz#2450185)
---
diff --git a/perl-Razor-Agent-2.86-digest-sha.patch b/perl-Razor-Agent-2.86-digest-sha.patch
deleted file mode 100644
index 557a830..0000000
--- a/perl-Razor-Agent-2.86-digest-sha.patch
+++ /dev/null
@@ -1,199 +0,0 @@
-From 1a8dc0ea64c6bbe187babdb1079bc0cf05926e59 Mon Sep 17 00:00:00 2001
-From: Robert Scheck <robert@fedoraproject.org>
-Date: Fri, 10 Dec 2021 00:21:56 +0100
-Subject: [PATCH] Use Digest::SHA instead of Digest::SHA1
-
-Switch from Digest::SHA1 to Digest::SHA, because: Digest::SHA is a bit
-faster than Digest::SHA1, Digest::SHA1 has been removed from some Linux
-distributions, Digest::SHA is a core library (as of Perl >= 5.10.0) and
-Digest::SHA1 is not (and never will be). See also:
-
- - https://src.fedoraproject.org/rpms/perl-Razor-Agent/c/75fa8a6c1f1fdf779312dac68f331a288bd2920f?branch=rawhide
- - https://stackoverflow.com/questions/3420720/what-are-the-advantages-of-digestsha-over-digestsha1
-
-Original author: Warren Togami <wtogami@redhat.com>
----
- INSTALL | 2 +-
- META.json | 2 +-
- META.yml | 2 +-
- Makefile.PL | 2 +-
- lib/Razor2/Client/Engine.pm | 1 -
- lib/Razor2/Signature/Ephemeral.pm | 14 +++++++-------
- lib/Razor2/Signature/Whiplash.pm | 14 ++++++--------
- lib/Razor2/String.pm | 17 +++++++----------
- 8 files changed, 24 insertions(+), 30 deletions(-)
-
-diff --git a/INSTALL b/INSTALL
-index 2de1b42..1852ba0 100644
---- a/INSTALL
-+++ b/INSTALL
-@@ -25,7 +25,7 @@ option, like so:
- following Perl modules from CPAN:
-
- Time::HiRes
-- Digest::SHA1
-+ Digest::SHA
- MIME::Base64
- Test::Simple
- Test::Harness
-diff --git a/META.json b/META.json
-index f893748..e616292 100644
---- a/META.json
-+++ b/META.json
-@@ -33,7 +33,7 @@
- },
- "runtime" : {
- "requires" : {
-- "Digest::SHA1" : "0",
-+ "Digest::SHA" : "0",
- "File::Copy" : "0",
- "File::Spec" : "0",
- "Getopt::Long" : "0",
-diff --git a/META.yml b/META.yml
-index 4a0831c..314b0fc 100644
---- a/META.yml
-+++ b/META.yml
-@@ -19,7 +19,7 @@ no_index:
- - t
- - inc
- requires:
-- Digest::SHA1: '0'
-+ Digest::SHA: '0'
- File::Copy: '0'
- File::Spec: '0'
- Getopt::Long: '0'
-diff --git a/Makefile.PL b/Makefile.PL
-index 833d1dc..095f7e3 100644
---- a/Makefile.PL
-+++ b/Makefile.PL
-@@ -22,7 +22,7 @@ WriteMakefile(
- ( $ExtUtils::MakeMaker::VERSION >= 6.3002 ? ( 'LICENSE' => 'perl', ) : () ),
- EXE_FILES => [qw( bin/razor-client bin/razor-admin bin/razor-check bin/razor-report bin/razor-revoke )],
- PREREQ_PM => {
-- 'Digest::SHA1' => 0,
-+ 'Digest::SHA' => 0,
- 'File::Copy' => 0,
- 'File::Spec' => 0,
- 'Getopt::Long' => 0,
-diff --git a/lib/Razor2/Client/Engine.pm b/lib/Razor2/Client/Engine.pm
-index 98f2f44..f3610b4 100644
---- a/lib/Razor2/Client/Engine.pm
-+++ b/lib/Razor2/Client/Engine.pm
-@@ -1,7 +1,6 @@
- package Razor2::Client::Engine;
-
- use strict;
--use Digest::SHA1 qw(sha1_hex);
- use Data::Dumper;
- use Razor2::Signature::Ephemeral;
- use Razor2::Engine::VR8;
-diff --git a/lib/Razor2/Signature/Ephemeral.pm b/lib/Razor2/Signature/Ephemeral.pm
-index 4310b6c..6764e8e 100644
---- a/lib/Razor2/Signature/Ephemeral.pm
-+++ b/lib/Razor2/Signature/Ephemeral.pm
-@@ -2,9 +2,13 @@
-
- package Razor2::Signature::Ephemeral;
- use strict;
--use Digest::SHA1;
- use Data::Dumper;
-
-+BEGIN {
-+ eval { require Digest::SHA; import Digest::SHA qw(sha1_hex); 1 }
-+ or do { require Digest::SHA1; import Digest::SHA1 qw(sha1_hex) }
-+}
-+
- sub new {
-
- my ( $class, %args ) = @_;
-@@ -88,17 +92,13 @@ sub hexdigest {
- }
-
- my $digest;
-- my $ctx = Digest::SHA1->new;
-
- if ( $seclength > 128 ) {
-- $ctx->add($section1);
-- $ctx->add($section2);
-- $digest = $ctx->hexdigest;
-+ $digest = sha1_hex($section1, $section2);
- }
- else {
- debug("Sections too small... reverting back to orginal content.");
-- $ctx->add($content);
-- $digest = $ctx->hexdigest;
-+ $digest = sha1_hex($content);
- }
-
- debug("Computed e-hash is $digest");
-diff --git a/lib/Razor2/Signature/Whiplash.pm b/lib/Razor2/Signature/Whiplash.pm
-index 2977371..40ace61 100644
---- a/lib/Razor2/Signature/Whiplash.pm
-+++ b/lib/Razor2/Signature/Whiplash.pm
-@@ -7,7 +7,10 @@
-
- package Razor2::Signature::Whiplash;
-
--use Digest::SHA1;
-+BEGIN {
-+ eval { require Digest::SHA; import Digest::SHA qw(sha1_hex); 1 }
-+ or do { require Digest::SHA1; import Digest::SHA1 qw(sha1_hex) }
-+}
-
- sub new {
-
-@@ -682,13 +685,8 @@ sub whiplash {
- # the value of length to the nearest multiple of ``length_error''.
- # Take the first 20 hex chars from SHA1 and call it the signature.
-
-- my $sha1 = Digest::SHA1->new();
--
-- $sha1->add($host);
-- $sig = substr $sha1->hexdigest, 0, 12;
--
-- $sha1->add($corrected_length);
-- $sig .= substr $sha1->hexdigest, 0, 4;
-+ $sig = substr sha1_hex($host), 0, 12;
-+ $sig .= substr sha1_hex($corrected_length), 0, 4;
-
- push @sigs, $sig;
- $sig_meta{$sig} = [ $host, $corrected_length ];
-diff --git a/lib/Razor2/String.pm b/lib/Razor2/String.pm
-index dbcb903..b623917 100644
---- a/lib/Razor2/String.pm
-+++ b/lib/Razor2/String.pm
-@@ -1,11 +1,15 @@
- # $Id: String.pm,v 1.48 2005/06/13 21:09:59 vipul Exp $
- package Razor2::String;
-
--use Digest::SHA1 qw(sha1_hex);
- use URI::Escape;
- use Razor2::Preproc::enBase64;
- use Data::Dumper;
-
-+BEGIN {
-+ eval { require Digest::SHA; import Digest::SHA qw(sha1_hex); 1 }
-+ or do { require Digest::SHA1; import Digest::SHA1 qw(sha1_hex) }
-+}
-+
- #use MIME::Parser;
-
- require Exporter;
-@@ -65,15 +69,8 @@ sub hmac2_sha1 {
- return unless $text && $iv1 && $iv2;
- die "no ref's allowed" if ref($text);
-
-- my $ctx = Digest::SHA1->new;
-- $ctx->add($iv2);
-- $ctx->add($text);
-- my $digest = $ctx->hexdigest;
--
-- $ctx = Digest::SHA1->new;
-- $ctx->add($iv1);
-- $ctx->add($digest);
-- $digest = $ctx->hexdigest;
-+ my $digest = sha1_hex($iv2, $text);
-+ $digest = sha1_hex($iv1, $digest);
-
- return ( hextobase64($digest), $digest );
- }
diff --git a/perl-Razor-Agent-2.86-parallel-make.patch b/perl-Razor-Agent-2.86-parallel-make.patch
deleted file mode 100644
index b80b275..0000000
--- a/perl-Razor-Agent-2.86-parallel-make.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-From 033b00e94741550ef3ef087d9903742ac881a7ba Mon Sep 17 00:00:00 2001
-From: Robert Scheck <robert@fedoraproject.org>
-Date: Thu, 9 Dec 2021 03:10:51 +0100
-Subject: [PATCH] Unbreak builds with parallel make at manifypods-razor
-
-The 'manifypods-razor' target depends on INST_MAN5DIR which gets
-created by the 'config' target. Without this, there may problems
-building with parallel make. See also:
-
- - https://sourceforge.net/p/razor/bugs/67/
- - https://bugzilla.redhat.com/show_bug.cgi?id=1379566
-
-Original author: Klaus Heinz <https://sourceforge.net/u/kheinz/>
----
- Makefile.PL | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/Makefile.PL b/Makefile.PL
-index 833d1dc..bcfbee3 100644
---- a/Makefile.PL
-+++ b/Makefile.PL
-@@ -131,7 +131,8 @@ MAKE_FRAG
- # begin razor-agents
- %s
-
--manifypods-razor : docs/razor-agent.conf.pod \
-+manifypods-razor : config \
-+ docs/razor-agent.conf.pod \
- docs/razor-agents.pod \
- docs/razor-whitelist.pod
- $(POD2MAN) \
diff --git a/perl-Razor-Agent.spec b/perl-Razor-Agent.spec
index 87b6f7d..3888b40 100644
--- a/perl-Razor-Agent.spec
+++ b/perl-Razor-Agent.spec
@@ -5,13 +5,11 @@
Summary: Collaborative, content-based spam filtering network agent
Name: perl-Razor-Agent
-Version: 2.86
-Release: 16%{?dist}
+Version: 2.88
+Release: 1%{?dist}
License: Artistic-2.0
URL: https://metacpan.org/release/%{pkgname}
Source0: https://cpan.metacpan.org/authors/id/T/TO/TODDR/%{pkgname}-%{version}.tar.gz
-Patch0: https://github.com/toddr/Razor2-Client-Agent/commit/033b00e94741550ef3ef087d9903742ac881a7ba.patch#/perl-Razor-Agent-2.86-parallel-make.patch
-Patch1: https://github.com/toddr/Razor2-Client-Agent/commit/1a8dc0ea64c6bbe187babdb1079bc0cf05926e59.patch#/perl-Razor-Agent-2.86-digest-sha.patch
Requires: perl(Digest::SHA)
BuildRequires: coreutils
BuildRequires: findutils
@@ -20,12 +18,19 @@ BuildRequires: make
BuildRequires: perl-devel
BuildRequires: perl-generators
BuildRequires: perl-interpreter
-BuildRequires: perl(AutoLoader)
BuildRequires: perl(Config)
BuildRequires: perl(Digest::SHA)
BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker)
+BuildRequires: perl(Fcntl)
+BuildRequires: perl(File::Temp)
+BuildRequires: perl(IO::Socket::IP)
+BuildRequires: perl(parent)
BuildRequires: perl(strict)
+BuildRequires: perl(Sys::Syslog)
+BuildRequires: perl(warnings)
+# Tests
+BuildRequires: perl(File::Spec)
BuildRequires: perl(Test::More)
BuildRequires: perl(Time::HiRes)
BuildRequires: perl(URI::Escape)
@@ -65,7 +70,7 @@ make test
%files
%license LICENSE
-%doc BUGS Changes CREDITS FAQ README.md SERVICE_POLICY
+%doc BUGS Changes CONTRIBUTING.md CREDITS FAQ README.md SECURITY.md SERVICE_POLICY
%{_bindir}/razor-admin
%{_bindir}/razor-check
%{_bindir}/razor-client
@@ -77,6 +82,9 @@ make test
%{_mandir}/man1/razor-check.1*
%{_mandir}/man1/razor-report.1*
%{_mandir}/man1/razor-revoke.1*
+%{_mandir}/man3/Razor2::Client::Agent.3pm*
+%{_mandir}/man3/Razor2::Client::Config.3pm*
+%{_mandir}/man3/Razor2::Client::Core.3pm*
%{_mandir}/man3/Razor2::Errorhandler.3pm*
%{_mandir}/man3/Razor2::Preproc::deHTMLxs.3pm*
%{_mandir}/man3/Razor2::Syslog.3pm*
@@ -85,6 +93,9 @@ make test
%{_mandir}/man5/razor-whitelist.5*
%changelog
+* Wed Jul 08 2026 Jitka Plesnikova <jplesnik@redhat.com> - 2.88-1
+- 2.88 bump (rhbz#2450185)
+
* Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 2.86-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
diff --git a/sources b/sources
index 77409fd..2bdef29 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (Razor2-Client-Agent-2.86.tar.gz) = 590ff469b41df46b7bbbd7b2bf2d8d243a61aeb49890fa8be9d3bad3413c8f4064c1c455d8e8e924fc6f50181c402fccd214222cdf050e88f4dd3285b4761e88
+SHA512 (Razor2-Client-Agent-2.88.tar.gz) = 00727845c2a94a251c5eb9a002597c235c66ffd44d7dbe636db2ee8fa3a419e8093bed0f350d1498e54a8f6f7583fd4a3337aebaea4a4a6044bc65e39e2d699d
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-09 5:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-09 5:38 [rpms/perl-Razor-Agent] rawhide: 2.88 bump (rhbz#2450185) Jitka Plesnikova
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox