1 | Summary: Building EFI Applications Using the GNU Toolchain |
---|
2 | Name: gnu-efi |
---|
3 | Version: 3.0.2 |
---|
4 | Release: 1%{?_dist_release} |
---|
5 | |
---|
6 | Group: System Environment/Libraries |
---|
7 | License: BSD |
---|
8 | URL: http://sourceforge.net/projects/gnu-efi/ |
---|
9 | Source0: %{name}-%{version}.tar.bz2 |
---|
10 | |
---|
11 | Patch0: 0001-Add-setjmp-back-once-again.patch |
---|
12 | |
---|
13 | Vendor: Project Vine |
---|
14 | Distribution: Vine Linux |
---|
15 | Packager: Takemikaduchi |
---|
16 | |
---|
17 | %global efidir vine |
---|
18 | |
---|
19 | %ifarch x86_64 |
---|
20 | %global efiarch x86_64 |
---|
21 | %endif |
---|
22 | %ifarch %{ix86} |
---|
23 | %global efiarch ia32 |
---|
24 | %endif |
---|
25 | |
---|
26 | |
---|
27 | %description |
---|
28 | Develop EFI applications for ARM-64, ARM-32, x86_64, IA-64 (IPF), |
---|
29 | and IA-32 (x86) platforms using the GNU toolchain and the EFI |
---|
30 | development environment. |
---|
31 | |
---|
32 | |
---|
33 | %package devel |
---|
34 | Summary: Development tools for %{name} |
---|
35 | Summary(ja): %{name} の開発環境 |
---|
36 | Group: Development/Libraries |
---|
37 | Requires: %{name} = %{version}-%{release} |
---|
38 | |
---|
39 | %description devel |
---|
40 | Header files and libraries for building a extension library for the %{name}. |
---|
41 | |
---|
42 | |
---|
43 | %package utils |
---|
44 | Summary: Utilities for EFI systems |
---|
45 | Group: Applications/System |
---|
46 | |
---|
47 | %description utils |
---|
48 | This package contains utilties for debugging and developing EFI systems. |
---|
49 | |
---|
50 | |
---|
51 | %prep |
---|
52 | %setup -q |
---|
53 | %patch0 -p1 |
---|
54 | |
---|
55 | %build |
---|
56 | make |
---|
57 | make apps |
---|
58 | |
---|
59 | %install |
---|
60 | rm -rf $RPM_BUILD_ROOT |
---|
61 | make install INSTALLROOT=$RPM_BUILD_ROOT PREFIX=%{_prefix} LIBDIR=%{_libdir} |
---|
62 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' |
---|
63 | |
---|
64 | mkdir -p $RPM_BUILD_ROOT%{_libdir}/gnuefi |
---|
65 | mv $RPM_BUILD_ROOT%{_libdir}/*.lds $RPM_BUILD_ROOT%{_libdir}/*.o $RPM_BUILD_ROOT%{_libdir}/gnuefi |
---|
66 | |
---|
67 | mkdir -p $RPM_BUILD_ROOT/boot/efi/EFI/%{efidir}/ |
---|
68 | mv %{efiarch}/apps/{route80h.efi,modelist.efi} $RPM_BUILD_ROOT/boot/efi/EFI/%{efidir}/ |
---|
69 | |
---|
70 | |
---|
71 | %post -p /sbin/ldconfig |
---|
72 | |
---|
73 | %postun -p /sbin/ldconfig |
---|
74 | |
---|
75 | |
---|
76 | %files |
---|
77 | %doc README.gnuefi README.efilib README.elilo ChangeLog |
---|
78 | %defattr(-,root,root,-) |
---|
79 | %{_libdir}/* |
---|
80 | |
---|
81 | %files devel |
---|
82 | %defattr(-,root,root,-) |
---|
83 | %{_includedir}/efi |
---|
84 | |
---|
85 | %files utils |
---|
86 | %dir /boot/efi/EFI/%{efidir}/ |
---|
87 | %attr(0644,root,root) /boot/efi/EFI/%{efidir}/*.efi |
---|
88 | |
---|
89 | |
---|
90 | %changelog |
---|
91 | * Sun Aug 16 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.2-1 |
---|
92 | - initial build based on fedora |
---|