]> git.pld-linux.org Git - packages/tpm2-tools.git/blob - tpm2-tools.spec
52c1925d9ab398ed5f958457bb48871bb9337439
[packages/tpm2-tools.git] / tpm2-tools.spec
1 #
2 # Conditional build:
3 %bcond_with     tests   # unit tests
4
5 Summary:        TPM (Trusted Platform Module) 2.0 tools based on tpm2-tss
6 Summary(pl.UTF-8):      Narzędzia TPM (Trusted Platform Module) 2.0 oparte o tpm2-tss
7 Name:           tpm2-tools
8 Version:        5.2
9 Release:        1
10 License:        BSD
11 Group:          Applications/System
12 #Source0Download: https://github.com/tpm2-software/tpm2-tools/releases
13 Source0:        https://github.com/tpm2-software/tpm2-tools/releases/download/%{version}/%{name}-%{version}.tar.gz
14 # Source0-md5:  0057615ef43b9322d4577fc3bde0e8d6
15 URL:            https://github.com/tpm2-software/tpm2-tools
16 BuildRequires:  curl-devel
17 BuildRequires:  efivar-devel
18 BuildRequires:  openssl-devel >= 1.1.0
19 BuildRequires:  pandoc
20 BuildRequires:  pkgconfig
21 BuildRequires:  rpmbuild(macros) >= 1.673
22 BuildRequires:  tpm2-tss-devel >= 3.0.0
23 %if %{with tests}
24 BuildRequires:  cmocka-devel
25 BuildRequires:  expect
26 # for ss
27 BuildRequires:  iproute2
28 BuildRequires:  openssl-tools
29 BuildRequires:  python-PyYAML
30 BuildRequires:  tpm2-abrmd
31 BuildRequires:  xxd
32 # tpm-simulator: swtpm or tpm_server
33 %endif
34 Requires:       tpm2-tss >= 3.0.0
35 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
37 %description
38 TPM (Trusted Platform Module) 2.0 tools based on tpm2-tss.
39
40 %description -l pl.UTF-8
41 Narzędzia TPM (Trusted Platform Module) 2.0 oparte o tpm2-tss.
42
43 %package -n bash-completion-tpm2-tools
44 Summary:        Bash completion for tpm2 tools
45 Summary(pl.UTF-8):      Bashowe dopełnianie poleceń tpm2 tools
46 Group:          Applications/Shells
47 Requires:       %{name} = %{version}-%{release}
48 Requires:       bash-completion >= 2.0
49
50 %description -n bash-completion-tpm2-tools
51 Bash completion for tpm2 tools.
52
53 %description -n bash-completion-tpm2-tools -l pl.UTF-8
54 Bashowe dopełnianie poleceń tpm2 tools.
55
56 %prep
57 %setup -q
58
59 %build
60 %configure \
61         SS=/sbin/ss \
62         %{?with_tests:--enable-unit} \
63         --disable-silent-rules \
64         --with-bashcompdir=%{bash_compdir}
65 %{__make}
66
67 %install
68 rm -rf $RPM_BUILD_ROOT
69
70 %{__make} install \
71         DESTDIR=$RPM_BUILD_ROOT
72
73 %clean
74 rm -rf $RPM_BUILD_ROOT
75
76 %files
77 %defattr(644,root,root,755)
78 %doc doc/{AUTHORS.md,CHANGELOG.md,LICENSE,MAINTAINERS.md,README.md}
79 %attr(755,root,root) %{_bindir}/tpm2
80 %attr(755,root,root) %{_bindir}/tpm2_*
81 %attr(755,root,root) %{_bindir}/tss2
82 %attr(755,root,root) %{_bindir}/tss2_*
83 %{_mandir}/man1/tpm2.1*
84 %{_mandir}/man1/tpm2_*.1*
85 %{_mandir}/man1/tss2_*.1*
86
87 %files -n bash-completion-tpm2-tools
88 %defattr(644,root,root,755)
89 %{bash_compdir}/tpm2
90 %{bash_compdir}/tpm2_completion.bash
91 %{bash_compdir}/tss2
92 %{bash_compdir}/tss2_*
This page took 0.0498 seconds and 2 git commands to generate.