chantra / rpms / tpm2-tss

Forked from rpms/tpm2-tss 2 years ago
Clone
59fbba
Name:           tpm2-tss
59fbba
Version:        1.4.0
59fbba
Release:        3%{?dist}
59fbba
Summary:        TPM2.0 Software Stack
59fbba
59fbba
# The entire source code is under BSD except implementation.h and tpmb.h which
59fbba
# is under TCGL(Trusted Computing Group License).
59fbba
License:        BSD and TCGL
59fbba
URL:            https://github.com/tpm2-software/tpm2-tss
59fbba
Source0:        https://github.com/tpm2-software/tpm2-tss/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
59fbba
Source1:        60-tpm-udev.rules
59fbba
59fbba
Patch0:         autoconf-fixup.patch
59fbba
59fbba
BuildRequires:  gcc
59fbba
BuildRequires:  gcc-c++
59fbba
BuildRequires:  autoconf-archive
59fbba
BuildRequires:  libtool
59fbba
BuildRequires:  pkgconfig
59fbba
59fbba
Obsoletes:  %{name}-utils <= 1.1.0-1
59fbba
# udev rules moved from tpm2-abrmd package
59fbba
Conflicts:  tpm2-abrmd%{?_isa} <= 1.1.0-8%{?dist}
59fbba
59fbba
# this package does not support big endian arch so far,
59fbba
# and has been verified only on Intel platforms.
59fbba
ExclusiveArch: %{ix86} x86_64
59fbba
59fbba
%description
59fbba
tpm2-tss is a software stack supporting Trusted Platform Module(TPM) 2.0 system
59fbba
APIs. It sits between TPM driver and applications, providing TPM2.0 specified
59fbba
APIs for applications to access TPM module through kernel TPM drivers.
59fbba
59fbba
%prep
59fbba
%autosetup -p1 -n %{name}-%{version}
59fbba
./bootstrap
59fbba
59fbba
59fbba
%build
59fbba
%configure --disable-static --disable-silent-rules
59fbba
%make_build
59fbba
59fbba
%install
59fbba
%make_install
59fbba
find %{buildroot}%{_libdir} -type f -name \*.la -delete
59fbba
59fbba
mkdir -p %{buildroot}%{_udevrulesdir}
59fbba
install -m 0644 -D -t %{buildroot}/%{_udevrulesdir}/ %{SOURCE1}
59fbba
59fbba
%clean
59fbba
rm -rf %{buildroot}
59fbba
59fbba
%files
59fbba
%doc README.md CHANGELOG.md
59fbba
%license LICENSE
59fbba
%{_libdir}/libsapi.so.*
59fbba
%{_libdir}/libtcti-device.so.*
59fbba
%{_libdir}/libtcti-socket.so.*
59fbba
%{_udevrulesdir}/60-tpm-udev.rules
59fbba
59fbba
%package        devel
59fbba
Summary:        Headers and libraries for building apps that use tpm2-tss 
59fbba
Requires:       %{name}%{_isa} = %{version}-%{release}
59fbba
59fbba
%description    devel
59fbba
This package contains headers and libraries required to build applications that
59fbba
use tpm2-tss.
59fbba
59fbba
%files devel
59fbba
%{_includedir}/sapi/
59fbba
%{_includedir}/tcti/
59fbba
%{_libdir}/libsapi.so
59fbba
%{_libdir}/libtcti-device.so
59fbba
%{_libdir}/libtcti-socket.so
59fbba
%{_libdir}/pkgconfig/sapi.pc
59fbba
%{_libdir}/pkgconfig/tcti-device.pc
59fbba
%{_libdir}/pkgconfig/tcti-socket.pc
59fbba
%{_mandir}/man3/Init*Tcti.3.gz
59fbba
%{_mandir}/man7/tcti-*.7.gz
59fbba
59fbba
%post -p /sbin/ldconfig
59fbba
59fbba
%postun -p /sbin/ldconfig
59fbba
59fbba
%changelog
59fbba
* Tue Mar 12 2019 Jerry Snitselaar <jsnitsel@redhat.com> - 1.4.0-3
59fbba
- Fix udev rules
59fbba
resolves: rhbz#1641137
59fbba
59fbba
* Thu Sep 06 2018 Jerry Snitselaar <jsnitsel@redhat.com> - 1.4.0-2
59fbba
- Add conflict for older tpm2-abrmd versions due to udev rules move.
59fbba
resolves: rhbz#1626069
59fbba
59fbba
* Fri Jun 15 2018 Jerry Snitselaar <jsnitsel@redhat.com> - 1.4.0-1
59fbba
- Rebase to 1.4.0 release
59fbba
resolves: rhbz#1515116
59fbba
59fbba
* Thu Dec 14 2017 Jerry Snitselaar <jsnitsel@redhat.com> - 1.3.0-2
59fbba
- Fix package version in autoconf
59fbba
resolves: rhbz#1463097
59fbba
59fbba
* Wed Dec 13 2017 Jerry Snitselaar <jsnitsel@redhat.com> - 1.3.0-1
59fbba
- Rebase to 1.3.0 release
59fbba
resolves: rhbz#1463097
59fbba
59fbba
* Thu Aug 31 2017 Jerry Snitselaar <jsnitsel@redhat.com> - 1.1.0-1
59fbba
- Rebase to 1.1.0
59fbba
resolves: rhbz#1463097
59fbba
59fbba
* Wed Jun 07 2017 Jerry Snitselaar <jsnitsel@redhat.com> - 1.0-5
59fbba
- Add manpage for resourcemgr
59fbba
resolves: rhbz#1459635
59fbba
59fbba
* Mon Apr 03 2017 Jerry Snitselaar <jsnitsel@redhat.com> - 1.0-4
59fbba
- Clean up potential null deref
59fbba
- Clean up memory leaks
59fbba
- Inrease release version to 4
59fbba
59fbba
* Fri Mar 10 2017 Jerry Snitselaar <jsnitsel@redhat.com> - 1.0-3
59fbba
- Add systemd unit for resourcemgr
59fbba
- Add utils subpackage
59fbba
- Add Makefile.am patch to install test programs
59fbba
- Add patch to swap out AX_PTHREAD for different check
59fbba
- Increase release version to 3
59fbba
resolves: rhbz#1275027 - Add TPM 2.0 System API (SAPI) library
59fbba
59fbba
* Mon Dec 12 2016 Sun Yunying <yunying.sun@intel.com> - 1.0-2
59fbba
- Remove global macro pkg_version to avoid duplicate of version
59fbba
- Use ExclusiveArch instead of ExcludeArch
59fbba
- Use less wildcard in %files section to be more specific
59fbba
- Add trailing slash at end of added directory in %file section
59fbba
- Remove autoconf/automake/pkgconfig(cmocka) from BuildRequires
59fbba
- Increase release version to 2
59fbba
59fbba
* Fri Dec 2 2016 Sun Yunying <yunying.sun@intel.com> - 1.0-1
59fbba
- Initial version of the package