diff --git a/python-networkx.spec b/python-networkx.spec index bdc1b81..8b30156 100644 --- a/python-networkx.spec +++ b/python-networkx.spec @@ -1,5 +1,6 @@ +%define pkgname %(echo %name | cut -d- -f2- | tr - _) Name: python-networkx -Version: 3.1 +Version: 3.2.1 Release: 1mamba Summary: A Python package for the creation, manipulation, and study of the structure, dynamics, and functions of complex networks Group: System/Libraries @@ -10,7 +11,7 @@ URL: https://networkx.org/documentation/stable/index.html Source: https://pypi.debian.net/networkx/networkx-%{version}.tar.gz License: BSD ## AUTOBUILDREQ-BEGIN -BuildRequires: libpython310-devel +BuildRequires: libpython311-devel ## AUTOBUILDREQ-END %description @@ -26,25 +27,30 @@ Obsoletes: python-networkx1%{?pyappend:-%pyappend} <= 1.11 %setup -q -n networkx-%{version} %build -CFLAGS="%{optflags}" %{__python} setup.py build +CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -%{__python} setup.py install \ - -O1 --skip-build \ - --root="%{buildroot}" \ - --install-headers=%{python_inc} \ - --install-lib=%{python_sitearch} \ - --record=%{name}.filelist +%{__python} -m installer --destdir=%{buildroot} dist/*.whl -sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist +#%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} -f %{name}.filelist +%files %{?pyappend} %defattr(-,root,root) -%dir %{python_sitearch}/networkx-%{version}-py*.egg-info -%{python_sitearch}/networkx-%{version}-py*.egg-info/* +%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info +%{python_sitelib}/%{pkgname}-%{version}.dist-info/* +%dir %{python_sitelib}/%{pkgname} +%{python_sitelib}/%{pkgname}/* %changelog +* Fri Dec 01 2023 Automatic Build System 3.2.1-1mamba +- automatic version update by autodist + * Thu Apr 13 2023 Automatic Build System 3.1-1mamba - automatic version update by autodist