]>
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 |
ad8ea957 | 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 | |
67636556 | 13 | # Source0-md5: 5db30780e6ffbe55698228acde70efae |
db62300c JB |
14 | URL: https://developers.yubico.com/yubikey-manager/ |
15 | BuildRequires: python-modules | |
16 | BuildRequires: python-setuptools | |
17 | %if %{with tests} | |
8bc9ddb5 JB |
18 | BuildRequires: python-cryptography |
19 | BuildRequires: python-enum34 | |
701ffe25 | 20 | BuildRequires: python-fido2 >= 0.7.0 |
db62300c | 21 | BuildRequires: python-mock |
8bc9ddb5 | 22 | BuildRequires: python-pyOpenSSL |
db62300c JB |
23 | BuildRequires: python-pyscard |
24 | BuildRequires: python-pyusb | |
8bc9ddb5 | 25 | BuildRequires: python-six |
db62300c | 26 | %endif |
701ffe25 | 27 | Requires: python-fido2 >= 0.7.0 |
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 | ||
41 | # integration tests, require device | |
42 | %{__rm} -r test/on_yubikey | |
43 | ||
44 | %build | |
45 | %py_build | |
46 | ||
47 | %if %{with tests} | |
48 | %{__python} -m unittest discover -s test | |
49 | %endif | |
50 | ||
51 | %install | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | %py_install | |
55 | ||
56 | %py_postclean | |
57 | ||
58 | %clean | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %files | |
62 | %defattr(644,root,root,755) | |
63 | %doc COPYING NEWS README.adoc | |
64 | %attr(755,root,root) %{_bindir}/ykman | |
65 | %{py_sitescriptdir}/ykman | |
66 | %{py_sitescriptdir}/yubikey_manager-%{version}-py*.egg-info |