python-docs-theme/python-docs-theme.spec

82 lines
2.6 KiB
RPMSpec

%define pkgname python_docs_theme
Name: python-docs-theme
Version: 2024.4
Release: 1mamba
Summary: Theme for the Python documentation
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/python/python-docs-theme
Source: https://pypi.debian.net/python-docs-theme/python_docs_theme-%{version}.tar.gz
License: Python Software Foundation License
## AUTOBUILDREQ-BEGIN
BuildRequires: libpython311-devel
## AUTOBUILDREQ-END
BuildRequires: python3-devel >= 3.11.5-3mamba
BuildRequires: libpython3-devel
Requires: python >= %python_version
%description
%{summary}.
%if 0%{?with_pyver}
%pyver_package
%endif
%prep
%setup -q -n python_docs_theme-%{version}
%build
CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python} -m installer --destdir=%{buildroot} dist/*.whl
#%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}
%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
* Sat Apr 27 2024 Automatic Build System <autodist@openmamba.org> 2024.4-1mamba
- automatic update by autodist
* Sun Mar 24 2024 Automatic Build System <autodist@openmamba.org> 2024.3-1mamba
- automatic update by autodist
* Tue Feb 13 2024 Automatic Build System <autodist@openmamba.org> 2024.2-1mamba
- automatic update by autodist
* Tue Nov 07 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 2023.9-1mamba
- update to 2023.9
* Tue Sep 26 2023 Automatic Build System <autodist@mambasoft.it> 2022.1-2mamba
- rebuilt by autoport with build requirements: python3-devel>=3.11.5-3mamba
* Wed Jan 19 2022 Automatic Build System <autodist@mambasoft.it> 2022.1-1mamba
- automatic version update by autodist
* Fri Nov 05 2021 Automatic Build System <autodist@mambasoft.it> 2021.11.1-1mamba
- automatic version update by autodist
* Fri Sep 03 2021 Automatic Build System <autodist@mambasoft.it> 2021.8-1mamba
- automatic version update by autodist
* Sat May 22 2021 Automatic Build System <autodist@mambasoft.it> 2021.5-1mamba
- automatic version update by autodist
* Wed Feb 03 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2020.12-1mamba
- package created using the webbuild interface