On Thu, Nov 3, 2016 at 1:47 PM Richard Shaw <hobbes1069@gmail.com> wrote:
On Thu, Nov 3, 2016 at 6:42 AM, arnaud gaboury <arnaud.gaboury@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.

Do you mean this ? :

--------------------------------------------------
 %install
install -Dm644 mattermost.service %{buildroot}%{_unitdir}/system/mattermost.service
install -Dm644 mattermost-user.conf %{buildroot}%{_sysuserdir}/mattermost.conf

%files
%{_unitdir}/system/mattermost.service
%{_sysuserdir}/mattermost.conf
------------------------------------------------------------------

Where do these macro come from ? Any doc link ?

Thank you

Richard
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-leave@lists.fedoraproject.org