fix build on non-x86 arches
This commit is contained in:
parent
c786618810
commit
c92d6a28c2
12
alsa-tools-1.0.27-non-x86.patch
Normal file
12
alsa-tools-1.0.27-non-x86.patch
Normal file
@ -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 <ctype.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <sys/ioctl.h>
|
||||||
|
-#ifndef __PPC__
|
||||||
|
+#if defined(__i386__) || defined(__x86_64__)
|
||||||
|
#include <sys/io.h>
|
||||||
|
#endif
|
||||||
|
#include <sys/types.h>
|
@ -23,7 +23,7 @@
|
|||||||
Summary: Specialist tools for ALSA
|
Summary: Specialist tools for ALSA
|
||||||
Name: alsa-tools
|
Name: alsa-tools
|
||||||
Version: 1.0.27
|
Version: 1.0.27
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
|
|
||||||
# Checked at least one source file from all the sub-projects contained in
|
# 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
|
# the source tarball and they are consistent GPLv2+ - TJ 2007-11-15
|
||||||
@ -45,6 +45,9 @@ Source6: hwmixvolume.png
|
|||||||
Source7: hwmixvolume.desktop
|
Source7: hwmixvolume.desktop
|
||||||
Source9: hdajackretask.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
|
BuildRequires: alsa-lib-devel >= 1.0.24
|
||||||
%if 0%{!?_without_tools:1}
|
%if 0%{!?_without_tools:1}
|
||||||
BuildRequires: gtk+-devel
|
BuildRequires: gtk+-devel
|
||||||
@ -99,6 +102,7 @@ The following tools are available:
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{version}
|
%setup -q -n %{name}-%{version}
|
||||||
|
%patch0 -p1 -b .non-x86
|
||||||
|
|
||||||
%build
|
%build
|
||||||
mv seq/sbiload . ; rm -rf seq
|
mv seq/sbiload . ; rm -rf seq
|
||||||
@ -233,6 +237,9 @@ install -m 644 %{SOURCE5} %{buildroot}/lib/udev/rules.d
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue May 21 2013 Dan Horák <dan[at]danny.cz> - 1.0.27-2
|
||||||
|
- fix build on non-x86 arches
|
||||||
|
|
||||||
* Fri Apr 12 2013 Jaroslav Kysela <jkysela@redhat.com> - 1.0.27-1
|
* Fri Apr 12 2013 Jaroslav Kysela <jkysela@redhat.com> - 1.0.27-1
|
||||||
- Updated to 1.0.27
|
- Updated to 1.0.27
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user