2016-02-24 11:20:32 +01:00
|
|
|
#
|
|
|
|
# spec file for package trousers
|
|
|
|
#
|
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# 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-02-24 11:22:48 +01:00
|
|
|
Name: tpm2-0-tss
|
|
|
|
Version: 0.98
|
2016-02-24 11:20:32 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: TSS (TCG Software Stack) access daemon for a TPM chip
|
|
|
|
License: BSD-3-Clause
|
|
|
|
Group: Productivity/Security
|
2016-02-24 11:22:48 +01:00
|
|
|
Url: https://github.com/01org/TPM2.0-TSS
|
2016-02-24 11:25:48 +01:00
|
|
|
Source0: %name-%version.tar.gz
|
2016-02-24 11:20:32 +01:00
|
|
|
Source2: baselibs.conf
|
2016-02-24 11:40:41 +01:00
|
|
|
BuildRequires: automake
|
2016-02-24 14:01:43 +01:00
|
|
|
BuildRequires: gcc-c++
|
2016-02-24 11:20:32 +01:00
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: systemd-rpm-macros
|
|
|
|
%{?systemd_requires}
|
|
|
|
Requires(pre): pwdutils
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
2016-02-24 11:22:48 +01:00
|
|
|
The tpm2-0-tss package provides a TPM 2.0 TSS implementation.
|
2016-02-24 11:20:32 +01:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: TSS (TCG Software Stack) access daemon for a TPM chip
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: glibc-devel
|
|
|
|
Requires: libopenssl-devel
|
|
|
|
Requires: libtspi1 = %{version}
|
|
|
|
Requires: trousers = %{version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The trousers package provides a TSS implementation through the help of
|
|
|
|
a user-space daemon, the tcsd, and a library Trousers aims to be
|
|
|
|
compliant to the 1.1b and 1.2 TSS specifications as available from the
|
|
|
|
Trusted Computing website http://www.trustedcomputinggroup.org/.
|
|
|
|
|
|
|
|
The package needs the /dev/tpm device file to be present on your
|
|
|
|
system. It is a character device file major 10 minor 224, 0600 tss:tss.
|
|
|
|
|
2016-02-24 14:01:43 +01:00
|
|
|
%package -n libtss2
|
2016-02-24 11:20:32 +01:00
|
|
|
Summary: TSS (TCG Software Stack) access daemon for a TPM chip
|
|
|
|
Group: Productivity/Security
|
|
|
|
Requires: trousers
|
|
|
|
|
2016-02-24 14:01:43 +01:00
|
|
|
%description -n libtss2
|
2016-02-24 11:20:32 +01:00
|
|
|
The trousers package provides a TSS implementation through the help of
|
|
|
|
a user-space daemon, the tcsd, and a library Trousers aims to be
|
|
|
|
compliant to the 1.1b and 1.2 TSS specifications as available from the
|
|
|
|
Trusted Computing website http://www.trustedcomputinggroup.org/.
|
|
|
|
|
|
|
|
The package needs the /dev/tpm device file to be present on your
|
|
|
|
system. It is a character device file major 10 minor 224, 0600 tss:tss.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2016-02-24 11:40:41 +01:00
|
|
|
bash bootstrap
|
2016-02-24 11:22:48 +01:00
|
|
|
%configure --disable-static --with-pic
|
2016-02-24 14:01:43 +01:00
|
|
|
make %{?_smp_mflags} PTHREAD_LDFLAGS=-pthread
|
2016-02-24 11:20:32 +01:00
|
|
|
|
|
|
|
%install
|
2016-02-24 11:22:48 +01:00
|
|
|
%make_install
|
2016-02-24 14:01:43 +01:00
|
|
|
rm %{buildroot}//%{_libdir}/lib*.la
|
2016-02-24 11:20:32 +01:00
|
|
|
|
|
|
|
%pre
|
|
|
|
%{_sbindir}/groupadd -g 98 tss 2> /dev/null || :
|
|
|
|
%{_sbindir}/useradd -u 98 -o -g tss -s /bin/false -c "TSS daemon" -d %{_localstatedir}/lib/tpm tss 2> /dev/null || :
|
|
|
|
%service_add_pre tcsd.service
|
|
|
|
|
|
|
|
%post
|
|
|
|
%service_add_post tcsd.service
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%service_del_postun tcsd.service
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%service_del_preun tcsd.service
|
|
|
|
|
2016-02-24 14:01:43 +01:00
|
|
|
%post -n libtss2 -p /sbin/ldconfig
|
2016-02-24 11:20:32 +01:00
|
|
|
|
2016-02-24 14:01:43 +01:00
|
|
|
%postun -n libtss2 -p /sbin/ldconfig
|
2016-02-24 11:20:32 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2016-02-24 14:01:43 +01:00
|
|
|
%doc *.md ChangeLog LICENSE
|
|
|
|
/usr/sbin/resourcemgr
|
2016-02-24 11:20:32 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2016-02-24 14:01:43 +01:00
|
|
|
%{_includedir}/tcti
|
|
|
|
%{_includedir}/tss2
|
2016-02-24 11:20:32 +01:00
|
|
|
%{_libdir}/*.so
|
2016-02-24 14:01:43 +01:00
|
|
|
##only available in static form
|
|
|
|
#%{_libdir}/libtddl.a
|
2016-02-24 11:20:32 +01:00
|
|
|
|
2016-02-24 14:01:43 +01:00
|
|
|
%files -n libtss2
|
2016-02-24 11:20:32 +01:00
|
|
|
%defattr(-,root,root)
|
2016-02-24 14:01:43 +01:00
|
|
|
/%{_libdir}/libtss2.so.*
|
|
|
|
/%{_libdir}/libtctidevice.so.*
|
|
|
|
/%{_libdir}/libtctisocket.so.*
|
|
|
|
|
2016-02-24 11:20:32 +01:00
|
|
|
|
|
|
|
%changelog
|