Change-Id: Ibda342a9137bb1570004507a2c4caa25d9943c7a
Reviewed-on: http://photon-jenkins.eng.vmware.com/130
Reviewed-by: Sharath George
Tested-by: michellew <michellew@vmware.com>
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,72 @@ |
0 |
+%global security_hardening none |
|
1 |
+%global commit ed0d7c4f6f8db7bda1e74567693a0c525b9cf159 |
|
2 |
+%global shortcommit %(c=%{commit}; echo ${c:0:7}) |
|
3 |
+ |
|
4 |
+Summary: iPXE open source boot firmware |
|
5 |
+Name: ipxe |
|
6 |
+Version: ed0d7c4 |
|
7 |
+Release: 1%{?dist} |
|
8 |
+License: GPLv2 |
|
9 |
+URL: http://ipxe.org |
|
10 |
+Group: System Environment/Daemons |
|
11 |
+Vendor: VMware, Inc. |
|
12 |
+Distribution: Photon |
|
13 |
+#Download URL: https://git.ipxe.org/ipxe.git/snapshot/ed0d7c4f6f8db7bda1e74567693a0c525b9cf159.tar.gz |
|
14 |
+Source0: %{name}-%{version}.tar.gz |
|
15 |
+%define sha1 ipxe=16db273987f525176d9ca6d97c40eb2076a1b47f |
|
16 |
+ |
|
17 |
+BuildRequires: binutils |
|
18 |
+BuildRequires: binutils-devel |
|
19 |
+BuildRequires: cdrkit |
|
20 |
+BuildRequires: gcc |
|
21 |
+BuildRequires: libgcc |
|
22 |
+BuildRequires: libgcc-devel |
|
23 |
+BuildRequires: make |
|
24 |
+BuildRequires: linux |
|
25 |
+BuildRequires: linux-dev |
|
26 |
+BuildRequires: perl |
|
27 |
+BuildRequires: xz |
|
28 |
+BuildRequires: xz-devel |
|
29 |
+BuildRequires: zlib |
|
30 |
+BuildRequires: zlib-devel |
|
31 |
+ |
|
32 |
+%description |
|
33 |
+iPXE is the leading open source network boot firmware. It provides a full |
|
34 |
+PXE implementation enhanced with additional features. |
|
35 |
+ |
|
36 |
+%prep |
|
37 |
+%setup -q -n %{name}-%{shortcommit} |
|
38 |
+ |
|
39 |
+%build |
|
40 |
+cd src |
|
41 |
+make %{_smp_mflags} |
|
42 |
+ |
|
43 |
+%install |
|
44 |
+[ %{buildroot} != "/"] && rm -rf %{buildroot}/* |
|
45 |
+mkdir -p %{buildroot}/usr/share/ipxe |
|
46 |
+install -vDm 644 src/bin/ipxe.{dsk,iso,lkrn,usb} %{buildroot}/usr/share/ipxe/ |
|
47 |
+install -vDm 644 src/bin/*.{rom,mrom} %{buildroot}/usr/share/ipxe/ |
|
48 |
+ |
|
49 |
+%check |
|
50 |
+make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck} |
|
51 |
+ |
|
52 |
+%files |
|
53 |
+%defattr(-,root,root) |
|
54 |
+/usr/share/ipxe/ipxe.dsk |
|
55 |
+/usr/share/ipxe/ipxe.iso |
|
56 |
+/usr/share/ipxe/ipxe.lkrn |
|
57 |
+/usr/share/ipxe/ipxe.usb |
|
58 |
+/usr/share/ipxe/10222000.rom |
|
59 |
+/usr/share/ipxe/10500940.rom |
|
60 |
+/usr/share/ipxe/10ec8139.rom |
|
61 |
+/usr/share/ipxe/15ad07b0.rom |
|
62 |
+/usr/share/ipxe/1af41000.rom |
|
63 |
+/usr/share/ipxe/8086100e.mrom |
|
64 |
+/usr/share/ipxe/8086100f.mrom |
|
65 |
+/usr/share/ipxe/808610d3.mrom |
|
66 |
+/usr/share/ipxe/80861209.rom |
|
67 |
+/usr/share/ipxe/rtl8139.rom |
|
68 |
+ |
|
69 |
+%changelog |
|
70 |
+* Thu Nov 12 2015 Vinay Kulkarni <kulkarniv@vmware.com> ed0d7c4-1 |
|
71 |
+- Initial build. First version |