2024-01-06 11:30:53 +01:00
|
|
|
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
|
2024-01-06 11:30:51 +01:00
|
|
|
Name: python-networkx
|
2024-10-11 21:23:21 +02:00
|
|
|
Version: 3.4
|
2024-01-06 11:30:52 +01:00
|
|
|
Release: 1mamba
|
2024-01-06 11:30:51 +01:00
|
|
|
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>
|
2024-01-06 11:30:52 +01:00
|
|
|
URL: https://networkx.org/documentation/stable/index.html
|
2024-01-06 11:30:51 +01:00
|
|
|
Source: https://pypi.debian.net/networkx/networkx-%{version}.tar.gz
|
|
|
|
License: BSD
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
2024-01-06 11:30:53 +01:00
|
|
|
BuildRequires: libpython311-devel
|
2024-01-06 11:30:51 +01:00
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
|
|
|
|
%description
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
%if 0%{?with_pyver}
|
2024-01-06 11:30:51 +01:00
|
|
|
%define py_requires_append \
|
|
|
|
Obsoletes: python-networkx1%{?pyappend:-%pyappend} <= 1.11
|
2024-01-06 11:30:51 +01:00
|
|
|
%pyver_package
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n networkx-%{version}
|
|
|
|
|
|
|
|
%build
|
2024-01-06 11:30:53 +01:00
|
|
|
CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel
|
2024-01-06 11:30:51 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-06 11:30:53 +01:00
|
|
|
%{__python} -m installer --destdir=%{buildroot} dist/*.whl
|
2024-01-06 11:30:51 +01:00
|
|
|
|
2024-01-06 11:30:53 +01:00
|
|
|
#%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
|
2024-01-06 11:30:51 +01:00
|
|
|
|
2024-01-06 11:30:53 +01:00
|
|
|
%files %{?pyappend}
|
2024-01-06 11:30:51 +01:00
|
|
|
%defattr(-,root,root)
|
2024-01-06 11:30:53 +01:00
|
|
|
%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info
|
|
|
|
%{python_sitelib}/%{pkgname}-%{version}.dist-info/*
|
|
|
|
%dir %{python_sitelib}/%{pkgname}
|
|
|
|
%{python_sitelib}/%{pkgname}/*
|
2024-01-06 11:30:51 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-10-11 21:23:21 +02:00
|
|
|
* Fri Oct 11 2024 Automatic Build System <autodist@openmamba.org> 3.4-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-04-16 18:01:38 +02:00
|
|
|
* Mon Apr 08 2024 Automatic Build System <autodist@openmamba.org> 3.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 11:30:53 +01:00
|
|
|
* Fri Dec 01 2023 Automatic Build System <autodist@mambasoft.it> 3.2.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 11:30:52 +01:00
|
|
|
* Thu Apr 13 2023 Automatic Build System <autodist@mambasoft.it> 3.1-1mamba
|
|
|
|
- automatic version update by autodist
|
2024-01-06 11:30:52 +01:00
|
|
|
|
|
|
|
* 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
|
|
|
|
|
2024-01-06 11:30:51 +01:00
|
|
|
* Sun Apr 04 2021 Automatic Build System <autodist@mambasoft.it> 2.5.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 11:30:51 +01:00
|
|
|
* Wed Feb 24 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2.5-2mamba
|
|
|
|
- obsolete python-networkx1
|
|
|
|
|
2024-01-06 11:30:51 +01:00
|
|
|
* Sun Sep 27 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2.5-1mamba
|
|
|
|
- package created using the webbuild interface
|