Compare commits

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

5 commits

Author SHA1 Message Date
Fedora Release Engineering
1d5c4beab0 Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild 2026-07-16 18:38:27 +00:00
Python Maint
fb8682759f Rebuilt for Python 3.15 2026-06-03 20:39:04 +02:00
Benjamin A. Beasley
05d5e93e94 Use various long options 2026-05-21 10:58:57 +01:00
Benjamin A. Beasley
c9b6649086 Use long pyproject options 2026-05-11 06:57:08 +01:00
Benjamin A. Beasley
d50d1271ef Package from 6.0.0.post1 git tag now that we can
This is the exact same commit that we packaged as 6.0.0.post1 before.
2026-05-11 06:56:40 +01:00
3 changed files with 11 additions and 12 deletions

1
.gitignore vendored
View file

@ -7,3 +7,4 @@
/chardet-5.2.0-filtered.tar.zst
/chardet-6.0.0-filtered.tar.zst
/chardet-2fa72d84fdb9cb926eb1e7e40230a33b1dd81bb8-filtered.tar.zst
/chardet-6.0.0.post1-filtered.tar.zst

View file

@ -1,10 +1,4 @@
# Version 6.0.0 had __version__ = "6.0.0dev0" in chardet/version.py. A
# follow-up commit fixed this, updating the version to "6.0.0.post1", and was
# released on PyPI as 6.0.0.post1, but no corresponding tag was pushed to
# GitHub. We package from the commit; we don’t put snapshot information in the
# Version because we know that this commit does correspond to the 6.0.0.post1
# release.
%global commit 2fa72d84fdb9cb926eb1e7e40230a33b1dd81bb8
#global commit xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Name: python-chardet
Version: 6.0.0.post1
@ -26,14 +20,17 @@ URL: https://github.com/chardet/chardet
#
# problematic licensing of /tests?
# https://github.com/chardet/chardet/issues/231
# Source0: chardet-%%{version}-filtered.tar.zst
%if %{undefined commit}
Source0: chardet-%{version}-filtered.tar.zst
%else
Source0: chardet-%{commit}-filtered.tar.zst
%endif
Source1: get_source
# Hand-written for Fedora in groff_man(7) format based on --help output
Source2: chardetect.1
BuildSystem: pyproject
BuildOption(install): -l chardet
BuildSystem: pyproject
BuildOption(install): --assert-license chardet
BuildArch: noarch
@ -71,7 +68,8 @@ export SETUPTOOLS_SCM_PRETEND_VERSION='%{version}'
%install -a
install -t '%{buildroot}%{_mandir}/man1' -D -p -m 0644 '%{SOURCE2}'
install -D --preserve-timestamps --mode=0644 \
--target='%{buildroot}%{_mandir}/man1' '%{SOURCE2}'
# We cannot run the upstream tests because they would require data files with

View file

@ -1 +1 @@
SHA512 (chardet-2fa72d84fdb9cb926eb1e7e40230a33b1dd81bb8-filtered.tar.zst) = dffa8e57ea422d522458266fa02ac15220034e405bc8fb606211bb11755b57ff98b0b8031dc8827b76a1c06822d55803e3826a46df619d273a01b8e18202f2a9
SHA512 (chardet-6.0.0.post1-filtered.tar.zst) = 6d40f1f19006555d8e6f7f0bea4fa1b2af7350c376d8a767a44266e1a7a501cde0fcac5408ee2ef808b626b1261dc9af774ddfe783cdc18617d2767d09cecfa6