2016-02-24 11:20:32 +01:00
|
|
|
#
|
2016-04-08 11:42:06 +02:00
|
|
|
# spec file for package tpm2-0-tss
|
2016-02-24 11:20:32 +01:00
|
|
|
#
|
2016-04-08 11:42:06 +02:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2016-02-24 11:20:32 +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-02-24 11:22:48 +01:00
|
|
|
Name: tpm2-0-tss
|
|
|
|
Version: 0.98
|
2016-02-24 11:20:32 +01:00
|
|
|
Release: 0
|
2016-03-24 10:49:46 +01:00
|
|
|
Summary: TSS (TCG Software Stack) access library for TPM 2.0 chips
|
2016-03-24 18:38:07 +01:00
|
|
|
License: BSD-2-Clause
|
2016-02-24 11:20:32 +01:00
|
|
|
Group: Productivity/Security
|
2016-02-24 11:22:48 +01:00
|
|
|
Url: https://github.com/01org/TPM2.0-TSS
|
2016-04-08 11:42:06 +02:00
|
|
|
Source0: %{name}-%{version}.tar.gz
|
2016-08-06 21:28:47 +02:00
|
|
|
Source1: resourcemgr.service
|
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: pkg-config
|
2016-08-06 21:28:47 +02:00
|
|
|
BuildRequires: systemd-rpm-macros
|
2016-02-24 11:20:32 +01:00
|
|
|
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
|
2016-03-24 10:49:46 +01:00
|
|
|
Summary: Development headers for the TSS (TCG Software Stack) access library for TPM 2.0 chips
|
2016-02-24 11:20:32 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: glibc-devel
|
2016-05-07 10:25:53 +02:00
|
|
|
Requires: libtss2-0 = %{version}
|
2016-02-24 11:20:32 +01:00
|
|
|
|
|
|
|
%description devel
|
2016-03-24 10:49:46 +01:00
|
|
|
This package provides the development files for the libtss2 library
|
|
|
|
for accessing TPM 2.0 chips.
|
2016-02-24 11:20:32 +01:00
|
|
|
|
2016-05-07 10:25:53 +02:00
|
|
|
%package -n libtss2-0
|
2016-03-24 10:49:46 +01:00
|
|
|
Summary: TSS (TCG Software Stack) access library for TPM 2.0 chip
|
2016-04-08 11:42:06 +02:00
|
|
|
Group: System/Libraries
|
2016-02-24 11:20:32 +01:00
|
|
|
Requires: trousers
|
2016-05-07 10:25:53 +02:00
|
|
|
# Non-SLPP package name from earlier
|
|
|
|
Obsoletes: libtss2 < %version-%release
|
|
|
|
Provides: libtss2 = %version-%release
|
2016-02-24 11:20:32 +01:00
|
|
|
|
2016-05-07 10:25:53 +02:00
|
|
|
%description -n libtss2-0
|
2016-03-24 10:49:46 +01:00
|
|
|
This package provides the library to access the TSS (TCG Software Stack) for
|
|
|
|
accessing TPM 2.0 chips.
|
2016-02-24 11:20:32 +01:00
|
|
|
|
|
|
|
%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-04-08 11:42:06 +02:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2016-08-06 21:28:47 +02:00
|
|
|
install -D -m 0644 %{SOURCE1} %{buildroot}/%{_unitdir}/resourcemgr.service
|
|
|
|
ln -sv %{_sbindir}/service %{buildroot}%{_sbindir}/rcresourcemgr
|
2016-02-24 11:20:32 +01:00
|
|
|
|
2016-05-07 10:25:53 +02:00
|
|
|
%post -n libtss2-0 -p /sbin/ldconfig
|
|
|
|
%postun -n libtss2-0 -p /sbin/ldconfig
|
2016-02-24 11:20:32 +01:00
|
|
|
|
2016-08-06 21:28:47 +02:00
|
|
|
%pre
|
|
|
|
%service_add_pre resourcemgr.service
|
|
|
|
|
|
|
|
%post
|
|
|
|
%service_add_post resourcemgr.service
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%service_del_postun resourcemgr.service
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%service_del_preun resourcemgr.service
|
|
|
|
|
2016-02-24 11:20:32 +01:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2016-03-24 10:49:46 +01:00
|
|
|
%doc *.md ChangeLog LICENSE *.png
|
2016-04-08 11:42:06 +02:00
|
|
|
%{_sbindir}/resourcemgr
|
2016-08-06 21:28:47 +02:00
|
|
|
/%{_unitdir}/resourcemgr.service
|
|
|
|
%{_sbindir}/rcresourcemgr
|
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-05-07 10:25:53 +02:00
|
|
|
%files -n libtss2-0
|
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
|