Unfortunately, this results in failure to install on OSs such as RHEL7 where /usr/local/share is owned by a system package, with the following error:
yum install asf_mapready
...
...
Transaction check error:
file /usr/local/share from install of asf_mapready-3.1.24-1.i386 conflicts with file from package filesystem-3.2-21.el7.x86_64
The spec file needs to be cleaned so that it either lists all of the files that it installs or uses a more sensible %files section that names all the files placed into /usr/local/bin individually, then all files placed into /usr/local/share/asf_tools/doc, and then /usr/local/share/asf_tools/mapready
The spec file that eventually produces an RPM for asf_mapready specifies the following in the %files section:
Unfortunately, this results in failure to install on OSs such as RHEL7 where
/usr/local/share
is owned by a system package, with the following error:The spec file needs to be cleaned so that it either lists all of the files that it installs or uses a more sensible %files section that names all the files placed into
/usr/local/bin
individually, then all files placed into/usr/local/share/asf_tools/doc
, and then/usr/local/share/asf_tools/mapready