Accepting request 769049 from home:michals
- Update to upstream version 1.3.0 - copy tpm device permission handling udev rule from tpm2-0-tss - depend on user(tss) (boo#1162360). OBS-URL: https://build.opensuse.org/request/show/769049 OBS-URL: https://build.opensuse.org/package/show/security/ibmtss?expand=0&rev=30
This commit is contained in:
parent
40d4d43abc
commit
e339afb84c
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>
|
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
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -18,25 +18,26 @@
|
|||||||
|
|
||||||
#
|
#
|
||||||
%define suite ibmtss
|
%define suite ibmtss
|
||||||
%define libversion 0
|
%define libversion 1
|
||||||
%define libversion_full 0.0.1
|
%define libversion_full 1.3.0
|
||||||
%define libname libibmtss
|
%define libname libibmtss
|
||||||
%define libpkgname %{libname}%{libversion}
|
%define libpkgname %{libname}%{libversion}
|
||||||
|
|
||||||
Name: ibmtss
|
Name: ibmtss
|
||||||
Version: 1470
|
Epoch: 1
|
||||||
|
Version: 1.3.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: IBM's TPM 2.0 TSS
|
Summary: IBM's TPM 2.0 TSS
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: Productivity/Security
|
Group: Productivity/Security
|
||||||
URL: https://sourceforge.net/projects/ibmtpm20tss
|
URL: https://sourceforge.net/projects/ibmtpm20tss
|
||||||
Source: https://sourceforge.net/projects/ibmtpm20tss/files/ibmtss%{version}.tar.gz
|
Source: https://sourceforge.net/projects/ibmtpm20tss/files/ibmtss%{version}.tar.gz
|
||||||
|
Source1: 90-tpm-ibmtss.rules
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
BuildRequires: ibmswtpm2
|
BuildRequires: ibmswtpm2
|
||||||
BuildRequires: libopenssl-devel
|
BuildRequires: libopenssl-devel
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
Recommends: %{name}-base = %{version}
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This is a user space TCG Software Stack (TSS) for TPM 2.0. It
|
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}
|
%package -n %{libpkgname}
|
||||||
Summary: Shared library for IBM's TPM 2.0 TSS
|
Summary: Shared library for IBM's TPM 2.0 TSS
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
|
Recommends: %{name}-base = %{version}
|
||||||
|
|
||||||
%description -n %{libpkgname}
|
%description -n %{libpkgname}
|
||||||
Shared library for IBM's TPM 2.0 TSS tools
|
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
|
Summary: IBM's TPM 2.0 TSS shared files
|
||||||
Group: Productivity/Security
|
Group: Productivity/Security
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
Requires(post): user(tss)
|
||||||
|
|
||||||
%description base
|
%description base
|
||||||
Includes IBM's TPM 2.0 TSS certificates and policy files.
|
Includes IBM's TPM 2.0 TSS certificates and policy files.
|
||||||
@ -85,19 +88,18 @@ kill "$tpm_server" || :
|
|||||||
[ "$testfailed" -eq 0 ]
|
[ "$testfailed" -eq 0 ]
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
install -m 644 -D -t %{buildroot}%{_prefix}/lib/udev/rules.d/ %{SOURCE1}
|
||||||
cd utils
|
cd utils
|
||||||
%make_install
|
%make_install
|
||||||
|
|
||||||
mkdir -p %{buildroot}/%{_datadir}/%{suite}
|
mkdir -p %{buildroot}/%{_datadir}/%{suite}
|
||||||
cp -a policies certificates %{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
|
find %{buildroot} -name .cvsignore | xargs rm -v
|
||||||
|
|
||||||
for i in %{buildroot}/%{_mandir}/man1/tsstss*.1 ; do
|
%post base
|
||||||
mv -v $i $(echo $i | sed -e s,/tsstss,/tss,)
|
%_bindir/udevadm trigger -s tpm -s tpmrm || :
|
||||||
done
|
|
||||||
|
|
||||||
%post -n %{libpkgname} -p /sbin/ldconfig
|
%post -n %{libpkgname} -p /sbin/ldconfig
|
||||||
%postun -n %{libpkgname} -p /sbin/ldconfig
|
%postun -n %{libpkgname} -p /sbin/ldconfig
|
||||||
|
|
||||||
@ -114,6 +116,7 @@ done
|
|||||||
%files base
|
%files base
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{_datadir}/%{suite}
|
%{_datadir}/%{suite}
|
||||||
|
%{_prefix}/lib/udev/rules.d/*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%license LICENSE
|
%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…
Reference in New Issue
Block a user