]> git.pld-linux.org Git - packages/sbsigntool.git/blob - sbsigntool.spec
eb3e2a5a762b7e9bb465ee207140c832bafc1dc2
[packages/sbsigntool.git] / sbsigntool.spec
1 #
2 # Conditional build:
3 %bcond_with     tests           # build with tests
4
5 Summary:        Signing utility for UEFI secure boot
6 Summary(pl.UTF-8):      Narzędzie do podpisywania dla bezpiecznego rozruchu UEFI
7 Name:           sbsigntool
8 Version:        0.6
9 Release:        3
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
20 Patch1:         openssl.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)
31
32 %ifarch %{ix86}
33 %define         efi_arch ia32
34 %else
35 %ifarch %{x8664}
36 %define         efi_arch x86_64
37 %else
38 %define         efi_arch %{_arch}
39 %endif
40 %endif
41
42 %description
43 Utilities for signing and verifying files for UEFI Secure Boot.
44
45 %description 
46 Narzędzia do podpisywania i weryfikacji plików dla bezpiecznego
47 rozruchu UEFI (UEFI Secure Boot).
48
49 %prep
50 %setup -q -a1
51
52 %patch1 -p1
53
54 %build
55 # from autogen.sh
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
59
60 %{__aclocal}
61 %{__autoconf}
62 %{__autoheader}
63 %{__automake}
64
65 %configure \
66         CPPFLAGS="%{rpmcppflags} -I/usr/include/efi/%{efi_arch}"
67 %{__make}
68
69 %{?with_tests:%{__make} -C tests test}
70
71 %install
72 rm -rf $RPM_BUILD_ROOT
73
74 %{__make} install \
75         DESTDIR=$RPM_BUILD_ROOT
76
77 %clean
78 rm -rf $RPM_BUILD_ROOT
79
80 %files
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*
This page took 0.0739649999999999 seconds and 2 git commands to generate.