Compare commits
4 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
79352f26ed | ||
|
|
2d53ba6cff | ||
|
|
ce9ff1d2dc | ||
|
|
026a9ac732 |
3 changed files with 12 additions and 7 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (chardet-5.1.0-filtered.tar.xz) = 7682933114ae0a13534af95d2afdf297cd5f6003f9d6430fbcf63c080c175e7859de62efcf990f392f590da93b0a7979bdf00134b52f6d45198b253a030056f0
|
||||
SHA512 (chardet-5.2.0-filtered.tar.xz) = 4f865b958503596cdaf690d0cb586c7c477419ca528b4701d93577c34764fcbab2246d79b82fe25a06246c59cedb9344ec332540efb76cc02d49158fb4903974
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue