Compare commits

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

4 commits

Author SHA1 Message Date
Benjamin A. Beasley
79352f26ed Update to 5.2.0 (close RHBZ#2228250) 2023-08-01 22:42:13 -04:00
Benjamin A. Beasley
2d53ba6cff When PDF docs are disabled, omit the -doc subpackage 2023-08-01 22:42:11 -04:00
Benjamin A. Beasley
ce9ff1d2dc Use new (rpm 4.17.1+) bcond style 2023-08-01 22:42:08 -04:00
Benjamin A. Beasley
026a9ac732 Don’t assume %_smp_mflags is -j%_smp_build_ncpus 2023-08-01 22:42:04 -04:00
3 changed files with 12 additions and 7 deletions

1
.gitignore vendored
View file

@ -3,3 +3,4 @@
/chardet-4.0.0-filtered.tar.xz
/chardet-5.0.0-filtered.tar.xz
/chardet-5.1.0-filtered.tar.xz
/chardet-5.2.0-filtered.tar.xz

View file

@ -2,10 +2,10 @@
# https://bugzilla.redhat.com/show_bug.cgi?id=2006555 for discussion.
#
# We can generate PDF documentation as a substitute.
%bcond_without doc_pdf
%bcond doc 1
Name: python-chardet
Version: 5.1.0
Version: 5.2.0
Release: %autorelease
Summary: Python character encoding detector
@ -31,7 +31,7 @@ BuildArch: noarch
BuildRequires: python3-devel
%if %{with doc_pdf}
%if %{with doc}
BuildRequires: make
BuildRequires: python3dist(sphinx)
BuildRequires: python3dist(sphinx-rtd-theme)
@ -93,8 +93,9 @@ echo "latex_engine = 'xelatex'" >> docs/conf.py
%build
%pyproject_wheel
%if %{with doc_pdf}
PYTHONPATH="${PWD}" %make_build -C docs latex SPHINXOPTS='%{?_smp_mflags}'
%if %{with doc}
PYTHONPATH="${PWD}" %make_build -C docs latex \
SPHINXOPTS='-j%{?_smp_build_ncpus}'
%make_build -C docs/_build/latex LATEXMKOPTS='-quiet'
%endif
@ -112,14 +113,17 @@ install -t '%{buildroot}%{_mandir}/man1' -D -p -m 0644 '%{SOURCE2}'
%files -n python3-chardet -f %{pyproject_files}
%if %{without doc}
%doc README.rst
%endif
%{_bindir}/chardetect
%{_mandir}/man1/chardetect.1*
%if %{with doc}
%files doc
%license LICENSE
%doc README.rst
%if %{with doc_pdf}
%doc docs/_build/latex/chardet.pdf
%endif

View file

@ -1 +1 @@
SHA512 (chardet-5.1.0-filtered.tar.xz) = 7682933114ae0a13534af95d2afdf297cd5f6003f9d6430fbcf63c080c175e7859de62efcf990f392f590da93b0a7979bdf00134b52f6d45198b253a030056f0
SHA512 (chardet-5.2.0-filtered.tar.xz) = 4f865b958503596cdaf690d0cb586c7c477419ca528b4701d93577c34764fcbab2246d79b82fe25a06246c59cedb9344ec332540efb76cc02d49158fb4903974