100 lines
3.2 KiB
RPMSpec
100 lines
3.2 KiB
RPMSpec
Name: python-logilab-astng
|
|
Version: 0.24.3
|
|
Release: 3mamba
|
|
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.org/project/logilab-astng
|
|
Source: https://pypi.debian.net/logilab-astng/logilab-astng-%{version}.tar.gz
|
|
License: GPL
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: libpython3-devel
|
|
BuildRequires: python3.7dist(logilab-common)
|
|
## 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.
|
|
|
|
%if 0%{?with_pyver}
|
|
%pyver_package
|
|
%endif
|
|
|
|
%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
|
|
|
|
#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}"
|
|
|
|
%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/*
|
|
%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
|
|
|
|
* 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
|