package init
This commit is contained in:
parent
a3c0c8e46e
commit
be93b26241
BIN
sgabios-20180715-git72f39d4.tar.xz
Normal file
BIN
sgabios-20180715-git72f39d4.tar.xz
Normal file
Binary file not shown.
48
sgabios.spec
Normal file
48
sgabios.spec
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
%global debug_package %{nil}
|
||||||
|
|
||||||
|
Name: sgabios
|
||||||
|
Epoch: 1
|
||||||
|
Version: 0.20180715git
|
||||||
|
Release: 2
|
||||||
|
Summary: Serial Graphics Adapter BIOS
|
||||||
|
License: ASL 2.0
|
||||||
|
URL: https://github.com/qemu/sgabios
|
||||||
|
# There are no upstream releases. This archive is prepared as follows:
|
||||||
|
# git clone https://github.com/qemu/sgabios
|
||||||
|
# cd sgabios
|
||||||
|
# hash=`git log -1 --format='%h'`
|
||||||
|
# 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
|
||||||
|
Buildarch: noarch
|
||||||
|
Provides: %{name}-bin = %{epoch}:%{version}-%{release}
|
||||||
|
Obsoletes: %{name}-bin < %{epoch}:%{version}-%{release}
|
||||||
|
%description
|
||||||
|
The Serial Graphics Adapter BIOS provides a means for legacy pc software to communicate with
|
||||||
|
an attached serial console as if a VGA card is attached.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p1 -n sgabios-20180715-git72f39d4
|
||||||
|
|
||||||
|
%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
|
||||||
|
|
||||||
|
%install
|
||||||
|
install -m 0644 -D sgabios.bin $RPM_BUILD_ROOT%{_datadir}/sgabios/sgabios.bin
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc COPYING design.txt
|
||||||
|
%dir %{_datadir}/sgabios/
|
||||||
|
%{_datadir}/sgabios/sgabios.bin
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Fri Apr 24 2020 Shuaishuai Song <songshuaishuai2@huawei.com> - 1:0.20180715.git-2
|
||||||
|
- package init
|
||||||
4
sgabios.yaml
Normal file
4
sgabios.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: qemu/sgabios
|
||||||
|
tag_prefix: ^
|
||||||
|
seperator: .
|
||||||
Loading…
x
Reference in New Issue
Block a user