https://bugzilla.redhat.com/show_bug.cgi?id=1603146
--- Comment #7 from Martin Pitt mpitt@redhat.com --- That's what I do now, more or less (https://github.com/martinpitt/starter-kit/blob/simplify-spec/cockpit-starter...):
%files /usr/share/cockpit/* /usr/share/metainfo/*
I'm happy to replace /usr/share/ with %{_datadir} though (will update the PR in a sec). I just don't want to hardcode the project name in starter-kit (as every project that descends from it will have to change it), but I can change it in ostree if that seems clearer.