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
|
Sat Nov 3 17:18:45 UTC 2012 - crrodriguez@opensuse.org
|
||||||
|
|
||||||
|
@ -21,14 +21,25 @@
|
|||||||
%define use_systemd 1
|
%define use_systemd 1
|
||||||
BuildRequires: systemd
|
BuildRequires: systemd
|
||||||
%define use_varlib 1
|
%define use_varlib 1
|
||||||
|
%if %suse_version == 1140
|
||||||
|
%define _unitdir /lib/systemd/system
|
||||||
|
%endif
|
||||||
%else
|
%else
|
||||||
%define use_systemd 0
|
%define use_systemd 0
|
||||||
%define use_varlib 0
|
%define use_varlib 0
|
||||||
%endif
|
%endif
|
||||||
|
%if %suse_version > 1200
|
||||||
|
%define _udevdir %(pkg-config --variable=udevdir udev)
|
||||||
|
%else
|
||||||
|
%define _udevdir /lib/udev
|
||||||
|
%endif
|
||||||
|
|
||||||
Name: alsa-utils
|
Name: alsa-utils
|
||||||
BuildRequires: alsa-devel
|
BuildRequires: alsa-devel
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
|
%if %suse_version > 1200
|
||||||
|
BuildRequires: libudev-devel
|
||||||
|
%endif
|
||||||
BuildRequires: ncurses-devel
|
BuildRequires: ncurses-devel
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: xmlto
|
BuildRequires: xmlto
|
||||||
@ -90,6 +101,7 @@ opts="$opts --with-asound-state-dir=/etc"
|
|||||||
%if %suse_version < 1030
|
%if %suse_version < 1030
|
||||||
opts="$opts --disable-xmlto"
|
opts="$opts --disable-xmlto"
|
||||||
%endif
|
%endif
|
||||||
|
opts="$opts --with-udev-rules-dir=%{_udevdir}/rules.d"
|
||||||
%configure --with-curses=ncursesw $opts
|
%configure --with-curses=ncursesw $opts
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
@ -119,7 +131,7 @@ mkdir -p $RPM_BUILD_ROOT/var/lib/alsa
|
|||||||
%{_sbindir}/*
|
%{_sbindir}/*
|
||||||
%{_datadir}/sounds/alsa
|
%{_datadir}/sounds/alsa
|
||||||
%{_datadir}/alsa
|
%{_datadir}/alsa
|
||||||
/lib/udev
|
%{_udevdir}
|
||||||
%if %use_systemd
|
%if %use_systemd
|
||||||
%{_unitdir}/*.service
|
%{_unitdir}/*.service
|
||||||
%{_unitdir}/basic.target.wants/alsa-restore.service
|
%{_unitdir}/basic.target.wants/alsa-restore.service
|
||||||
|
Loading…
Reference in New Issue
Block a user