commit
43e78de31f
@ -1,31 +1,20 @@
|
|||||||
Name: python-sphinx_rtd_theme
|
Name: python-sphinx_rtd_theme
|
||||||
Summary: Sphinx theme for readthedocs.org
|
Summary: Sphinx theme for readthedocs.org
|
||||||
Version: 0.4.3
|
Version: 0.4.3
|
||||||
Release: 1
|
Release: 2
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/snide/sphinx_rtd_theme
|
URL: https://github.com/snide/sphinx_rtd_theme
|
||||||
Source0: https://files.pythonhosted.org/packages/source/s/sphinx_rtd_theme/sphinx_rtd_theme-%{version}.tar.gz
|
Source0: https://files.pythonhosted.org/packages/source/s/sphinx_rtd_theme/sphinx_rtd_theme-%{version}.tar.gz
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: python2-devel python2-setuptools python2-sphinx python3-devel python3-setuptools python3-sphinx
|
BuildRequires: python3-devel python3-setuptools python3-sphinx
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This Sphinx theme was designed to provide a great reader experience for documentation users
|
This Sphinx theme was designed to provide a great reader experience for documentation users
|
||||||
on both desktop and mobile devices. This theme is used primarily on Read the Docs but can work
|
on both desktop and mobile devices. This theme is used primarily on Read the Docs but can work
|
||||||
with any Sphinx project. You can find a working demo of the theme in the theme documentation.
|
with any Sphinx project. You can find a working demo of the theme in the theme documentation.
|
||||||
|
|
||||||
%package -n python2-sphinx_rtd_theme
|
|
||||||
Summary: Sphinx theme for readthedocs.org
|
|
||||||
Recommends: fontawesome-fonts-web font(fontawesome) font(lato) font(robotoslab)
|
|
||||||
Requires: python2-sphinx
|
|
||||||
%{?python_provide:%python_provide python2-sphinx_rtd_theme}
|
|
||||||
|
|
||||||
%description -n python2-sphinx_rtd_theme
|
|
||||||
this sphinx theme was designed to provide a great reader experience for documentation users
|
|
||||||
on both desktop and mobile devices. this theme is used primarily on read the docs but can work
|
|
||||||
with any sphinx project. you can find a working demo of the theme in the theme documentation.
|
|
||||||
|
|
||||||
%package -n python3-sphinx_rtd_theme
|
%package -n python3-sphinx_rtd_theme
|
||||||
Summary: Sphinx theme for readthedocs.org
|
Summary: Sphinx theme for readthedocs.org
|
||||||
Recommends: fontawesome-fonts-web font(fontawesome) font(lato) font(robotoslab)
|
Recommends: fontawesome-fonts-web font(fontawesome) font(lato) font(robotoslab)
|
||||||
@ -39,36 +28,13 @@ with any sphinx project. you can find a working demo of the theme in the theme d
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -c -p1
|
%autosetup -c -p1
|
||||||
cp -a sphinx_rtd_theme-%{version} python3-sphinx_rtd_theme-%{version}
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
cd sphinx_rtd_theme-%{version}
|
cd sphinx_rtd_theme-%{version}
|
||||||
%py2_build
|
|
||||||
|
|
||||||
cd ../python3-sphinx_rtd_theme-%{version}
|
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
pushd sphinx_rtd_theme-%{version}
|
pushd sphinx_rtd_theme-%{version}
|
||||||
%py2_install
|
|
||||||
popd
|
|
||||||
|
|
||||||
pushd %{buildroot}/%{python2_sitelib}/sphinx_rtd_theme/static/fonts
|
|
||||||
rm fontawesome-webfont.* Lato/*.ttf RobotoSlab/*.ttf
|
|
||||||
ln -s %{_datadir}/fonts/fontawesome/fontawesome-webfont.eot .
|
|
||||||
ln -s %{_datadir}/fonts/fontawesome/fontawesome-webfont.svg .
|
|
||||||
ln -s %{_datadir}/fonts/fontawesome/fontawesome-webfont.ttf .
|
|
||||||
ln -s %{_datadir}/fonts/fontawesome/fontawesome-webfont.woff .
|
|
||||||
ln -s %{_datadir}/fonts/fontawesome/fontawesome-webfont.woff2 .
|
|
||||||
ln -s %{_datadir}/fonts/google-roboto-slab/RobotoSlab-Bold.ttf RobotoSlab/roboto-slab-v7-bold.ttf
|
|
||||||
ln -s %{_datadir}/fonts/google-roboto-slab/RobotoSlab-Regular.ttf RobotoSlab/roboto-slab-v7-regular.ttf
|
|
||||||
ln -s %{_datadir}/fonts/lato/Lato-Bold.ttf Lato/lato-bold.ttf
|
|
||||||
ln -s %{_datadir}/fonts/lato/Lato-BoldItalic.ttf Lato/lato-bolditalic.ttf
|
|
||||||
ln -s %{_datadir}/fonts/lato/Lato-Italic.ttf Lato/lato-italic.ttf
|
|
||||||
ln -s %{_datadir}/fonts/lato/Lato-Regular.ttf Lato/lato-regular.ttf
|
|
||||||
popd
|
|
||||||
|
|
||||||
pushd python3-sphinx_rtd_theme-%{version}
|
|
||||||
%py3_install
|
%py3_install
|
||||||
popd
|
popd
|
||||||
|
|
||||||
@ -87,18 +53,17 @@ ln -s %{_datadir}/fonts/lato/Lato-Italic.ttf Lato/lato-italic.ttf
|
|||||||
ln -s %{_datadir}/fonts/lato/Lato-Regular.ttf Lato/lato-regular.ttf
|
ln -s %{_datadir}/fonts/lato/Lato-Regular.ttf Lato/lato-regular.ttf
|
||||||
popd
|
popd
|
||||||
|
|
||||||
%files -n python2-sphinx_rtd_theme
|
%files -n python3-sphinx_rtd_theme
|
||||||
%doc sphinx_rtd_theme-%{version}/README.rst
|
%doc sphinx_rtd_theme-%{version}/README.rst
|
||||||
%license sphinx_rtd_theme-%{version}/LICENSE
|
%license sphinx_rtd_theme-%{version}/LICENSE
|
||||||
%{python2_sitelib}/sphinx_rtd_theme*
|
|
||||||
|
|
||||||
%files -n python3-sphinx_rtd_theme
|
|
||||||
%doc python3-sphinx_rtd_theme-%{version}/README.rst
|
|
||||||
%license python3-sphinx_rtd_theme-%{version}/LICENSE
|
|
||||||
%{python3_sitelib}/sphinx_rtd_theme*
|
%{python3_sitelib}/sphinx_rtd_theme*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Aug 10 2020 zhangjiapeng <zhangjiapeng9@huawei.com> - 0.4.3-2
|
||||||
|
* Remove python2
|
||||||
|
|
||||||
* Fri Jul 24 2020 tianwei <tianwei12@huawei.com> - 0.4.3-1
|
* Fri Jul 24 2020 tianwei <tianwei12@huawei.com> - 0.4.3-1
|
||||||
- package update to release to 0.4.3
|
- package update to release to 0.4.3
|
||||||
|
|
||||||
* Thu Nov 14 2019 Lijin Yang <yanglijin@huawei.com> - 0.4.1-2
|
* Thu Nov 14 2019 Lijin Yang <yanglijin@huawei.com> - 0.4.1-2
|
||||||
- init package
|
- init package
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user