57881e6
%global pypi_name openstackdocstheme
57881e6
57881e6
Name:           python-%{pypi_name}
bfdd2c6
Version:        2.2.6
f49e337
Release:        2%{?dist}
57881e6
Summary:        OpenStack Docs Theme
57881e6
57881e6
License:        ASL 2.0
57881e6
URL:            http://docs.openstack.org/
b9a9629
Source0:        https://pypi.io/packages/source/o/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
57881e6
Patch0001:      0001-Remove-all-Google-Analytics-tracking.patch
57881e6
BuildArch:      noarch
57881e6
57881e6
57881e6
%package -n     python3-%{pypi_name}
57881e6
Summary:        OpenStack Docs Theme
57881e6
%{?python_provide:%python_provide python3-%{pypi_name}}
57881e6
Provides:       bundled(js-jquery)
57881e6
57881e6
BuildRequires:  python3-devel
a86ef1b
BuildRequires:  python3-dulwich
57881e6
BuildRequires:  python3-setuptools
57881e6
BuildRequires:  python3-pbr >= 1.8
57881e6
BuildRequires:  python3-sphinx
f49e337
BuildRequires:  git-core
57881e6
7115420
Requires: python3-babel
a86ef1b
Requires: python3-dulwich
57881e6
Requires: python3-pbr
3ec32b9
Requires: python3-sphinx >= 1.6.2
57881e6
57881e6
%description -n python3-%{pypi_name}
57881e6
OpenStack docs.openstack.org Sphinx Theme
57881e6
57881e6
Theme and extension support for Sphinx documentation that is published to
57881e6
docs.openstack.org. Intended for use by OpenStack projects.
57881e6
57881e6
%package -n python-%{pypi_name}-doc
57881e6
Summary:        openstackdocstheme documentation
57881e6
%description -n python-%{pypi_name}-doc
57881e6
Documentation for openstackdocstheme
57881e6
57881e6
%description
57881e6
OpenStack docs.openstack.org Sphinx Theme
57881e6
57881e6
Theme and extension support for Sphinx documentation that is published to
57881e6
docs.openstack.org. Intended for use by OpenStack projects.
57881e6
57881e6
%prep
3ec32b9
%autosetup -n %{pypi_name}-%{version} -p1 -S git
57881e6
57881e6
%build
57881e6
# Make sure there is no Google Analytics
57881e6
sed -i 's/analytics_tracking_code.*/analytics_tracking_code\ =/' openstackdocstheme/theme/openstackdocs/theme.conf
3ec32b9
# Prevent doc build warnings from causing a build failure
3ec32b9
sed -i '/warning-is-error/d' setup.cfg
57881e6
57881e6
%py3_build
c6756b3
c6756b3
export PYTHONPATH=.
c6756b3
sphinx-build -b html doc/source doc/build/html
57881e6
# remove the sphinx-build leftovers
57881e6
rm -rf html/.{doctrees,buildinfo}
57881e6
57881e6
%install
57881e6
%py3_install
57881e6
57881e6
%files -n python3-%{pypi_name}
57881e6
%doc README.rst
57881e6
%license LICENSE
7115420
%{_bindir}/docstheme-build-translated.sh
7115420
%{_bindir}/docstheme-lang-display-name.py
c6756b3
%{_bindir}/docstheme-build-pdf
57881e6
%{python3_sitelib}/%{pypi_name}
0b06d4e
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
57881e6
57881e6
%files -n python-%{pypi_name}-doc
3ec32b9
%doc doc/build/html
57881e6
57881e6
%changelog
f49e337
* Thu Nov 12 2020 Joel Capitao <jcapitao@redhat.com> - 2.2.6-2
f49e337
- Use git-core as BR instead of git
f49e337
bfdd2c6
* Thu Oct 29 2020 Joel Capitao <jcapitao@redhat.com> - 2.2.6-1
bfdd2c6
- Update to 2.2.6
bfdd2c6
692af1b
* Mon Sep 14 2020 Joel Capitao <jcapitao@redhat.com> - 2.2.5-1
692af1b
- Update to 2.2.5
692af1b
0019681
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-2
0019681
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
0019681
c6756b3
* Mon Jun 01 2020 Alfredo Moralejo <amoralej@redhat.com> - 2.2.1-1
c6756b3
- Update to 2.2.1
c6756b3
- Remove python2 subpackage
c6756b3
baf3503
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 1.29.0-8
baf3503
- Rebuilt for Python 3.9
baf3503
247b4da
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.29.0-7
247b4da
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
247b4da
68f643d
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.29.0-6
68f643d
- Rebuilt for Python 3.8.0rc1 (#1748018)
68f643d
e9e2f08
* Sat Aug 17 2019 Miro Hrončok <mhroncok@redhat.com> - 1.29.0-5
e9e2f08
- Rebuilt for Python 3.8
e9e2f08
93c3be3
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.29.0-4
93c3be3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
93c3be3
ee19f22
* Tue Feb 26 2019 Javier Peña <jpena@redhat.com> - 1.29.0-3
ee19f22
- Remove the Python2 subpackage from Fedora
ee19f22
611001b
* Tue Feb 05 2019 Javier Peña <jpena@redhat.com> - 1.29.0-2
611001b
- Include the binaries in the python2 subpackage when not building with Python3, for CentOS 7 compatibility
611001b
7115420
* Tue Feb 05 2019 Javier Peña <jpena@redhat.com> - 1.29.0-1
7115420
- Update to upstream 1.29.0 (bz#1668948)
7115420
f019dfb
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.23.2-2
f019dfb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
f019dfb
1090606
* Wed Sep 12 2018 Javier Peña <jpena@redhat.com> - 1.23.2-1
1090606
- Updated to  upstream 1.23.2 (bz#1552354)
1090606
903b18b
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.20.1-3
903b18b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
903b18b
ebf384c
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.20.1-2
ebf384c
- Rebuilt for Python 3.7
ebf384c
1d1d08d
* Tue Apr 17 2018 Alfredo Moralejo <amoralej@redhat.com> 1.20.1-1
1d1d08d
- Update to 1.20.1
1d1d08d
e022105
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.18.1-2
e022105
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
e022105
a86ef1b
* Mon Feb 5 2018 Javier Peña <jpena@redhat.com> - 1.18.1-1
a86ef1b
- Updated to upstream release 1.18.1 (bz#1533685)
a86ef1b
799b7b2
* Fri Jan 26 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.11.0-2
799b7b2
- Update Python 2 dependency declarations to new packaging standards
799b7b2
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
799b7b2
3ec32b9
* Thu Sep 7 2017 Javier Peña <jpena@redhat.com> - 1.11.0-1
3ec32b9
- Updated to upstream release 1.11.0 (bz#1435494)
3ec32b9
fca34ca
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-4
fca34ca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
fca34ca
1b17e18
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-3
1b17e18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
1b17e18
04f6269
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.5.0-2
04f6269
- Rebuild for Python 3.6
04f6269
25f9801
* Thu Sep 22 2016 Javier Peña <jpena@redhat.com> - 1.5.0-1
25f9801
- Bumped to upstream release 1.5.0
25f9801
c101150
* Fri Aug 19 2016 Javier Peña <jpena@redhat.com> - 1.4.0-2
c101150
- Use sphinx-build-2 for doc generation, there are issues with the Python3 version
c101150
b9a9629
* Fri Aug 19 2016 Javier Peña <jpena@redhat.com> - 1.4.0-1
b9a9629
- Bumped to upstream release 1.4.0
b9a9629
- Fixed source URL
b9a9629
8275a73
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.0-2
8275a73
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
8275a73
cae8274
* Mon Apr 18 2016 Javier Peña <jpena@redhat.com> - 1.3.0-1
cae8274
- Bumped to upstream release 1.3.0
cae8274
57881e6
* Thu Mar 03 2016 Javier Peña <jpena@redhat.com> - 1.2.7-2
57881e6
- Fixed prep section
57881e6
- Removed unneeded comments
57881e6
- Added bundled(js-jquery) to provides
57881e6
57881e6
* Thu Mar 03 2016 jpena <jpena@redhat.com> - 1.2.7-1
57881e6
- Initial package.