commit b9424414ca974d073947fb4a0b6f0128e672185e005924d061cc15ef7fbba074 Author: Matej Cepl Date: Wed May 8 11:31:29 2019 +0000 Accepting request 701337 from home:pgajdos rename python-yubico -> python-python-yubico OBS-URL: https://build.opensuse.org/request/show/701337 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-yubico?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/python-python-yubico.changes b/python-python-yubico.changes new file mode 100644 index 0000000..242339f --- /dev/null +++ b/python-python-yubico.changes @@ -0,0 +1,43 @@ +------------------------------------------------------------------- +Tue May 7 13:31:02 UTC 2019 - pgajdos@suse.com + +- package renamed to python-python-yubico +- turn on testsuite + +------------------------------------------------------------------- +Thu Feb 28 13:00:33 UTC 2019 - Karol Babioch + +- Version 1.3.3 (released 2019-02-28) + - Fixes in Python 3 compatibility. + +------------------------------------------------------------------- +Tue Dec 4 12:56:22 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- +Thu Nov 16 07:35:02 UTC 2017 - t.gruner@katodev.de + +- add multi-python support + +------------------------------------------------------------------- +Tue Feb 23 11:48:24 UTC 2016 - michael@stroeder.com + +- update to 1.3.2 + * yubico/yubikey_usb_hid.py: change logic for pgm seq if no + config is valid, seq 0 is ok + * yubico/yubikey_usb_hid.py: that the new sequence is 0 is also ok + * yubico/yubikey_frame.py: Added comments explaining debug data. + * Solved: Unlock code couldn't be set + +------------------------------------------------------------------- +Tue Nov 3 09:26:46 UTC 2015 - t.gruner@katodev.de + +- Replaced this source code with Yubico's source code (version 1.3.1) + The developer of the old package has changed the name to python-yubico-client + +------------------------------------------------------------------- +Mon Jun 1 08:24:32 UTC 2015 - hguo@suse.com + +- New package. + diff --git a/python-python-yubico.spec b/python-python-yubico.spec new file mode 100644 index 0000000..29ef9f2 --- /dev/null +++ b/python-python-yubico.spec @@ -0,0 +1,74 @@ +# +# spec file for package python-yubico +# +# Copyright (c) 2019 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 https://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-python-yubico +# there are three repos: +# https://pypi.org/project/python-yubico/ (1.3.3) +# https://pypi.org/project/yubico/ (1.6.2) IIUC for protocol version 2.0 +# https://pypi.org/project/yubico-client/ (1.10.0) for 2.0, too, just renamed +Version: 1.3.3 +Release: 0 +Summary: Python code for talking to Yubico's YubiKeys +License: BSD-2-Clause +Group: Development/Languages/Python +URL: https://developers.yubico.com/python-yubico/Releases/ +Source: https://developers.yubico.com/python-yubico/Releases/python-yubico-%{version}.tar.gz +Source1: https://developers.yubico.com/python-yubico/Releases/python-yubico-%{version}.tar.gz.sig +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module usb} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-usb +BuildArch: noarch +Provides: python-yubico = %{version} +Obsoletes: python-yubico < %{version} +%python_subpackages + +%description +The YubiKey is a hardware token for authentication. The main mode of the YubiKey +is entering a one time password (or a strong static password) by acting as a USB HID device, +but there are things one can do with bi-directional communication: + + 1. Configuration. The yubikey_config class should be a feature-wise complete implementation + of everything that can be configured on YubiKeys version 1.3 to 3.x (besides deprecated + functions in YubiKey 1.x). See examples/configure_nist_test_key for an example. + 2. Challenge-response. YubiKey 2.2 and later supports HMAC-SHA1 or Yubico challenge-response + operations. See examples/nist_challenge_response for an example. + +%prep +%setup -q -n python-yubico-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# needs the hardware +rm -r test/usb +%python_exec setup.py test + +%files %{python_files} +%license COPYING +%doc README ChangeLog NEWS +%{python_sitelib}/* + +%changelog diff --git a/python-yubico-1.3.3.tar.gz b/python-yubico-1.3.3.tar.gz new file mode 100644 index 0000000..a4e45ff --- /dev/null +++ b/python-yubico-1.3.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d8466427aa5922ac5d4b7e9c65b693108427cf537d653d68cb212c0713e8e6f5 +size 41154 diff --git a/python-yubico-1.3.3.tar.gz.sig b/python-yubico-1.3.3.tar.gz.sig new file mode 100644 index 0000000..1116f33 Binary files /dev/null and b/python-yubico-1.3.3.tar.gz.sig differ