asfadmin / ASF_MapReady

GNU General Public License v3.0
37 stars 21 forks source link

"ASF_MapReady/etc/asf_mapready.spec" incorrectly lists /usr/local/bin and /usr/local/share in %files section #479

Open mo-markcrossland opened 7 years ago

mo-markcrossland commented 7 years ago

The spec file that eventually produces an RPM for asf_mapready specifies the following in the %files section:

%files
%defattr(666,root,root,777)
%attr(-,root,root) /usr/local/bin
/usr/local/share

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