forked from pool/ibmtss
Accepting request 769087 from security
OBS-URL: https://build.opensuse.org/request/show/769087 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ibmtss?expand=0&rev=13
This commit is contained in:
commit
694806a1d5
4
90-tpm-ibmtss.rules
Normal file
4
90-tpm-ibmtss.rules
Normal file
@ -0,0 +1,4 @@
|
||||
# tpm devices can only be accessed by the tss user but the tss
|
||||
# group members can access tpmrm devices
|
||||
KERNEL=="tpm[0-9]*", MODE="0660", OWNER="tss"
|
||||
KERNEL=="tpmrm[0-9]*", MODE="0660", OWNER="tss", GROUP="tss"
|
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 31 11:53:40 UTC 2020 - Michal Suchanek <msuchanek@suse.com>
|
||||
|
||||
- Update to upstream version 1.3.0
|
||||
- copy tpm device permission handling udev rule from tpm2-0-tss
|
||||
- depend on user(tss) (boo#1162360).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Aug 24 04:36:04 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
|
23
ibmtss.spec
23
ibmtss.spec
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package ibmtss
|
||||
#
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -18,25 +18,26 @@
|
||||
|
||||
#
|
||||
%define suite ibmtss
|
||||
%define libversion 0
|
||||
%define libversion_full 0.0.1
|
||||
%define libversion 1
|
||||
%define libversion_full 1.3.0
|
||||
%define libname libibmtss
|
||||
%define libpkgname %{libname}%{libversion}
|
||||
|
||||
Name: ibmtss
|
||||
Version: 1470
|
||||
Epoch: 1
|
||||
Version: 1.3.0
|
||||
Release: 0
|
||||
Summary: IBM's TPM 2.0 TSS
|
||||
License: BSD-3-Clause
|
||||
Group: Productivity/Security
|
||||
URL: https://sourceforge.net/projects/ibmtpm20tss
|
||||
Source: https://sourceforge.net/projects/ibmtpm20tss/files/ibmtss%{version}.tar.gz
|
||||
Source1: 90-tpm-ibmtss.rules
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
BuildRequires: ibmswtpm2
|
||||
BuildRequires: libopenssl-devel
|
||||
BuildRequires: libtool
|
||||
Recommends: %{name}-base = %{version}
|
||||
|
||||
%description
|
||||
This is a user space TCG Software Stack (TSS) for TPM 2.0. It
|
||||
@ -49,6 +50,7 @@ apps, rapid prototyping, education, and debugging.
|
||||
%package -n %{libpkgname}
|
||||
Summary: Shared library for IBM's TPM 2.0 TSS
|
||||
Group: System/Libraries
|
||||
Recommends: %{name}-base = %{version}
|
||||
|
||||
%description -n %{libpkgname}
|
||||
Shared library for IBM's TPM 2.0 TSS tools
|
||||
@ -57,6 +59,7 @@ Shared library for IBM's TPM 2.0 TSS tools
|
||||
Summary: IBM's TPM 2.0 TSS shared files
|
||||
Group: Productivity/Security
|
||||
BuildArch: noarch
|
||||
Requires(post): user(tss)
|
||||
|
||||
%description base
|
||||
Includes IBM's TPM 2.0 TSS certificates and policy files.
|
||||
@ -85,19 +88,18 @@ kill "$tpm_server" || :
|
||||
[ "$testfailed" -eq 0 ]
|
||||
|
||||
%install
|
||||
install -m 644 -D -t %{buildroot}%{_prefix}/lib/udev/rules.d/ %{SOURCE1}
|
||||
cd utils
|
||||
%make_install
|
||||
|
||||
mkdir -p %{buildroot}/%{_datadir}/%{suite}
|
||||
cp -a policies certificates %{buildroot}/%{_datadir}/%{suite}
|
||||
|
||||
rm -f %{buildroot}/%{_libdir}/*.la
|
||||
find %{buildroot} -type f -name "*.la" -delete -print
|
||||
find %{buildroot} -name .cvsignore | xargs rm -v
|
||||
|
||||
for i in %{buildroot}/%{_mandir}/man1/tsstss*.1 ; do
|
||||
mv -v $i $(echo $i | sed -e s,/tsstss,/tss,)
|
||||
done
|
||||
|
||||
%post base
|
||||
%_bindir/udevadm trigger -s tpm -s tpmrm || :
|
||||
%post -n %{libpkgname} -p /sbin/ldconfig
|
||||
%postun -n %{libpkgname} -p /sbin/ldconfig
|
||||
|
||||
@ -114,6 +116,7 @@ done
|
||||
%files base
|
||||
%license LICENSE
|
||||
%{_datadir}/%{suite}
|
||||
%{_prefix}/lib/udev/rules.d/*
|
||||
|
||||
%files devel
|
||||
%license LICENSE
|
||||
|
3
ibmtss1.3.0.tar.gz
Normal file
3
ibmtss1.3.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:5242ce5ca8f9aff8d7a5c71dc41dbdac472b0827dafc3a1cdb6e32c16cbb95e3
|
||||
size 1020543
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:9a446f4d664d9efcd195fafcfe9e387e4a0cce9e508db19433c34e9f0bcea6c9
|
||||
size 977556
|
Loading…
x
Reference in New Issue
Block a user