From de965d2b6d802bfbeff2994bf08fe76416cb5594 Mon Sep 17 00:00:00 2001 From: Xavier Roche Date: Wed, 5 Jun 2013 17:09:11 +0200 Subject: [PATCH] Fix rpmlint issue : use unitdir macro --- packaging/aul.spec | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/packaging/aul.spec b/packaging/aul.spec index e5a4f2d..192fb38 100644 --- a/packaging/aul.spec +++ b/packaging/aul.spec @@ -80,11 +80,11 @@ mkdir -p %{buildroot}/opt/dbspace sqlite3 %{buildroot}/opt/dbspace/.mida.db < %{buildroot}/usr/share/aul/mida_db.sql rm -rf %{buildroot}/usr/share/aul/mida_db.sql -mkdir -p %{buildroot}/usr/lib/systemd/system/graphical.target.wants -install -m 0644 %SOURCE101 %{buildroot}/usr/lib/systemd/system/launchpad-preload@.service -install -m 0644 %SOURCE102 %{buildroot}/usr/lib/systemd/system/ac.service -ln -s ../launchpad-preload@.service %{buildroot}/usr/lib/systemd/system/graphical.target.wants/launchpad-preload@app.service -ln -s ../ac.service %{buildroot}/usr/lib/systemd/system/graphical.target.wants/ac.service +mkdir -p %{buildroot}/%{_unitdir}/graphical.target.wants +install -m 0644 %SOURCE101 %{buildroot}/%{_unitdir}/launchpad-preload@.service +install -m 0644 %SOURCE102 %{buildroot}/%{_unitdir}/ac.service +ln -s ../launchpad-preload@.service %{buildroot}/%{_unitdir}/graphical.target.wants/launchpad-preload@app.service +ln -s ../ac.service %{buildroot}/%{_unitdir}/graphical.target.wants/ac.service %preun @@ -123,10 +123,10 @@ systemctl daemon-reload /usr/share/aul/preload_list.txt /usr/share/aul/preexec_list.txt %{_bindir}/launchpad_preloading_preinitializing_daemon -/usr/lib/systemd/system/graphical.target.wants/launchpad-preload@app.service -/usr/lib/systemd/system/graphical.target.wants/ac.service -/usr/lib/systemd/system/launchpad-preload@.service -/usr/lib/systemd/system/ac.service +%{_unitdir}/graphical.target.wants/launchpad-preload@app.service +%{_unitdir}/graphical.target.wants/ac.service +%{_unitdir}/launchpad-preload@.service +%{_unitdir}/ac.service /usr/bin/amd /usr/bin/daemon-manager-release-agent /usr/bin/daemon-manager-launch-agent -- 2.7.4