File ipxe.spec of Package ipxe

# spec file for package ipxe
#
# Copyright (c) 2013 B1 Systems GmbH, Vohburg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# debugging firmwares does not goes the same way as a normal program.
%global debug_package %{nil}

Name:           ipxe
Version:	1.0.0_2382_g827dd1b
Release:	0
License:	GPL-2.0
Summary:	Open Source Network Boot Firmware
Url:		http://ipxe.org/
Group:		System/Boot
Source:		ipxe-%{version}.tar.bz2
Source20:	script.ipxe
Source99:	get-git.sh
# PATCH-OPENSUSE -- bmwiedemann -- build config overrides
Patch0:         config.patch
# PATCH-FEATURE-UPSTREAM -- bmwiedemann -- https://github.com/ipxe/ipxe/pull/57
Patch1:         ipxe-digestverify.patch
BuildRequires:	binutils-devel
BuildRequires:	genisoimage
BuildRequires:	syslinux
BuildRequires:	xz-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
AutoReqProv:	on
BuildArch:	noarch

%description
iPXE is the leading open source network boot firmware. It provides a full PXE implementation enhanced with additional features.

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
cd src
# no V=1 -- not interested in RPMLINT warnings... :-)
make %{?_smp_mflags} EMBED=%{S:20}

%install
cd src/bin
for bin in undionly.kpxe rtl8139.rom ipxe.dsk ipxe.usb ipxe.lkrn ipxe.iso; do
	install -D $bin %{buildroot}/usr/share/ipxe/$bin
done

%clean
%{?buildroot:%__rm -rf "%{buildroot}"}

%files
%defattr(-,root,root)
/usr/share/ipxe

%changelog
openSUSE Build Service is sponsored by