1 # NOTE: for versions >= 1 see python-astroid.spec (module has been renamed)
4 %bcond_without python2 # Python 2.x module
5 %bcond_without python3 # Python 3.x module
7 %define module logilab-astng
8 Summary: Python Abstract Syntax Tree New Generation
9 Summary(pl.UTF-8): Abstrakcyjne drzewa składniowe Pythona nowej generacji
10 Name: python-logilab-astng
14 Group: Development/Languages/Python
15 Source0: http://download.logilab.org/pub/astng/%{module}-%{version}.tar.gz
16 # Source0-md5: 11d9a33a00790dc30b851afbeaf1fb4e
17 URL: http://www.logilab.org/projects/astng
19 BuildRequires: python-devel
20 BuildRequires: python-modules >= 1:2.5
23 BuildRequires: rpm-pythonprov
24 BuildRequires: rpmbuild(macros) >= 1.710
25 BuildRequires: python3-2to3
26 BuildRequires: python3-devel
27 BuildRequires: python3-modules >= 1:3.1
29 %pyrequires_eq python-modules
30 Requires: python-logilab-common >= 0.53.0
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 The aim of this module is to provide a common base representation of
36 Python source code for projects such as pychecker, pyreverse,
37 pylint... Well, actually the development of this library is essentialy
38 governed by pylint's needs.
40 %description -l pl.UTF-8
41 Celem tego modułu jest dostarczenie wspólnej bazowej reprezentacji
42 kodu źródłowego Pythona dla projektów takich jak pychecker, pyreverse,
43 pylint... Właściwie tworzenie tej biblioteki jest istotnie kierowane
46 %package -n python3-%{module}
47 Summary: Python Abstract Syntax Tree New Generation
48 Summary(pl.UTF-8): Abstrakcyjne drzewa składniowe Pythona nowej generacji
49 Group: Development/Languages/Python
50 %pyrequires_eq python3-modules
51 Requires: python3-logilab-common >= 0.53.0
53 %description -n python3-%{module}
54 The aim of this module is to provide a common base representation of
55 Python source code for projects such as pychecker, pyreverse,
56 pylint... Well, actually the development of this library is essentialy
57 governed by pylint's needs.
59 %description -n python3-%{module} -l pl.UTF-8
60 Celem tego modułu jest dostarczenie wspólnej bazowej reprezentacji
61 kodu źródłowego Pythona dla projektów takich jak pychecker, pyreverse,
62 pylint... Właściwie tworzenie tej biblioteki jest istotnie kierowane
66 %setup -q -n %{module}-%{version}
67 # drop python 2.5 egg deps
75 %py3_build --build-base=build3
79 rm -rf $RPM_BUILD_ROOT
82 %py3_build --build-base=build3 install \
84 --root=$RPM_BUILD_ROOT
86 # this file is packaged with python3-logilab-common
87 rm $RPM_BUILD_ROOT%{py3_sitescriptdir}/logilab/__init__.py
97 rm -rf $RPM_BUILD_ROOT
101 %defattr(644,root,root,755)
102 %doc ChangeLog README
103 %{py_sitescriptdir}/logilab/astng
104 %{py_sitescriptdir}/logilab_astng-%{version}-py*.egg-info
105 %{py_sitescriptdir}/logilab_astng-%{version}-py*-nspkg.pth
109 %files -n python3-%{module}
110 %defattr(644,root,root,755)
111 %doc ChangeLog README
112 %{py3_sitescriptdir}/logilab/astng
113 %{py3_sitescriptdir}/logilab_astng-%{version}-py*.egg-info
114 %{py3_sitescriptdir}/logilab_astng-%{version}-py*-nspkg.pth