spec
This commit is contained in:
parent
2553313f75
commit
1623d026e2
@ -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
|
||||
@ -56,12 +63,19 @@ ln -s /usr/share/javascript/jquery/3.2.1/jquery.js html/_static/jquery-3.2.1.js
|
||||
%files -n python3-hyperlink
|
||||
%doc LICENSE
|
||||
%{python3_sitelib}/hyperlink
|
||||
%{python3_sitelib}/hyperlink-%{version}-py?.?.egg-info
|
||||
%{python3_sitelib}/hyperlink-%{version}-py%{python3_version}.egg-info
|
||||
|
||||
%files help
|
||||
%if %{with docs}
|
||||
%doc README.md html
|
||||
%else
|
||||
%doc README.md
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Fri Apr 01 2022 xigaoxinyan <xigaoxinyan@huawei.com> - 18.0.0-11
|
||||
- Drop docs package: sphinx Update make docs build error and Fix build error caused by py3.10+ wildcard
|
||||
|
||||
* Mon Dec 07 2020 zhangjiapeng <zhangjiapeng9@huawei.com> - 18.0.0-10
|
||||
- Add python3-devel dependency
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user