Blame tpm2-tss.spec

Yunying Sun c51662
Name:           tpm2-tss
Javier Martinez Canillas 9eff27
Version:        1.2.0
Javier Martinez Canillas 9eff27
Release:        1%{?dist}
Yunying Sun c51662
Summary:        TPM2.0 Software Stack
Yunying Sun c51662
Javier Martinez Canillas 9eff27
%global  pkg_prefix  tpm2-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
Javier Martinez Canillas 9eff27
URL:            https://github.com/01org/tpm2-tss
Javier Martinez Canillas 9eff27
Source0:        https://github.com/01org/tpm2-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
Javier Martinez Canillas 9eff27
# This flag is only needed for this version, upstream has been fixed and builds correctly.
Javier Martinez Canillas 9eff27
%configure EXTRA_CFLAGS="-Wno-int-in-bool-context" --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
Javier Martinez Canillas 9eff27
%{_mandir}/man3/Init*Tcti.3.gz
Javier Martinez Canillas 9eff27
%{_mandir}/man7/tcti-*.7.gz
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
Javier Martinez Canillas 9eff27
* Mon Aug 28 2017 Javier Martinez Canillas <javierm@redhat.com> - 1.2.0-1
Javier Martinez Canillas 9eff27
- Update to 1.2.0 release
Javier Martinez Canillas 9eff27
- Use tpm2-tss instead of TPM2.0-TSS as prefix since project name changed
Javier Martinez Canillas 9eff27
- Fix SPEC file access mode
Javier Martinez Canillas 9eff27
- Include new man pages in %files directive
Javier Martinez Canillas 9eff27
Javier Martinez Canillas 763ff1
* Fri Aug 18 2017 Javier Martinez Canillas <javierm@redhat.com> - 1.1.0-3
Javier Martinez Canillas 763ff1
- Remove unneeded source tarballs (RHBZ#1482828)
Javier Martinez Canillas 763ff1
Fedora Release Engineering fe63e0
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-2
Fedora Release Engineering fe63e0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
Fedora Release Engineering fe63e0
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