]>
Commit | Line | Data |
---|---|---|
db62300c JB |
1 | # |
2 | # Conditional build: | |
8bc9ddb5 | 3 | %bcond_with tests # unit tests (broken as of 1.0.1) |
db62300c JB |
4 | |
5 | Summary: Tool for managing your YubiKey configuration | |
6 | Summary(pl.UTF-8): Narzędzie do zarządzania urządzeniami YubiKey | |
7 | Name: yubikey-manager | |
6ebcd995 | 8 | Version: 5.0.0 |
6f441f8d | 9 | Release: 1 |
db62300c JB |
10 | License: BSD |
11 | Group: Applications/System | |
6ebcd995 JP |
12 | Source0: https://developers.yubico.com/yubikey-manager/Releases/yubikey_manager-%{version}.tar.gz |
13 | # Source0-md5: 0c4be1b791faf267c2bb29ca33f28fcf | |
db62300c | 14 | URL: https://developers.yubico.com/yubikey-manager/ |
bc0fe9e6 | 15 | BuildRequires: python3-modules >= 1:3.6 |
f2460cea | 16 | BuildRequires: python3-setuptools |
e0148efd | 17 | BuildRequires: rpmbuild(macros) >= 1.714 |
db62300c | 18 | %if %{with tests} |
f2460cea | 19 | BuildRequires: python3-cryptography |
6ebcd995 | 20 | BuildRequires: python3-fido2 >= 1.0.0 |
f2460cea JP |
21 | BuildRequires: python3-mock |
22 | BuildRequires: python3-pyOpenSSL | |
23 | BuildRequires: python3-pyscard | |
24 | BuildRequires: python3-pyusb | |
25 | BuildRequires: python3-six | |
db62300c | 26 | %endif |
6ebcd995 | 27 | Requires: python3-fido2 >= 1.0.0 |
bc0fe9e6 | 28 | Requires: python3-modules >= 1:3.6 |
db62300c JB |
29 | BuildArch: noarch |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
31 | ||
32 | %description | |
33 | Python library and command line tool for configuring a YubiKey. | |
34 | ||
1b316f4a | 35 | %description -l pl.UTF-8 |
db62300c JB |
36 | Pythonowa biblioteka i narzędzie linii poleceń do konfiguracji |
37 | urządzeń YubiKey. | |
38 | ||
39 | %prep | |
6ebcd995 | 40 | %setup -q -n yubikey_manager-%{version} |
db62300c | 41 | |
db62300c | 42 | %build |
f2460cea | 43 | %py3_build |
db62300c JB |
44 | |
45 | %if %{with tests} | |
bc0fe9e6 | 46 | %{__python3} -m unittest discover -s tests |
db62300c JB |
47 | %endif |
48 | ||
49 | %install | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
f2460cea | 52 | %py3_install |
db62300c JB |
53 | |
54 | %clean | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
59 | %doc COPYING NEWS README.adoc | |
60 | %attr(755,root,root) %{_bindir}/ykman | |
f2460cea | 61 | %{py3_sitescriptdir}/ykman |
bc0fe9e6 | 62 | %{py3_sitescriptdir}/yubikit |
f2460cea | 63 | %{py3_sitescriptdir}/yubikey_manager-%{version}-py*.egg-info |