107 lines
2.8 KiB
RPMSpec
107 lines
2.8 KiB
RPMSpec
Name: tpm2-tools
|
|
Version: 5.0
|
|
Release: 5
|
|
Summary: A TPM2.0 testing tool based on TPM2.0-TSS
|
|
License: BSD
|
|
URL: https://github.com/tpm2-software/tpm2-tools
|
|
Source0: https://github.com/tpm2-software/tpm2-tools/releases/download/%{version}/%{name}-%{version}.tar.gz
|
|
|
|
Patch0: backport-Don-t-assume-end-of-argv-is-NULL.patch
|
|
Patch1: backport-CVE-2021-3565.patch
|
|
Patch2: backport-CVE-2024-29038.patch
|
|
Patch3: backport-CVE-2024-29039.patch
|
|
|
|
BuildRequires: gcc-c++ libtool autoconf-archive pkgconfig(cmocka) pkgconfig(libcurl) pkgconfig(openssl)
|
|
BuildRequires: pkgconfig(tss2-mu) pkgconfig(tss2-sys) pkgconfig(tss2-esys) pkgconfig(uuid) git libgcrypt
|
|
BuildRequires: libgcrypt-devel gdb chrpath
|
|
Requires: tpm2-tss >= 2.3.1
|
|
Requires: tpm2-tools-help = %{version}-%{release}
|
|
Obsoletes: tpm2-tools <= 2.1.1-2
|
|
|
|
%description
|
|
The package contains the code for the TPM (Trusted Platform Module) 2.0
|
|
tools based on tpm2-tss.
|
|
|
|
The tpm2-tools projects aims to deliver both low-level and aggregate
|
|
command line tools that provide access to a tpm2.0 compatible device.
|
|
|
|
%package_help
|
|
|
|
%prep
|
|
%autosetup -n %{name}-%{version} -p1 -Sgit
|
|
|
|
%build
|
|
%configure --prefix=/usr --disable-static --disable-silent-rules
|
|
make %{?_smp_mflags} V=1
|
|
|
|
%install
|
|
rm -rf %{buildroot}
|
|
%make_install
|
|
|
|
#remove rpath
|
|
chrpath -d %{buildroot}%{_bindir}/tss2
|
|
chrpath -d %{buildroot}%{_bindir}/tpm2
|
|
|
|
mkdir -p %{buildroot}/etc/ld.so.conf.d
|
|
echo "%{_libdir}" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf
|
|
|
|
%check
|
|
make check
|
|
|
|
%pre
|
|
|
|
%preun
|
|
|
|
%post
|
|
|
|
%postun
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%license doc/LICENSE
|
|
%{_bindir}/*
|
|
%{_datadir}/bash-completion/completions/tpm2*
|
|
%{_datadir}/bash-completion/completions/tss2*
|
|
%config(noreplace) /etc/ld.so.conf.d/*
|
|
|
|
%files help
|
|
%doc README.md doc/CHANGELOG.md
|
|
%{_mandir}/*/*
|
|
|
|
%changelog
|
|
* Thu May 02 2024 cenhuilin <cenhuilin@kylinos.cn> - 5.0-5
|
|
- fix CVE-2024-29038 CVE-2024-29039
|
|
|
|
* Fri Nov 10 2023 fuanan <fuanan3@h-partners.com> - 5.0-4
|
|
- remove rpath and runpath of exec files
|
|
|
|
* Mon Sep 27 2021 fuanan <fuanan3@huawei.com> - 5.0-3
|
|
- fix CVE-2021-3565
|
|
|
|
* Mon May 24 2021 panxiaohe<panxiaohe@huawei.com> - 5.0-2
|
|
- fix segmentation fault on tpm2
|
|
|
|
* Mon May 24 2021 panxiaohe<panxiaohe@huawei.com> - 5.0-1
|
|
- update to 5.0
|
|
|
|
* Tue May 12 2020 wanghongzhe<wanghongzhe@openeuler.org> - 3.1.1-8
|
|
- bugfix for tpm2-tss upgrade
|
|
|
|
* Thu Mar 19 2020 openEuler Buildteam <buildteam@openeuler.org> - 3.1.1-7
|
|
- add BuildRequires: libgcrypt-devel gdb
|
|
|
|
* Wed Jan 22 2020 openEuler Buildteam <buildteam@openeuler.org> - 3.1.1-6
|
|
- Type:enhancement
|
|
- ID:NA
|
|
- SUG:NA
|
|
- DESC: add BuildRequires
|
|
|
|
* Tue Sep 24 2019 openEuler Buildteam <buildteam@openeuler.org> - 3.1.1-5
|
|
- Type:enhancement
|
|
- ID:NA
|
|
- SUG:NA
|
|
- DESC: revise spec file with new rules
|
|
|
|
* Wed Aug 14 2019 openEuler Buildteam <buildteam@openeuler.org> - 3.1.1-4
|
|
- Package init
|