]>
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 | |
09bbde73 | 8 | Version: 1.0.1 |
db62300c JB |
9 | Release: 1 |
10 | License: BSD | |
11 | Group: Applications/System | |
12 | Source0: https://developers.yubico.com/yubikey-manager/Releases/%{name}-%{version}.tar.gz | |
09bbde73 | 13 | # Source0-md5: ba04a0e70099de3c098156d0761f79c2 |
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 | |
db62300c JB |
20 | BuildRequires: python-fido2 |
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 |
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 | |
44 | %py_build | |
45 | ||
46 | %if %{with tests} | |
47 | %{__python} -m unittest discover -s test | |
48 | %endif | |
49 | ||
50 | %install | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %py_install | |
54 | ||
55 | %py_postclean | |
56 | ||
57 | %clean | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %files | |
61 | %defattr(644,root,root,755) | |
62 | %doc COPYING NEWS README.adoc | |
63 | %attr(755,root,root) %{_bindir}/ykman | |
64 | %{py_sitescriptdir}/ykman | |
65 | %{py_sitescriptdir}/yubikey_manager-%{version}-py*.egg-info |