From 67a1ba8c1289485e56581b882814a3668fffc280 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 11:23:45 +0100 Subject: [PATCH] rebuilt for py3 and with distdeps [release 0.24.3-3mamba;Mon Aug 30 2021] --- README.md | 1 - python-logilab-astng.spec | 40 ++++++++++++++++++++++----------------- 2 files changed, 23 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index c112908..d5bd178 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/python-logilab-astng.spec b/python-logilab-astng.spec index c6afd1b..16f2bf6 100644 --- a/python-logilab-astng.spec +++ b/python-logilab-astng.spec @@ -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 -URL: http://www.logilab.org/project/logilab-astng -Source: http://ftp.logilab.org/pub/astng/logilab-astng-%{version}.tar.gz +Packager: Silvan Calarco +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 0.24.3-3mamba +- rebuilt for py3 and with distdeps + * Sat May 25 2013 Silvan Calarco 0.24.3-2mamba - python 2.7 mass rebuild