forked from pool/alsa-utils
Accepting request 140998 from home:tiwai:branches:multimedia:libs
- Fix build breakage on 11.4 - Correct udev rules path (the recent udev places /usr/lib/udev) OBS-URL: https://build.opensuse.org/request/show/140998 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/alsa-utils?expand=0&rev=64
This commit is contained in:
parent
44861ed73c
commit
463ecbab41
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 12 16:37:20 CET 2012 - tiwai@suse.de
|
||||
|
||||
- Fix build breakage on 11.4
|
||||
- Correct udev rules path (the recent udev places /usr/lib/udev)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Nov 3 17:18:45 UTC 2012 - crrodriguez@opensuse.org
|
||||
|
||||
|
@ -21,14 +21,25 @@
|
||||
%define use_systemd 1
|
||||
BuildRequires: systemd
|
||||
%define use_varlib 1
|
||||
%if %suse_version == 1140
|
||||
%define _unitdir /lib/systemd/system
|
||||
%endif
|
||||
%else
|
||||
%define use_systemd 0
|
||||
%define use_varlib 0
|
||||
%endif
|
||||
%if %suse_version > 1200
|
||||
%define _udevdir %(pkg-config --variable=udevdir udev)
|
||||
%else
|
||||
%define _udevdir /lib/udev
|
||||
%endif
|
||||
|
||||
Name: alsa-utils
|
||||
BuildRequires: alsa-devel
|
||||
BuildRequires: automake
|
||||
%if %suse_version > 1200
|
||||
BuildRequires: libudev-devel
|
||||
%endif
|
||||
BuildRequires: ncurses-devel
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: xmlto
|
||||
@ -90,6 +101,7 @@ opts="$opts --with-asound-state-dir=/etc"
|
||||
%if %suse_version < 1030
|
||||
opts="$opts --disable-xmlto"
|
||||
%endif
|
||||
opts="$opts --with-udev-rules-dir=%{_udevdir}/rules.d"
|
||||
%configure --with-curses=ncursesw $opts
|
||||
make %{?_smp_mflags}
|
||||
|
||||
@ -119,7 +131,7 @@ mkdir -p $RPM_BUILD_ROOT/var/lib/alsa
|
||||
%{_sbindir}/*
|
||||
%{_datadir}/sounds/alsa
|
||||
%{_datadir}/alsa
|
||||
/lib/udev
|
||||
%{_udevdir}
|
||||
%if %use_systemd
|
||||
%{_unitdir}/*.service
|
||||
%{_unitdir}/basic.target.wants/alsa-restore.service
|
||||
|
Loading…
Reference in New Issue
Block a user