44 lines
1.4 KiB
RPMSpec
44 lines
1.4 KiB
RPMSpec
%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: gcc
|
|
ExclusiveArch: x86_64
|
|
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
|
|
|
|
%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 lingsheng <lingsheng@huawei.com> - 1:0.20180715.git-2
|
|
- package init
|