remove python2 support, fix BuildRequires
This commit is contained in:
parent
37d373a4a0
commit
e00ddf1b9a
@ -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 <wangxiao65@huawei.com> - 0.4.13-12
|
||||
- Remove python2 support, fix BuildRequires
|
||||
|
||||
* Sat Mar 14 2020 likexin <likexin4@huawei.com> - 0.4.13-11
|
||||
- Remove some requires
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user