Accepting request 140056 from multimedia:libs

- Fix systemd units location in factory. (forwarded request 140053 from elvigia)

OBS-URL: https://build.opensuse.org/request/show/140056
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/alsa-utils?expand=0&rev=70
This commit is contained in:
Stephan Kulow 2012-11-05 05:30:30 +00:00 committed by Git OBS Bridge
commit 00386ffb04
2 changed files with 11 additions and 3 deletions

View File

@ -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

View File

@ -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