commit f001b8e7b231293ceb6abf3e501751eb0aa0999301eb1afb062cc1586bd94a35 Author: Marcus Meissner Date: Mon Aug 16 14:34:26 2021 +0000 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 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/1.6.0.tar.gz b/1.6.0.tar.gz new file mode 100644 index 0000000..14d5ac9 --- /dev/null +++ b/1.6.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f4678d9e51a8b29c6a0a510fee78c865639e9ee2b7feddda853f70e95e92e191 +size 985552 diff --git a/tpm2-pkcs11.changes b/tpm2-pkcs11.changes new file mode 100644 index 0000000..33bd1b4 --- /dev/null +++ b/tpm2-pkcs11.changes @@ -0,0 +1,9 @@ +------------------------------------------------------------------- +Wed Sep 9 10:05:02 UTC 2020 - Alexander Evseev - 1.4.0 + +- New upstream version - 1.4.0 + +------------------------------------------------------------------- +Mon Aug 3 14:19:30 UTC 2020 - Alexander Evseev - 1.3.1 + +- First build. Version - 1.3.1 diff --git a/tpm2-pkcs11.spec b/tpm2-pkcs11.spec new file mode 100644 index 0000000..c0b2fc0 --- /dev/null +++ b/tpm2-pkcs11.spec @@ -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