From 29d8b20693896a14356789dda917d96b0b04471e Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Sat, 3 May 2025 08:01:53 -0400 Subject: [PATCH 1/4] Update .rpmlintrc file for current rpmlint --- python-chardet.rpmlintrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python-chardet.rpmlintrc b/python-chardet.rpmlintrc index d5d9c0f..39210e7 100644 --- a/python-chardet.rpmlintrc +++ b/python-chardet.rpmlintrc @@ -6,3 +6,6 @@ addFilter(r" invalid-url Source[0-9]+: chardet-.*-filtered\.tar\.zst") addFilter(r" inconsistent-file-extension chardet-.*-filtered\.tar\.zst$") # The -doc subpackage was removed without an equivalent replacement. addFilter(r" obsolete-not-provided python-chardet-doc$") +# Update LGPLv2.1 license text and notices for remote-only FSF +# https://github.com/chardet/chardet/pull/307 +addFilter(r" incorrect-fsf-address ") From bf115efe89ef1b06dfc174be68ca264e1d5908fb Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Sun, 22 Feb 2026 08:09:17 +0000 Subject: [PATCH 2/4] Remove Obsoletes for Fedora-only upgrade path --- python-chardet.spec | 3 --- 1 file changed, 3 deletions(-) diff --git a/python-chardet.spec b/python-chardet.spec index 32cf21b..77d07f7 100644 --- a/python-chardet.spec +++ b/python-chardet.spec @@ -52,9 +52,6 @@ disabled.} %package -n python3-chardet Summary: %{summary} -# Removed in F41: -Obsoletes: python-chardet-doc < 5.2.0-12 - %description -n python3-chardet %{common_description} From b2d3b9d65aa81fbb4606780854a658d4f51dd2ad Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Sun, 22 Feb 2026 07:20:31 +0000 Subject: [PATCH 3/4] Improve the man page: complete SYNOPSIS, better formatting --- chardetect.1 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/chardetect.1 b/chardetect.1 index f6f0ff2..5bed48e 100644 --- a/chardetect.1 +++ b/chardetect.1 @@ -1,10 +1,12 @@ -.TH CHARDETECT "1" "June 2022" "" "User Commands" +.TH CHARDETECT "1" "February 2026" "" "User Commands" .SH NAME .B chardetect \(en takes one or more file paths and reports their detected encodings .SH SYNOPSIS .B chardetect .RB [ \-h ] +.RB [ \-\-minimal ] +.RB [ \-l ] .RB [ \-\-version ] .RI [ input \ ...] .SH OPTIONS @@ -17,13 +19,13 @@ File whose encoding we would like to determine. .SS "OPTIONAL ARGUMENTS" .TP .B \-h\fR, \fB\-\-help -show a help message and exit +Show a help message and exit. .TP .B \-\-minimal -Print only the encoding to standard output +Print only the encoding to standard output. .TP .B \-l\fR, \fB\-\-legacy Rename legacy encodings to more modern ones. .TP .B \-\-version -show program\(cqs version number and exit +Show program\(cqs version number and exit. From 33616ead2eb94f75be003dfad498519574300020 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Sun, 22 Feb 2026 08:53:36 +0000 Subject: [PATCH 4/4] Correct License to LGPL-2.1-or-later --- python-chardet.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python-chardet.spec b/python-chardet.spec index 77d07f7..0f4fd1a 100644 --- a/python-chardet.spec +++ b/python-chardet.spec @@ -3,9 +3,9 @@ Version: 5.2.0 Release: %autorelease Summary: Python character encoding detector -# The entire source, after tests/ are filtered, is LGPL-2.0-or-later. See the +# The entire source, after tests/ are filtered, is LGPL-2.1-or-later. See the # comment above Source0 for more details on tests/. -License: LGPL-2.0-or-later +License: LGPL-2.1-or-later URL: https://github.com/chardet/chardet # A filtered source tarball, obtained by (see Source1): #