2020-09-15 11:02:06 +00:00
|
|
|
Name: tpm2-tss
|
2021-05-17 22:16:24 +00:00
|
|
|
Version: 3.1.0
|
2021-09-14 17:17:03 +00:00
|
|
|
Release: 4%{?dist}
|
2020-09-15 11:02:06 +00:00
|
|
|
Summary: TPM2.0 Software Stack
|
2016-12-15 03:16:42 +00:00
|
|
|
|
|
|
|
# The entire source code is under BSD except implementation.h and tpmb.h which
|
|
|
|
# is under TCGL(Trusted Computing Group License).
|
2020-09-15 11:02:06 +00:00
|
|
|
License: BSD and TCGL
|
|
|
|
URL: https://github.com/tpm2-software/tpm2-tss
|
|
|
|
Source0: https://github.com/tpm2-software/tpm2-tss/releases/download/%{version}/%{name}-%{version}.tar.gz
|
2020-09-15 18:39:49 +00:00
|
|
|
# doxygen crash
|
|
|
|
Patch0: tpm2-tss-3.0.0-doxygen.patch
|
2016-12-15 03:16:42 +00:00
|
|
|
|
2018-07-02 09:56:16 +00:00
|
|
|
%global udevrules_prefix 60-
|
2018-02-23 11:50:55 +00:00
|
|
|
|
2021-01-08 22:45:45 +00:00
|
|
|
BuildRequires: make
|
2020-09-15 11:02:06 +00:00
|
|
|
BuildRequires: autoconf-archive
|
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: json-c-devel
|
|
|
|
BuildRequires: libcurl-devel
|
|
|
|
BuildRequires: libgcrypt-devel
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: systemd
|
|
|
|
Requires(pre): shadow-utils
|
2016-12-15 03:16:42 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
tpm2-tss is a software stack supporting Trusted Platform Module(TPM) 2.0 system
|
|
|
|
APIs. It sits between TPM driver and applications, providing TPM2.0 specified
|
|
|
|
APIs for applications to access TPM module through kernel TPM drivers.
|
|
|
|
|
|
|
|
%prep
|
2017-12-08 18:02:04 +00:00
|
|
|
%autosetup -n %{name}-%{version}
|
2016-12-15 03:16:42 +00:00
|
|
|
|
|
|
|
%build
|
2018-07-04 05:32:51 +00:00
|
|
|
# Use built-in tpm-udev.rules, with specified installation path and prefix.
|
2020-05-14 12:56:17 +00:00
|
|
|
%configure --disable-static --disable-silent-rules \
|
|
|
|
--with-udevrulesdir=%{_udevrulesdir} --with-udevrulesprefix=%{udevrules_prefix} \
|
2020-08-07 14:19:37 +00:00
|
|
|
--with-runstatedir=%{_rundir} --with-tmpfilesdir=%{_tmpfilesdir} --with-sysusersdir=%{_sysusersdir}
|
2018-07-02 09:56:16 +00:00
|
|
|
|
|
|
|
# This is to fix Rpath errors. Taken from https://fedoraproject.org/wiki/Packaging:Guidelines#Removing_Rpath
|
|
|
|
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
|
|
|
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
|
|
|
|
2016-12-15 03:16:42 +00:00
|
|
|
%make_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
find %{buildroot}%{_libdir} -type f -name \*.la -delete
|
|
|
|
|
2020-09-15 11:02:06 +00:00
|
|
|
%pre
|
|
|
|
getent group tss >/dev/null || groupadd -f -g 59 -r tss
|
|
|
|
if ! getent passwd tss >/dev/null ; then
|
|
|
|
if ! getent passwd 59 >/dev/null ; then
|
|
|
|
useradd -r -u 59 -g tss -d /dev/null -s /sbin/nologin -c "Account used for TPM access" tss
|
|
|
|
else
|
|
|
|
useradd -r -g tss -d /dev/null -s /sbin/nologin -c "Account used for TPM access" tss
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
exit 0
|
|
|
|
|
2020-03-12 18:28:31 +00:00
|
|
|
%ldconfig_scriptlets
|
|
|
|
|
2016-12-15 03:16:42 +00:00
|
|
|
%files
|
2018-03-04 23:08:54 +00:00
|
|
|
%doc README.md CHANGELOG.md
|
2016-12-15 03:16:42 +00:00
|
|
|
%license LICENSE
|
2020-03-12 18:28:31 +00:00
|
|
|
%{_sysconfdir}/tpm2-tss/
|
2020-02-24 15:26:01 +00:00
|
|
|
%{_libdir}/libtss2-mu.so.0*
|
2020-08-05 13:30:44 +00:00
|
|
|
%{_libdir}/libtss2-sys.so.1*
|
2020-02-24 15:26:01 +00:00
|
|
|
%{_libdir}/libtss2-esys.so.0*
|
2020-08-05 13:30:44 +00:00
|
|
|
%{_libdir}/libtss2-fapi.so.1*
|
2020-02-24 15:26:01 +00:00
|
|
|
%{_libdir}/libtss2-rc.so.0*
|
|
|
|
%{_libdir}/libtss2-tctildr.so.0*
|
2020-08-05 13:30:44 +00:00
|
|
|
%{_libdir}/libtss2-tcti-cmd.so.0*
|
2020-02-24 15:26:01 +00:00
|
|
|
%{_libdir}/libtss2-tcti-device.so.0*
|
|
|
|
%{_libdir}/libtss2-tcti-mssim.so.0*
|
2021-05-17 22:16:24 +00:00
|
|
|
%{_libdir}/libtss2-tcti-pcap.so.0*
|
2020-08-05 13:30:44 +00:00
|
|
|
%{_libdir}/libtss2-tcti-swtpm.so.0*
|
2020-08-07 14:19:37 +00:00
|
|
|
%{_sysusersdir}/tpm2-tss.conf
|
|
|
|
%{_tmpfilesdir}/tpm2-tss-fapi.conf
|
2018-07-02 09:56:16 +00:00
|
|
|
%{_udevrulesdir}/%{udevrules_prefix}tpm-udev.rules
|
2016-12-15 03:16:42 +00:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Headers and libraries for building apps that use tpm2-tss
|
|
|
|
Requires: %{name}%{_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains headers and libraries required to build applications that
|
|
|
|
use tpm2-tss.
|
|
|
|
|
|
|
|
%files devel
|
2018-07-02 09:56:16 +00:00
|
|
|
%{_includedir}/tss2/
|
|
|
|
%{_libdir}/libtss2-mu.so
|
|
|
|
%{_libdir}/libtss2-sys.so
|
2018-07-04 05:32:51 +00:00
|
|
|
%{_libdir}/libtss2-esys.so
|
2020-03-12 18:28:31 +00:00
|
|
|
%{_libdir}/libtss2-fapi.so
|
2019-08-15 04:58:57 +00:00
|
|
|
%{_libdir}/libtss2-rc.so
|
|
|
|
%{_libdir}/libtss2-tctildr.so
|
2020-08-05 13:30:44 +00:00
|
|
|
%{_libdir}/libtss2-tcti-cmd.so
|
2018-07-02 09:56:16 +00:00
|
|
|
%{_libdir}/libtss2-tcti-device.so
|
|
|
|
%{_libdir}/libtss2-tcti-mssim.so
|
2021-05-17 22:16:24 +00:00
|
|
|
%{_libdir}/libtss2-tcti-pcap.so
|
2020-08-05 13:30:44 +00:00
|
|
|
%{_libdir}/libtss2-tcti-swtpm.so
|
2018-07-02 09:56:16 +00:00
|
|
|
%{_libdir}/pkgconfig/tss2-mu.pc
|
|
|
|
%{_libdir}/pkgconfig/tss2-sys.pc
|
2018-07-04 05:32:51 +00:00
|
|
|
%{_libdir}/pkgconfig/tss2-esys.pc
|
2020-03-12 18:28:31 +00:00
|
|
|
%{_libdir}/pkgconfig/tss2-fapi.pc
|
2019-08-15 04:58:57 +00:00
|
|
|
%{_libdir}/pkgconfig/tss2-rc.pc
|
|
|
|
%{_libdir}/pkgconfig/tss2-tctildr.pc
|
2020-08-05 13:30:44 +00:00
|
|
|
%{_libdir}/pkgconfig/tss2-tcti-cmd.pc
|
2018-07-02 09:56:16 +00:00
|
|
|
%{_libdir}/pkgconfig/tss2-tcti-device.pc
|
|
|
|
%{_libdir}/pkgconfig/tss2-tcti-mssim.pc
|
2021-05-17 22:16:24 +00:00
|
|
|
%{_libdir}/pkgconfig/tss2-tcti-pcap.pc
|
2020-08-05 13:30:44 +00:00
|
|
|
%{_libdir}/pkgconfig/tss2-tcti-swtpm.pc
|
2019-02-05 23:51:17 +00:00
|
|
|
%{_mandir}/man3/*.3.gz
|
2020-08-05 08:02:34 +00:00
|
|
|
%{_mandir}/man5/*.5.gz
|
2018-07-02 09:56:16 +00:00
|
|
|
%{_mandir}/man7/tss2*.7.gz
|
2016-12-15 03:16:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2021-09-14 17:17:03 +00:00
|
|
|
* Tue Sep 14 2021 Sahana Prasad <sahana@redhat.com> - 3.1.0-4
|
|
|
|
- Rebuilt with OpenSSL 3.0.0
|
|
|
|
|
2021-07-23 19:31:36 +00:00
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-07-10 09:58:56 +00:00
|
|
|
* Sat Jul 10 2021 Björn Esser <besser82@fedoraproject.org> - 3.1.0-2
|
|
|
|
- Rebuild for versioned symbols in json-c
|
|
|
|
|
2021-05-17 22:16:24 +00:00
|
|
|
* Mon May 17 2021 Peter Robinson <pbrobinson@fedoraproject.org> - 3.1.0-1
|
|
|
|
- Update to 3.1.0
|
|
|
|
|
2021-01-27 22:10:43 +00:00
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.3-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-11-26 09:16:51 +00:00
|
|
|
* Thu Nov 26 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 3.0.3-1
|
|
|
|
- Update to 3.0.2
|
|
|
|
|
|
|
|
* Sun Nov 22 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 3.0.2-1
|
2020-11-22 19:02:36 +00:00
|
|
|
- Update to 3.0.2
|
|
|
|
|
2020-09-23 16:02:39 +00:00
|
|
|
* Wed Sep 23 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 3.0.1-1
|
|
|
|
- Update to 3.0.1
|
|
|
|
|
2020-09-15 18:39:49 +00:00
|
|
|
* Tue Sep 15 2020 Than Ngo <than@redhat.com> - 3.0.0-4
|
|
|
|
- Fix doxygen crash
|
|
|
|
|
2020-09-15 11:02:06 +00:00
|
|
|
* Tue Sep 15 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 3.0.0-3
|
|
|
|
- Create tss user, if it doesn't exist, for userspace TPM access
|
|
|
|
|
2020-08-07 14:19:37 +00:00
|
|
|
* Fri Aug 07 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 3.0.0-2
|
|
|
|
- Install sysusers config in sysusersdir (rhbz #1834519)
|
|
|
|
|
2020-08-05 12:41:54 +00:00
|
|
|
* Wed Aug 05 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 3.0.0-1
|
|
|
|
- Update to 3.0.0
|
|
|
|
|
2020-08-05 07:54:08 +00:00
|
|
|
* Wed Aug 05 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 2.4.2-1
|
|
|
|
- Update to 2.4.2
|
|
|
|
|
2020-07-29 12:44:48 +00:00
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-05-14 12:56:17 +00:00
|
|
|
* Thu May 14 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 2.4.1-1
|
|
|
|
- Update to 2.4.1
|
|
|
|
|
2020-05-08 16:53:51 +00:00
|
|
|
* Fri May 08 2020 Paul Wouters <pwouters@redhat.com> - 2.4.0-3
|
|
|
|
- Use proper rundir and tmpfiles macros so proper directories are used
|
|
|
|
|
2020-04-21 22:14:15 +00:00
|
|
|
* Tue Apr 21 2020 Björn Esser <besser82@fedoraproject.org> - 2.4.0-2
|
|
|
|
- Rebuild (json-c)
|
|
|
|
|
2020-03-12 18:28:31 +00:00
|
|
|
* Thu Mar 12 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 2.4.0-1
|
|
|
|
- Update to 2.4.0 release
|
|
|
|
|
2020-02-24 15:26:01 +00:00
|
|
|
* Mon Feb 24 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 2.3.3-1
|
|
|
|
- Update to 2.3.3 release
|
|
|
|
|
2020-01-31 01:53:55 +00:00
|
|
|
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2019-12-13 02:58:48 +00:00
|
|
|
* Fri Dec 13 2019 Yunying Sun <yunying.sun@intel.com> - 2.3.2-1
|
|
|
|
- Update to 2.3.2 release
|
|
|
|
|
2019-09-06 03:02:06 +00:00
|
|
|
* Fri Sep 6 2019 Yunying Sun <yunying.sun@intel.com> - 2.3.1-1
|
|
|
|
- Update to 2.3.1 release
|
|
|
|
|
2019-08-15 04:58:57 +00:00
|
|
|
* Thu Aug 15 2019 Yunying Sun <yunying.sun@intel.com> - 2.3.0-1
|
|
|
|
- Update to 2.3.0 release
|
|
|
|
|
2019-07-27 01:45:16 +00:00
|
|
|
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.3-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-05-29 02:16:11 +00:00
|
|
|
* Wed May 29 2019 Yunying Sun <yunying.sun@intel.com> - 2.2.3-1
|
|
|
|
- Update to 2.2.3 release
|
|
|
|
|
2019-03-29 07:05:00 +00:00
|
|
|
* Fri Mar 29 2019 Yunying Sun <yunying.sun@intel.com> - 2.2.2-1
|
|
|
|
- Update to 2.2.2 release
|
|
|
|
|
2019-03-04 16:14:46 +00:00
|
|
|
* Mon Mar 4 2019 Peter Robinson <pbrobinson@fedoraproject.org> 2.2.1-1
|
|
|
|
- Update to 2.2.1 release
|
|
|
|
|
2019-02-05 23:51:17 +00:00
|
|
|
* Wed Feb 06 2019 Javier Martinez Canillas <javierm@redhat.com> - 2.2.0-1
|
|
|
|
- Update to 2.2.0 release
|
|
|
|
|
2019-02-03 10:08:27 +00:00
|
|
|
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-10-10 08:28:10 +00:00
|
|
|
* Wed Oct 10 2018 Yunying Sun <yunying.sun@intel.com> - 2.1.0-1
|
|
|
|
- Update to 2.1.0 release
|
|
|
|
|
2018-08-30 09:12:11 +00:00
|
|
|
* Thu Aug 30 2018 Yunying Sun <yunying.sun@intel.com> - 2.0.1-1
|
|
|
|
- Update to 2.0.1 release
|
|
|
|
|
2018-07-14 07:46:07 +00:00
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-07-04 05:32:51 +00:00
|
|
|
* Wed Jul 4 2018 Yunying Sun <yunying.sun@intel.com> - 2.0.0-2
|
|
|
|
- Re-enable ESAPI since gcrypt dependency is not an issue for Fedora
|
|
|
|
- Bump release version to 2.0.0-2
|
|
|
|
|
2018-07-02 09:56:16 +00:00
|
|
|
* Mon Jul 2 2018 Yunying Sun <yunying.sun@intel.com> - 2.0.0-1
|
|
|
|
- Update to 2.0.0 release (RHBZ#1508870)
|
|
|
|
- Remove patch file 60-tpm-udev.rules, use upstream tpm-udev.rules instead
|
|
|
|
- Disable ESAPI to fix build errors caused by dependency to libgcrypt 1.6.0
|
|
|
|
- Add scriptlet to fix Rpath errors
|
|
|
|
- Update file installation paths and names accordingly
|
|
|
|
|
2018-03-04 23:08:54 +00:00
|
|
|
* Sun Mar 04 2018 Javier Martinez Canillas <javierm@redhat.com> - 1.4.0-1
|
|
|
|
- Update URLs to point to the new project location
|
|
|
|
- Add README.md CHANGELOG.md to %%files directive
|
|
|
|
- Update to 1.4.0 release (RHBZ#1508870)
|
|
|
|
|
2018-02-23 11:50:55 +00:00
|
|
|
* Fri Feb 23 2018 Javier Martinez Canillas <javierm@redhat.com> - 1.3.0-4
|
|
|
|
- Install udev rule for TPM character devices
|
|
|
|
|
2018-02-21 10:54:45 +00:00
|
|
|
* Wed Feb 21 2018 Javier Martinez Canillas <javierm@redhat.com> - 1.3.0-3
|
2018-02-22 07:34:41 +00:00
|
|
|
- Remove ExclusiveArch: %%{ix86} x86_64 directive
|
2018-02-21 10:54:45 +00:00
|
|
|
|
2018-02-09 08:06:26 +00:00
|
|
|
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.3.0-2
|
|
|
|
- Escape macros in %%changelog
|
|
|
|
|
2017-12-08 18:02:04 +00:00
|
|
|
* Fri Dec 08 2017 Javier Martinez Canillas <javierm@redhat.com> - 1.3.0-1
|
|
|
|
- Update to 1.3.0 release
|
|
|
|
|
2017-11-12 01:44:25 +00:00
|
|
|
* Wed Nov 29 2017 Javier Martinez Canillas <javierm@redhat.com> - 1.3.0-0.1.rc2
|
|
|
|
- Update to 1.3.0 release candidate 2 (RHBZ#1508870)
|
|
|
|
- Remove global pkg_prefix since now the upstream repo and package names match
|
|
|
|
- Update URLs to point to the new project location
|
|
|
|
- Remove -Wno-int-in-bool-context compiler flag since now upstream takes care
|
2018-02-09 08:06:26 +00:00
|
|
|
- Remove %%doc directive since README.md and CHANGELOG.md are not in the tarball
|
2017-11-12 01:44:25 +00:00
|
|
|
- Add patch to include a LICENSE since the generated tarball does not have it
|
|
|
|
|
2017-08-28 09:17:29 +00:00
|
|
|
* Mon Aug 28 2017 Javier Martinez Canillas <javierm@redhat.com> - 1.2.0-1
|
|
|
|
- Update to 1.2.0 release
|
|
|
|
- Use tpm2-tss instead of TPM2.0-TSS as prefix since project name changed
|
|
|
|
- Fix SPEC file access mode
|
2018-02-09 08:06:26 +00:00
|
|
|
- Include new man pages in %%files directive
|
2017-08-28 09:17:29 +00:00
|
|
|
|
2017-08-18 07:44:55 +00:00
|
|
|
* Fri Aug 18 2017 Javier Martinez Canillas <javierm@redhat.com> - 1.1.0-3
|
|
|
|
- Remove unneeded source tarballs (RHBZ#1482828)
|
|
|
|
|
2017-08-03 09:33:56 +00:00
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
2017-07-26 06:44:11 +00:00
|
|
|
* Wed Jul 26 2017 Sun Yunying <yunying.sun@intel.com> - 1.1.0-1
|
|
|
|
- Update to 1.1.0 release
|
|
|
|
|
2017-02-11 16:11:39 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-12-15 03:16:42 +00:00
|
|
|
* Mon Dec 12 2016 Sun Yunying <yunying.sun@intel.com> - 1.0-2
|
|
|
|
- Remove global macro pkg_version to avoid duplicate of version
|
|
|
|
- Use ExclusiveArch instead of ExcludeArch
|
2018-02-09 08:06:26 +00:00
|
|
|
- Use less wildcard in %%files section to be more specific
|
|
|
|
- Add trailing slash at end of added directory in %%file section
|
2016-12-15 03:16:42 +00:00
|
|
|
- Remove autoconf/automake/pkgconfig(cmocka) from BuildRequires
|
|
|
|
- Increase release version to 2
|
|
|
|
|
|
|
|
* Fri Dec 2 2016 Sun Yunying <yunying.sun@intel.com> - 1.0-1
|
|
|
|
- Initial version of the package
|