Build RPM to install in non standard path
Posted: 2016-03-19T16:03:59-07:00
I have to work with an older version, specifically 6.6.5-10 on CentOS 6.7, and am trying to build an RPM to install in /usr/local. If I do the configure and make for /usr/local, it installs and works as expected. When I do a make rpm and look at the result via rpm -qlp xxx.rpm it shows everything going into /usr. This overrides the version installed by yum which I am trying to avoid. It appears to DESTDIR in the ImageMagick.spec.in file which comes from the RPM_BUILD_ROOT. Is there a way to fix this so I can generate an RPM that does in fact install where I need it, /usr/local?
I've been beating my head on this for several hours. Help is MUCH appreciated.
I've been beating my head on this for several hours. Help is MUCH appreciated.