From f6fc98935e97f4c865f811ad1aae50def21b5f7406cc65316d30cd72e149f84f Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Tue, 14 Jan 2014 14:53:17 +0000 Subject: [PATCH] - import 0.5.1 - software TPM driver library for hooking into QEMU OBS-URL: https://build.opensuse.org/package/show/security/libtpms?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++ .gitignore | 1 + libtpms-0.5.1.tar.gz | 3 ++ libtpms.changes | 6 ++++ libtpms.spec | 82 ++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 115 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 libtpms-0.5.1.tar.gz create mode 100644 libtpms.changes create mode 100644 libtpms.spec 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/libtpms-0.5.1.tar.gz b/libtpms-0.5.1.tar.gz new file mode 100644 index 0000000..7057c6b --- /dev/null +++ b/libtpms-0.5.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:139833202e506b24464d8959affdf15f041776f0a376d3a00e4850c2f8dd8ea9 +size 880032 diff --git a/libtpms.changes b/libtpms.changes new file mode 100644 index 0000000..ba71724 --- /dev/null +++ b/libtpms.changes @@ -0,0 +1,6 @@ +------------------------------------------------------------------- +Tue Jan 14 14:51:14 UTC 2014 - meissner@suse.com + +- import 0.5.1 + - software TPM driver library for hooking into QEMU + diff --git a/libtpms.spec b/libtpms.spec new file mode 100644 index 0000000..d74c95e --- /dev/null +++ b/libtpms.spec @@ -0,0 +1,82 @@ +# +# spec file for package libtpms +# +# Copyright (c) 2014 SUSE LINUX Products 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: libtpms +Version: 0.5.1 +Release: 0 +Summary: Library providing Trusted Platform Module (TPM) functionality +License: BSD +Group: Development/Libraries +Url: http://sourceforge.net/projects/ibmswtpm +#Source: http://bergerstefan.users.sourceforge.net/libtpms/%{name}-%{version}.tar.gz +Source0: %{name}-%{version}.tar.gz +BuildRequires: openssl-devel + +%description +A library providing TPM functionality for VMs. Targeted for integration +into Qemu. + +%package devel +Summary: Include files for libtpms +Group: Development/Libraries +Requires: %{name} = %{version} + +%description devel +Libtpms header files and documentation. + + +%prep +%setup -q + +%build +%configure \ + --with-openssl \ + --disable-static + +make %{?_smp_mflags} + +%check +make check + +%install +install -d -m 0755 $RPM_BUILD_ROOT%{_libdir} +install -d -m 0755 $RPM_BUILD_ROOT%{_includedir}/libtpms +install -d -m 0755 $RPM_BUILD_ROOT%{_mandir}/man3 + +make %{?_smp_mflags} install DESTDIR=${RPM_BUILD_ROOT} + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%defattr(-, root, root, -) +%doc LICENSE README CHANGES +%{_libdir}/%{name}.la +%{_libdir}/%{name}.so.%{version} +%{_libdir}/%{name}.so.0 + +%files devel +%defattr(-, root, root, -) +%{_libdir}/%{name}.so +%dir %{_includedir}/%{name} +%attr(644, root, root) %{_libdir}/pkgconfig/*.pc +%attr(644, root, root) %{_includedir}/%{name}/*.h +%attr(644, root, root) %{_mandir}/man3/* + +%changelog