tpm2-tss/tpm2-tss.spec

181 lines
4.6 KiB
RPMSpec
Raw Permalink Normal View History

2019-09-30 11:18:41 -04:00
Name: tpm2-tss
2024-01-23 14:15:58 +08:00
Version: 4.0.1
2024-09-25 00:08:30 +08:00
Release: 4
2019-09-30 11:18:41 -04:00
Summary: TPM2.0 Software Stack
2022-12-23 14:17:29 +08:00
License: BSD
2019-09-30 11:18:41 -04:00
URL: https://github.com/tpm2-software/tpm2-tss
Source0: https://github.com/tpm2-software/tpm2-tss/releases/download/%{version}/%{name}-%{version}.tar.gz
2024-05-10 10:15:32 +08:00
2024-04-10 14:12:08 +08:00
Patch0: 0001-FAPI-Skip-test-fapi-fix-provisioning-with-template-i.patch
2024-05-10 10:15:32 +08:00
Patch1: backport-CVE-2024-29040-FAPI-Fix-check-of-magic-.patch
2019-09-30 11:18:41 -04:00
2024-01-23 14:15:58 +08:00
BuildRequires: gcc-c++ autoconf-archive libtool pkgconfig systemd libgcrypt-devel openssl-devel doxygen json-c-devel libcurl-devel util-linux-devel
2023-03-21 11:28:34 +08:00
BuildRequires: curl >= 7.80.0 libcmocka-devel iproute uthash-devel swtpm
2019-09-30 11:18:41 -04:00
%description
tpm2-tss is a software stack supporting Trusted Platform Module(TPM) 2.0 system
APIs which provides TPM2.0 specified APIs for applications to access TPM module through kernel TPM drivers.
%package devel
Summary: Headers and libraries for building apps that use tpm2-tss
Requires: %{name} = %{version}-%{release}
%description devel
It contains headers and static libraries for tpm2-tss.
Provides: %{name}-static
Obsoletes: %{name}-static
%package_help
%prep
%autosetup -n %{name}-%{version} -p1
%build
2024-09-25 00:08:30 +08:00
%if "%toolchain" == "clang"
%configure --disable-static --disable-silent-rules --with-udevrulesdir=%{_udevrulesdir} --with-udevrulesprefix=80- \
--with-runstatedir=%{_rundir} --with-tmpfilesdir=%{_tmpfilesdir} --with-sysusersdir=%{_sysusersdir}
%else
2021-01-25 20:15:04 +08:00
%configure --disable-static --disable-silent-rules --with-udevrulesdir=%{_udevrulesdir} --with-udevrulesprefix=80- \
2023-03-21 11:28:34 +08:00
--with-runstatedir=%{_rundir} --with-tmpfilesdir=%{_tmpfilesdir} --with-sysusersdir=%{_sysusersdir} \
--enable-unit --enable-integration
2024-09-25 00:08:30 +08:00
%endif
2019-09-30 11:18:41 -04:00
%make_build
%install
rm -rf %{buildroot}
%make_install
%check
make check
%pre
%preun
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc README.md CHANGELOG.md
%license LICENSE
2021-01-15 09:39:56 +08:00
%{_sysconfdir}/tpm2-tss/
2021-01-25 20:15:04 +08:00
%{_sysusersdir}/tpm2-tss.conf
%{_tmpfilesdir}/tpm2-tss-fapi.conf
2019-09-30 11:18:41 -04:00
%{_libdir}/*.so.*
%{_libdir}/*.so
%{_udevrulesdir}/80-tpm-udev.rules
%files devel
%defattr(-,root,root)
%{_includedir}/*
%{_libdir}/*.la
%{_libdir}/pkgconfig/*.pc
%files help
%defattr(-,root,root)
%{_mandir}/man*/*
%changelog
2024-09-25 00:08:30 +08:00
* Tue Aug 27 2024 shenchenbang <1944340417@qq.com> - 4.0.1-4
- Fix incorrect function definition
2024-05-10 10:15:32 +08:00
* Fri May 10 2024 gengqihu <gengqihu2@h-partners.com> - 4.0.1-3
- Type:CVE
- ID:NA
- SUG:NA
- DESC:fix CVE-2024-29040
2024-04-10 14:12:08 +08:00
* Wed Apr 10 2024 wangxiaomeng <wangxiaomeng@kylinos.cn> - 4.0.1-2
- Type:bugfix
- ID:NA
- SUG:NA
- DESC: Backport patch to fix check error
2024-01-23 14:15:58 +08:00
* Tue Jan 23 2024 jinlun <jinlun@huawei.com> - 4.0.1-1
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:update version to 4.0.1
- Fix CVE-2023-22745
- TPM version 1.59 support
- libmu soname from 0:0:0 to 0:1:0.
- tss2-sys soname from 1:0:0 to 1:1:0
- FAPI ignores vendor properties on Fapi_GetInfo
- FAPI Event Logging JSON format
- Dead struct TPMS_ALGORITHM_DESCRIPTION
- Dead field intelPttProperty from TPMU_CAPABLITIES
- Dead code Tss2_MU_TPMS_ALGORITHM_DESCRIPTION_Marshal
- Dead code Tss2_MU_TPMS_ALGORITHM_DESCRIPTION_Unmarshal
2023-07-18 14:15:11 +08:00
* Tue Jul 18 2023 jinlun <jinlun@huawei.com> - 3.2.2-1
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:update version to 3.2.2
2023-03-21 11:28:34 +08:00
* Tue Mar 21 2023 jinlun <jinlun@huawei.com> - 3.2.1-3
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:add check code in tpm2-tss
2023-01-31 22:17:33 +08:00
* Tue Jan 31 2023 huangzq6 <huangzhenqiang2@huawei.com> - 3.2.1-2
- Type:CVE
- ID:NA
- SUG:NA
- DESC:fix CVE-2023-22745
2022-12-23 14:17:29 +08:00
* Fri Dec 23 2022 jinlun <jinlun@huawei.com> - 3.2.1-1
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:update version to 3.2.1
2022-01-29 11:24:12 +08:00
* Sat Jan 29 2022 panxiaohe <panxh.life@foxmail.com> - 3.1.0-1
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:update version to 3.1.0
2021-01-25 20:15:04 +08:00
* Mon Jan 25 2021 panxiaohe <panxiaohe@huawe.com> - 3.0.3-1
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:update version to 3.0.3
use proper rundir tmpfilesdir and sysusersdir, so proper directories are used
* Fri Jan 15 2021 yangzhuangzhuang <yangzhuangzhuang@huawei.com> - 2.4.1-3
2021-01-15 09:39:56 +08:00
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:enable the fapi module
2021-01-14 16:37:39 +08:00
* Thu Jan 14 2021 Hugel<gengqihu1@huawei.com> - 2.4.1-2
- Type:CVE
- ID:NA
- SUG:NA
- DESC: fix CVE-2020-24455
2020-07-29 19:36:22 +08:00
* Wed Jul 29 2020 yang_zhuang_zhuang <yangzhuangzhuang1@huawei.com> - 2.4.1-1
- Type:enhancement
- ID:NA
- SUG:NA
- DESC: update version to 2.4.1
2019-09-30 11:18:41 -04:00
* Tue Sep 24 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.0.1-4
- Type:enhancement
- ID:NA
- SUG:NA
- DESC: revise spec file with new rules
* Sat Aug 31 2019 lizaiwang <lizaiwang1@huawei.com> - 2.0.1-3
- Type:enhancement
- ID:NA
- SUG:NA
- DESC: strengthen spec
* Thu Aug 15 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.0.1-2
- Package init