]> git.pld-linux.org Git - packages/efilinux.git/blame - efilinux.spec
- updated to 1.1
[packages/efilinux.git] / efilinux.spec
CommitLineData
734e3369
JB
1Summary: UEFI bootloader
2Summary(pl.UTF-8): Bootloader UEFI
3Name: efilinux
9b6241ef 4Version: 1.1
734e3369
JB
5Release: 1
6License: BSD
7Group: Applications/System
9b6241ef
JB
8Source0: https://www.kernel.org/pub/linux/utils/boot/efilinux/%{name}-%{version}.tar.xz
9# Source0-md5: 2d3c46111cd661e65c912a7450cf40e3
734e3369
JB
10BuildRequires: gnu-efi
11BuildRequires: sed >= 4.0
12BuildRequires: tar >= 1:1.22
13BuildRequires: xz
14ExclusiveArch: %{ix86} %{x8664}
15BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
9b6241ef
JB
17# not supported by gnu-efi toolchain
18%define _fortify_cflags %{nil}
19%define _ssp_cflags %{nil}
20
734e3369
JB
21%description
22efilinux is a UEFI OS loader. It was created as a reference
23implementation with the aim of being well documented and containing
24well written source code.
25
26%description -l pl.UTF-8
27efilinux to bootloader systemów operacyjnych dla UEFI. Powstał jako
28wzorcowa implementacja, której głównym celem jest dobra dokumentacja i
29dobrze napisany kod źródłowy.
30
31%prep
32%setup -q
33
9b6241ef 34%{__sed} -i -e 's/^CFLAGS=/CFLAGS=$(OPTFLAGS) /' Makefile
734e3369
JB
35# entry.c:457:6: error: 'cmdline' may be used uninitialized in this function [-Werror=uninitialized]
36# entry.c:457:6: error: 'name' may be used uninitialized in this function [-Werror=uninitialized]
9b6241ef 37%{__sed} -i -e 's/-Werror//' Makefile
734e3369
JB
38
39%build
40%{__make} \
41 CC="%{__cc}" \
42 OPTFLAGS="%{rpmcflags}"
43
44%install
45rm -rf $RPM_BUILD_ROOT
46
47install -D efilinux.efi $RPM_BUILD_ROOT/boot/efi/efilinux.efi
48
49%clean
50rm -rf $RPM_BUILD_ROOT
51
52%files
53%defattr(644,root,root,755)
54%doc README
55%dir /boot/efi
56/boot/efi/efilinux.efi
This page took 0.080356 seconds and 4 git commands to generate.