From 2f38a56ea4fd4bb6327ddf8892561961aeb28697 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 11:05:34 +0100 Subject: [PATCH] update to 2023.9 [release 2023.9-1mamba;Tue Nov 07 2023] --- python-docs-theme.spec | 34 +++++++++++++++++++++------------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/python-docs-theme.spec b/python-docs-theme.spec index 4fddd0d..b9b9e7d 100644 --- a/python-docs-theme.spec +++ b/python-docs-theme.spec @@ -1,13 +1,14 @@ +%define pkgname python_docs_theme Name: python-docs-theme -Version: 2022.1 -Release: 2mamba +Version: 2023.9 +Release: 1mamba Summary: Theme for the Python documentation Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://github.com/python/python-docs-theme -Source: https://pypi.debian.net/python-docs-theme/python-docs-theme-%{version}.tar.gz +Source: https://pypi.debian.net/python-docs-theme/python_docs_theme-%{version}.tar.gz License: Python Software Foundation License ## AUTOBUILDREQ-BEGIN BuildRequires: libpython311-devel @@ -24,27 +25,34 @@ Requires: python >= %python_version %endif %prep -%setup -q -n python-docs-theme-%{version} +%setup -q -n python_docs_theme-%{version} %build -CFLAGS="%{optflags}" %{__python} setup.py build +CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -%{__python} setup.py install \ - -O1 --skip-build \ - --root="%{buildroot}" \ - --install-headers=%{python_inc} \ - --install-lib=%{python_sitearch} \ - --record=%{name}.filelist +%{__python} -m installer --destdir=%{buildroot} dist/*.whl -sed -i "s,.*/man/.*,&.gz," %{name}.filelist +#%if "%{?with_pyver}" != "3" +## Rename any conflicting file outside of python site packages tree +#for f in %{_bindir}/pdm; do +# mv %{buildroot}${f}{,-%{?pyappend}} +#done +#%endif -%files %{?pyappend} -f %{name}.filelist +%files %{?pyappend} %defattr(-,root,root) +%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info +%{python_sitelib}/%{pkgname}-%{version}.dist-info/* +%dir %{python_sitelib}/%{pkgname} +%{python_sitelib}/%{pkgname}/* %doc LICENSE %changelog +* Tue Nov 07 2023 Silvan Calarco 2023.9-1mamba +- update to 2023.9 + * Tue Sep 26 2023 Automatic Build System 2022.1-2mamba - rebuilt by autoport with build requirements: python3-devel>=3.11.5-3mamba