Compare commits

...
Sign in to create a new pull request.

4 commits

Author SHA1 Message Date
Benjamin A. Beasley
33616ead2e Correct License to LGPL-2.1-or-later 2026-02-22 10:54:42 +00:00
Benjamin A. Beasley
b2d3b9d65a Improve the man page: complete SYNOPSIS, better formatting 2026-02-22 08:09:26 +00:00
Benjamin A. Beasley
bf115efe89 Remove Obsoletes for Fedora-only upgrade path 2026-02-22 08:09:17 +00:00
Benjamin A. Beasley
29d8b20693 Update .rpmlintrc file for current rpmlint 2026-02-22 08:08:48 +00:00
3 changed files with 11 additions and 9 deletions

View file

@ -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.

View file

@ -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 ")

View file

@ -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):
#
@ -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}