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