chantra / rpms / tpm2-tss

Forked from rpms/tpm2-tss 2 years ago
Clone

Blame SPECS/tpm2-tss.spec

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