Description of problem: http://koji.fedoraproject.org/koji/taskinfo?taskID=786055 After the bug report 460022 I tried to rebuild wallpapoz with adding (Build)Requires gnome-python2-gnome but it fails with setup.py's checking code: python -c 'import gtk.glade' python -c 'gnome' python -c 'import pygtk' Even if pygtk2-libglade, gnome-python2-gnome, pygtk2' are all installed as BuildRequires. Why "Requires: pycairo, pygobject2' were removed from pygtk2? Version-Release number of selected component (if applicable): pygtk2-2.13.0-1.fc10 How reproducible: 100% Steps to Reproduce: 1. $ yum install pygtk2 (2.13.0-1.fc10 is installed) 2. $ python -c 'import gtk' 3. Actual results: * Without pygobject2: # python -c 'import gtk' Traceback (most recent call last): File "<string>", line 1, in <module> ImportError: No module named gtk * With pygobject2 but without pycairo: # python -c 'import gtk' Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/lib/python2.5/site-packages/gtk-2.0/gtk/__init__.py", line 48, in <module> from gtk import _gtk ImportError: No module named cairo Expected results: All of 3 commands above should succeed. Additional info:
Sorry about that. Fixed in pygtk-2.13.0-2.fc10. I keep forgetting that RPM isn't smart enough to derive a pycairo requirement from the pycairo-devel build requirement, as it does with normal C libraries. Please reopen if you still run into trouble.
Well, I know some person sometimes tried to let rpmbuild detect python related dependency like perl, however as far as I know no person has succeeded it yet. Thank you for the immediate fix.