Blame SPECS/tpm2-tss.spec

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