From 1623d026e29adbe4c8a1eb5834ed5f60b3d0f5c7 Mon Sep 17 00:00:00 2001 From: penelope Date: Fri, 1 Apr 2022 17:30:22 +0800 Subject: [PATCH] spec --- python-hyperlink.spec | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/python-hyperlink.spec b/python-hyperlink.spec index 4e89d6d..430c906 100644 --- a/python-hyperlink.spec +++ b/python-hyperlink.spec @@ -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 - 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 - 18.0.0-10 - Add python3-devel dependency