building rpm fails

Asked by fizikz

"python3 setup.py bdist_rpm" fails on Fedora 28. Have I missed something?

The tarball from https://bazaar.launchpad.net/~caffeine-developers/caffeine/main/revision/666?start_revid=666 was downloaded, and extracted, and the above command was run in "[DIR]/~caffeine-developers/caffeine/main/".

The build seems to fail due to a missing VERSION file in the nested "build" directory, even though the file exist in the parent "main" directory. Perhaps it was meant to be created in the building process?

Below is the output with the errors:

Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.tnl3IZ
+ umask 022
+ cd [DIR]/~caffeine-developers/caffeine/main/build/bdist.linux-x86_64/rpm/BUILD
+ cd caffeine-2.9.4
+ python3 setup.py build
Traceback (most recent call last):
  File "setup.py", line 12, in <module>
    VERSION = open(join(ROOT_DIR, "VERSION")).read().strip()
FileNotFoundError: [Errno 2] No such file or directory: '[DIR]/~caffeine-developers/caffeine/main/build/bdist.linux-x86_64/rpm/BUILD/caffeine-2.9.4/VERSION'
error: Bad exit status from /var/tmp/rpm-tmp.tnl3IZ (%build)

RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.tnl3IZ (%build)
error: command 'rpmbuild' failed with exit status 1

Question information

Language:
English Edit question
Status:
Expired
For:
Caffeine Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.