python-sphinxcontrib-serial.../python-sphinxcontrib-serializinghtml.spec

82 lines
2.6 KiB
RPMSpec

%define pkgname %(echo %name | cut -d- -f2- | tr - _)
Name: python-sphinxcontrib-serializinghtml
Version: 1.1.10
Release: 1mamba
Summary: A sphinx extension which outputs "serialized" HTML files (json and pickle)
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.sphinx-doc.org/en/master/
Source: https://pypi.debian.net/sphinxcontrib-serializinghtml/sphinxcontrib_serializinghtml-%{version}.tar.gz
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: libpython311-devel
## AUTOBUILDREQ-END
BuildRequires: python3-devel >= 3.11.5-3mamba
%description
%{summary}.
%if 0%{?with_pyver}
%define py_requires_append \
Obsoletes: python-sphinxcontrib-serializinghtml < 1.1.5
%pyver_package
%endif
%prep
%setup -q -n sphinxcontrib_serializinghtml-%{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}/sphinxcontrib/serializinghtml
%{python_sitelib}/sphinxcontrib/serializinghtml/*
%doc LICENSE
%changelog
* Sat Jan 13 2024 Automatic Build System <autodist@openmamba.org> 1.1.10-1mamba
- automatic version update by autodist
* Sat Nov 11 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.9-1mamba
- update to 1.1.9
* Wed Sep 27 2023 Automatic Build System <autodist@mambasoft.it> 1.1.5-4mamba
- rebuilt by autoport with build requirements: python3-devel>=3.11.5-3mamba
* Thu Mar 09 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.5-3mamba
- rebuilt with python 3.10
* Tue Jun 01 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.5-2mamba
- obsolete python-sphinxcontrib-serializinghtml
* Sun May 30 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.5-1mamba
- update to 1.1.5
* Sat Apr 17 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.4-3mamba
- rebuilt with distdeps
* Sat Nov 28 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.4-2mamba
- fix multi python build
* Sun Mar 01 2020 Automatic Build System <autodist@mambasoft.it> 1.1.4-1mamba
- automatic version update by autodist
* Thu May 16 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.3-1mamba
- package created using the webbuild interface