Compare commits

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

6 commits

Author SHA1 Message Date
Python Maint
17642dfc17 Rebuilt for Python 3.14.0rc3 bytecode 2025-09-19 12:58:27 +02:00
Python Maint
2683a63371 Rebuilt for Python 3.14.0rc2 bytecode 2025-08-15 13:54:11 +02:00
Fedora Release Engineering
74eeca0894 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 07:09:54 +00:00
Python Maint
1b67fcd42b Rebuilt for Python 3.14 2025-06-02 20:12:11 +02:00
Benjamin A. Beasley
f3975537e1 F41+: Use the provisional pyproject declarative buildsystem 2025-05-03 08:03:22 -04:00
Benjamin A. Beasley
09b953d845 Update .rpmlintrc file for current rpmlint 2025-05-03 08:01:53 -04:00
2 changed files with 7 additions and 19 deletions

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

@ -21,9 +21,10 @@ Source1: get_source
# Hand-written for Fedora in groff_man(7) format based on --help output
Source2: chardetect.1
BuildArch: noarch
BuildSystem: pyproject
BuildOption(install): -l chardet
BuildRequires: python3-devel
BuildArch: noarch
%global common_description %{expand:
Chardet: The Universal Character Encoding Detector
@ -59,28 +60,12 @@ Obsoletes: python-chardet-doc < 5.2.0-12
%{common_description}
%prep
%autosetup -n chardet-%{version}
%generate_buildrequires
%pyproject_buildrequires
%build
%pyproject_wheel
%install
%pyproject_install
%pyproject_save_files -l chardet
%install -a
install -t '%{buildroot}%{_mandir}/man1' -D -p -m 0644 '%{SOURCE2}'
%check
# We cannot run the upstream tests because they would require data files with
# problematic license status.
%pyproject_check_import
%files -n python3-chardet -f %{pyproject_files}