diff --git a/fix_use_2to3_invalid.patch b/fix_use_2to3_invalid.patch deleted file mode 100644 index b282b99..0000000 --- a/fix_use_2to3_invalid.patch +++ /dev/null @@ -1,21 +0,0 @@ -From ec4ad7e510c8de0b215a89a2c81bc00f08f70c72 Mon Sep 17 00:00:00 2001 -From: Julian Knocke -Date: Tue, 7 Sep 2021 15:56:51 +0200 -Subject: [PATCH] Remove `use_2to3` from setup configuration - ---- - setup.py | 1 - - 1 file changed, 1 deletion(-) - -diff --git a/setup.py b/setup.py -index 90509cf..68f2b72 100644 ---- a/setup.py -+++ b/setup.py -@@ -37,7 +37,6 @@ def read_file(name): - setup( - name="sphinx-bootstrap-theme", - version=__version__, -- use_2to3=True, - description="Sphinx Bootstrap Theme.", - long_description=read_file("README"), - url="http://ryan-roemer.github.com/sphinx-bootstrap-theme/README.html", diff --git a/python-sphinx-bootstrap-theme.spec b/python-sphinx-bootstrap-theme.spec index d2a27da..d4b0784 100644 --- a/python-sphinx-bootstrap-theme.spec +++ b/python-sphinx-bootstrap-theme.spec @@ -1,11 +1,12 @@ -Name: python-sphinx-bootstrap-theme -Version: 0.4.13 -Release: 13 +%global srcname sphinx-bootstrap-theme + +Name: python-%{srcname} +Version: 0.8.1 +Release: 1 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 -Patch0: fix_use_2to3_invalid.patch +URL: http://ryan-roemer.github.com/%{srcname} +Source0: https://github.com/ryan-roemer/sphinx-bootstrap-theme/archive/v%{version}/%{srcname}-%{version}.tar.gz BuildArch: noarch BuildRequires: web-assets-devel @@ -14,13 +15,13 @@ This Sphinx theme integrates the Bootstrap CSS/JavaScript framework with various hierarchical menu navigation, 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-%{srcname} Summary: Sphinx Bootstrap Theme BuildRequires: python3-devel python3-setuptools Requires: python3-sphinx %{?python_provide:%python_provide python3-sphinx-bootstrap-theme} -%description -n python3-sphinx-bootstrap-theme +%description -n python3-%{srcname} 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. @@ -32,8 +33,8 @@ Summary: Help documentation for sphinx-bootstrap-theme Help documentation for sphinx-bootstrap-theme. %prep -%{__rm} -rf *.egg-info -%autosetup -n sphinx-bootstrap-theme-%{version} -p1 +%autosetup -n %{srcname}-%{version} -p1 +rm -rf *.egg-info %build %py3_build @@ -41,15 +42,17 @@ Help documentation for sphinx-bootstrap-theme. %install %py3_install -%files -n python3-sphinx-bootstrap-theme +%files -n python3-%{srcname} %license LICENSE.txt %{python3_sitelib}/sphinx_bootstrap_theme %{python3_sitelib}/sphinx_bootstrap_theme-%{version}-py%{python3_version}.egg-info %files help -%doc PKG-INFO *.rst +%doc *.rst %changelog +* Thu Oct 27 2022 xu_ping - 0.8.1-1 +- Upgrade python-sphinx-bootstrap-theme to 0.8.1 * Sat Jan 08 2022 yangping - 0.4.13-13 - fix use 2to3 is invalid diff --git a/sphinx-bootstrap-theme-0.4.13.tar.gz b/sphinx-bootstrap-theme-0.4.13.tar.gz deleted file mode 100644 index 4795505..0000000 Binary files a/sphinx-bootstrap-theme-0.4.13.tar.gz and /dev/null differ diff --git a/sphinx-bootstrap-theme-0.8.1.tar.gz b/sphinx-bootstrap-theme-0.8.1.tar.gz new file mode 100644 index 0000000..98040db Binary files /dev/null and b/sphinx-bootstrap-theme-0.8.1.tar.gz differ