chantra / rpms / tpm2-tss

Forked from rpms/tpm2-tss 2 years ago
Clone

Blame SPECS/tpm2-tss.spec

7ed022
Name:           tpm2-tss
7ed022
Version:        2.0.0
7ed022
Release:        4%{?dist}
7ed022
Summary:        TPM2.0 Software Stack
7ed022
7ed022
# The entire source code is under BSD except implementation.h and tpmb.h which
7ed022
# is under TCGL(Trusted Computing Group License).
7ed022
License:        BSD
7ed022
URL:            https://github.com/tpm2-software/tpm2-tss
7ed022
Source0:        https://github.com/tpm2-software/tpm2-tss/releases/download/%{version}/%{name}-%{version}.tar.gz
7ed022
7ed022
%global udevrules_prefix 60-
7ed022
7ed022
BuildRequires:  gcc
7ed022
BuildRequires:  gcc-c++
7ed022
BuildRequires:  autoconf-archive
7ed022
BuildRequires:  libtool
7ed022
BuildRequires:  pkgconfig
7ed022
BuildRequires:  systemd
7ed022
BuildRequires:  libgcrypt-devel
7ed022
7ed022
%description
7ed022
tpm2-tss is a software stack supporting Trusted Platform Module(TPM) 2.0 system
7ed022
APIs. It sits between TPM driver and applications, providing TPM2.0 specified
7ed022
APIs for applications to access TPM module through kernel TPM drivers.
7ed022
7ed022
%prep
7ed022
%autosetup -n %{name}-%{version}
7ed022
7ed022
%build
7ed022
# Use built-in tpm-udev.rules, with specified installation path and prefix.
7ed022
%configure --disable-static --disable-silent-rules --with-udevrulesdir=%{_udevrulesdir} --with-udevrulesprefix=%{udevrules_prefix}
7ed022
7ed022
# This is to fix Rpath errors. Taken from https://fedoraproject.org/wiki/Packaging:Guidelines#Removing_Rpath
7ed022
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
7ed022
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
7ed022
7ed022
%make_build
7ed022
7ed022
%install
7ed022
%make_install
7ed022
find %{buildroot}%{_libdir} -type f -name \*.la -delete
7ed022
7ed022
%files
7ed022
%doc README.md CHANGELOG.md
7ed022
%license LICENSE
7ed022
%{_libdir}/libtss2-mu.so.*
7ed022
%{_libdir}/libtss2-sys.so.*
7ed022
%{_libdir}/libtss2-esys.so.*
7ed022
%{_libdir}/libtss2-tcti-device.so.*
7ed022
%{_libdir}/libtss2-tcti-mssim.so.*
7ed022
%{_udevrulesdir}/%{udevrules_prefix}tpm-udev.rules
7ed022
7ed022
7ed022
%package        devel
7ed022
Summary:        Headers and libraries for building apps that use tpm2-tss 
7ed022
Requires:       %{name}%{_isa} = %{version}-%{release}
7ed022
7ed022
%description    devel
7ed022
This package contains headers and libraries required to build applications that
7ed022
use tpm2-tss.
7ed022
7ed022
%files devel
7ed022
%{_includedir}/tss2/
7ed022
%{_libdir}/libtss2-mu.so
7ed022
%{_libdir}/libtss2-sys.so
7ed022
%{_libdir}/libtss2-esys.so
7ed022
%{_libdir}/libtss2-tcti-device.so
7ed022
%{_libdir}/libtss2-tcti-mssim.so
7ed022
%{_libdir}/pkgconfig/tss2-mu.pc
7ed022
%{_libdir}/pkgconfig/tss2-sys.pc
7ed022
%{_libdir}/pkgconfig/tss2-esys.pc
7ed022
%{_libdir}/pkgconfig/tss2-tcti-device.pc
7ed022
%{_libdir}/pkgconfig/tss2-tcti-mssim.pc
7ed022
%{_mandir}/man3/Tss2*.3.gz
7ed022
%{_mandir}/man7/tss2*.7.gz
7ed022
7ed022
%post -p /sbin/ldconfig
7ed022
7ed022
%postun -p /sbin/ldconfig
7ed022
7ed022
%changelog
7ed022
* Mon Jul 23 2018 Jerry Snitselaar <jsnitsel@redhat.com> - 2.0.0-4
7ed022
- Remove TCGL from spec license list.
7ed022
7ed022
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-3
7ed022
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
7ed022
7ed022
* Wed Jul 4 2018 Yunying Sun <yunying.sun@intel.com> - 2.0.0-2
7ed022
- Re-enable ESAPI since gcrypt dependency is not an issue for Fedora
7ed022
- Bump release version to 2.0.0-2
7ed022
7ed022
* Mon Jul 2 2018 Yunying Sun <yunying.sun@intel.com> - 2.0.0-1
7ed022
- Update to 2.0.0 release (RHBZ#1508870)
7ed022
- Remove patch file 60-tpm-udev.rules, use upstream tpm-udev.rules instead
7ed022
- Disable ESAPI to fix build errors caused by dependency to libgcrypt 1.6.0
7ed022
- Add scriptlet to fix Rpath errors
7ed022
- Update file installation paths and names accordingly 
7ed022
7ed022
* Sun Mar 04 2018 Javier Martinez Canillas <javierm@redhat.com> - 1.4.0-1
7ed022
- Update URLs to point to the new project location
7ed022
- Add README.md CHANGELOG.md to %%files directive
7ed022
- Update to 1.4.0 release (RHBZ#1508870)
7ed022
7ed022
* Fri Feb 23 2018 Javier Martinez Canillas <javierm@redhat.com> - 1.3.0-4
7ed022
- Install udev rule for TPM character devices
7ed022
7ed022
* Wed Feb 21 2018 Javier Martinez Canillas <javierm@redhat.com> - 1.3.0-3
7ed022
- Remove ExclusiveArch: %%{ix86} x86_64 directive
7ed022
7ed022
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.3.0-2
7ed022
- Escape macros in %%changelog
7ed022
7ed022
* Fri Dec 08 2017 Javier Martinez Canillas <javierm@redhat.com> - 1.3.0-1
7ed022
- Update to 1.3.0 release
7ed022
7ed022
* Wed Nov 29 2017 Javier Martinez Canillas <javierm@redhat.com> - 1.3.0-0.1.rc2
7ed022
- Update to 1.3.0 release candidate 2 (RHBZ#1508870)
7ed022
- Remove global pkg_prefix since now the upstream repo and package names match
7ed022
- Update URLs to point to the new project location
7ed022
- Remove -Wno-int-in-bool-context compiler flag since now upstream takes care
7ed022
- Remove %%doc directive since README.md and CHANGELOG.md are not in the tarball
7ed022
- Add patch to include a LICENSE since the generated tarball does not have it
7ed022
7ed022
* Mon Aug 28 2017 Javier Martinez Canillas <javierm@redhat.com> - 1.2.0-1
7ed022
- Update to 1.2.0 release
7ed022
- Use tpm2-tss instead of TPM2.0-TSS as prefix since project name changed
7ed022
- Fix SPEC file access mode
7ed022
- Include new man pages in %%files directive
7ed022
7ed022
* Fri Aug 18 2017 Javier Martinez Canillas <javierm@redhat.com> - 1.1.0-3
7ed022
- Remove unneeded source tarballs (RHBZ#1482828)
7ed022
7ed022
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-2
7ed022
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
7ed022
7ed022
* Wed Jul 26 2017 Sun Yunying <yunying.sun@intel.com> - 1.1.0-1
7ed022
- Update to 1.1.0 release
7ed022
7ed022
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-3
7ed022
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
7ed022
7ed022
* Mon Dec 12 2016 Sun Yunying <yunying.sun@intel.com> - 1.0-2
7ed022
- Remove global macro pkg_version to avoid duplicate of version
7ed022
- Use ExclusiveArch instead of ExcludeArch
7ed022
- Use less wildcard in %%files section to be more specific
7ed022
- Add trailing slash at end of added directory in %%file section
7ed022
- Remove autoconf/automake/pkgconfig(cmocka) from BuildRequires
7ed022
- Increase release version to 2
7ed022
7ed022
* Fri Dec 2 2016 Sun Yunying <yunying.sun@intel.com> - 1.0-1
7ed022
- Initial version of the package