From a052e41c54de4adbe4541e9cb482d8f83db1976b Mon Sep 17 00:00:00 2001 From: INSUN PYO Date: Tue, 23 Jun 2020 16:16:37 +0900 Subject: [PATCH] Modify %{_libdir}/systemd/system/ macro to %{_unitdir} systemd always uses /usr/lib/systemd directory regardless of 32bit and 64bit. The "%{_libdir}" macro is converted to /usr/lib at 32bit machine and /usr/lib64 at 64bit machine. Change-Id: I738e1f701e513450eb1995780938b8c42fcad31a --- packaging/asp-manager.spec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packaging/asp-manager.spec b/packaging/asp-manager.spec index 851cd21..ba7d04a 100755 --- a/packaging/asp-manager.spec +++ b/packaging/asp-manager.spec @@ -59,8 +59,8 @@ rm -rf %{buildroot} mkdir -p %{buildroot}%{_datadir}/dbus-1/system-services/ cp net.asp.service %{buildroot}%{_datadir}/dbus-1/system-services/ -mkdir -p %{buildroot}%{_libdir}/systemd/system/ -cp asp-manager.service %{buildroot}%{_libdir}/systemd/system/ +mkdir -p %{buildroot}%{_unitdir} +cp asp-manager.service %{buildroot}%{_unitdir} #DBus DAC (net-config.manifest enables DBus SMACK) mkdir -p %{buildroot}%{_sysconfdir}/dbus-1/system.d @@ -78,4 +78,4 @@ cp asp-manager.conf %{buildroot}%{_sysconfdir}/dbus-1/system.d/asp-manager.conf #DBus DAC %attr(644,root,root) %{_sysconfdir}/dbus-1/system.d/asp-manager.conf %attr(644,root,root) %{_datadir}/dbus-1/system-services/net.asp.service -%attr(644,root,root) %{_libdir}/systemd/system/asp-manager.service +%attr(644,root,root) %{_unitdir}/asp-manager.service -- 2.7.4