Skip to content

Instantly share code, notes, and snippets.

@mxwell
Last active September 6, 2015 18:21
Show Gist options
  • Save mxwell/bad02fd21a017e60c998 to your computer and use it in GitHub Desktop.
Save mxwell/bad02fd21a017e60c998 to your computer and use it in GitHub Desktop.
Set permission for files in RPM
# It's useful, if you got warnings like this in SailfishOS SDK validation tool:
# WARNING [/usr/share/icons/hicolor/86x86/apps/harbour-<app>.png] File must not be executable (current permissions: 755)
...
%files
%defattr(755,root,root,-)
%{_bindir}
%defattr(644,root,root,-)
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}
%{_datadir}/icons/hicolor/86x86/apps/%{name}.png
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment