2016-02-02 00:25:03 +00:00
|
|
|
%global srcname sphinx_rtd_theme
|
2014-07-08 15:40:50 +00:00
|
|
|
|
2019-03-19 17:40:56 +00:00
|
|
|
# Disables tests and docs
|
|
|
|
%bcond_with bootstrap
|
|
|
|
|
2016-02-02 00:25:03 +00:00
|
|
|
Name: python-%{srcname}
|
2019-02-13 04:00:03 +00:00
|
|
|
Version: 0.4.3
|
2020-07-29 04:01:44 +00:00
|
|
|
Release: 14%{?dist}
|
2014-07-08 15:40:50 +00:00
|
|
|
Summary: Sphinx theme for readthedocs.org
|
|
|
|
|
|
|
|
License: MIT
|
2019-02-13 04:00:03 +00:00
|
|
|
URL: https://github.com/rtfd/%{srcname}
|
|
|
|
Source0: https://github.com/rtfd/%{srcname}/archive/%{version}/%{srcname}-%{version}.tar.gz
|
2020-01-24 19:41:16 +00:00
|
|
|
# The koji builders do not have network access, and this file is not included
|
|
|
|
# in any Fedora package, so we retrieve it for offline use.
|
|
|
|
Source1: https://docs.readthedocs.io/en/latest/objects.inv
|
2019-08-06 15:20:17 +00:00
|
|
|
# Remove deprecated use of script_files. See:
|
|
|
|
# - https://github.com/readthedocs/sphinx_rtd_theme/pull/728
|
|
|
|
# - https://github.com/readthedocs/sphinx_rtd_theme/commit/a49a812c8821123091166fae1897d702cdc2d627
|
|
|
|
Patch0: %{name}-script.patch
|
|
|
|
|
2014-07-08 15:40:50 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
BuildRequires: python3-devel
|
2020-01-24 19:41:16 +00:00
|
|
|
BuildRequires: python3dist(docutils)
|
2018-10-23 03:49:08 +00:00
|
|
|
BuildRequires: python3dist(setuptools)
|
2019-03-19 17:40:56 +00:00
|
|
|
%if %{without bootstrap}
|
|
|
|
BuildRequires: python3dist(pytest)
|
2020-02-04 16:16:47 +00:00
|
|
|
BuildRequires: python3dist(readthedocs-sphinx-ext)
|
2018-10-23 03:49:08 +00:00
|
|
|
BuildRequires: python3dist(sphinx)
|
2019-02-13 04:00:03 +00:00
|
|
|
BuildRequires: python3dist(sphinxcontrib-httpdomain)
|
2020-01-24 19:41:16 +00:00
|
|
|
BuildRequires: python-sphinx-doc
|
2019-03-19 17:40:56 +00:00
|
|
|
%endif
|
2014-07-08 15:40:50 +00:00
|
|
|
|
2016-02-02 00:25:03 +00:00
|
|
|
%description
|
|
|
|
This is a prototype mobile-friendly sphinx theme for readthedocs.org.
|
|
|
|
It's currently in development and includes some rtd variable checks that
|
|
|
|
can be ignored if you're just trying to use it on your project outside
|
|
|
|
of that site.
|
|
|
|
|
|
|
|
%package -n python3-%{srcname}
|
2014-07-08 15:40:50 +00:00
|
|
|
Summary: Sphinx theme for readthedocs.org
|
2015-11-16 20:15:50 +00:00
|
|
|
Requires: fontawesome-fonts-web
|
2015-05-14 02:38:52 +00:00
|
|
|
Requires: font(fontawesome)
|
|
|
|
Requires: font(lato)
|
2017-03-03 16:31:32 +00:00
|
|
|
Requires: font(robotoslab)
|
2014-07-08 15:40:50 +00:00
|
|
|
|
2016-02-02 00:25:03 +00:00
|
|
|
%{?python_provide:%python_provide python3-%{srcname}}
|
|
|
|
|
|
|
|
%description -n python3-%{srcname}
|
2014-07-08 15:40:50 +00:00
|
|
|
This is a prototype mobile-friendly sphinx theme for readthedocs.org.
|
|
|
|
It's currently in development and includes some rtd variable checks that
|
|
|
|
can be ignored if you're just trying to use it on your project outside
|
|
|
|
of that site.
|
|
|
|
|
2020-01-24 19:41:16 +00:00
|
|
|
%if %{without bootstrap}
|
|
|
|
%package doc
|
|
|
|
Summary: Documentation for the Sphinx theme for readthedocs.org
|
|
|
|
Requires: fontawesome-fonts-web
|
|
|
|
Requires: font(fontawesome)
|
|
|
|
Requires: font(lato)
|
|
|
|
Requires: font(robotoslab)
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
This package contains documentation for the Sphinx theme for
|
|
|
|
readthedocs.org.
|
|
|
|
%endif
|
|
|
|
|
2014-07-08 15:40:50 +00:00
|
|
|
%prep
|
2019-08-06 15:20:17 +00:00
|
|
|
%autosetup -p0 -n %{srcname}-%{version}
|
2014-07-08 15:40:50 +00:00
|
|
|
|
2020-01-24 19:41:16 +00:00
|
|
|
# Use local objects.inv for intersphinx
|
|
|
|
sed -e "s|\('https://docs\.readthedocs\.io/en/latest/', \)None|\1'%{SOURCE1}'|" \
|
|
|
|
-e "s|\('http://www\.sphinx-doc\.org/en/stable/', \)None|\1'%{_docdir}/python-sphinx-doc/html/objects.inv'|" \
|
|
|
|
-i docs/conf.py
|
|
|
|
|
2014-07-08 15:40:50 +00:00
|
|
|
%build
|
2016-02-02 00:25:03 +00:00
|
|
|
%py3_build
|
2019-02-13 04:00:03 +00:00
|
|
|
|
2019-03-19 17:40:56 +00:00
|
|
|
%if %{without bootstrap}
|
2019-02-13 04:00:03 +00:00
|
|
|
# Build the documentation
|
2020-01-24 19:41:16 +00:00
|
|
|
make -C docs html
|
2019-03-19 17:40:56 +00:00
|
|
|
%endif
|
2014-07-08 15:40:50 +00:00
|
|
|
|
2020-01-24 19:41:16 +00:00
|
|
|
rst2html --no-datestamp README.rst README.html
|
2014-07-08 15:40:50 +00:00
|
|
|
|
2019-03-06 14:41:00 +00:00
|
|
|
%install
|
2016-02-02 00:25:03 +00:00
|
|
|
%py3_install
|
2014-07-08 15:40:50 +00:00
|
|
|
|
2019-02-13 04:00:03 +00:00
|
|
|
# Link to the required fonts and copy the parts not shipped by Fedora
|
|
|
|
pushd %{buildroot}%{python3_sitelib}/%{srcname}/static/fonts
|
|
|
|
mkdir Lato RobotoSlab
|
|
|
|
rm -f fontawesome-webfont.*
|
2017-03-03 16:31:32 +00:00
|
|
|
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 .
|
2018-04-08 22:47:37 +00:00
|
|
|
ln -s %{_datadir}/fonts/fontawesome/fontawesome-webfont.woff2 .
|
2020-03-18 16:03:05 +00:00
|
|
|
ln -s %{_datadir}/fonts/google-roboto-slab-fonts/RobotoSlab-Bold.ttf RobotoSlab/roboto-slab-v7-bold.ttf
|
|
|
|
ln -s %{_datadir}/fonts/google-roboto-slab-fonts/RobotoSlab-Regular.ttf RobotoSlab/roboto-slab-v7-regular.ttf
|
2018-07-03 03:34:40 +00:00
|
|
|
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
|
2017-03-03 16:31:32 +00:00
|
|
|
popd
|
2019-03-06 14:41:00 +00:00
|
|
|
cp -p fonts/RobotoSlab/*.{eot,woff,woff2} \
|
2019-02-13 04:00:03 +00:00
|
|
|
%{buildroot}%{python3_sitelib}/%{srcname}/static/fonts/RobotoSlab
|
2019-03-06 14:41:00 +00:00
|
|
|
cp -p fonts/Lato/*.{eot,woff,woff2} \
|
2019-02-13 04:00:03 +00:00
|
|
|
%{buildroot}%{python3_sitelib}/%{srcname}/static/fonts/Lato
|
2019-03-19 17:40:56 +00:00
|
|
|
|
|
|
|
%if %{without bootstrap}
|
2020-01-24 19:41:16 +00:00
|
|
|
rm docs/build/html/.buildinfo
|
2019-03-06 14:41:00 +00:00
|
|
|
rm -fr docs/build/html/_static/fonts
|
2019-02-13 04:00:03 +00:00
|
|
|
cp -a %{buildroot}%{python3_sitelib}/%{srcname}/static/fonts \
|
2019-03-06 14:41:00 +00:00
|
|
|
docs/build/html/_static
|
2019-03-19 17:40:56 +00:00
|
|
|
%endif
|
2019-02-13 04:00:03 +00:00
|
|
|
|
2019-03-19 17:40:56 +00:00
|
|
|
%if %{without bootstrap}
|
2019-02-13 04:00:03 +00:00
|
|
|
%check
|
2020-02-04 16:16:47 +00:00
|
|
|
pytest
|
2019-03-19 17:40:56 +00:00
|
|
|
%endif
|
|
|
|
|
2016-02-02 00:25:03 +00:00
|
|
|
%files -n python3-%{srcname}
|
2020-01-24 19:41:16 +00:00
|
|
|
%doc README.html
|
2019-03-06 14:41:00 +00:00
|
|
|
%license LICENSE
|
2016-02-02 00:25:03 +00:00
|
|
|
%{python3_sitelib}/%{srcname}*
|
2014-07-08 15:40:50 +00:00
|
|
|
|
2020-01-24 19:41:16 +00:00
|
|
|
%if %{without bootstrap}
|
|
|
|
%files doc
|
|
|
|
%doc docs/build/html
|
|
|
|
%license LICENSE
|
|
|
|
%endif
|
|
|
|
|
2014-07-08 15:40:50 +00:00
|
|
|
%changelog
|
2020-07-29 04:01:44 +00:00
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.3-14
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-05-23 07:24:18 +00:00
|
|
|
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 0.4.3-13
|
|
|
|
- Rebuilt for Python 3.9
|
|
|
|
|
2020-05-22 15:34:12 +00:00
|
|
|
* Fri May 22 2020 Miro Hrončok <mhroncok@redhat.com> - 0.4.3-12
|
|
|
|
- Bootstrap for Python 3.9
|
|
|
|
|
2020-03-18 16:03:05 +00:00
|
|
|
* Wed Mar 18 2020 Jerry James <loganjerry@gmail.com> - 0.4.3-11
|
|
|
|
- Fix symlinks to the Roboto fonts
|
|
|
|
|
2020-02-04 16:16:47 +00:00
|
|
|
* Tue Feb 4 2020 Jerry James <loganjerry@gmail.com> - 0.4.3-10
|
|
|
|
- BR readthedocs-sphinx-ext so the tests can be run
|
|
|
|
|
2020-01-30 15:28:22 +00:00
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.3-9
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2020-01-24 19:41:16 +00:00
|
|
|
* Fri Jan 24 2020 Jerry James <loganjerry@gmail.com> - 0.4.3-8
|
|
|
|
- Add -doc subpackage
|
|
|
|
|
2019-10-03 12:31:24 +00:00
|
|
|
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.4.3-7
|
|
|
|
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
|
|
2019-08-16 14:39:16 +00:00
|
|
|
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 0.4.3-6
|
|
|
|
- Rebuilt for Python 3.8
|
|
|
|
|
2019-08-15 14:46:03 +00:00
|
|
|
* Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 0.4.3-5
|
|
|
|
- Bootstrap for Python 3.8
|
|
|
|
|
2019-08-06 15:20:17 +00:00
|
|
|
* Tue Aug 6 2019 Jerry James <loganjerry@gmail.com> - 0.4.3-4
|
|
|
|
- Add -script patch to silence deprecation warnings
|
|
|
|
|
2019-07-26 16:25:54 +00:00
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.3-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-03-06 14:41:00 +00:00
|
|
|
* Wed Mar 06 2019 Miro Hrončok <mhroncok@redhat.com> - 0.4.3-2
|
|
|
|
- Subpackage python2-sphinx_rtd_theme has been removed
|
|
|
|
See https://fedoraproject.org/wiki/Changes/Sphinx2
|
|
|
|
|
2019-02-13 04:00:03 +00:00
|
|
|
* Tue Feb 12 2019 Jerry James <loganjerry@gmail.com> - 0.4.3-1
|
|
|
|
- New upstream version
|
|
|
|
- Use the github tarball, which has docs, instead of the pypi tarball
|
|
|
|
- Add %%check script
|
|
|
|
|
2019-02-02 09:27:05 +00:00
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-10-23 03:49:08 +00:00
|
|
|
* Mon Oct 22 2018 Jerry James <loganjerry@gmail.com> - 0.4.2-1
|
|
|
|
- New upstream version
|
|
|
|
|
2018-08-01 01:04:54 +00:00
|
|
|
* Tue Jul 31 2018 Jerry James <loganjerry@gmail.com> - 0.4.1-1
|
|
|
|
- New upstream version
|
|
|
|
|
2018-07-14 02:10:34 +00:00
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-07-03 03:34:40 +00:00
|
|
|
* Mon Jul 2 2018 Jerry James <loganjerry@gmail.com> - 0.4.0-1
|
|
|
|
- New upstream version
|
|
|
|
|
2018-06-14 12:24:00 +00:00
|
|
|
* Thu Jun 14 2018 Miro Hrončok <mhroncok@redhat.com> - 0.3.1-2
|
|
|
|
- Rebuilt for Python 3.7
|
|
|
|
|
2018-05-03 01:22:33 +00:00
|
|
|
* Wed May 2 2018 Jerry James <loganjerry@gmail.com> - 0.3.1-1
|
|
|
|
- New upstream version
|
|
|
|
|
2018-04-08 22:47:37 +00:00
|
|
|
* Sat Apr 7 2018 Jerry James <loganjerry@gmail.com> - 0.3.0-1
|
|
|
|
- New upstream version
|
|
|
|
|
2018-02-09 10:58:56 +00:00
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.4-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2017-07-27 11:54:10 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.4-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-03-07 05:13:52 +00:00
|
|
|
* Mon Mar 6 2017 Jerry James <loganjerry@gmail.com> - 0.2.4-1
|
|
|
|
- New upstream version
|
|
|
|
|
2017-03-04 16:50:17 +00:00
|
|
|
* Sat Mar 4 2017 Jerry James <loganjerry@gmail.com> - 0.2.2-1
|
|
|
|
- New upstream version
|
|
|
|
|
2017-03-03 16:31:32 +00:00
|
|
|
* Fri Mar 3 2017 Jerry James <loganjerry@gmail.com> - 0.2.0-1
|
|
|
|
- New upstream version
|
|
|
|
- Unbundle the roboto fonts
|
|
|
|
|
2017-02-11 10:33:16 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.9-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-12-11 16:34:04 +00:00
|
|
|
* Fri Dec 09 2016 Charalampos Stratakis <cstratak@redhat.com> - 0.1.9-3
|
|
|
|
- Rebuild for Python 3.6
|
|
|
|
|
2016-02-04 21:00:39 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.9-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2016-02-02 00:25:03 +00:00
|
|
|
* Mon Feb 1 2016 Jerry James <loganjerry@gmail.com> - 0.1.9-1
|
|
|
|
- Comply with latest python packaging guidelines
|
|
|
|
|
2015-11-24 16:50:33 +00:00
|
|
|
* Tue Nov 24 2015 Jerry James <loganjerry@gmail.com> - 0.1.9-1
|
|
|
|
- New upstream version
|
|
|
|
|
2015-11-16 20:15:50 +00:00
|
|
|
* Mon Nov 16 2015 Piotr Popieluch <piotr1212@gmail.com> - 0.1.8-4
|
|
|
|
- Add Requires: fontawesome-web (rhbz#1282297)
|
|
|
|
|
2015-10-13 16:41:27 +00:00
|
|
|
* Tue Oct 13 2015 Robert Kuska <rkuska@redhat.com> - 0.1.8-3
|
|
|
|
- Rebuilt for Python3.5 rebuild
|
|
|
|
|
2015-06-18 20:53:10 +00:00
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.8-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-05-14 02:38:52 +00:00
|
|
|
* Wed May 13 2015 Jerry James <loganjerry@gmail.com> - 0.1.8-1
|
|
|
|
- New upstream version
|
|
|
|
- Unbundle the Lato fonts
|
|
|
|
|
2015-03-11 17:02:06 +00:00
|
|
|
* Wed Mar 11 2015 Jerry James <loganjerry@gmail.com> - 0.1.7-1
|
|
|
|
- New upstream version
|
|
|
|
|
2015-02-22 00:13:50 +00:00
|
|
|
* Sat Feb 21 2015 Jerry James <loganjerry@gmail.com> - 0.1.6-2
|
|
|
|
- Use license macro
|
|
|
|
|
2014-07-08 15:40:50 +00:00
|
|
|
* Thu Jul 3 2014 Jerry James <loganjerry@gmail.com> - 0.1.6-1
|
|
|
|
- Initial RPM
|