Skip to content

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

Description

@mo-markcrossland

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions