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: 3mamba
|
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>
|
|
|
|
URL: https://www.logilab.org/project/logilab-astng
|
|
|
|
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: libpython3-devel
|
|
|
|
BuildRequires: python3.7dist(logilab-common)
|
2024-01-06 11:23:45 +01:00
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
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}
|
|
|
|
%pyver_package
|
|
|
|
%endif
|
|
|
|
|
2024-01-06 11:23:45 +01:00
|
|
|
%prep
|
|
|
|
%setup -q -n logilab-astng-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%{__python} setup.py build
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%{__python} setup.py install \
|
|
|
|
-O1 --skip-build \
|
|
|
|
--root="%{buildroot}" \
|
|
|
|
--install-headers=%{_includedir}/python \
|
|
|
|
--install-lib=%{python_sitearch} \
|
|
|
|
--single-version-externally-managed \
|
|
|
|
--record=%{name}.filelist
|
|
|
|
|
2024-01-06 11:23:45 +01:00
|
|
|
#sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
|
2024-01-06 11:23:45 +01:00
|
|
|
|
|
|
|
# Fix encoding in readme
|
|
|
|
iconv -f iso-8859-15 -t utf-8 README > README.utf8
|
|
|
|
mv -f README.utf8 README
|
|
|
|
|
2024-01-06 11:23:45 +01:00
|
|
|
# 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
|
|
|
|
|
2024-01-06 11:23:45 +01:00
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%files -f %{name}.filelist
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{python_sitearch}/logilab
|
|
|
|
%dir %{python_sitearch}/logilab/astng
|
|
|
|
%dir %{python_sitearch}/logilab/astng/brain
|
|
|
|
%{python_sitearch}/logilab/astng/brain/*
|
2024-01-06 11:23:45 +01:00
|
|
|
%dir %{python_sitearch}/logilab_astng-%{version}-py*.egg-info
|
|
|
|
%{python_sitearch}/logilab_astng-%{version}-py*.egg-info/*
|
|
|
|
%doc COPYING
|
2024-01-06 11:23:45 +01:00
|
|
|
|
|
|
|
%changelog
|
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
|