Spec file for building RPMs
dvmc opened this issue ยท 3 comments
I have been trying to use the boxes.spec
file to build an RPM. First, I had to do some adjustments (change copyright
to license
, and properly escape the %
in the find command by doubling it). This is the command that I tried after building boxes:
rpmbuild -ba boxes.spec --build-in-place
This is as far as I could get. Now I get the following error:
Bad file: /home/d2/rpmbuild/SOURCES/v2.0.0.tar.gz: No such file or directory
I'm not too familiar with the RPM building process, so I don't know if the spec file needs further adjustments, or if it is just an invocation problem on my end.
Ah, well, the boxes.spec file is something I should remove from the repo, probably. I actually used it to build an RPM package 20 years ago, but that's not very useful today.
In order to help you, maybe this spec file by @tim77 is a better starting point for you. @tim77 uses it to build the official boxes package for Fedora, which is also RPM-based.
Thanks for the pointer! I can confirm that I can't compile Tim's spec file either, so it is definitely an invocation issue on my side.