2024-01-06 11:23:45 +01:00
|
|
|
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
|
2024-01-06 11:23:45 +01:00
|
|
|
Name: python-logilab-astng
|
|
|
|
Version: 0.24.3
|
2024-01-06 11:23:45 +01:00
|
|
|
Release: 4mamba
|
2024-01-06 11:23:45 +01:00
|
|
|
Summary: Python Abstract Syntax Tree New Generation
|
|
|
|
Group: System/Libraries/Python
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
2024-01-06 11:23:45 +01:00
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-06 11:23:45 +01:00
|
|
|
URL: https://www.logilab.fr/project/logilab-astng
|
2024-01-06 11:23:45 +01:00
|
|
|
Source: https://pypi.debian.net/logilab-astng/logilab-astng-%{version}.tar.gz
|
2024-01-06 11:23:45 +01:00
|
|
|
License: GPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
2024-01-06 11:23:45 +01:00
|
|
|
BuildRequires: libpython311-devel
|
|
|
|
BuildRequires: python3.11dist(logilab-common)
|
2024-01-06 11:23:45 +01:00
|
|
|
## AUTOBUILDREQ-END
|
2024-01-06 11:23:45 +01:00
|
|
|
BuildRequires: python3-devel >= 3.11.5-3mamba
|
2024-01-06 11:23:45 +01:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
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.
|
|
|
|
|
2024-01-06 11:23:45 +01:00
|
|
|
%if 0%{?with_pyver}
|
2024-01-06 11:23:45 +01:00
|
|
|
%define py_requires_append \
|
|
|
|
Obsoletes: python-logilab-astng < 0.24.3-4mamba
|
2024-01-06 11:23:45 +01:00
|
|
|
%pyver_package
|
|
|
|
%endif
|
|
|
|
|
2024-01-06 11:23:45 +01:00
|
|
|
%prep
|
|
|
|
%setup -q -n logilab-astng-%{version}
|
|
|
|
|
|
|
|
%build
|
2024-01-06 11:23:45 +01:00
|
|
|
CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel
|
2024-01-06 11:23:45 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-06 11:23:45 +01:00
|
|
|
%{__python} -m installer --destdir=%{buildroot} dist/*.whl
|
2024-01-06 11:23:45 +01:00
|
|
|
|
2024-01-06 11:23:45 +01:00
|
|
|
#%if "%{?with_pyver}" != "3"
|
|
|
|
## Rename any conflicting file outside of python site packages tree
|
|
|
|
#for f in %{_bindir}/pdm; do
|
|
|
|
# mv %{buildroot}${f}{,-%{?pyappend}}
|
|
|
|
#done
|
|
|
|
#%endif
|
2024-01-06 11:23:45 +01:00
|
|
|
|
2024-01-06 11:23:45 +01:00
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
2024-01-06 11:23:45 +01:00
|
|
|
%files %{?pyappend}
|
2024-01-06 11:23:45 +01:00
|
|
|
%defattr(-,root,root)
|
2024-01-06 11:23:45 +01:00
|
|
|
%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info
|
|
|
|
%{python_sitelib}/%{pkgname}-%{version}.dist-info/*
|
|
|
|
%dir %{python_sitelib}/logilab
|
|
|
|
%{python_sitelib}/logilab/*
|
|
|
|
%{python_sitelib}/logilab_astng-%{version}-py*-nspkg.pth
|
2024-01-06 11:23:45 +01:00
|
|
|
%doc COPYING
|
2024-01-06 11:23:45 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-06 11:23:45 +01:00
|
|
|
* Sun Oct 01 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 0.24.3-4mamba
|
|
|
|
- rebuilt with python3 == 3.11
|
|
|
|
|
2024-01-06 11:23:45 +01:00
|
|
|
* Mon Aug 30 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.24.3-3mamba
|
|
|
|
- rebuilt for py3 and with distdeps
|
|
|
|
|
2024-01-06 11:23:45 +01:00
|
|
|
* Sat May 25 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.24.3-2mamba
|
|
|
|
- python 2.7 mass rebuild
|
|
|
|
|
|
|
|
* Fri May 17 2013 Automatic Build System <autodist@mambasoft.it> 0.24.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Fri Mar 08 2013 Automatic Build System <autodist@mambasoft.it> 0.24.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Thu Oct 18 2012 Automatic Build System <autodist@mambasoft.it> 0.24.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Wed Sep 05 2012 Automatic Build System <autodist@mambasoft.it> 0.24.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sat Aug 06 2011 Automatic Build System <autodist@mambasoft.it> 0.22.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Mon Feb 28 2011 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 0.21.1-1mamba
|
|
|
|
- update to 0.21.1
|
|
|
|
|
|
|
|
* Tue Nov 16 2010 Automatic Build System <autodist@mambasoft.it> 0.21.0-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Fri Nov 12 2010 Automatic Build System <autodist@mambasoft.it> 0.20.4-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Mon May 31 2010 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 0.20.1-1mamba
|
|
|
|
- package created by autospec
|