Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
215fc738d2
!9 【轻量级 PR】:Rebuild for next release
From: @zhangruifang2020 
Reviewed-by: @lyn1001 
Signed-off-by: @lyn1001
2022-10-31 01:11:41 +00:00
张瑞方
5b8e76abce
Rebuild for next release
Signed-off-by: 张瑞方 <xdzhangruifang@163.com>
2022-10-27 02:53:16 +00:00
openeuler-ci-bot
a29e1bcd66 !7 upgrade version to 1.0.0
Merge pull request !7 from renxichen/openEuler-22.03-LTS-Next
2021-12-25 08:12:07 +00:00
rwx403335
dfae175515 upgrade version to 1.0.0 2021-12-21 16:23:48 +08:00
openeuler-ci-bot
43e78de31f !4 Remove python2
Merge pull request !4 from jpzhang187/master
2020-08-11 10:58:11 +08:00
jpzhang
765e479ccb remove python2 2020-08-11 10:27:06 +08:00
openeuler-ci-bot
06636fdac6 !2 update to release 0.4.3.
Merge pull request !2 from tianwei/master
2020-07-31 14:24:39 +08:00
tianwei
b406e85232 update python-sphinx_rtd_theme.spec. 2020-07-30 15:59:19 +08:00
openeuler-ci-bot
83faa71ae8 !1 python-sphinx_rtd_theme
Merge pull request !1 from wangef/master
2020-05-09 16:06:28 +08:00
wwx913452
c3518e889f added python-sphinx_rtd_theme.yaml 2020-05-07 17:48:40 +08:00
4 changed files with 19 additions and 57 deletions

View File

@ -1,6 +1,6 @@
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.1 Version: 1.0.0
Release: 2 Release: 2
License: MIT License: MIT
URL: https://github.com/snide/sphinx_rtd_theme URL: https://github.com/snide/sphinx_rtd_theme
@ -8,24 +8,13 @@ Source0: https://files.pythonhosted.org/packages/source/s/sphinx_rtd_them
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,64 +28,33 @@ 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
pushd %{buildroot}/%{python3_sitelib}/sphinx_rtd_theme/static/fonts %files -n python3-sphinx_rtd_theme
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
%files -n python2-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
* Thu Oct 27 2022 zhangruifang <zhangruifang1@h-partners.com> - 1.0.0-2
- Rebuild for next release
* Mon Dec 20 2021 renhongxun <renhongxun@huawei.com> 1.0.0-1
- upgrade version to 1.0.0
* 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
- 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

View File

@ -0,0 +1,4 @@
version_control: github
src_repo: readthedocs/spinx_rtd_theme
tag_prefix: ^
seperator: .

Binary file not shown.

Binary file not shown.