diff --git a/.python-oslo-sphinx.metadata b/.python-oslo-sphinx.metadata new file mode 100644 index 0000000..07b959d --- /dev/null +++ b/.python-oslo-sphinx.metadata @@ -0,0 +1 @@ +e93f136605f04048e65347e4847b3ad915368f5a SOURCES/oslosphinx-4.18.0.tar.gz diff --git a/SOURCES/Changelog.old b/SOURCES/Changelog.old new file mode 100644 index 0000000..e179e66 --- /dev/null +++ b/SOURCES/Changelog.old @@ -0,0 +1,74 @@ +* Sat Jul 14 2018 Fedora Release Engineering - 4.15.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jun 19 2018 Miro Hrončok - 4.15.1-4 +- Rebuilt for Python 3.7 + +* Tue Feb 27 2018 Iryna Shcherbina - 4.15.1-3 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) + +* Fri Feb 09 2018 Fedora Release Engineering - 4.15.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Aug 10 2017 Alfredo Moralejo 4.15.1-1 +- Update to 4.15.1 + +* Sat Feb 11 2017 Fedora Release Engineering - 4.9.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Tue Jan 03 2017 Matthias Runge - 4.9.0-1 +- update to 4.9.0 (rhbz#1408503) + +* Mon Dec 19 2016 Miro Hrončok - 4.3.0-3 +- Rebuild for Python 3.6 + +* Tue Jul 19 2016 Fedora Release Engineering - 4.3.0-2 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + +* Mon Mar 21 2016 Haikel Guemar 4.3.0- +- Update to 4.3.0 + +* Thu Feb 04 2016 Fedora Release Engineering - 3.1.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Tue Nov 10 2015 Fedora Release Engineering - 3.1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 + +* Sun Aug 16 2015 Alan Pevec 3.1.0-1 +- Update to upstream 3.1.0 + +* Thu Jun 25 2015 Alan Pevec 3.0.0-1 +- Update to upstream 3.0.0 + +* Thu Jun 18 2015 Fedora Release Engineering - 2.5.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Wed Mar 25 2015 Alan Pevec - 2.5.0-1 +- Update to 2.5.0 + +* Fri Mar 13 2015 Parag Nemade - 2.3.0-3 +- Added python3 subpackage + +* Mon Dec 15 2014 Alan Pevec - 2.3.0-2 +- Update to 2.3.0 +- Provide oslo.sphinx theme compatibility symlink + +* Tue Nov 04 2014 Alan Pevec - 2.2.0-1 +- Update to 2.2.0 +- Provide both old oslo.sphinx namespaced package and new oslosphinx + +* Sat Jun 07 2014 Fedora Release Engineering - 1.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Fri Mar 07 2014 Pádraig Brady - 1.1-1 +- Update to release 1.1 + +* Sun Aug 04 2013 Fedora Release Engineering - 1.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Mon Jul 22 2013 Pádraig Brady 1.0-3 +- Review adjustments + +* Mon Jul 8 2013 Dan Prince 1.0-1 +- Initial package. diff --git a/SOURCES/sphnix-app-info.diff b/SOURCES/sphnix-app-info.diff new file mode 100644 index 0000000..4196f1c --- /dev/null +++ b/SOURCES/sphnix-app-info.diff @@ -0,0 +1,99 @@ +--- oslosphinx-4.18.0/oslosphinx/__init__.py~ 2018-01-08 15:12:16.000000000 +0100 ++++ oslosphinx-4.18.0/oslosphinx/__init__.py 2019-08-04 12:04:46.928166116 +0200 +@@ -18,7 +18,8 @@ + from six.moves.urllib import parse + import string + import subprocess +- ++from sphinx.util import logging ++LOG = logging.getLogger(__name__) + + CGIT_BASE = 'http://git.openstack.org/cgit/' + +@@ -57,7 +58,7 @@ + git_cmd, stdout=subprocess.PIPE).communicate()[0] + raw_version_list = raw_version_list.decode("utf8") + except OSError: +- app.warn('Cannot get tags from git repository. ' ++ LOG.warn('Cannot get tags from git repository. ' + 'Not setting "other_versions".') + raw_version_list = u'' + +@@ -73,7 +74,7 @@ + + def builder_inited(app): + theme_dir = os.path.join(os.path.dirname(__file__), 'theme') +- app.info('Using openstack theme from %s' % theme_dir) ++ LOG.info('Using openstack theme from %s' % theme_dir) + # Insert our theme directory at the front of the search path and + # force the theme setting to use the one in the package unless + # another openstack theme is already selected. This is done here, +--- oslosphinx-4.18.0/oslosphinx/check_blueprints.py~ 2018-01-08 15:12:16.000000000 +0100 ++++ oslosphinx-4.18.0/oslosphinx/check_blueprints.py 2019-08-04 12:04:23.136895987 +0200 +@@ -15,7 +15,8 @@ + """ + + import requests +- ++from sphinx.util import logging ++LOG = logging.getLogger(__name__) + + class BlueprintChecker(object): + +@@ -74,11 +75,11 @@ + + def blueprint_exists(self, project_name, bp_name): + """Return boolean indicating whether the blueprint exists.""" +- self.app.info('Checking for %s in %s' % (bp_name, project_name)) ++ LOG.info('Checking for %s in %s' % (bp_name, project_name)) + url = self.BP_URL_TEMPLATE % (project_name, bp_name) + response = requests.get(url) + if response.status_code == 200: +- self.app.info('Found %s in %s' % (bp_name, project_name)) ++ LOG.info('Found %s in %s' % (bp_name, project_name)) + return True + return False + +@@ -87,7 +88,7 @@ + if bp_name in self._good_bps: + return True + self._load_project_settings() +- self.app.info('') # emit newline ++ LOG.info('') # emit newline + candidate_project, dash, bp_name_to_find = bp_name.partition('-') + if candidate_project in self.project_names: + # First check the shortened name of the blueprint in the project. +@@ -96,13 +97,13 @@ + # Then check the full name of the blueprint in the project. + if self.blueprint_exists(candidate_project, bp_name): + return +- self.app.info( ++ LOG.info( + ('Blueprint name %r looks like it starts with a project ' + 'name, but %r was not found in project %r') % + (bp_name, bp_name_to_find, candidate_project) + ) + else: +- self.app.info( ++ LOG.info( + 'Blueprint checking is faster if the file names ' + 'start with the launchpad project name.' + ) +@@ -111,7 +112,7 @@ + self._good_bps.add(bp_name) + break + else: +- self.app.warn( ++ LOG.warn( + 'Could not find a blueprint called %r in %s' + % (bp_name, self._warn_search), + location=(bp_name, 0), +@@ -122,7 +123,7 @@ + + + def setup(app): +- app.info('Initializing %s' % __name__) ++ LOG.info('Initializing %s' % __name__) + checker = BlueprintChecker(app) + app.connect('doctree-resolved', checker.doctree_resolved) + app.add_config_value('check_blueprints_project_group', 'openstack', 'env') diff --git a/SPECS/python-oslo-sphinx.spec b/SPECS/python-oslo-sphinx.spec new file mode 100644 index 0000000..13fe9d9 --- /dev/null +++ b/SPECS/python-oslo-sphinx.spec @@ -0,0 +1,109 @@ +%global sname oslosphinx +%global pypi_name oslo-sphinx + +%{!?upstream_version: %global upstream_version %{version}%{?milestone}} + +%global common_desc \ +The Oslo project intends to produce a python library containing \ +infrastructure code shared by OpenStack projects. The APIs provided \ +by the project should be high quality, stable, consistent and generally \ +useful. \ + \ +The oslo-sphinx library contains Sphinx theme and extensions support used by \ +OpenStack. + +Name: python-oslo-sphinx +Version: 4.18.0 +Release: 11%{?dist} +Summary: OpenStack Sphinx Extensions + +License: ASL 2.0 +URL: https://launchpad.net/oslo +Source0: https://tarballs.openstack.org/%{sname}/%{sname}-%{version}.tar.gz +Patch0: sphnix-app-info.diff + +BuildArch: noarch + +%description +%{common_desc} + +%package -n python3-%{pypi_name} +Summary: OpenStack Sphinx Extensions +%{?python_provide:%python_provide python3-%{pypi_name}} + +Requires: python3-setuptools + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-d2to1 +BuildRequires: python3-pbr +BuildRequires: python3-sphinx + +Requires: python3-requests >= 2.14.2 +Requires: python3-pbr +Requires: python3-six >= 1.10.0 + +# tests +BuildRequires: python3-requests >= 2.14.2 + +%description -n python3-%{pypi_name} +%{common_desc} + +%prep +%autosetup -n oslosphinx-%{upstream_version} -p1 +# Remove bundled egg-info +rm -rf oslo_sphinx.egg-info +rm -rf {test-,}requirements.txt + +%build +%{__python3} setup.py build + +%install +%{__python3} setup.py install -O1 --skip-build --root %{buildroot} + +%check +%{__python3} setup.py test + +## Fix hidden-file-or-dir warnings +#rm -fr doc/build/html/.buildinfo + +%files -n python3-%{pypi_name} +%license LICENSE +%doc README.rst +%{python3_sitelib}/oslosphinx +%{python3_sitelib}/oslosphinx*.egg-info + +%changelog +* Wed Jan 27 2021 Fedora Release Engineering - 4.18.0-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 4.18.0-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue May 26 2020 Miro Hrončok - 4.18.0-9 +- Rebuilt for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 4.18.0-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Oct 03 2019 Miro Hrončok - 4.18.0-7 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Mon Aug 19 2019 Miro Hrončok - 4.18.0-6 +- Rebuilt for Python 3.8 + +* Sun Aug 4 2019 Zbigniew Jędrzejewski-Szmek - 4.18.0-5 +- Add patch to avoid logging through sphinx.api (#1737205) + +* Fri Jul 26 2019 Fedora Release Engineering - 4.18.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Mon Feb 25 2019 Alfredo Moralejo - 4.18.0-3 +* Remove python2 subpackages + +* Sat Feb 02 2019 Fedora Release Engineering - 4.18.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Feb 09 2018 RDO 4.18.0-1 +- Update to 4.18.0 +