python-numpydoc/python-numpydoc.spec

90 lines
2.8 KiB
RPMSpec

%define pkgname %(echo %name | cut -d- -f2- | tr - _)
Name: python-numpydoc
Version: 1.8.0
Release: 1mamba
Summary: Sphinx extension to support docstrings in Numpy format
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://numpydoc.readthedocs.io/en/latest/
Source: https://pypi.debian.net/numpydoc/numpydoc-%{version}.tar.gz
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: libpython311-devel
BuildRequires: python3.11dist(sphinx)
BuildRequires: python3.11dist(tabulate)
## AUTOBUILDREQ-END
BuildRequires: python3-devel >= 3.11.5-3mamba
%description
%{summary}.
%if 0%{?with_pyver}
%if "%{?with_pyver}" == "3"
%define py_requires_append \
Obsoletes: python-numpydoc-py310 < 1.6.0-2mamba \
Obsoletes: python-numpydoc < 1.6.0-2mamba
%endif
%pyver_package
%endif
%prep
%setup -q -n numpydoc-%{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}/validate-docstrings; do
mv %{buildroot}${f}{,-%{?pyappend}}
done
%endif
%files %{?pyappend}
%defattr(-,root,root)
%{_bindir}/numpydoc
%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info
%{python_sitelib}/%{pkgname}-%{version}.dist-info/*
%dir %{python_sitelib}/%{pkgname}
%{python_sitelib}/%{pkgname}/*
%changelog
* Wed Aug 14 2024 Automatic Build System <autodist@openmamba.org> 1.8.0-1mamba
- automatic version update by autodist
* Thu Mar 28 2024 Automatic Build System <autodist@openmamba.org> 1.7.0-1mamba
- automatic version update by autodist
* Thu Mar 14 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 1.6.0-2mamba
- obsolete python-numpydoc-py310
* Fri Dec 01 2023 Automatic Build System <autodist@mambasoft.it> 1.6.0-1mamba
- automatic version update by autodist
* Tue Sep 26 2023 Automatic Build System <autodist@mambasoft.it> 1.5.0-3mamba
- rebuilt by autoport with build requirements: python3-devel>=3.11.5-3mamba
* Fri Apr 07 2023 Sdk Build System <sdk@mambasoft.it> 1.5.0-2mamba
- rebuilt with python 3.10
* Sun Oct 09 2022 Automatic Build System <autodist@mambasoft.it> 1.5.0-1mamba
- automatic version update by autodist
* Fri Jun 10 2022 Automatic Build System <autodist@mambasoft.it> 1.4.0-1mamba
- automatic version update by autodist
* Sun May 01 2022 Automatic Build System <autodist@mambasoft.it> 1.3.1-1mamba
- automatic version update by autodist
* Wed Mar 30 2022 Automatic Build System <autodist@mambasoft.it> 1.2.1-1mamba
- automatic version update by autodist
* Sun Feb 13 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2-1mamba
- package created using the webbuild interface