3 %bcond_with tests # unit tests
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
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
20 BuildRequires: pkgconfig
21 BuildRequires: rpmbuild(macros) >= 1.673
22 BuildRequires: tpm2-tss-devel >= 3.0.0
24 BuildRequires: cmocka-devel
27 BuildRequires: iproute2
28 BuildRequires: openssl-tools
29 BuildRequires: python-PyYAML
30 BuildRequires: tpm2-abrmd
32 # tpm-simulator: swtpm or tpm_server
34 Requires: tpm2-tss >= 3.0.0
35 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 TPM (Trusted Platform Module) 2.0 tools based on tpm2-tss.
40 %description -l pl.UTF-8
41 Narzędzia TPM (Trusted Platform Module) 2.0 oparte o tpm2-tss.
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
50 %description -n bash-completion-tpm2-tools
51 Bash completion for tpm2 tools.
53 %description -n bash-completion-tpm2-tools -l pl.UTF-8
54 Bashowe dopełnianie poleceń tpm2 tools.
62 %{?with_tests:--enable-unit} \
63 --disable-silent-rules \
64 --with-bashcompdir=%{bash_compdir}
68 rm -rf $RPM_BUILD_ROOT
71 DESTDIR=$RPM_BUILD_ROOT
74 rm -rf $RPM_BUILD_ROOT
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*
87 %files -n bash-completion-tpm2-tools
88 %defattr(644,root,root,755)
90 %{bash_compdir}/tpm2_completion.bash
92 %{bash_compdir}/tss2_*