From adcf4fc9d1558b0dfe4cfd42559ffd27189bcf72fe89a2d91e7a2652804db8db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristian=20Rodr=C3=ADguez?= Date: Fri, 30 Jan 2015 23:48:35 +0000 Subject: [PATCH] Accepting request 282536 from home:Simmphonie:yubico OBS-URL: https://build.opensuse.org/request/show/282536 OBS-URL: https://build.opensuse.org/package/show/security/yubico-piv-tool?expand=0&rev=1 --- .gitattributes | 23 +++++++++ .gitignore | 1 + yubico-piv-tool-0.1.3.tar.gz | 3 ++ yubico-piv-tool.changes | 35 ++++++++++++++ yubico-piv-tool.spec | 92 ++++++++++++++++++++++++++++++++++++ 5 files changed, 154 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 yubico-piv-tool-0.1.3.tar.gz create mode 100644 yubico-piv-tool.changes create mode 100644 yubico-piv-tool.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/yubico-piv-tool-0.1.3.tar.gz b/yubico-piv-tool-0.1.3.tar.gz new file mode 100644 index 0000000..08f0916 --- /dev/null +++ b/yubico-piv-tool-0.1.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e579c39857908d5e8daf66c3b7f8af714e2e31e9ddbb5fbe87a286dccb870b73 +size 410629 diff --git a/yubico-piv-tool.changes b/yubico-piv-tool.changes new file mode 100644 index 0000000..99c2e1a --- /dev/null +++ b/yubico-piv-tool.changes @@ -0,0 +1,35 @@ +------------------------------------------------------------------- +Fri Jan 23 07:47:58 UTC 2015 - t.gruner@katodev.de + +- Version 0.1.3 (released 2014-12-18) + Add format DER for importing certificates. + Make sure diagnostic feedback ends up on stderr. + Add positive feedback for a couple of actions. + +- Version 0.1.2 (released 2014-11-14) + Fix an issue where shorter component of RSA keys where not packed correctly. + +- Version 0.1.1 (released 2014-11-10) + Correct broken CHUID that made windows work inconsistently. + Add support for compressed certificates. + Fix broken unblock-pin action. + Don’t try to accept to short keys for mgm key. + Only do applet authentication if needed. + Add --hash for selecting what hash to use for signatures. + Add hidden --sign command. Should probably not be used. + Fix for signature algorithm in selfsigned cert. + +- Version 0.1.0 (released 2014-08-25) + Break out functionality into a library. + More testing. + +- Version 0.0.3 (released 2014-05-26) + Add delete-certificate action. + Fix minor bugs. + +- Version 0.0.2 (released 2014-02-19) + Fix an offset bug with CHUID. + Do full mutual auth with the applet. + +- Version 0.0.1 (released 2014-02-11) + Initial release. diff --git a/yubico-piv-tool.spec b/yubico-piv-tool.spec new file mode 100644 index 0000000..d75e230 --- /dev/null +++ b/yubico-piv-tool.spec @@ -0,0 +1,92 @@ +# +# spec file for package yubico-piv-tool +# +# Copyright (c) 2015 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/ +# + +%define soname 1 + +Name: yubico-piv-tool +Version: 0.1.3 +Release: 0 +Summary: Yubico YubiKey NEO CCID Manager +License: LGPL-3.0+ +Group: Productivity/Networking/Security +Url: https://developers.yubico.com/ +Source0: https://developers.yubico.com/yubico-piv-tool/Releases/%{name}-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: pkg-config +BuildRequires: libtool +BuildRequires: pcsc-lite-devel +BuildRequires: pkgconfig(openssl) +Requires: libykpiv%{soname} = %{version} + + +%description +This is a command line tool to interact with the PIV applet on a YubiKey NEO. +Among other functions it supports, generating keys on device, importing keys +and certificates and creating certificate requests. + +%package -n libykpiv%{soname} +Summary: Yubikey NEO PIV applet library +Group: Productivity/Networking/Security + +%description -n libykpiv%{soname} +This is a low-level library to interact the PIV applet on a YubiKey NEO + +%package -n libykpiv-devel +Summary: Development files for Yubikey NEO PIV applet library +Group: Development/Libraries/C and C++ +Requires: libykpiv%{soname} = %{version} + +%description -n libykpiv-devel +This package contains the header file needed to develop applications that use +Yubikey NEO PIV applet library. + +%prep +%setup -q + +%build +%configure --enable-static=no --with-backend=pcsc +sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool +sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool +%{__make} %{?_smp_mflags} + +%install +%{__make} install DESTDIR=$RPM_BUILD_ROOT INSTALL="%{__install} -p" +%{__rm} -rf %{buildroot}/%{_libdir}/*.la + +%post -n libykpiv%{soname} -p /sbin/ldconfig + +%postun -n libykpiv%{soname} -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%doc COPYING NEWS ChangeLog README +%{_bindir}/%{name} +%{_mandir}/man1/* + +%files -n libykpiv%{soname} +%defattr(-,root,root) +%{_libdir}/libykpiv.so.%{soname} +%{_libdir}/libykpiv.so.%{soname}.0.1 + +%files -n libykpiv-devel +%defattr(-,root,root) +%dir %{_includedir}/ykpiv/ +%{_includedir}/ykpiv/* +%{_libdir}/libykpiv.so +%{_libdir}/pkgconfig/ykpiv.pc + +%changelog