diff --git a/alsa-tools-1.0.27-non-x86.patch b/alsa-tools-1.0.27-non-x86.patch new file mode 100644 index 0000000..5fe93b6 --- /dev/null +++ b/alsa-tools-1.0.27-non-x86.patch @@ -0,0 +1,12 @@ +diff -up alsa-tools-1.0.27/hda-verb/hda-verb.c.s390 alsa-tools-1.0.27/hda-verb/hda-verb.c +--- alsa-tools-1.0.27/hda-verb/hda-verb.c.s390 2013-05-21 12:31:13.000000000 +0200 ++++ alsa-tools-1.0.27/hda-verb/hda-verb.c 2013-05-21 12:31:42.000000000 +0200 +@@ -13,7 +13,7 @@ + #include + #include + #include +-#ifndef __PPC__ ++#if defined(__i386__) || defined(__x86_64__) + #include + #endif + #include diff --git a/alsa-tools.spec b/alsa-tools.spec index dd8a027..7567b90 100644 --- a/alsa-tools.spec +++ b/alsa-tools.spec @@ -23,7 +23,7 @@ Summary: Specialist tools for ALSA Name: alsa-tools Version: 1.0.27 -Release: 1%{?dist} +Release: 2%{?dist} # Checked at least one source file from all the sub-projects contained in # the source tarball and they are consistent GPLv2+ - TJ 2007-11-15 @@ -45,6 +45,9 @@ Source6: hwmixvolume.png Source7: hwmixvolume.desktop Source9: hdajackretask.desktop +# build fix for non-x86 arches +Patch0: %{name}-1.0.27-non-x86.patch + BuildRequires: alsa-lib-devel >= 1.0.24 %if 0%{!?_without_tools:1} BuildRequires: gtk+-devel @@ -99,6 +102,7 @@ The following tools are available: %prep %setup -q -n %{name}-%{version} +%patch0 -p1 -b .non-x86 %build mv seq/sbiload . ; rm -rf seq @@ -233,6 +237,9 @@ install -m 644 %{SOURCE5} %{buildroot}/lib/udev/rules.d %endif %changelog +* Tue May 21 2013 Dan HorĂ¡k - 1.0.27-2 +- fix build on non-x86 arches + * Fri Apr 12 2013 Jaroslav Kysela - 1.0.27-1 - Updated to 1.0.27