At last

At last after discussion with straw developers in #straw at irc.freenode.net , i am able to fix the problem .

I added a line so that constants.py which take care of installation dir. does not points to buildroot as it was doing before.

Found ‘/ c27950’ in installed files; aborting
error: Bad exit status from /var/tmp/rpm-tmp.19618 (%install)

This is because constants.py was pointing to
libdir = os.path.normpath('/var/tmp/straw-0.27-4-c27950/usr/lib/python2.5/site-packages/straw')
The line i added is

sed -i -e s@${RPM_BUILD_ROOT}@@ ${RPM_BUILD_ROOT}%{python_sitelib}/%{name}/constants.py

Now the constants.py points to
libdir = os.path.normpath('/usr/lib/python2.5/site-packages/straw')

Instead of previous var/tmp/straw-0.27-4-........................... as mentioned above.

Spec file along with SRPM and RPM are available here

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s