Name: su-exec Version: 0.2 Release: 1%{?dist} Summary: su-exec - switch user and group id, setgroups and exec License: MIT URL: https://github.com/ncopa/su-exec Source0: https://github.com/ncopa/su-exec/archive/v0.2.tar.gz %description switch user and group id, setgroups and exec This is a simple tool that will simply execute a program with different privileges. The program will not run as a child, like su and sudo, so we work around TTY and signal issues. This does more or less exactly the same thing as gosu but it is only 10kb instead of 1.8MB. %prep %autosetup %build %make_build %install %{__install} -Dpm 0755 su-exec %{buildroot}%{_sbindir}/su-exec %files %license LICENSE %doc README.md %{_sbindir}/su-exec %changelog * Tue Nov 08 2016 Ana Mativi - 0.2-1 - Packaging su-exec for Fedora