-
Notifications
You must be signed in to change notification settings - Fork 8
/
tpm2-algtest.spec.rpkg
43 lines (35 loc) · 1.04 KB
/
tpm2-algtest.spec.rpkg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# vim: syntax=spec
Name: {{{ git_dir_name }}}
Version: 0.5
Release: 4%{?dist}
Summary: TPM2 performance testing tool
License: BSD
URL: https://github.com/crocs-muni/tpm2-algtest
VCS: {{{ git_dir_vcs }}}
Source: {{{ git_dir_pack }}}
Requires: tpm2-tss tpm2-tools python3-cryptography
BuildRequires: cmake make gcc tpm2-tss-devel openssl-devel
%description
It has been found out that implementation specifics of cryptographic smart
cards can lead to serious vulnerabilities [1]. Since TPM chips are often
manufactured by the same vendors, we have decided to create a tool that would
help with collection of data from various TPMs that could be used for further
analysis and discovery of similar bugs.
%global debug_package %{nil}
%prep
{{{ git_dir_setup_macro }}}
%build
mkdir build
cd build
cmake ..
make
%install
mkdir -p %{buildroot}/usr/bin/
cp run_algtest.py %{buildroot}/usr/bin/
cd build
make DESTDIR=%{buildroot} install
%files
/usr/bin/tpm2_algtest
/usr/bin/run_algtest.py
%changelog
{{{ git_dir_changelog }}}