3 %bcond_with tests # build with tests
5 Summary: Signing utility for UEFI secure boot
6 Summary(pl.UTF-8): Narzędzie do podpisywania dla bezpiecznego rozruchu UEFI
10 License: GPL v3+ with OpenSSL exception
11 Group: Applications/System
12 # git://kernel.ubuntu.com/jk/sbsigntool a7577f56b3c3c6e314576809cc9ce1bde94ae727
13 Source0: %{name}-%{version}.tar.bz2
14 # Source0-md5: 23d5b520a3dd26b45dbfc68b4466152f
15 # git://git.ozlabs.org/~ccan/ccan b1f28e
16 # git archive --format=tar --prefix=lib/ccan.git b1f28e | bzip2 > ccan-b1f28e.tar.bz2
17 Source1: ccan-b1f28e.tar.bz2
18 # Source1-md5: a93c0ea0c36241285cee8d60d396ed01
19 Patch0: %{name}-efivars_magic.patch
21 URL: https://wiki.ubuntu.com/UEFI/SecureBoot
22 BuildRequires: autoconf >= 2.60
23 BuildRequires: automake
24 BuildRequires: binutils-devel
25 BuildRequires: gnu-efi
26 BuildRequires: help2man
27 BuildRequires: libuuid-devel
28 BuildRequires: openssl-devel
29 BuildRequires: pkgconfig
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36 %define efi_arch x86_64
38 %define efi_arch %{_arch}
43 Utilities for signing and verifying files for UEFI Secure Boot.
46 Narzędzia do podpisywania i weryfikacji plików dla bezpiecznego
47 rozruchu UEFI (UEFI Secure Boot).
56 ccan_modules="talloc read_write_all build_assert array_size"
57 lib/ccan.git/tools/create-ccan-tree \
58 --build-type=automake lib/ccan $ccan_modules
66 CPPFLAGS="%{rpmcppflags} -I/usr/include/efi/%{efi_arch}"
69 %{?with_tests:%{__make} -C tests test}
72 rm -rf $RPM_BUILD_ROOT
75 DESTDIR=$RPM_BUILD_ROOT
78 rm -rf $RPM_BUILD_ROOT
81 %defattr(644,root,root,755)
82 # COPYING contains general notes, not GPL text
83 %doc COPYING NEWS README
84 %attr(755,root,root) %{_bindir}/sb*
85 %{_mandir}/man1/sb*.1*