]>
Commit | Line | Data |
---|---|---|
5295e697 JK |
1 | %define svnrev 13902 |
2 | Summary: Native UDK implemenations of a UEFI Shell 2.0 | |
3 | Name: efi-shell | |
4 | Version: 2.0 | |
5 | Release: 0.%{svnrev}.1 | |
6 | License: BSD-like | |
7 | Group: Applications | |
8 | #https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2/ShellBinPkg | |
9 | Source0: ShellBinPkg-r%{svnrev}.tar.bz2 | |
10 | # Source0-md5: 00cdc30ad2e6267849be0a2b0c9901b2 | |
11 | Source1: shell_ia32.efi-boot-update | |
12 | Source2: shell_x64.efi-boot-update | |
13 | URL: http://sourceforge.net/apps/mediawiki/tianocore/index.php?title=ShellPkg | |
14 | ExclusiveArch: %{ix86} %{x8664} | |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
16 | ||
17 | %define _enable_debug_packages 0 | |
18 | ||
19 | %description | |
20 | Native UDK implemenations of a UEFI Shell 2.0. | |
21 | ||
22 | %package ia32 | |
23 | Summary: Native UDK implemenations of a UEFI Shell 2.0 | |
24 | Group: Base | |
25 | ||
26 | %description ia32 | |
27 | 32-bit version of the native UDK implemenations of a UEFI Shell 2.0. | |
28 | ||
29 | %package x64 | |
30 | Summary: Native UDK implemenations of a UEFI Shell 2.0 | |
31 | Group: Base | |
32 | ||
33 | %description x64 | |
34 | 64-bit version of the native UDK implemenations of a UEFI Shell 2.0. | |
35 | ||
36 | %prep | |
37 | %setup -qn ShellBinPkg | |
38 | ||
39 | %build | |
40 | ||
41 | %install | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | install -d $RPM_BUILD_ROOT/lib/efi/{ia32,x64} | |
44 | install UefiShell/Ia32/Shell.efi $RPM_BUILD_ROOT/lib/efi/ia32 | |
45 | install UefiShell/X64/Shell.efi $RPM_BUILD_ROOT/lib/efi/x64 | |
46 | ||
47 | %clean | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %post | |
af5feaae JK |
51 | [ -x /sbin/efi-boot-update ] && /sbin/efi-boot-update --auto || : |
52 | ||
53 | %postun | |
54 | [ -x /sbin/efi-boot-update ] && /sbin/efi-boot-update --auto || : | |
5295e697 JK |
55 | |
56 | %files ia32 | |
57 | %defattr(644,root,root,755) | |
58 | %doc License.txt ReadMe.txt Contributions.txt | |
59 | /lib/efi/ia32/* | |
60 | ||
61 | %files x64 | |
62 | %defattr(644,root,root,755) | |
63 | %doc License.txt ReadMe.txt Contributions.txt | |
64 | /lib/efi/x64/* |