Update to 5.0.0 (close RHBZ#2101067)

This commit is contained in:
Benjamin A. Beasley 2022-06-25 13:01:53 -04:00
commit 4e6f753383
3 changed files with 4 additions and 7 deletions

View file

@ -5,7 +5,7 @@
%bcond_without doc_pdf
Name: python-chardet
Version: 4.0.0
Version: 5.0.0
Release: %autorelease
Summary: Python character encoding detector
@ -86,11 +86,7 @@ Summary: Documentation for python-chardet
%prep
%autosetup -p1 -n chardet-%{version}
# Remove useless shebangs
# https://github.com/chardet/chardet/commit/1e94b33329
grep -lr "^#\!/usr/bin/env python" chardet/ | xargs sed -i "1d"
%autosetup -n chardet-%{version}
# Since pdflatex cannot handle Unicode inputs in general:
echo "latex_engine = 'xelatex'" >> docs/conf.py