]>
Commit | Line | Data |
---|---|---|
5295e697 | 1 | %define svnrev 13902 |
871def2d JB |
2 | Summary: Native UDK implementations of a UEFI Shell 2.0 |
3 | Summary(pl.UTF-8): Natywne implementacje UDK powłoki UEFI Shell 2.0 | |
5295e697 JK |
4 | Name: efi-shell |
5 | Version: 2.0 | |
302d8387 | 6 | Release: 0.%{svnrev}.2 |
5295e697 JK |
7 | License: BSD-like |
8 | Group: Applications | |
9 | #https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2/ShellBinPkg | |
10 | Source0: ShellBinPkg-r%{svnrev}.tar.bz2 | |
11 | # Source0-md5: 00cdc30ad2e6267849be0a2b0c9901b2 | |
12 | Source1: shell_ia32.efi-boot-update | |
13 | Source2: shell_x64.efi-boot-update | |
14 | URL: http://sourceforge.net/apps/mediawiki/tianocore/index.php?title=ShellPkg | |
15 | ExclusiveArch: %{ix86} %{x8664} | |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
18 | %define _enable_debug_packages 0 | |
19 | ||
20 | %description | |
871def2d JB |
21 | Native UDK implementations of a UEFI Shell 2.0. |
22 | ||
23 | %description -l pl.UTF-8 | |
24 | Natywne implementacje UDK powłoki UEFI Shell 2.0. | |
5295e697 JK |
25 | |
26 | %package ia32 | |
871def2d JB |
27 | Summary: Native UDK implementation of a UEFI Shell 2.0 for IA32 |
28 | Summary(pl.UTF-8): Natywna implementacja UDK powłoki UEFI Shell 2.0 dla IA32 | |
5295e697 JK |
29 | Group: Base |
30 | ||
31 | %description ia32 | |
871def2d JB |
32 | 32-bit version of the native UDK implementation of a UEFI Shell 2.0 |
33 | (for IA32 architecture). | |
34 | ||
35 | %description ia32 -l pl.UTF-8 | |
36 | 32-bitowa natywna implementacja UDK powłoki UEFI Shell 2.0 (dla | |
37 | architektury IA32). | |
5295e697 JK |
38 | |
39 | %package x64 | |
871def2d JB |
40 | Summary: Native UDK implementation of a UEFI Shell 2.0 |
41 | Summary(pl.UTF-8): Natywna implementacja UDK powłoki UEFI Shell 2.0 dla x64 | |
5295e697 JK |
42 | Group: Base |
43 | ||
44 | %description x64 | |
871def2d JB |
45 | 64-bit version of the native UDK implemenations of a UEFI Shell 2.0 |
46 | for x64 (x86_64) platform. | |
47 | ||
48 | %description x64 -l pl.UTF-8 | |
49 | 64-bitowa natywna implementacja UDK powłoki UEFI Shell 2.0 dla | |
50 | architektury x64 (x86_64). | |
5295e697 JK |
51 | |
52 | %prep | |
53 | %setup -qn ShellBinPkg | |
54 | ||
5295e697 JK |
55 | %install |
56 | rm -rf $RPM_BUILD_ROOT | |
06b57079 | 57 | install -d $RPM_BUILD_ROOT{/lib/efi/{ia32,x64},/etc/efi-boot/update.d} |
5295e697 JK |
58 | install UefiShell/Ia32/Shell.efi $RPM_BUILD_ROOT/lib/efi/ia32 |
59 | install UefiShell/X64/Shell.efi $RPM_BUILD_ROOT/lib/efi/x64 | |
06b57079 JK |
60 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/efi-boot/update.d/shell_ia32.conf |
61 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/efi-boot/update.d/shell_x64.conf | |
5295e697 JK |
62 | |
63 | %clean | |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | ||
c3f11303 | 66 | %post ia32 |
af5feaae JK |
67 | [ -x /sbin/efi-boot-update ] && /sbin/efi-boot-update --auto || : |
68 | ||
c3f11303 JK |
69 | %postun ia32 |
70 | [ -x /sbin/efi-boot-update ] && /sbin/efi-boot-update --auto || : | |
71 | ||
72 | %post x64 | |
73 | [ -x /sbin/efi-boot-update ] && /sbin/efi-boot-update --auto || : | |
74 | ||
75 | %postun x64 | |
af5feaae | 76 | [ -x /sbin/efi-boot-update ] && /sbin/efi-boot-update --auto || : |
5295e697 JK |
77 | |
78 | %files ia32 | |
79 | %defattr(644,root,root,755) | |
80 | %doc License.txt ReadMe.txt Contributions.txt | |
871def2d | 81 | /lib/efi/ia32/Shell.efi |
06b57079 | 82 | /etc/efi-boot/update.d/shell_ia32.conf |
5295e697 JK |
83 | |
84 | %files x64 | |
85 | %defattr(644,root,root,755) | |
86 | %doc License.txt ReadMe.txt Contributions.txt | |
871def2d | 87 | /lib/efi/x64/Shell.efi |
06b57079 | 88 | /etc/efi-boot/update.d/shell_x64.conf |