Closed Aquarian-Age closed 3 years ago
Look at the flag help: https://github.com/google/rpmpack/blob/0a97c2c4b6884bcf351800f7e2fa2d6a8836c8e9/cmd/tar2rpm/main.go#L52
The content of prein
should be the scriptlet itself: something you can run on the target host, e.g. a list of commands or something. It seems like you passed in /usr/bin/ccal-single
, which tries to run this command, but it does not exist on the target host.
Either you want to include this file in your installation, and then use postin (which should work because the file is already there), or you want to replace the flag value with the contents of the file (in bash you can do -prein="$(cat /usr/bin/ccal-single)"
tar2rpm -name "ccal" -version "0.0.1" -release "v0.6.9" -arch "x86_64" -licence "MIT" -prein "/usr/bin/ccal-single" -file "ccal.rpm" ccal.tar
sudo zypper in ccal.rpm
What should I do?