!3 remove python2 support, fix BuildRequires

From: @wangxiao65
Reviewed-by: @small_leek
Signed-off-by: @small_leek
This commit is contained in:
openeuler-ci-bot 2020-09-11 21:31:41 +08:00 committed by Gitee
commit cd68189d04

View File

@ -1,33 +1,18 @@
%global __python2 %{__python}
%global python2_sitelib %{python_sitelib}
%global python2_version %{python_version}
Name: python-sphinx-bootstrap-theme Name: python-sphinx-bootstrap-theme
Version: 0.4.13 Version: 0.4.13
Release: 11 Release: 12
Summary: Sphinx Bootstrap Theme Summary: Sphinx Bootstrap Theme
License: MIT and ASL 2.0 License: MIT and ASL 2.0
URL: http://ryan-roemer.github.com/sphinx-bootstrap-theme 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 Source0: https://files.pythonhosted.org/packages/source/s/sphinx-bootstrap-theme/sphinx-bootstrap-theme-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
BuildRequires: epel-rpm-macros BuildRequires: web-assets-devel
%description %description
This Sphinx theme integrates the Bootstrap CSS/JavaScript framework with various layout options, 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, hierarchical menu navigation, and mobile-friendly responsive design.It is configurable, extensible,
and can use any number of different Bootswatch CSS themes. 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 %package -n python3-sphinx-bootstrap-theme
Summary: Sphinx Bootstrap Theme Summary: Sphinx Bootstrap Theme
BuildRequires: python3-devel python3-setuptools BuildRequires: python3-devel python3-setuptools
@ -50,18 +35,11 @@ Help documentation for sphinx-bootstrap-theme.
%autosetup -n sphinx-bootstrap-theme-%{version} -p1 %autosetup -n sphinx-bootstrap-theme-%{version} -p1
%build %build
%py2_build
%py3_build %py3_build
%install %install
%py2_install
%py3_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 %files -n python3-sphinx-bootstrap-theme
%license LICENSE.txt %license LICENSE.txt
%{python3_sitelib}/sphinx_bootstrap_theme %{python3_sitelib}/sphinx_bootstrap_theme
@ -71,6 +49,9 @@ Help documentation for sphinx-bootstrap-theme.
%doc PKG-INFO *.rst %doc PKG-INFO *.rst
%changelog %changelog
* Fri Sep 11 2020 wangxiao <wangxiao65@huawei.com> - 0.4.13-12
- Remove python2 support, fix BuildRequires
* Sat Mar 14 2020 likexin <likexin4@huawei.com> - 0.4.13-11 * Sat Mar 14 2020 likexin <likexin4@huawei.com> - 0.4.13-11
- Remove some requires - Remove some requires