]> git.pld-linux.org Git - packages/tpm2-tools.git/blame - tpm2-tools.spec
- updated to 5.5
[packages/tpm2-tools.git] / tpm2-tools.spec
CommitLineData
237a5e5e
JB
1#
2# Conditional build:
3%bcond_with tests # unit tests
4
5Summary: TPM (Trusted Platform Module) 2.0 tools based on tpm2-tss
6Summary(pl.UTF-8): Narzędzia TPM (Trusted Platform Module) 2.0 oparte o tpm2-tss
7Name: tpm2-tools
ac6316d1 8Version: 5.5
237a5e5e
JB
9Release: 1
10License: BSD
11Group: Applications/System
12#Source0Download: https://github.com/tpm2-software/tpm2-tools/releases
13Source0: https://github.com/tpm2-software/tpm2-tools/releases/download/%{version}/%{name}-%{version}.tar.gz
ac6316d1 14# Source0-md5: 10c0bd5be82c316598969745f178f04b
237a5e5e
JB
15URL: https://github.com/tpm2-software/tpm2-tools
16BuildRequires: curl-devel
17BuildRequires: efivar-devel
18BuildRequires: openssl-devel >= 1.1.0
19BuildRequires: pandoc
20BuildRequires: pkgconfig
21BuildRequires: rpmbuild(macros) >= 1.673
22BuildRequires: tpm2-tss-devel >= 3.0.0
23%if %{with tests}
24BuildRequires: cmocka-devel
25BuildRequires: expect
26# for ss
27BuildRequires: iproute2
28BuildRequires: openssl-tools
29BuildRequires: python-PyYAML
30BuildRequires: tpm2-abrmd
31BuildRequires: xxd
32# tpm-simulator: swtpm or tpm_server
33%endif
34Requires: tpm2-tss >= 3.0.0
35BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
37%description
38TPM (Trusted Platform Module) 2.0 tools based on tpm2-tss.
39
40%description -l pl.UTF-8
41Narzędzia TPM (Trusted Platform Module) 2.0 oparte o tpm2-tss.
42
43%package -n bash-completion-tpm2-tools
44Summary: Bash completion for tpm2 tools
45Summary(pl.UTF-8): Bashowe dopełnianie poleceń tpm2 tools
46Group: Applications/Shells
47Requires: %{name} = %{version}-%{release}
48Requires: bash-completion >= 2.0
49
50%description -n bash-completion-tpm2-tools
51Bash completion for tpm2 tools.
52
53%description -n bash-completion-tpm2-tools -l pl.UTF-8
54Bashowe 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
68rm -rf $RPM_BUILD_ROOT
69
70%{__make} install \
71 DESTDIR=$RPM_BUILD_ROOT
72
73%clean
74rm -rf $RPM_BUILD_ROOT
75
76%files
77%defattr(644,root,root,755)
ac6316d1 78%doc docs/{AUTHORS.md,CHANGELOG.md,LICENSE,MAINTAINERS.md,README.md}
237a5e5e
JB
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.071671 seconds and 4 git commands to generate.