forked from pool/tpm2-0-tss
124 lines
3.6 KiB
RPMSpec
124 lines
3.6 KiB
RPMSpec
#
|
|
# 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/
|
|
#
|
|
|
|
|
|
Name: tpm2-0-tss
|
|
Version: 0.98
|
|
Release: 0
|
|
Summary: TSS (TCG Software Stack) access daemon for a TPM chip
|
|
License: BSD-3-Clause
|
|
Group: Productivity/Security
|
|
Url: https://github.com/01org/TPM2.0-TSS
|
|
Source0: %name-%version.tar.gz2
|
|
Source2: baselibs.conf
|
|
BuildRequires: gtk2-devel
|
|
BuildRequires: libtool
|
|
BuildRequires: openssl-devel
|
|
BuildRequires: pkg-config
|
|
BuildRequires: systemd-rpm-macros
|
|
%{?systemd_requires}
|
|
Requires(pre): pwdutils
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
The tpm2-0-tss package provides a TPM 2.0 TSS implementation.
|
|
|
|
%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.
|
|
|
|
%package -n libtspi1
|
|
Summary: TSS (TCG Software Stack) access daemon for a TPM chip
|
|
Group: Productivity/Security
|
|
Requires: trousers
|
|
|
|
%description -n libtspi1
|
|
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
|
|
%configure --disable-static --with-pic
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
%make_install
|
|
|
|
%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
|
|
|
|
%post -n libtspi1 -p /sbin/ldconfig
|
|
|
|
%postun -n libtspi1 -p /sbin/ldconfig
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%config(noreplace) %attr(600,tss,tss) %{_sysconfdir}/tcsd.conf
|
|
%doc README README.selinux AUTHORS ChangeLog LICENSE NICETOHAVES TODO doc/*
|
|
%{_mandir}/man5/*
|
|
%{_mandir}/man8/*
|
|
%{_localstatedir}/lib/tpm
|
|
%{_sbindir}/tcsd
|
|
%{_sbindir}/rctcsd
|
|
%{_unitdir}/tcsd.service
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%{_includedir}/trousers
|
|
%{_includedir}/tss
|
|
%{_mandir}/man3/*
|
|
%{_libdir}/*.so
|
|
#only available in static form
|
|
%{_libdir}/libtddl.a
|
|
|
|
%files -n libtspi1
|
|
%defattr(-,root,root)
|
|
/%{_lib}/*.so.*
|
|
|
|
%changelog
|