Compare commits

..

No commits in common. "rawhide" and "f44" have entirely different histories.

3 changed files with 12 additions and 11 deletions

1
.gitignore vendored
View file

@ -7,4 +7,3 @@
/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,4 +1,10 @@
#global commit xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# 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
Name: python-chardet
Version: 6.0.0.post1
@ -20,17 +26,14 @@ URL: https://github.com/chardet/chardet
#
# problematic licensing of /tests?
# https://github.com/chardet/chardet/issues/231
%if %{undefined commit}
Source0: chardet-%{version}-filtered.tar.zst
%else
# Source0: chardet-%%{version}-filtered.tar.zst
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): --assert-license chardet
BuildSystem: pyproject
BuildOption(install): -l chardet
BuildArch: noarch
@ -68,8 +71,7 @@ export SETUPTOOLS_SCM_PRETEND_VERSION='%{version}'
%install -a
install -D --preserve-timestamps --mode=0644 \
--target='%{buildroot}%{_mandir}/man1' '%{SOURCE2}'
install -t '%{buildroot}%{_mandir}/man1' -D -p -m 0644 '%{SOURCE2}'
# We cannot run the upstream tests because they would require data files with

View file

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