Modernise and tidy up the RPM.
This commit is contained in:
parent
209d0d8266
commit
90f093c27e
21
seabios.spec
21
seabios.spec
@ -1,6 +1,6 @@
|
|||||||
Name: seabios
|
Name: seabios
|
||||||
Version: 1.7.0
|
Version: 1.7.0
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
Summary: Open-source legacy BIOS implementation
|
Summary: Open-source legacy BIOS implementation
|
||||||
|
|
||||||
Group: Applications/Emulators
|
Group: Applications/Emulators
|
||||||
@ -8,9 +8,6 @@ License: LGPLv3
|
|||||||
URL: http://www.coreboot.org/SeaBIOS
|
URL: http://www.coreboot.org/SeaBIOS
|
||||||
Source0: http://www.linuxtogo.org/~kevin/SeaBIOS/%{name}-%{version}.tar.gz
|
Source0: http://www.linuxtogo.org/~kevin/SeaBIOS/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
|
|
||||||
BuildRequires: python iasl
|
BuildRequires: python iasl
|
||||||
ExclusiveArch: %{ix86} x86_64
|
ExclusiveArch: %{ix86} x86_64
|
||||||
|
|
||||||
@ -20,26 +17,29 @@ Requires: %{name}-bin = %{version}-%{release}
|
|||||||
# Disable debuginfo because it is of no use to us.
|
# Disable debuginfo because it is of no use to us.
|
||||||
%global debug_package %{nil}
|
%global debug_package %{nil}
|
||||||
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
SeaBIOS is an open-source legacy BIOS implementation which can be used as
|
SeaBIOS is an open-source legacy BIOS implementation which can be used as
|
||||||
a coreboot payload. It implements the standard BIOS calling interfaces
|
a coreboot payload. It implements the standard BIOS calling interfaces
|
||||||
that a typical x86 proprietary BIOS implements.
|
that a typical x86 proprietary BIOS implements.
|
||||||
|
|
||||||
|
|
||||||
%ifarch %{ix86} x86_64
|
%ifarch %{ix86} x86_64
|
||||||
%package bin
|
%package bin
|
||||||
Summary: Seabios for x86
|
Summary: Seabios for x86
|
||||||
Buildarch: noarch
|
Buildarch: noarch
|
||||||
|
|
||||||
|
|
||||||
%description bin
|
%description bin
|
||||||
SeaBIOS is an open-source legacy BIOS implementation which can be used as
|
SeaBIOS is an open-source legacy BIOS implementation which can be used as
|
||||||
a coreboot payload. It implements the standard BIOS calling interfaces
|
a coreboot payload. It implements the standard BIOS calling interfaces
|
||||||
that a typical x86 proprietary BIOS implements.
|
that a typical x86 proprietary BIOS implements.
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
|
|
||||||
# Makefile changes version to include date and buildhost
|
# Makefile changes version to include date and buildhost
|
||||||
sed -i 's,VERSION=%{version}.*,VERSION=%{version},g' Makefile
|
sed -i 's,VERSION=%{version}.*,VERSION=%{version},g' Makefile
|
||||||
|
|
||||||
@ -52,30 +52,27 @@ make
|
|||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/seabios
|
mkdir -p $RPM_BUILD_ROOT%{_datadir}/seabios
|
||||||
%ifarch %{ix86} x86_64
|
%ifarch %{ix86} x86_64
|
||||||
install -m 0644 out/bios.bin $RPM_BUILD_ROOT%{_datadir}/seabios
|
install -m 0644 out/bios.bin $RPM_BUILD_ROOT%{_datadir}/seabios
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc COPYING COPYING.LESSER README TODO
|
%doc COPYING COPYING.LESSER README TODO
|
||||||
|
|
||||||
|
|
||||||
%ifarch %{ix86} x86_64
|
%ifarch %{ix86} x86_64
|
||||||
%files bin
|
%files bin
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_datadir}/seabios/
|
%dir %{_datadir}/seabios/
|
||||||
%{_datadir}/seabios/bios.bin
|
%{_datadir}/seabios/bios.bin
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Aug 13 2012 Richard W.M. Jones <rjones@redhat.com> - 1.7.0-4
|
||||||
|
- Modernise and tidy up the RPM.
|
||||||
|
|
||||||
* Mon Aug 06 2012 Cole Robinson <crobinso@redhat.com> - 1.7.0-3
|
* Mon Aug 06 2012 Cole Robinson <crobinso@redhat.com> - 1.7.0-3
|
||||||
- Enable S3/S4 support for guests (it's an F18 feature after all)
|
- Enable S3/S4 support for guests (it's an F18 feature after all)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user