python-networkx/python-networkx.spec

83 lines
2.6 KiB
RPMSpec
Raw Normal View History

%define pkgname %(echo %name | cut -d- -f2- | tr - _)
Name: python-networkx
Version: 3.4.2
Release: 1mamba
Summary: A Python package for the creation, manipulation, and study of the structure, dynamics, and functions of complex networks
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://networkx.org/documentation/stable/index.html
Source: https://pypi.debian.net/networkx/networkx-%{version}.tar.gz
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: libpython311-devel
## AUTOBUILDREQ-END
%description
%{summary}.
%if 0%{?with_pyver}
%define py_requires_append \
Obsoletes: python-networkx1%{?pyappend:-%pyappend} <= 1.11
%pyver_package
%endif
%prep
%setup -q -n networkx-%{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}/jws; 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}/*
%changelog
* Tue Oct 22 2024 Automatic Build System <autodist@openmamba.org> 3.4.2-1mamba
- automatic version update by autodist
* Sat Oct 12 2024 Automatic Build System <autodist@openmamba.org> 3.4.1-1mamba
- automatic version update by autodist
* Fri Oct 11 2024 Automatic Build System <autodist@openmamba.org> 3.4-1mamba
- automatic version update by autodist
* Mon Apr 08 2024 Automatic Build System <autodist@openmamba.org> 3.3-1mamba
- automatic version update by autodist
* Fri Dec 01 2023 Automatic Build System <autodist@mambasoft.it> 3.2.1-1mamba
- automatic version update by autodist
* Thu Apr 13 2023 Automatic Build System <autodist@mambasoft.it> 3.1-1mamba
- automatic version update by autodist
* Sat Feb 12 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6.3-2mamba
- rebuilt with distdeps
* Fri Feb 11 2022 Automatic Build System <autodist@mambasoft.it> 2.6.3-1mamba
- automatic version update by autodist
* Sun Apr 04 2021 Automatic Build System <autodist@mambasoft.it> 2.5.1-1mamba
- automatic version update by autodist
* Wed Feb 24 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2.5-2mamba
- obsolete python-networkx1
* Sun Sep 27 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2.5-1mamba
- package created using the webbuild interface