From ddd44d76bcd420c40b86848dcc216ccbe9ebabf2 Mon Sep 17 00:00:00 2001 From: Kaleb S. KEITHLEY Date: Sep 08 2021 17:09:57 +0000 Subject: first build for c9s --- diff --git a/.python-Pallets-Sphinx-Themes.metadata b/.python-Pallets-Sphinx-Themes.metadata new file mode 100644 index 0000000..358260a --- /dev/null +++ b/.python-Pallets-Sphinx-Themes.metadata @@ -0,0 +1 @@ +5a9ed4d6133573105679091dff8cc7085898a7e5 SOURCES/Pallets-Sphinx-Themes-1.2.2.tar.gz diff --git a/SOURCES/importlib_metadata_py38.patch b/SOURCES/importlib_metadata_py38.patch new file mode 100644 index 0000000..3e4ddb4 --- /dev/null +++ b/SOURCES/importlib_metadata_py38.patch @@ -0,0 +1,30 @@ +diff --git a/setup.cfg b/setup.cfg +index 10fdda8..20ba0d7 100644 +--- a/setup.cfg ++++ b/setup.cfg +@@ -38,7 +38,7 @@ package_dir = + include_package_data = true + python_requires = >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.* + install_requires = +- importlib-metadata ++ importlib-metadata;python_version<"3.8" + packaging + Sphinx + +diff --git a/src/pallets_sphinx_themes/__init__.py b/src/pallets_sphinx_themes/__init__.py +index d16359e..9a3bbd5 100644 +--- a/src/pallets_sphinx_themes/__init__.py ++++ b/src/pallets_sphinx_themes/__init__.py +@@ -5,7 +5,11 @@ import sys + import textwrap + from collections import namedtuple + +-import importlib_metadata ++if sys.version_info >= (3, 8): ++ from importlib import metadata as importlib_metadata ++else: ++ import importlib_metadata ++ + from sphinx.builders._epub_base import EpubBuilder + from sphinx.errors import ExtensionError + diff --git a/SPECS/python-Pallets-Sphinx-Themes.spec b/SPECS/python-Pallets-Sphinx-Themes.spec new file mode 100644 index 0000000..1a0e385 --- /dev/null +++ b/SPECS/python-Pallets-Sphinx-Themes.spec @@ -0,0 +1,77 @@ +%global pypi_name Pallets-Sphinx-Themes + +Name: python-%{pypi_name} +Version: 1.2.2 +Release: 9%{?dist} +Summary: Sphinx themes for Pallets and related projects + +License: BSD +URL: https://github.com/pallets/pallets-sphinx-themes/ +Source0: https://files.pythonhosted.org/packages/source/P/%{pypi_name}/%{pypi_name}-%{version}.tar.gz +Patch0: importlib_metadata_py38.patch +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-setuptools + +%description +Pallets Sphinx Themes Themes for the Pallets projects. + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +Requires: python3-sphinx +Requires: python3-setuptools +%description -n python3-%{pypi_name} +Pallets Sphinx Themes Themes for the Pallets projects. + + +%prep +%autosetup -n %{pypi_name}-%{version} -p1 +# Remove bundled egg-info +rm -rf %{pypi_name}.egg-info + +%build +%py3_build + +%install +%py3_install + +%files -n python3-%{pypi_name} +%license LICENSE.rst +%doc README.rst CHANGES.rst +%{python3_sitelib}/pallets_sphinx_themes +%{python3_sitelib}/Pallets_Sphinx_Themes-*.egg-info/ + +%changelog +* Fri Jul 23 2021 Fedora Release Engineering - 1.2.2-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Thu Jun 03 2021 Python Maint - 1.2.2-8 +- Rebuilt for Python 3.10 + +* Wed Jan 27 2021 Fedora Release Engineering - 1.2.2-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Jul 28 2020 Fedora Release Engineering - 1.2.2-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Sat May 23 2020 Miro HronĨok - 1.2.2-5 +- Rebuilt for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 1.2.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Mon Nov 11 2019 Rick Elrod - 1.2.2-3 +- Fix dependency issue for python >=3.8 + +* Mon Nov 4 2019 Rick Elrod - 1.2.2-2 +- Fix files section for python >=3.10 + +* Mon Nov 4 2019 Rick Elrod - 1.2.2-1 +- Latest upstream +- Remove python 2 stuff, to follow Fedora packaging guidelines + +* Sat Apr 28 2018 Rick Elrod - 1.0.0-1 +- Initial package.