]>
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 | |
dfa263e0 | 8 | Version: 4.0.1 |
bc0fe9e6 | 9 | Release: 1 |
db62300c JB |
10 | License: BSD |
11 | Group: Applications/System | |
12 | Source0: https://developers.yubico.com/yubikey-manager/Releases/%{name}-%{version}.tar.gz | |
dfa263e0 | 13 | # Source0-md5: d9aa5c4af6ca2c3110726c283d872210 |
db62300c | 14 | URL: https://developers.yubico.com/yubikey-manager/ |
bc0fe9e6 | 15 | BuildRequires: python3-modules >= 1:3.6 |
f2460cea | 16 | BuildRequires: python3-setuptools |
db62300c | 17 | %if %{with tests} |
f2460cea | 18 | BuildRequires: python3-cryptography |
bc0fe9e6 | 19 | BuildRequires: python3-fido2 >= 0.9.0 |
f2460cea JP |
20 | BuildRequires: python3-mock |
21 | BuildRequires: python3-pyOpenSSL | |
22 | BuildRequires: python3-pyscard | |
23 | BuildRequires: python3-pyusb | |
24 | BuildRequires: python3-six | |
db62300c | 25 | %endif |
bc0fe9e6 JP |
26 | Requires: python3-fido2 >= 0.9.0 |
27 | Requires: python3-modules >= 1:3.6 | |
db62300c JB |
28 | BuildArch: noarch |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
30 | ||
31 | %description | |
32 | Python library and command line tool for configuring a YubiKey. | |
33 | ||
34 | %description | |
35 | Pythonowa biblioteka i narzędzie linii poleceń do konfiguracji | |
36 | urządzeń YubiKey. | |
37 | ||
38 | %prep | |
39 | %setup -q | |
40 | ||
db62300c | 41 | %build |
f2460cea | 42 | %py3_build |
db62300c JB |
43 | |
44 | %if %{with tests} | |
bc0fe9e6 | 45 | %{__python3} -m unittest discover -s tests |
db62300c JB |
46 | %endif |
47 | ||
48 | %install | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
f2460cea | 51 | %py3_install |
db62300c JB |
52 | |
53 | %clean | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %files | |
57 | %defattr(644,root,root,755) | |
58 | %doc COPYING NEWS README.adoc | |
59 | %attr(755,root,root) %{_bindir}/ykman | |
f2460cea | 60 | %{py3_sitescriptdir}/ykman |
bc0fe9e6 | 61 | %{py3_sitescriptdir}/yubikit |
f2460cea | 62 | %{py3_sitescriptdir}/yubikey_manager-%{version}-py*.egg-info |