!7 屏蔽python-hyperlink的make docs阶段

Merge pull request !7 from huanghaitao/openEuler-22.03-LTS-Next
This commit is contained in:
openeuler-ci-bot 2022-01-11 11:11:03 +00:00 committed by Gitee
commit 418d223e3e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,6 +1,8 @@
%bcond_with docs
Name: python-hyperlink
Version: 18.0.0
Release: 10
Release: 11
Summary: A pure-Python implementation of immutable URLs
License: MIT and BSD and OFL
URL: https://github.com/python-hyper/hyperlink
@ -21,7 +23,9 @@ Hyperlink is a featureful, pure-Python implementation of the URL, with an emphas
%package help
Summary: This package contains help documents
%if %{with docs}
Requires: fontawesome-fonts
%endif
Provides: python-hyperlink-doc = %{version}-%{release}
Obsoletes: python-hyperlink-doc < %{version}-%{release}
@ -34,6 +38,8 @@ rm -rf hyperlink.egg-info
%build
%py3_build
%if %{with docs}
PYTHONPATH=${PWD} sphinx-build-3 docs html
rm -rf html/.{doctrees,buildinfo} html/_static/underscore*.js html/_static/jquery*.js
cd html/_static/fonts/
@ -46,6 +52,7 @@ ln -s /usr/share/javascript/underscore/underscore-min.js html/_static/underscore
ln -s /usr/share/javascript/underscore/underscore.js html/_static/underscore-1.3.1.js
ln -s /usr/share/javascript/jquery/3.2.1/jquery.min.js html/_static/jquery.js
ln -s /usr/share/javascript/jquery/3.2.1/jquery.js html/_static/jquery-3.2.1.js
%endif
%install
%py3_install
@ -59,9 +66,16 @@ ln -s /usr/share/javascript/jquery/3.2.1/jquery.js html/_static/jquery-3.2.1.js
%{python3_sitelib}/hyperlink-%{version}-py?.?.egg-info
%files help
%if %{with docs}
%doc README.md html
%else
%doc README.md
%endif
%changelog
* Mon Jan 10 2022 huanghaitao <huanghaitao8@huawei.com> - 18.0.0-11
- Drop docs package: sphinx Update make docs build error
* Mon Dec 07 2020 zhangjiapeng <zhangjiapeng9@huawei.com> - 18.0.0-10
- Add python3-devel dependency