python-logilab-astng/python-logilab-astng.spec

95 lines
3.1 KiB
RPMSpec
Raw Permalink Normal View History

%define pkgname %(echo %name | cut -d- -f2- | tr - _)
Name: python-logilab-astng
Version: 0.24.3
Release: 4mamba
Summary: Python Abstract Syntax Tree New Generation
Group: System/Libraries/Python
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.logilab.fr/project/logilab-astng
Source: https://pypi.debian.net/logilab-astng/logilab-astng-%{version}.tar.gz
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: libpython311-devel
BuildRequires: python3.11dist(logilab-common)
## AUTOBUILDREQ-END
BuildRequires: python3-devel >= 3.11.5-3mamba
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.
%if 0%{?with_pyver}
%define py_requires_append \
Obsoletes: python-logilab-astng < 0.24.3-4mamba
%pyver_package
%endif
%prep
%setup -q -n logilab-astng-%{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}/pdm; do
# mv %{buildroot}${f}{,-%{?pyappend}}
#done
#%endif
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files %{?pyappend}
%defattr(-,root,root)
%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
%doc COPYING
%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
- rebuilt for py3 and with distdeps
* 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