From db62300c43b90e841a4fdfd4f964e6588ce851a5 Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Mon, 21 May 2018 05:57:22 +0200 Subject: [PATCH] - new --- yubikey-manager.spec | 69 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 yubikey-manager.spec diff --git a/yubikey-manager.spec b/yubikey-manager.spec new file mode 100644 index 0000000..75ce879 --- /dev/null +++ b/yubikey-manager.spec @@ -0,0 +1,69 @@ +# +# Conditional build: +%bcond_with tests # unit tests (broken as of 0.7.0) + +Summary: Tool for managing your YubiKey configuration +Summary(pl.UTF-8): Narzędzie do zarządzania urządzeniami YubiKey +Name: yubikey-manager +Version: 0.7.0 +Release: 1 +License: BSD +Group: Applications/System +Source0: https://developers.yubico.com/yubikey-manager/Releases/%{name}-%{version}.tar.gz +# Source0-md5: 46f40b5ea22373cab07ce8de6bcc1959 +URL: https://developers.yubico.com/yubikey-manager/ +BuildRequires: python-modules +BuildRequires: python-setuptools +%if %{with tests} +BuildRequires: python-fido2 +BuildRequires: python-mock +BuildRequires: python-pyscard +BuildRequires: python-pyusb +%endif +Requires: python-click +Requires: python-cryptography +Requires: python-enum34 +Requires: python-fido2 +Requires: python-pyOpenSSL +Requires: python-pyscard +Requires: python-pyusb +Requires: python-six +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Python library and command line tool for configuring a YubiKey. + +%description +Pythonowa biblioteka i narzędzie linii poleceń do konfiguracji +urządzeń YubiKey. + +%prep +%setup -q + +# integration tests, require device +%{__rm} -r test/on_yubikey + +%build +%py_build + +%if %{with tests} +%{__python} -m unittest discover -s test +%endif + +%install +rm -rf $RPM_BUILD_ROOT + +%py_install + +%py_postclean + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc COPYING NEWS README.adoc +%attr(755,root,root) %{_bindir}/ykman +%{py_sitescriptdir}/ykman +%{py_sitescriptdir}/yubikey_manager-%{version}-py*.egg-info -- 2.44.0