On Thu, Nov 3, 2016 at 6:42 AM, arnaud gaboury <arnaud.gaboury(a)gmail.com>
wrote:
Below is part of my .spec file:
--------------------------------------------------
%install
install -Dm644 mattermost.service %{buildroot}/usr/lib/systemd/
system/mattermost.service
install -Dm644 mattermost-user.conf %{buildroot}/usr/lib/sysusers.
d/mattermost.conf
First install line change to %{buildroot}%{_unitdir} for the systemd file
and the second to use %{buildroot}%{_sysusersdir} for the conf file.
Also, be consistent, use the macros both in %install and in %files.
Richard