From 76897df30a961ff7ce2346c3c7c40b8793959380 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Tue, 16 Oct 2018 17:34:41 +0200 Subject: [PATCH] eliminate some lint errors --- alsa-lib.spec | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/alsa-lib.spec b/alsa-lib.spec index 6062eaa..d8fd09b 100644 --- a/alsa-lib.spec +++ b/alsa-lib.spec @@ -79,6 +79,8 @@ make %{?_smp_mflags} V=1 make doc %install +%global sysmodprobedir %{_prefix}/lib/modprobe.d + make DESTDIR=%{buildroot} install # We need the library to be available even before /usr might be mounted @@ -91,8 +93,8 @@ mkdir -p -m 755 %{buildroot}/etc install -p -m 644 %{SOURCE10} %{buildroot}/etc # Install the modprobe files for ALSA -mkdir -p -m 755 %{buildroot}/lib/modprobe.d/ -install -p -m 644 %{SOURCE11} %{buildroot}/lib/modprobe.d/dist-alsa.conf +mkdir -p -m 755 %{buildroot}%{sysmodprobedir} +install -p -m 644 %{SOURCE11} %{buildroot}%{sysmodprobedir}/dist-alsa.conf # bug#926973, place this file to the doc directory install -p -m 644 %{SOURCE12} . @@ -120,7 +122,7 @@ find %{buildroot} -name '*.la' -delete %{_datadir}/alsa/ %exclude %{_datadir}/alsa/ucm %exclude %{_datadir}/alsa/topology -/lib/modprobe.d/dist-* +%{sysmodprobedir}/dist-* %files devel %doc TODO doc/doxygen/