--- /dev/null
+diff -dur logilab-astng-0.21.1.orig/scoped_nodes.py logilab-astng-0.21.1/scoped_nodes.py
+--- logilab-astng-0.21.1.orig/scoped_nodes.py 2011-01-11 15:47:29.000000000 +0100
++++ logilab-astng-0.21.1/scoped_nodes.py 2011-07-08 10:19:38.000000000 +0200
+@@ -342,6 +342,8 @@
+ # XXX this returns non sens when called on an absolute import
+ # like 'pylint.checkers.logilab.astng.utils'
+ # XXX doesn't return absolute name if self.name isn't absolute name
++ if self.absolute_import_activated() and level is None:
++ return modname
+ if level:
+ if self.package:
+ level = level - 1
Summary: Python Abstract Syntax Tree New Generation
Summary(pl.UTF-8): Abstrakcyjne drzewa składniowe Pythona nowej generacji
Name: python-logilab-astng
-Version: 0.21.0
-Release: 1
+Version: 0.21.1
+Release: 2
License: GPL
Group: Development/Languages/Python
Source0: ftp://ftp.logilab.fr/pub/astng/%{module}-%{version}.tar.gz
-# Source0-md5: 582751f0abbd8a530b610f7f1bdd290a
+# Source0-md5: 064a1cb970c283cf18e05a990db48576
+Patch0: logilab-astng-absolute_import.patch
URL: http://www.logilab.org/projects/astng
BuildRequires: python-devel
BuildRequires: python-modules >= 1:2.5
%prep
%setup -q -n %{module}-%{version}
+%patch0 -p1
+
%build
python setup.py build