only build on x86_64

This commit is contained in:
lingsheng 2020-07-18 15:13:28 +08:00
parent be93b26241
commit b5d339ff06
2 changed files with 5 additions and 10 deletions

View File

@ -14,7 +14,8 @@ URL: https://github.com/qemu/sgabios
# date=`git log -1 --format='%cd' --date=short | tr -d -`
# git archive --prefix sgabios-${date}-git${hash}/ ${hash} | xz -7e > ../openbios-${date}-git${hash}.tar.xz
Source0: sgabios-20180715-git72f39d4.tar.xz
BuildRequires: binutils-x86_64-linux-gnu gcc-x86_64-linux-gnu gcc
BuildRequires: gcc
ExclusiveArch: x86_64
Buildarch: noarch
Provides: %{name}-bin = %{epoch}:%{version}-%{release}
Obsoletes: %{name}-bin < %{epoch}:%{version}-%{release}
@ -27,13 +28,7 @@ an attached serial console as if a VGA card is attached.
%build
unset MAKEFLAGS
make \
HOSTCC=gcc \
CC=x86_64-linux-gnu-gcc \
AS=x86_64-linux-gnu-as \
LD=x86_64-linux-gnu-ld \
OBJCOPY=x86_64-linux-gnu-objcopy \
OBJDUMP=x86_64-linux-gnu-objdump
make
%install
install -m 0644 -D sgabios.bin $RPM_BUILD_ROOT%{_datadir}/sgabios/sgabios.bin

View File

@ -1,4 +1,4 @@
version_control: github
src_repo: qemu/sgabios
tag_prefix: ^
seperator: .
tag_prefix: NA
seperator: "."