rebuilt with python3 == 3.11 [release 0.24.3-4mamba;Sun Oct 01 2023]
This commit is contained in:
parent
67a1ba8c12
commit
a20c7af569
@ -1,18 +1,20 @@
|
|||||||
|
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
|
||||||
Name: python-logilab-astng
|
Name: python-logilab-astng
|
||||||
Version: 0.24.3
|
Version: 0.24.3
|
||||||
Release: 3mamba
|
Release: 4mamba
|
||||||
Summary: Python Abstract Syntax Tree New Generation
|
Summary: Python Abstract Syntax Tree New Generation
|
||||||
Group: System/Libraries/Python
|
Group: System/Libraries/Python
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
Distribution: openmamba
|
Distribution: openmamba
|
||||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||||
URL: https://www.logilab.org/project/logilab-astng
|
URL: https://www.logilab.fr/project/logilab-astng
|
||||||
Source: https://pypi.debian.net/logilab-astng/logilab-astng-%{version}.tar.gz
|
Source: https://pypi.debian.net/logilab-astng/logilab-astng-%{version}.tar.gz
|
||||||
License: GPL
|
License: GPL
|
||||||
## AUTOBUILDREQ-BEGIN
|
## AUTOBUILDREQ-BEGIN
|
||||||
BuildRequires: libpython3-devel
|
BuildRequires: libpython311-devel
|
||||||
BuildRequires: python3.7dist(logilab-common)
|
BuildRequires: python3.11dist(logilab-common)
|
||||||
## AUTOBUILDREQ-END
|
## AUTOBUILDREQ-END
|
||||||
|
BuildRequires: python3-devel >= 3.11.5-3mamba
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -20,6 +22,8 @@ astng allows to rebuild a new abstract syntax tree from Python's ast.
|
|||||||
The aim of this module is to provide a common base representation of python source code for projects such as pychecker, pyreverse and pylint.
|
The aim of this module is to provide a common base representation of python source code for projects such as pychecker, pyreverse and pylint.
|
||||||
|
|
||||||
%if 0%{?with_pyver}
|
%if 0%{?with_pyver}
|
||||||
|
%define py_requires_append \
|
||||||
|
Obsoletes: python-logilab-astng < 0.24.3-4mamba
|
||||||
%pyver_package
|
%pyver_package
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -27,44 +31,35 @@ The aim of this module is to provide a common base representation of python sour
|
|||||||
%setup -q -n logilab-astng-%{version}
|
%setup -q -n logilab-astng-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{__python} setup.py build
|
CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
%{__python} setup.py install \
|
%{__python} -m installer --destdir=%{buildroot} dist/*.whl
|
||||||
-O1 --skip-build \
|
|
||||||
--root="%{buildroot}" \
|
|
||||||
--install-headers=%{_includedir}/python \
|
|
||||||
--install-lib=%{python_sitearch} \
|
|
||||||
--single-version-externally-managed \
|
|
||||||
--record=%{name}.filelist
|
|
||||||
|
|
||||||
#sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
|
#%if "%{?with_pyver}" != "3"
|
||||||
|
## Rename any conflicting file outside of python site packages tree
|
||||||
# Fix encoding in readme
|
#for f in %{_bindir}/pdm; do
|
||||||
iconv -f iso-8859-15 -t utf-8 README > README.utf8
|
# mv %{buildroot}${f}{,-%{?pyappend}}
|
||||||
mv -f README.utf8 README
|
#done
|
||||||
|
#%endif
|
||||||
# Avoid conflict with python-logilab-common
|
|
||||||
rm -f %{buildroot}%{python_sitearch}/logilab/__init__.py
|
|
||||||
# Do not package testsuite
|
|
||||||
rm -rf %{buildroot}%{python_sitearch}/logilab/astng/test
|
|
||||||
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz,;\,/test/,d" %{name}.filelist
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
|
|
||||||
%files -f %{name}.filelist
|
%files %{?pyappend}
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%dir %{python_sitearch}/logilab
|
%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info
|
||||||
%dir %{python_sitearch}/logilab/astng
|
%{python_sitelib}/%{pkgname}-%{version}.dist-info/*
|
||||||
%dir %{python_sitearch}/logilab/astng/brain
|
%dir %{python_sitelib}/logilab
|
||||||
%{python_sitearch}/logilab/astng/brain/*
|
%{python_sitelib}/logilab/*
|
||||||
%dir %{python_sitearch}/logilab_astng-%{version}-py*.egg-info
|
%{python_sitelib}/logilab_astng-%{version}-py*-nspkg.pth
|
||||||
%{python_sitearch}/logilab_astng-%{version}-py*.egg-info/*
|
|
||||||
%doc COPYING
|
%doc COPYING
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Oct 01 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 0.24.3-4mamba
|
||||||
|
- rebuilt with python3 == 3.11
|
||||||
|
|
||||||
* Mon Aug 30 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.24.3-3mamba
|
* Mon Aug 30 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.24.3-3mamba
|
||||||
- rebuilt for py3 and with distdeps
|
- rebuilt for py3 and with distdeps
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user