Errors in packaging kupfer

Ratnadeep Debnath rtnpro at gmail.com
Wed May 26 07:51:48 UTC 2010


Hi,

I am packaging kupfer for fedora. I have already packaged
python-keyring which is a dependency for kupfer.

http://rtnpro.fedorapeople.org/Packages/SRPMS/python-keyring-0.2-1.fc12.src.rpm

kupfer SPEC used : http://rtnpro.fedorapeople.org/Packages/SPECS/kupfer.spec
kupfer src : http://kaizer.se/publicfiles/kupfer/kupfer-v200.tar.gz
kupfer uses the waf build system. While
./waf configure
works from the source folder of kupfer
#################################
[rtnpro at xps kupfer-v200]$ waf configure
Check for program python                 : /usr/bin/python
Checking for Python version >= 2.6.0     : ok 2.6.2
Check for program gcc or cc              : /usr/lib/ccache/gcc
Check for program cpp                    : /usr/bin/cpp
Check for program ar                     : /usr/bin/ar
Check for program ranlib                 : /usr/bin/ranlib
Check for program msgfmt                 : /usr/bin/msgfmt
Check for program intltool-merge         : /usr/bin/intltool-merge
Checking for header locale.h             : ok
Check for program xml2po                 : /usr/bin/xml2po
Installing python modules into: /usr/local/share/kupfer
Checking for Python module gio           : ok
Checking for Python module gtk           : ok
Checking for Python module xdg           : ok
Checking for Python module dbus          : ok
Checking for Python module keyring       : ok
Checking optional dependencies:
Check for program dbus-send              : /bin/dbus-send
Check for program rst2man                : not found
Optional, allows: Generate and install man page
Checking for Python module keybinder     : not found
Python module keybinder is recommended
Please see README
Checking for Python module wnck          : ok
Checking for Python module gnome         : ok
'configure' finished successfully (0.808s)

But while I am doing rpmbuild, it says that
Python gtk module not found

#################################
[rtnpro at xps SPECS]$ rpmbuild -ba kupfer.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.AtQBIg
+ umask 022
+ cd /home/rtnpro/rpmbuild/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /home/rtnpro/rpmbuild/BUILD
+ rm -rf kupfer-v200
+ /usr/bin/gzip -dc /home/rtnpro/rpmbuild/SOURCES/kupfer-v200.tar.gz
+ /bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd kupfer-v200
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.sxcUp9
+ umask 022
+ cd /home/rtnpro/rpmbuild/BUILD
+ cd kupfer-v200
+ LANG=C
+ export LANG
+ unset DISPLAY
+ CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686
-mtune=atom -fasynchronous-unwind-tables'
+ LDFLAGS=-lm
+ waf configure --prefix=/usr
Check for program python                 : /usr/bin/python
Checking for Python version >= 2.6.0     : ok 2.6.2
Check for program gcc or cc              : /usr/lib/ccache/gcc
Check for program cpp                    : /usr/bin/cpp
Check for program ar                     : /usr/bin/ar
Check for program ranlib                 : /usr/bin/ranlib
Check for program msgfmt                 : /usr/bin/msgfmt
Check for program intltool-merge         : /usr/bin/intltool-merge
Checking for header locale.h             : ok
Check for program xml2po                 : /usr/bin/xml2po
Installing python modules into: /usr/share/kupfer
Checking for Python module gio           : ok
Checking for Python module gtk           : not found
/home/rtnpro/rpmbuild/BUILD/kupfer-v200/wscript:143: error: Could not
find the python module 'gtk'
error: Bad exit status from /var/tmp/rpm-tmp.sxcUp9 (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.sxcUp9 (%build)

I am not able to figure out why this is happening.
Please help.

Thanks,
Regards,
rtnpro


More information about the devel mailing list