forked from pool/tpm2-0-tss
Marcus Meissner
7c573c699f
- Fix rpm group of library package: libs belong, per definition, to the group "System/Libraries". OBS-URL: https://build.opensuse.org/request/show/386130 OBS-URL: https://build.opensuse.org/package/show/security/tpm2-0-tss?expand=0&rev=17
94 lines
2.6 KiB
RPMSpec
94 lines
2.6 KiB
RPMSpec
#
|
|
# spec file for package tpm2-0-tss
|
|
#
|
|
# Copyright (c) 2016 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 library for TPM 2.0 chips
|
|
License: BSD-2-Clause
|
|
Group: Productivity/Security
|
|
Url: https://github.com/01org/TPM2.0-TSS
|
|
Source0: %{name}-%{version}.tar.gz
|
|
Source2: baselibs.conf
|
|
BuildRequires: automake
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: libtool
|
|
BuildRequires: pkg-config
|
|
BuildRequires: systemd-rpm-macros
|
|
Requires(pre): pwdutils
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
%{?systemd_requires}
|
|
|
|
%description
|
|
The tpm2-0-tss package provides a TPM 2.0 TSS implementation.
|
|
|
|
%package devel
|
|
Summary: Development headers for the TSS (TCG Software Stack) access library for TPM 2.0 chips
|
|
Group: Development/Libraries/C and C++
|
|
Requires: glibc-devel
|
|
Requires: libtss2 = %{version}
|
|
|
|
%description devel
|
|
This package provides the development files for the libtss2 library
|
|
for accessing TPM 2.0 chips.
|
|
|
|
%package -n libtss2
|
|
Summary: TSS (TCG Software Stack) access library for TPM 2.0 chip
|
|
Group: System/Libraries
|
|
Requires: trousers
|
|
|
|
%description -n libtss2
|
|
This package provides the library to access the TSS (TCG Software Stack) for
|
|
accessing TPM 2.0 chips.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
bash bootstrap
|
|
%configure --disable-static --with-pic
|
|
make %{?_smp_mflags} PTHREAD_LDFLAGS=-pthread
|
|
|
|
%install
|
|
%make_install
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
%post -n libtss2 -p /sbin/ldconfig
|
|
%postun -n libtss2 -p /sbin/ldconfig
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc *.md ChangeLog LICENSE *.png
|
|
%{_sbindir}/resourcemgr
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%{_includedir}/tcti
|
|
%{_includedir}/tss2
|
|
%{_libdir}/*.so
|
|
##only available in static form
|
|
#%{_libdir}/libtddl.a
|
|
|
|
%files -n libtss2
|
|
%defattr(-,root,root)
|
|
/%{_libdir}/libtss2.so.*
|
|
/%{_libdir}/libtctidevice.so.*
|
|
/%{_libdir}/libtctisocket.so.*
|
|
|
|
%changelog
|