From 23395633d6b6959df3948f42950782cab85c3b42 Mon Sep 17 00:00:00 2001 From: rdobuilder Date: Aug 05 2022 06:48:24 +0000 Subject: Update to 3.0.0 Related-to: https://review.rdoproject.org/r/q/Ic091e7fdc25b233ba19bba0fdb395a1f5791f20d --- diff --git a/.python-openstackdocstheme.metadata b/.python-openstackdocstheme.metadata new file mode 100644 index 0000000..c325de7 --- /dev/null +++ b/.python-openstackdocstheme.metadata @@ -0,0 +1 @@ +cd3a97164a198749edd5b58b57a86ea618f61dd8 SOURCES/openstackdocstheme-3.0.0.tar.gz diff --git a/SOURCES/0001-Remove-all-Google-Analytics-tracking.patch b/SOURCES/0001-Remove-all-Google-Analytics-tracking.patch new file mode 100644 index 0000000..cf8b756 --- /dev/null +++ b/SOURCES/0001-Remove-all-Google-Analytics-tracking.patch @@ -0,0 +1,62 @@ +From 21b6f4101a5c04cd8e2e959f4bfb8932af6267b6 Mon Sep 17 00:00:00 2001 +From: Alfredo Moralejo +Date: Mon, 1 Jun 2020 15:13:26 +0200 +Subject: [PATCH] Remove all Google Analytics tracking + +Even if https://github.com/openstack/openstackdocstheme/commit/89b0475539ac6763baa27f5fc334639ee3853ebf +made Google Analytics optional, it was still present in +script_search.html +--- + .../theme/openstackdocs/script_search.html | 26 ------------------- + .../theme/openstackdocs/theme.conf | 2 +- + 2 files changed, 1 insertion(+), 27 deletions(-) + +diff --git a/openstackdocstheme/theme/openstackdocs/script_search.html b/openstackdocstheme/theme/openstackdocs/script_search.html +index 8a62dc6..1141d82 100644 +--- a/openstackdocstheme/theme/openstackdocs/script_search.html ++++ b/openstackdocstheme/theme/openstackdocs/script_search.html +@@ -1,28 +1,2 @@ +- + +diff --git a/openstackdocstheme/theme/openstackdocs/theme.conf b/openstackdocstheme/theme/openstackdocs/theme.conf +index 8d0ef5b..1f7d26e 100644 +--- a/openstackdocstheme/theme/openstackdocs/theme.conf ++++ b/openstackdocstheme/theme/openstackdocs/theme.conf +@@ -4,7 +4,7 @@ stylesheet = css/basic.css + pygments_style = native + + [options] +-analytics_tracking_code = UA-17511903-1 ++analytics_tracking_code = + sidebar_mode = toctree + display_badge = True + display_toc = True +-- +2.20.1 + diff --git a/SPECS/python-openstackdocstheme.spec b/SPECS/python-openstackdocstheme.spec new file mode 100644 index 0000000..2a14539 --- /dev/null +++ b/SPECS/python-openstackdocstheme.spec @@ -0,0 +1,207 @@ +%global pypi_name openstackdocstheme + +Name: python-%{pypi_name} +Version: 3.0.0 +Release: 1%{?dist} +Summary: OpenStack Docs Theme + +License: ASL 2.0 +URL: http://docs.openstack.org/ +Source0: %{pypi_source} +Patch0001: 0001-Remove-all-Google-Analytics-tracking.patch +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: pyproject-rpm-macros +BuildRequires: python3-sphinx +BuildRequires: git-core + +%global common_desc \ +OpenStack docs.openstack.org Sphinx Theme\ +\ +Theme and extension support for Sphinx documentation that is published to\ +docs.openstack.org. Intended for use by OpenStack projects. + +%description +%{common_desc} + + +%package -n python3-%{pypi_name} +Summary: OpenStack Docs Theme +%{?python_provide:%python_provide python3-%{pypi_name}} +Provides: bundled(js-jquery) + +Requires: python3-sphinx >= 1.6.2 +Requires: python3-babel + +%description -n python3-%{pypi_name} +%{common_desc} + +%package -n python-%{pypi_name}-doc +Summary: openstackdocstheme documentation +%description -n python-%{pypi_name}-doc +Documentation for openstackdocstheme + + +%generate_buildrequires +%pyproject_buildrequires + + +%prep +%autosetup -n %{pypi_name}-%{version} -p1 -S git +# Make sure there is no Google Analytics +sed -i 's/analytics_tracking_code.*/analytics_tracking_code\ =/' openstackdocstheme/theme/openstackdocs/theme.conf +# Prevent doc build warnings from causing a build failure +sed -i '/warning-is-error/d' setup.cfg + +%build +%pyproject_wheel + +export PYTHONPATH=. +sphinx-build -b html doc/source doc/build/html +# remove the sphinx-build leftovers +rm -rf html/.{doctrees,buildinfo} + +%install +%pyproject_install +%pyproject_save_files %{pypi_name} + +%files -n python3-%{pypi_name} -f %{pyproject_files} +%doc README.rst +%license LICENSE +%{_bindir}/docstheme-build-pdf +%{_bindir}/docstheme-build-translated.sh +%{_bindir}/docstheme-lang-display-name.py + +%files -n python-%{pypi_name}-doc +%doc doc/build/html + +%changelog +* Thu Aug 04 2022 Joel Capitao - 3.0.0-1 +- Update to latest release (rhbz#1672986) +- Take advantage of DynamicBuildRequires + +* Fri Jul 22 2022 Fedora Release Engineering - 2.3.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon Jun 13 2022 Python Maint - 2.3.0-5 +- Rebuilt for Python 3.11 + +* Thu Jan 27 2022 Joel Capitao - 2.3.0-4 +- Requires autopage to fix F36/FTBFS + +* Fri Jan 21 2022 Fedora Release Engineering - 2.3.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 2.3.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Wed Jun 23 2021 Joel Capitao - 2.3.0-1 +- Update to latest release + +* Fri Jun 04 2021 Python Maint - 2.2.6-4 +- Rebuilt for Python 3.10 + +* Wed Jan 27 2021 Fedora Release Engineering - 2.2.6-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Thu Nov 12 2020 Joel Capitao - 2.2.6-2 +- Use git-core as BR instead of git + +* Thu Oct 29 2020 Joel Capitao - 2.2.6-1 +- Update to 2.2.6 + +* Mon Sep 14 2020 Joel Capitao - 2.2.5-1 +- Update to 2.2.5 + +* Wed Jul 29 2020 Fedora Release Engineering - 2.2.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Mon Jun 01 2020 Alfredo Moralejo - 2.2.1-1 +- Update to 2.2.1 +- Remove python2 subpackage + +* Sun May 24 2020 Miro Hrončok - 1.29.0-8 +- Rebuilt for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 1.29.0-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Oct 03 2019 Miro Hrončok - 1.29.0-6 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Sat Aug 17 2019 Miro Hrončok - 1.29.0-5 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 1.29.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Tue Feb 26 2019 Javier Peña - 1.29.0-3 +- Remove the Python2 subpackage from Fedora + +* Tue Feb 05 2019 Javier Peña - 1.29.0-2 +- Include the binaries in the python2 subpackage when not building with Python3, for CentOS 7 compatibility + +* Tue Feb 05 2019 Javier Peña - 1.29.0-1 +- Update to upstream 1.29.0 (bz#1668948) + +* Sat Feb 02 2019 Fedora Release Engineering - 1.23.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Wed Sep 12 2018 Javier Peña - 1.23.2-1 +- Updated to upstream 1.23.2 (bz#1552354) + +* Sat Jul 14 2018 Fedora Release Engineering - 1.20.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jun 19 2018 Miro Hrončok - 1.20.1-2 +- Rebuilt for Python 3.7 + +* Tue Apr 17 2018 Alfredo Moralejo 1.20.1-1 +- Update to 1.20.1 + +* Fri Feb 09 2018 Fedora Release Engineering - 1.18.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Mon Feb 5 2018 Javier Peña - 1.18.1-1 +- Updated to upstream release 1.18.1 (bz#1533685) + +* Fri Jan 26 2018 Iryna Shcherbina - 1.11.0-2 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) + +* Thu Sep 7 2017 Javier Peña - 1.11.0-1 +- Updated to upstream release 1.11.0 (bz#1435494) + +* Thu Jul 27 2017 Fedora Release Engineering - 1.5.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 1.5.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Mon Dec 19 2016 Miro Hrončok - 1.5.0-2 +- Rebuild for Python 3.6 + +* Thu Sep 22 2016 Javier Peña - 1.5.0-1 +- Bumped to upstream release 1.5.0 + +* Fri Aug 19 2016 Javier Peña - 1.4.0-2 +- Use sphinx-build-2 for doc generation, there are issues with the Python3 version + +* Fri Aug 19 2016 Javier Peña - 1.4.0-1 +- Bumped to upstream release 1.4.0 +- Fixed source URL + +* Tue Jul 19 2016 Fedora Release Engineering - 1.3.0-2 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + +* Mon Apr 18 2016 Javier Peña - 1.3.0-1 +- Bumped to upstream release 1.3.0 + +* Thu Mar 03 2016 Javier Peña - 1.2.7-2 +- Fixed prep section +- Removed unneeded comments +- Added bundled(js-jquery) to provides + +* Thu Mar 03 2016 jpena - 1.2.7-1 +- Initial package.