specfile: fix installation of nmstate-varlink.service

On the nmstate.spec file the installation was done using `cp -a` which
is incorrect. In order to install the nmstate-varlink.service it should
use the `install -p -m 644`.

Signed-off-by: Fernando Fernandez Mancera <ffmancera@riseup.net>
This commit is contained in:
Fernando Fernandez Mancera 2021-04-19 14:41:02 +02:00 committed by Fernando Fernández Mancera
parent c5aee5f73f
commit 84791c96f4

View File

@ -66,7 +66,9 @@ This package contains the nmstate plugin for OVS database manipulation.
%install
%py3_install
mkdir -p %{buildroot}%{_unitdir} && cp -a %{buildroot}%{python3_sitelib}/nmstatectl/nmstate-varlink.service %{buildroot}%{_unitdir}/
mkdir -p %{buildroot}%{_unitdir}
install -p -m 644 %{buildroot}%{python3_sitelib}/nmstatectl/nmstate-varlink.service \
%{buildroot}%{_unitdir}/nmstate-varlink.service
%post
%systemd_post nmstate-varlink.service