Accepting request 912427 from home:msmeissn
add to security -> factory OBS-URL: https://build.opensuse.org/request/show/912427 OBS-URL: https://build.opensuse.org/package/show/security/tpm2-pkcs11?expand=0&rev=1
This commit is contained in:
commit
f001b8e7b2
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
1.6.0.tar.gz
Normal file
3
1.6.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f4678d9e51a8b29c6a0a510fee78c865639e9ee2b7feddda853f70e95e92e191
|
||||
size 985552
|
9
tpm2-pkcs11.changes
Normal file
9
tpm2-pkcs11.changes
Normal file
@ -0,0 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 9 10:05:02 UTC 2020 - Alexander Evseev <aevseev@gmail.com> - 1.4.0
|
||||
|
||||
- New upstream version - 1.4.0
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 3 14:19:30 UTC 2020 - Alexander Evseev <aevseev@gmail.com> - 1.3.1
|
||||
|
||||
- First build. Version - 1.3.1
|
94
tpm2-pkcs11.spec
Normal file
94
tpm2-pkcs11.spec
Normal file
@ -0,0 +1,94 @@
|
||||
#
|
||||
# spec file for package tpm2
|
||||
#
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
#
|
||||
# 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 https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
%define so_ver 0
|
||||
%define realname tpm2-pkcs11
|
||||
|
||||
Name: libtpm2_pkcs110
|
||||
Version: 1.6.0
|
||||
Release: 0
|
||||
URL: https://github.com/tpm2-software/tpm2-pkcs11
|
||||
Summary: A PKCS#11 interface for TPM2 hardware
|
||||
License: BSD-2-Clause
|
||||
Group: Productivity/Security
|
||||
|
||||
# Build-time parameters
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: autoconf-archive >= 2017.03.21
|
||||
BuildRequires: automake
|
||||
BuildRequires: libtool
|
||||
BuildRequires: pkg-config
|
||||
BuildRequires: tpm2.0-tools
|
||||
BuildRequires: pkgconfig(libcrypto) >= 1.0.2g
|
||||
BuildRequires: pkgconfig(p11-kit-1)
|
||||
BuildRequires: pkgconfig(sqlite3)
|
||||
BuildRequires: pkgconfig(tss2-esys) >= 2.0
|
||||
BuildRequires: pkgconfig(tss2-mu)
|
||||
BuildRequires: pkgconfig(tss2-rc)
|
||||
BuildRequires: pkgconfig(tss2-tctildr)
|
||||
BuildRequires: pkgconfig(yaml-0.1)
|
||||
Source: https://github.com/tpm2-software/tpm2-pkcs11/archive/refs/tags/%{version}.tar.gz
|
||||
|
||||
%description
|
||||
PKCS #11 is a Public-Key Cryptography Standard that defines a standard method to
|
||||
access cryptographic services from tokens/ devices such as hardware security
|
||||
modules (HSM), smart cards, etc. In this project we intend to use a TPM2 device
|
||||
as the cryptographic token.
|
||||
|
||||
%package -n %{realname}-devel
|
||||
Summary: Developent files for %{name}
|
||||
Group: Development/Languages/C and C++
|
||||
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Provides: %{name}-devel = %{version}-%{release}
|
||||
Provides: libtpm2_pkcs11-devel = %{version}-%{release}
|
||||
|
||||
%description -n %{realname}-devel
|
||||
Headers and linraries to build software against %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n tpm2-pkcs11-%version
|
||||
if [ ! -x configure ]; then
|
||||
test -x bootstrap && ./bootstrap || autoreconf --install
|
||||
fi
|
||||
|
||||
%build
|
||||
%{configure} --disable-static
|
||||
%{__make} %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
%{__make} install DESTDIR=%{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc CHANGELOG.md LICENSE docs/*
|
||||
%dir %{_libdir}/pkcs11
|
||||
%{_libdir}/pkcs11/libtpm2_pkcs11.so
|
||||
%{_libdir}/pkcs11/libtpm2_pkcs11.so.%{?so_ver}*
|
||||
%dir %{_datadir}/p11-kit/modules
|
||||
%dir %{_datadir}/p11-kit
|
||||
%{_datadir}/p11-kit/modules/tpm2_pkcs11.module
|
||||
|
||||
%files -n %{realname}-devel
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/pkgconfig/tpm2-pkcs11.pc
|
||||
%exclude %{_libdir}/pkcs11/libtpm2_pkcs11.la
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user