2016-03-24 13:32:00 +01:00
|
|
|
#
|
2016-08-22 14:02:21 +02:00
|
|
|
# spec file for package tpm2.0-tools
|
2016-03-24 13:32:00 +01:00
|
|
|
#
|
2017-03-01 17:18:06 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2016-03-24 13:32:00 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2016-08-22 14:02:21 +02:00
|
|
|
|
2016-03-24 14:51:15 +01:00
|
|
|
Name: tpm2.0-tools
|
2017-05-10 13:58:47 +02:00
|
|
|
Version: 2.0.0
|
2016-03-24 13:32:00 +01:00
|
|
|
Release: 0
|
2016-03-24 14:51:15 +01:00
|
|
|
Summary: Trusted Platform Module (TPM) 2.0 administration tools
|
2016-04-05 15:46:01 +02:00
|
|
|
License: BSD-3-Clause
|
2016-03-24 13:32:00 +01:00
|
|
|
Group: Productivity/Security
|
2017-03-01 17:18:06 +01:00
|
|
|
Url: https://github.com/01org/tpm2.0-tools
|
2017-05-10 14:27:03 +02:00
|
|
|
Source0: https://github.com/01org/tpm2.0-tools/archive/%{version}.zip
|
2017-06-02 09:17:27 +02:00
|
|
|
Patch0: tpm2.0-tools-fix-hardening.patch
|
2017-06-02 09:36:48 +02:00
|
|
|
Patch1: tpm2.0-tools-fix-gcc7.patch
|
2017-06-20 10:42:38 +02:00
|
|
|
# this fixes an error with an unexpectedly large number of PCRS (bnc#1044419)
|
|
|
|
# there's no release containing this fix yet
|
|
|
|
Patch2: 0001-tpm2_listpcrs-use-TPM2_GetCapability-to-determine-PC.patch
|
2016-03-24 17:56:34 +01:00
|
|
|
BuildRequires: autoconf-archive
|
2016-03-24 13:32:00 +01:00
|
|
|
BuildRequires: automake
|
2016-08-22 14:02:21 +02:00
|
|
|
BuildRequires: gcc-c++
|
2017-03-01 17:18:06 +01:00
|
|
|
BuildRequires: libcurl-devel
|
|
|
|
BuildRequires: libopenssl-devel
|
2016-03-24 13:32:00 +01:00
|
|
|
BuildRequires: libtool
|
2017-03-06 17:23:28 +01:00
|
|
|
BuildRequires: pkgconfig
|
2017-03-01 17:18:06 +01:00
|
|
|
BuildRequires: tpm2-0-tss-devel
|
2016-08-22 14:02:21 +02:00
|
|
|
BuildRequires: unzip
|
2016-03-24 13:32:00 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
Trusted Computing is a set of specifications published by the Trusted
|
|
|
|
Computing Group (TCG). The Trusted Platform Module (TPM) is the
|
2016-08-22 14:02:21 +02:00
|
|
|
hardware component for Trusted Computing. The tpm2.0-tools package
|
|
|
|
provides tools for enablement and configuration of the TPM 2.0 and
|
|
|
|
associated interfaces.
|
2016-03-24 13:32:00 +01:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2017-06-02 09:17:27 +02:00
|
|
|
%patch0 -p1
|
2017-06-02 09:36:48 +02:00
|
|
|
%patch1 -p1
|
2017-06-20 10:42:38 +02:00
|
|
|
%patch2 -p1
|
2016-03-24 17:56:34 +01:00
|
|
|
|
2016-03-24 13:32:00 +01:00
|
|
|
%build
|
2016-03-24 17:56:34 +01:00
|
|
|
bash ./bootstrap
|
|
|
|
%configure --disable-static
|
2016-03-24 13:32:00 +01:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%check
|
|
|
|
make %{?_smp_mflags} check
|
|
|
|
|
|
|
|
%install
|
|
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2016-03-24 17:56:34 +01:00
|
|
|
%doc README.md manual LICENSE
|
|
|
|
/usr/sbin/tpm2_*
|
2017-05-10 13:58:47 +02:00
|
|
|
%{_mandir}/man8/tpm2_*
|
2016-03-24 13:32:00 +01:00
|
|
|
|
|
|
|
%changelog
|