rebuilt for py3 and with distdeps [release 0.24.3-3mamba;Mon Aug 30 2021]

This commit is contained in:
Silvan Calarco 2024-01-06 11:23:45 +01:00
parent 9ef5950819
commit 67a1ba8c12
2 changed files with 23 additions and 18 deletions

View File

@ -1,6 +1,5 @@
# python-logilab-astng
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.

View File

@ -1,28 +1,28 @@
Name: python-logilab-astng
Version: 0.24.3
Release: 2mamba
Release: 3mamba
Summary: Python Abstract Syntax Tree New Generation
Group: System/Libraries/Python
Vendor: openmamba
Distribution: openmamba
Packager: Stefano Cotta Ramusino <stefano.cotta@openmamba.org>
URL: http://www.logilab.org/project/logilab-astng
Source: http://ftp.logilab.org/pub/astng/logilab-astng-%{version}.tar.gz
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.logilab.org/project/logilab-astng
Source: https://pypi.debian.net/logilab-astng/logilab-astng-%{version}.tar.gz
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: libpython-devel
BuildRequires: python-logilab-common
BuildRequires: libpython3-devel
BuildRequires: python3.7dist(logilab-common)
## AUTOBUILDREQ-END
Requires: python >= %python_version
Requires: python-logilab-common
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%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}
%pyver_package
%endif
%prep
%setup -q -n logilab-astng-%{version}
@ -39,17 +39,18 @@ The aim of this module is to provide a common base representation of python sour
--single-version-externally-managed \
--record=%{name}.filelist
# Avoid conflict with python-logilab-common
rm -f %{buildroot}%{python_sitelib}/logilab/__init__.py
# Do not package testsuite
rm -rf %{buildroot}%{python_sitelib}/logilab/astng/test
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz,;\,/test/,d" %{name}.filelist
#sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
# Fix encoding in readme
iconv -f iso-8859-15 -t utf-8 README > README.utf8
mv -f README.utf8 README
# 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
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
@ -59,9 +60,14 @@ mv -f README.utf8 README
%dir %{python_sitearch}/logilab/astng
%dir %{python_sitearch}/logilab/astng/brain
%{python_sitearch}/logilab/astng/brain/*
%doc ChangeLog COPYING README
%dir %{python_sitearch}/logilab_astng-%{version}-py*.egg-info
%{python_sitearch}/logilab_astng-%{version}-py*.egg-info/*
%doc COPYING
%changelog
* 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