--On Thursday, November 23, 2017 5:39 PM +0000 Andrew W andrewjameswood@ymail.com wrote:
I want them to be installed in a subdirectory under /usr/local which I shall refer to as /usr/local/X
/usr/local is for stuff installed by the local admin outside the package manager. I'd recommend using /opt/X for your installation. /opt is for 3rd party stuff.
Some tutorials that might help:
https://wiki.centos.org/HowTos/SetupRpmBuildEnvironment
https://tecadmin.net/create-rpm-of-your-own-script-in-centosredhat/