Compare commits
5 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1d5c4beab0 | ||
|
|
fb8682759f | ||
|
|
05d5e93e94 | ||
|
|
c9b6649086 | ||
|
|
d50d1271ef |
3 changed files with 11 additions and 12 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (chardet-2fa72d84fdb9cb926eb1e7e40230a33b1dd81bb8-filtered.tar.zst) = dffa8e57ea422d522458266fa02ac15220034e405bc8fb606211bb11755b57ff98b0b8031dc8827b76a1c06822d55803e3826a46df619d273a01b8e18202f2a9
|
||||
SHA512 (chardet-6.0.0.post1-filtered.tar.zst) = 6d40f1f19006555d8e6f7f0bea4fa1b2af7350c376d8a767a44266e1a7a501cde0fcac5408ee2ef808b626b1261dc9af774ddfe783cdc18617d2767d09cecfa6
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue