Blame SPECS/python-openstackdocstheme.spec

5279ba
%global pypi_name openstackdocstheme
5279ba
5279ba
Name:           python-%{pypi_name}
5279ba
Version:        3.0.0
5279ba
Release:        10%{?dist}
5279ba
Summary:        OpenStack Docs Theme
5279ba
5279ba
# Automatically converted from old format: ASL 2.0 - review is highly recommended.
5279ba
License:        Apache-2.0
5279ba
URL:            http://docs.openstack.org/
5279ba
Source0:        %{pypi_source}
5279ba
Patch0001:      0001-Remove-all-Google-Analytics-tracking.patch
5279ba
BuildArch:      noarch
5279ba
5279ba
BuildRequires:  python3-devel
5279ba
BuildRequires:  pyproject-rpm-macros
5279ba
BuildRequires:  python3-sphinx
5279ba
BuildRequires:  git-core
5279ba
5279ba
%global common_desc \
5279ba
OpenStack docs.openstack.org Sphinx Theme\
5279ba
\
5279ba
Theme and extension support for Sphinx documentation that is published to\
5279ba
docs.openstack.org. Intended for use by OpenStack projects.
5279ba
5279ba
%description
5279ba
%{common_desc}
5279ba
5279ba
5279ba
%package -n     python3-%{pypi_name}
5279ba
Summary:        OpenStack Docs Theme
5279ba
%{?python_provide:%python_provide python3-%{pypi_name}}
5279ba
Provides:       bundled(js-jquery)
5279ba
5279ba
Requires: python3-sphinx >= 1.6.2
5279ba
Requires: python3-babel
5279ba
5279ba
%description -n python3-%{pypi_name}
5279ba
%{common_desc}
5279ba
5279ba
%package -n     python-%{pypi_name}-doc
5279ba
Summary:        openstackdocstheme documentation
5279ba
%description -n python-%{pypi_name}-doc
5279ba
Documentation for openstackdocstheme
5279ba
5279ba
5279ba
%generate_buildrequires
5279ba
%pyproject_buildrequires
5279ba
5279ba
5279ba
%prep
5279ba
%autosetup -n %{pypi_name}-%{version} -p1 -S git
5279ba
# Make sure there is no Google Analytics
5279ba
sed -i 's/analytics_tracking_code.*/analytics_tracking_code\ =/' openstackdocstheme/theme/openstackdocs/theme.conf
5279ba
# Prevent doc build warnings from causing a build failure
5279ba
sed -i '/warning-is-error/d' setup.cfg
5279ba
5279ba
%build
5279ba
%pyproject_wheel
5279ba
5279ba
export PYTHONPATH=.
5279ba
sphinx-build -b html doc/source doc/build/html
5279ba
# remove the sphinx-build leftovers
5279ba
rm -rf html/.{doctrees,buildinfo}
5279ba
5279ba
%install
5279ba
%pyproject_install
5279ba
%pyproject_save_files %{pypi_name}
5279ba
5279ba
%files -n python3-%{pypi_name} -f %{pyproject_files}
5279ba
%doc README.rst
5279ba
%license LICENSE
5279ba
%{_bindir}/docstheme-build-pdf
5279ba
%{_bindir}/docstheme-build-translated.sh
5279ba
%{_bindir}/docstheme-lang-display-name.py
5279ba
5279ba
%files -n python-%{pypi_name}-doc
5279ba
%doc doc/build/html
5279ba
5279ba
%changelog
5279ba
* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-10
5279ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
5279ba
5279ba
* Wed Jul 24 2024 Miroslav Suchý <msuchy@redhat.com> - 3.0.0-9
5279ba
- convert license to SPDX
5279ba
5279ba
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-8
5279ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
5279ba
5279ba
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 3.0.0-7
5279ba
- Rebuilt for Python 3.13
5279ba
5279ba
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-6
5279ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
5279ba
5279ba
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-5
5279ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
5279ba
5279ba
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-4
5279ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
5279ba
5279ba
* Wed Jun 14 2023 Python Maint <python-maint@redhat.com> - 3.0.0-3
5279ba
- Rebuilt for Python 3.12
5279ba
5279ba
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-2
5279ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
5279ba
5279ba
* Thu Aug 04 2022 Joel Capitao <jcapitao@redhat.com> - 3.0.0-1
5279ba
- Update to latest release (rhbz#1672986)
5279ba
- Take advantage of DynamicBuildRequires
5279ba
5279ba
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-6
5279ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
5279ba
5279ba
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 2.3.0-5
5279ba
- Rebuilt for Python 3.11
5279ba
5279ba
* Thu Jan 27 2022 Joel Capitao <jcapitao@redhat.com> - 2.3.0-4
5279ba
- Requires autopage to fix F36/FTBFS
5279ba
5279ba
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-3
5279ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
5279ba
5279ba
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-2
5279ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
5279ba
5279ba
* Wed Jun 23 2021 Joel Capitao <jcapitao@redhat.com> - 2.3.0-1
5279ba
- Update to latest release
5279ba
5279ba
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.2.6-4
5279ba
- Rebuilt for Python 3.10
5279ba
5279ba
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.6-3
5279ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
5279ba
5279ba
* Thu Nov 12 2020 Joel Capitao <jcapitao@redhat.com> - 2.2.6-2
5279ba
- Use git-core as BR instead of git
5279ba
5279ba
* Thu Oct 29 2020 Joel Capitao <jcapitao@redhat.com> - 2.2.6-1
5279ba
- Update to 2.2.6
5279ba
5279ba
* Mon Sep 14 2020 Joel Capitao <jcapitao@redhat.com> - 2.2.5-1
5279ba
- Update to 2.2.5
5279ba
5279ba
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-2
5279ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
5279ba
5279ba
* Mon Jun 01 2020 Alfredo Moralejo <amoralej@redhat.com> - 2.2.1-1
5279ba
- Update to 2.2.1
5279ba
- Remove python2 subpackage
5279ba
5279ba
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 1.29.0-8
5279ba
- Rebuilt for Python 3.9
5279ba
5279ba
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.29.0-7
5279ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
5279ba
5279ba
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.29.0-6
5279ba
- Rebuilt for Python 3.8.0rc1 (#1748018)
5279ba
5279ba
* Sat Aug 17 2019 Miro Hrončok <mhroncok@redhat.com> - 1.29.0-5
5279ba
- Rebuilt for Python 3.8
5279ba
5279ba
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.29.0-4
5279ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
5279ba
5279ba
* Tue Feb 26 2019 Javier Peña <jpena@redhat.com> - 1.29.0-3
5279ba
- Remove the Python2 subpackage from Fedora
5279ba
5279ba
* Tue Feb 05 2019 Javier Peña <jpena@redhat.com> - 1.29.0-2
5279ba
- Include the binaries in the python2 subpackage when not building with Python3, for CentOS 7 compatibility
5279ba
5279ba
* Tue Feb 05 2019 Javier Peña <jpena@redhat.com> - 1.29.0-1
5279ba
- Update to upstream 1.29.0 (bz#1668948)
5279ba
5279ba
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.23.2-2
5279ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
5279ba
5279ba
* Wed Sep 12 2018 Javier Peña <jpena@redhat.com> - 1.23.2-1
5279ba
- Updated to  upstream 1.23.2 (bz#1552354)
5279ba
5279ba
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.20.1-3
5279ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
5279ba
5279ba
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.20.1-2
5279ba
- Rebuilt for Python 3.7
5279ba
5279ba
* Tue Apr 17 2018 Alfredo Moralejo <amoralej@redhat.com> 1.20.1-1
5279ba
- Update to 1.20.1
5279ba
5279ba
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.18.1-2
5279ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
5279ba
5279ba
* Mon Feb 5 2018 Javier Peña <jpena@redhat.com> - 1.18.1-1
5279ba
- Updated to upstream release 1.18.1 (bz#1533685)
5279ba
5279ba
* Fri Jan 26 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.11.0-2
5279ba
- Update Python 2 dependency declarations to new packaging standards
5279ba
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
5279ba
5279ba
* Thu Sep 7 2017 Javier Peña <jpena@redhat.com> - 1.11.0-1
5279ba
- Updated to upstream release 1.11.0 (bz#1435494)
5279ba
5279ba
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-4
5279ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
5279ba
5279ba
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-3
5279ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
5279ba
5279ba
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.5.0-2
5279ba
- Rebuild for Python 3.6
5279ba
5279ba
* Thu Sep 22 2016 Javier Peña <jpena@redhat.com> - 1.5.0-1
5279ba
- Bumped to upstream release 1.5.0
5279ba
5279ba
* Fri Aug 19 2016 Javier Peña <jpena@redhat.com> - 1.4.0-2
5279ba
- Use sphinx-build-2 for doc generation, there are issues with the Python3 version
5279ba
5279ba
* Fri Aug 19 2016 Javier Peña <jpena@redhat.com> - 1.4.0-1
5279ba
- Bumped to upstream release 1.4.0
5279ba
- Fixed source URL
5279ba
5279ba
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.0-2
5279ba
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
5279ba
5279ba
* Mon Apr 18 2016 Javier Peña <jpena@redhat.com> - 1.3.0-1
5279ba
- Bumped to upstream release 1.3.0
5279ba
5279ba
* Thu Mar 03 2016 Javier Peña <jpena@redhat.com> - 1.2.7-2
5279ba
- Fixed prep section
5279ba
- Removed unneeded comments
5279ba
- Added bundled(js-jquery) to provides
5279ba
5279ba
* Thu Mar 03 2016 jpena <jpena@redhat.com> - 1.2.7-1
5279ba
- Initial package.