]> git.pld-linux.org Git - packages/efi-shell.git/blame - efi-shell.spec
post/postun scripts added to ther right subpackages
[packages/efi-shell.git] / efi-shell.spec
CommitLineData
5295e697
JK
1%define svnrev 13902
2Summary: Native UDK implemenations of a UEFI Shell 2.0
3Name: efi-shell
4Version: 2.0
5Release: 0.%{svnrev}.1
6License: BSD-like
7Group: Applications
8#https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2/ShellBinPkg
9Source0: ShellBinPkg-r%{svnrev}.tar.bz2
10# Source0-md5: 00cdc30ad2e6267849be0a2b0c9901b2
11Source1: shell_ia32.efi-boot-update
12Source2: shell_x64.efi-boot-update
13URL: http://sourceforge.net/apps/mediawiki/tianocore/index.php?title=ShellPkg
14ExclusiveArch: %{ix86} %{x8664}
15BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17%define _enable_debug_packages 0
18
19%description
20Native UDK implemenations of a UEFI Shell 2.0.
21
22%package ia32
23Summary: Native UDK implemenations of a UEFI Shell 2.0
24Group: Base
25
26%description ia32
2732-bit version of the native UDK implemenations of a UEFI Shell 2.0.
28
29%package x64
30Summary: Native UDK implemenations of a UEFI Shell 2.0
31Group: Base
32
33%description x64
3464-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
42rm -rf $RPM_BUILD_ROOT
06b57079 43install -d $RPM_BUILD_ROOT{/lib/efi/{ia32,x64},/etc/efi-boot/update.d}
5295e697
JK
44install UefiShell/Ia32/Shell.efi $RPM_BUILD_ROOT/lib/efi/ia32
45install UefiShell/X64/Shell.efi $RPM_BUILD_ROOT/lib/efi/x64
06b57079
JK
46install %{SOURCE1} $RPM_BUILD_ROOT/etc/efi-boot/update.d/shell_ia32.conf
47install %{SOURCE2} $RPM_BUILD_ROOT/etc/efi-boot/update.d/shell_x64.conf
5295e697
JK
48
49%clean
50rm -rf $RPM_BUILD_ROOT
51
c3f11303 52%post ia32
af5feaae
JK
53[ -x /sbin/efi-boot-update ] && /sbin/efi-boot-update --auto || :
54
c3f11303
JK
55%postun ia32
56[ -x /sbin/efi-boot-update ] && /sbin/efi-boot-update --auto || :
57
58%post x64
59[ -x /sbin/efi-boot-update ] && /sbin/efi-boot-update --auto || :
60
61%postun x64
af5feaae 62[ -x /sbin/efi-boot-update ] && /sbin/efi-boot-update --auto || :
5295e697
JK
63
64%files ia32
65%defattr(644,root,root,755)
66%doc License.txt ReadMe.txt Contributions.txt
67/lib/efi/ia32/*
06b57079 68/etc/efi-boot/update.d/shell_ia32.conf
5295e697
JK
69
70%files x64
71%defattr(644,root,root,755)
72%doc License.txt ReadMe.txt Contributions.txt
73/lib/efi/x64/*
06b57079 74/etc/efi-boot/update.d/shell_x64.conf
This page took 0.089636 seconds and 4 git commands to generate.