2024-01-05 16:08:09 +01:00
|
|
|
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
|
|
|
|
Name: python-numpydoc
|
2024-01-05 16:08:10 +01:00
|
|
|
Version: 1.6.0
|
2024-03-14 18:15:08 +01:00
|
|
|
Release: 2mamba
|
2024-01-05 16:08:09 +01:00
|
|
|
Summary: Sphinx extension to support docstrings in Numpy format
|
|
|
|
Group: System/Libraries
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-05 16:08:09 +01:00
|
|
|
URL: https://numpydoc.readthedocs.io/en/latest/
|
2024-01-05 16:08:09 +01:00
|
|
|
Source: https://pypi.debian.net/numpydoc/numpydoc-%{version}.tar.gz
|
|
|
|
License: BSD
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
2024-01-05 16:08:10 +01:00
|
|
|
BuildRequires: libpython311-devel
|
|
|
|
BuildRequires: python3.11dist(jinja2)
|
|
|
|
BuildRequires: python3.11dist(sphinx)
|
2024-01-05 16:08:10 +01:00
|
|
|
BuildRequires: python3.11dist(tabulate)
|
2024-01-05 16:08:09 +01:00
|
|
|
## AUTOBUILDREQ-END
|
2024-01-05 16:08:10 +01:00
|
|
|
BuildRequires: python3-devel >= 3.11.5-3mamba
|
2024-01-05 16:08:09 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
%if 0%{?with_pyver}
|
2024-03-14 18:15:08 +01:00
|
|
|
%if "%{?with_pyver}" == "3"
|
|
|
|
%define py_requires_append \
|
|
|
|
Obsoletes: python-numpydoc-py310 < 1.6.0-2mamba \
|
|
|
|
Obsoletes: python-numpydoc < 1.6.0-2mamba
|
|
|
|
%endif
|
2024-01-05 16:08:09 +01:00
|
|
|
%pyver_package
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n numpydoc-%{version}
|
|
|
|
|
|
|
|
%build
|
2024-01-05 16:08:10 +01:00
|
|
|
CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel
|
2024-01-05 16:08:09 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-05 16:08:10 +01:00
|
|
|
%{__python} -m installer --destdir=%{buildroot} dist/*.whl
|
2024-01-05 16:08:09 +01:00
|
|
|
|
2024-01-05 16:08:10 +01:00
|
|
|
%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
|
2024-01-05 16:08:09 +01:00
|
|
|
|
2024-01-05 16:08:10 +01:00
|
|
|
%files %{?pyappend}
|
2024-01-05 16:08:09 +01:00
|
|
|
%defattr(-,root,root)
|
2024-01-05 16:08:10 +01:00
|
|
|
%{_bindir}/validate-docstrings*
|
|
|
|
%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info
|
|
|
|
%{python_sitelib}/%{pkgname}-%{version}.dist-info/*
|
|
|
|
%dir %{python_sitelib}/%{pkgname}
|
|
|
|
%{python_sitelib}/%{pkgname}/*
|
2024-01-05 16:08:09 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-03-14 18:15:08 +01:00
|
|
|
* Thu Mar 14 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 1.6.0-2mamba
|
|
|
|
- obsolete python-numpydoc-py310
|
|
|
|
|
2024-01-05 16:08:10 +01:00
|
|
|
* Fri Dec 01 2023 Automatic Build System <autodist@mambasoft.it> 1.6.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:08:10 +01:00
|
|
|
* 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
|
|
|
|
|
2024-01-05 16:08:10 +01:00
|
|
|
* Fri Apr 07 2023 Sdk Build System <sdk@mambasoft.it> 1.5.0-2mamba
|
|
|
|
- rebuilt with python 3.10
|
|
|
|
|
2024-01-05 16:08:09 +01:00
|
|
|
* Sun Oct 09 2022 Automatic Build System <autodist@mambasoft.it> 1.5.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:08:09 +01:00
|
|
|
* Fri Jun 10 2022 Automatic Build System <autodist@mambasoft.it> 1.4.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:08:09 +01:00
|
|
|
* 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
|
|
|
|
|
2024-01-05 16:08:09 +01:00
|
|
|
* Sun Feb 13 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2-1mamba
|
|
|
|
- package created using the webbuild interface
|