Blame tpm2-tss.spec

Yunying Sun c51662
Name:           tpm2-tss
Yunying Sun e60c57
Version:        1.1.0 
Yunying Sun e60c57
Release:        1%{?dist}
Yunying Sun c51662
Summary:        TPM2.0 Software Stack
Yunying Sun c51662
Yunying Sun c51662
%global  pkg_prefix  TPM2.0-TSS
Yunying Sun c51662
Yunying Sun c51662
# The entire source code is under BSD except implementation.h and tpmb.h which
Yunying Sun c51662
# is under TCGL(Trusted Computing Group License).
Yunying Sun c51662
License:        BSD and TCGL
Yunying Sun c51662
URL:            https://github.com/01org/TPM2.0-TSS
Yunying Sun c51662
Source0:        https://github.com/01org/TPM2.0-TSS/archive/%{version}.tar.gz#/%{pkg_prefix}-%{version}.tar.gz
Yunying Sun c51662
Yunying Sun c51662
BuildRequires:  gcc
Yunying Sun c51662
BuildRequires:  gcc-c++
Yunying Sun c51662
BuildRequires:  autoconf-archive
Yunying Sun c51662
BuildRequires:  libtool
Yunying Sun c51662
BuildRequires:  pkgconfig
Yunying Sun c51662
Yunying Sun c51662
# this package does not support big endian arch so far,
Yunying Sun c51662
# and has been verified only on Intel platforms.
Yunying Sun c51662
ExclusiveArch: %{ix86} x86_64
Yunying Sun c51662
Yunying Sun c51662
%description
Yunying Sun c51662
tpm2-tss is a software stack supporting Trusted Platform Module(TPM) 2.0 system
Yunying Sun c51662
APIs. It sits between TPM driver and applications, providing TPM2.0 specified
Yunying Sun c51662
APIs for applications to access TPM module through kernel TPM drivers.
Yunying Sun c51662
Yunying Sun c51662
%prep
Yunying Sun c51662
%autosetup -n %{pkg_prefix}-%{version} 
Yunying Sun c51662
./bootstrap
Yunying Sun c51662
Yunying Sun c51662
Yunying Sun c51662
%build
Yunying Sun c51662
%configure  --disable-static --disable-silent-rules
Yunying Sun c51662
%make_build
Yunying Sun c51662
Yunying Sun c51662
%install
Yunying Sun c51662
%make_install
Yunying Sun c51662
find %{buildroot}%{_libdir} -type f -name \*.la -delete
Yunying Sun c51662
Yunying Sun c51662
%files
Yunying Sun c51662
%doc README.md CHANGELOG.md 
Yunying Sun c51662
%license LICENSE
Yunying Sun c51662
%{_libdir}/libsapi.so.*
Yunying Sun c51662
%{_libdir}/libtcti-device.so.*
Yunying Sun c51662
%{_libdir}/libtcti-socket.so.*
Yunying Sun c51662
Yunying Sun c51662
Yunying Sun c51662
%package        devel
Yunying Sun c51662
Summary:        Headers and libraries for building apps that use tpm2-tss 
Yunying Sun c51662
Requires:       %{name}%{_isa} = %{version}-%{release}
Yunying Sun c51662
Yunying Sun c51662
%description    devel
Yunying Sun c51662
This package contains headers and libraries required to build applications that
Yunying Sun c51662
use tpm2-tss.
Yunying Sun c51662
Yunying Sun c51662
%files devel
Yunying Sun c51662
%{_includedir}/sapi/
Yunying Sun c51662
%{_includedir}/tcti/
Yunying Sun c51662
%{_libdir}/libsapi.so
Yunying Sun c51662
%{_libdir}/libtcti-device.so
Yunying Sun c51662
%{_libdir}/libtcti-socket.so
Yunying Sun c51662
%{_libdir}/pkgconfig/sapi.pc
Yunying Sun c51662
%{_libdir}/pkgconfig/tcti-device.pc
Yunying Sun c51662
%{_libdir}/pkgconfig/tcti-socket.pc
Yunying Sun c51662
Yunying Sun c51662
%post -p /sbin/ldconfig
Yunying Sun c51662
Yunying Sun c51662
%postun -p /sbin/ldconfig
Yunying Sun c51662
Yunying Sun c51662
%changelog
Yunying Sun e60c57
* Wed Jul 26 2017 Sun Yunying <yunying.sun@intel.com> - 1.1.0-1
Yunying Sun e60c57
- Update to 1.1.0 release
Yunying Sun e60c57
Fedora Release Engineering ba9e00
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-3
Fedora Release Engineering ba9e00
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
Fedora Release Engineering ba9e00
Yunying Sun c51662
* Mon Dec 12 2016 Sun Yunying <yunying.sun@intel.com> - 1.0-2
Yunying Sun c51662
- Remove global macro pkg_version to avoid duplicate of version
Yunying Sun c51662
- Use ExclusiveArch instead of ExcludeArch
Yunying Sun c51662
- Use less wildcard in %files section to be more specific
Yunying Sun c51662
- Add trailing slash at end of added directory in %file section
Yunying Sun c51662
- Remove autoconf/automake/pkgconfig(cmocka) from BuildRequires
Yunying Sun c51662
- Increase release version to 2
Yunying Sun c51662
Yunying Sun c51662
* Fri Dec 2 2016 Sun Yunying <yunying.sun@intel.com> - 1.0-1
Yunying Sun c51662
- Initial version of the package