Making the - - prefix option required when installing an RPM package
We packaged up some of our scripts that our company uses. In the %files section of the spec file the files contain a path that will most likely not be used by some of our target users. We have added the Prefix: option to allow them to install in it another location with the --prefix option and it works great. The question is can we somehow make the --prefix option a required option when trying to install the RPM?
Thanks Rick |
Try looking at http://rpm.org/wiki/Docs#PackagerDocumentation. You may find the answer you need and more there.
|
(Well within necroposting limits I hope) AFAIK .spec "Prefix:" != RPM CLI arg "--prefix" but "--reloc". In any case using something like this:
Code:
%pre |
Going with it.
Thanks, I've read and I asked but nothing that I found can make the --prefix a required option except adding the script option as unSpawn suggested. Thanks, I think I will go with it.
|
All times are GMT -5. The time now is 04:00 AM. |