From 44861ed73c8d50d2e9bf410215d5099545c38f7b27028861f881d8f286208b43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristian=20Rodr=C3=ADguez?= Date: Sat, 3 Nov 2012 18:49:47 +0000 Subject: [PATCH] Accepting request 140053 from home:elvigia:branches:multimedia:libs - Fix systemd units location in factory. OBS-URL: https://build.opensuse.org/request/show/140053 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/alsa-utils?expand=0&rev=62 --- alsa-utils.changes | 5 +++++ alsa-utils.spec | 9 ++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/alsa-utils.changes b/alsa-utils.changes index 05906af..0024d01 100644 --- a/alsa-utils.changes +++ b/alsa-utils.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Nov 3 17:18:45 UTC 2012 - crrodriguez@opensuse.org + +- Fix systemd units location in factory. + ------------------------------------------------------------------- Wed Oct 17 10:10:38 CEST 2012 - tiwai@suse.de diff --git a/alsa-utils.spec b/alsa-utils.spec index 8716959..da33736 100644 --- a/alsa-utils.spec +++ b/alsa-utils.spec @@ -19,6 +19,7 @@ # %if %suse_version > 1130 %define use_systemd 1 +BuildRequires: systemd %define use_varlib 1 %else %define use_systemd 0 @@ -81,7 +82,7 @@ gettextize -f autoreconf -fi opts="" %if %use_systemd -opts="$opts --with-systemdsystemunitdir=/lib/systemd/system" +opts="$opts --with-systemdsystemunitdir=%{_unitdir}" %endif %if ! %use_varlib opts="$opts --with-asound-state-dir=/etc" @@ -101,7 +102,7 @@ for i in %{_sourcedir}/[0-9]*.conf; do done %find_lang %{name} --all-name %if %use_systemd -ln -s alsa-restore.service $RPM_BUILD_ROOT/lib/systemd/system/alsasound.service +ln -s alsa-restore.service %{buildroot}%{_unitdir}/alsasound.service %endif %if %use_varlib mkdir -p $RPM_BUILD_ROOT/var/lib/alsa @@ -120,7 +121,9 @@ mkdir -p $RPM_BUILD_ROOT/var/lib/alsa %{_datadir}/alsa /lib/udev %if %use_systemd -/lib/systemd +%{_unitdir}/*.service +%{_unitdir}/basic.target.wants/alsa-restore.service +%{_unitdir}/shutdown.target.wants/alsa-store.service %endif %if %use_varlib /var/lib/alsa