47a2f0b1e78d8ea472fc1d7afc0318d1b5f0e8d4
[platform/upstream/gummiboot.git] / packaging / gummiboot.spec
1 Name:           gummiboot
2 Version:        43
3 Release:        1
4 License:        LGPL-2.1
5 Summary:        EFI Kernel loader
6 Url:            http://cgit.freedesktop.org/gummiboot/
7 Group:          Base/Startup
8 Source0:        http://cgit.freedesktop.org/%{name}/snapshot/%{name}-%{version}.tar.gz
9 Source1001:     gummiboot.manifest
10 BuildRequires:  gnu-efi
11 BuildRequires:  pkgconfig(blkid)
12 ExclusiveArch:  %ix86 x86_64
13
14
15 %description
16 Gummiboot is a simple EFI bootloader.
17
18 %package splash
19 Summary:        Gummiboot default splash image
20 BuildArch:      noarch
21 Requires:       %{name} = %{version}
22
23 %description splash
24 This package contains the Gummiboot default splash image. It's the
25 project logo and maintained in the upstream gummiboot Git tree.
26
27 %prep
28 %setup -q -n %{name}-%{version}
29
30 %build
31 cp %{SOURCE1001} .
32 %reconfigure --with-efi-libdir=/usr/lib --with-efi-ldsdir=/usr/lib
33 make
34
35 %install
36 rm -fr %{buildroot}
37 %make_install
38
39 mkdir -p %{buildroot}/%{_datadir}/%{name}
40 cp test/splash.bmp %{buildroot}/%{_datadir}/%{name}
41
42 %files
43 %manifest %{name}.manifest
44 %defattr(-,root,root)
45 %manifest gummiboot.manifest
46 %{_bindir}/gummiboot
47 %ifarch x86_64
48 %{_prefix}/lib/gummiboot/gummibootx64.efi
49 %else
50 %{_prefix}/lib/gummiboot/gummibootia32.efi
51 %endif
52
53 %files splash
54 %{_datadir}/%{name}/splash.bmp