From 637128b090dcb052c607eec07da6cbc6fc396815 Mon Sep 17 00:00:00 2001 From: starlet-dx <15929766099@163.com> Date: Mon, 25 Aug 2025 15:49:27 +0800 Subject: [PATCH] Remove unused buildrequires js-jquery and js-underscore --- python-h2.spec | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/python-h2.spec b/python-h2.spec index d56a7d3..5defe7e 100644 --- a/python-h2.spec +++ b/python-h2.spec @@ -1,6 +1,6 @@ Name: python-h2 Version: 4.2.0 -Release: 1 +Release: 2 Summary: A HTTP/2 protocol stack for Python License: MIT URL: https://python-hyper.org/en/latest/ @@ -10,7 +10,6 @@ BuildArch: noarch BuildRequires: (python3dist(hpack) >= 4.1 with python3dist(hpack) < 5) BuildRequires: (python3dist(hyperframe) >= 6.1 with python3dist(hyperframe) < 7) BuildRequires: python3-devel python3dist(setuptools) python3dist(sphinx) python3dist(pytest) python3dist(hypothesis) -BuildRequires: js-jquery js-underscore BuildRequires: python3-pip python3-wheel %{?python_enable_dependency_generator} @@ -33,9 +32,6 @@ regardless of your programming paradigm. %package help Summary: Documents for python-h2 - -Requires: js-jquery js-underscore - Provides: python-h2-doc = %{version}-%{release} Obsoletes: python-h2-doc < %{version}-%{release} @@ -50,11 +46,6 @@ The python-h2-help package contains related documents. PYTHONPATH=${PWD}/build/lib sphinx-build-3 docs/source html rm -rf html/{.doctrees,.buildinfo} -rm -f html/_static/{underscore.js,underscore-1.3.1.js,jquery.js,jquery-3.2.1.js} -ln -s /usr/share/javascript/underscore/underscore-min.js html/_static/underscore.js -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 %install %pyproject_install @@ -71,6 +62,9 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} -m pytest %doc html LICENSE %changelog +* Mon Aug 25 2025 yaoxin <1024769339@qq.com> - 4.2.0-2 +- Remove unused buildrequires js-jquery and js-underscore + * Thu Aug 14 2025 wangkai <13474090681@163.com> - 4.2.0-1 - Update to 4.2.0 - Support for Python <=3.8 has been removed -- Gitee