chantra / rpms / tpm2-tss

Forked from rpms/tpm2-tss 2 years ago
Clone

Blame SPECS/tpm2-tss.spec

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