google / rpmpack

rpmpack (tar2rpm) - package rpms in pure golang or cli
Apache License 2.0
116 stars 32 forks source link

No prefix support for generated rpm #79

Closed entropaos closed 1 year ago

entropaos commented 1 year ago

Hello, team, this project looks not support prefix for the rpm package. So the rpm package is not relocatable. Guys, is there a plan to support this feature?

jarondl commented 1 year ago

We have no problem to support it, but someone needs to a bit of digging.

I suspect it would be rather easy - set a string array tag with the tag value of RPMTAG_INSTPREFIXES, and with the prefixes.

I can check if its as simple as that.

jarondl commented 1 year ago

It was not RPMTAG_INSTPREFIXES but rather RPMTAG_PREFIXES, but I think I got this to work.