From e00ddf1b9a64318baed02d1c595d2028d3d4d09a Mon Sep 17 00:00:00 2001 From: wangxiao65 <287608437@qq.com> Date: Fri, 11 Sep 2020 20:08:39 +0800 Subject: [PATCH] remove python2 support, fix BuildRequires --- python-sphinx-bootstrap-theme.spec | 29 +++++------------------------ 1 file changed, 5 insertions(+), 24 deletions(-) diff --git a/python-sphinx-bootstrap-theme.spec b/python-sphinx-bootstrap-theme.spec index 6319b6a..f2bb722 100644 --- a/python-sphinx-bootstrap-theme.spec +++ b/python-sphinx-bootstrap-theme.spec @@ -1,33 +1,18 @@ -%global __python2 %{__python} -%global python2_sitelib %{python_sitelib} -%global python2_version %{python_version} - Name: python-sphinx-bootstrap-theme Version: 0.4.13 -Release: 11 +Release: 12 Summary: Sphinx Bootstrap Theme License: MIT and ASL 2.0 URL: http://ryan-roemer.github.com/sphinx-bootstrap-theme Source0: https://files.pythonhosted.org/packages/source/s/sphinx-bootstrap-theme/sphinx-bootstrap-theme-%{version}.tar.gz BuildArch: noarch -BuildRequires: epel-rpm-macros +BuildRequires: web-assets-devel %description This Sphinx theme integrates the Bootstrap CSS/JavaScript framework with various layout options, hierarchical menu navigation, and mobile-friendly responsive design.It is configurable, extensible, and can use any number of different Bootswatch CSS themes. -%package -n python2-sphinx-bootstrap-theme -Summary: Sphinx Bootstrap Theme -BuildRequires: python2-setuptools python2-devel -Requires: python2-sphinx -%{?python_provide:%python_provide python2-sphinx-bootstrap-theme} - -%description -n python2-sphinx-bootstrap-theme -This Sphinx theme integrates the Bootstrap CSS/JavaScript framework with various layout options, -hierarchicalmenunavigation,and mobile-friendly responsive design.It is configurable, extensible, -and can use any number of different Bootswatch CSS themes. - %package -n python3-sphinx-bootstrap-theme Summary: Sphinx Bootstrap Theme BuildRequires: python3-devel python3-setuptools @@ -50,18 +35,11 @@ Help documentation for sphinx-bootstrap-theme. %autosetup -n sphinx-bootstrap-theme-%{version} -p1 %build -%py2_build %py3_build %install -%py2_install %py3_install -%files -n python2-sphinx-bootstrap-theme -%license LICENSE.txt -%{python2_sitelib}/sphinx_bootstrap_theme -%{python2_sitelib}/sphinx_bootstrap_theme-%{version}-py%{python2_version}.egg-info - %files -n python3-sphinx-bootstrap-theme %license LICENSE.txt %{python3_sitelib}/sphinx_bootstrap_theme @@ -71,6 +49,9 @@ Help documentation for sphinx-bootstrap-theme. %doc PKG-INFO *.rst %changelog +* Fri Sep 11 2020 wangxiao - 0.4.13-12 +- Remove python2 support, fix BuildRequires + * Sat Mar 14 2020 likexin - 0.4.13-11 - Remove some requires