]> git.pld-linux.org Git - SPECS.git/blob - yubikey-manager.spec
SPECS updated Sun 1 Aug 15:50:02 CEST 2021
[SPECS.git] / yubikey-manager.spec
1 #
2 # Conditional build:
3 %bcond_with     tests           # unit tests (broken as of 1.0.1)
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
8 Version:        4.0.5
9 Release:        1
10 License:        BSD
11 Group:          Applications/System
12 Source0:        https://developers.yubico.com/yubikey-manager/Releases/%{name}-%{version}.tar.gz
13 # Source0-md5:  0033fe7aca126920622f90d0f9fc7c0f
14 URL:            https://developers.yubico.com/yubikey-manager/
15 BuildRequires:  python3-modules >= 1:3.6
16 BuildRequires:  python3-setuptools
17 %if %{with tests}
18 BuildRequires:  python3-cryptography
19 BuildRequires:  python3-fido2 >= 0.9.0
20 BuildRequires:  python3-mock
21 BuildRequires:  python3-pyOpenSSL
22 BuildRequires:  python3-pyscard
23 BuildRequires:  python3-pyusb
24 BuildRequires:  python3-six
25 %endif
26 Requires:       python3-fido2 >= 0.9.0
27 Requires:       python3-modules >= 1:3.6
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 -l pl.UTF-8
35 Pythonowa biblioteka i narzędzie linii poleceń do konfiguracji
36 urządzeń YubiKey.
37
38 %prep
39 %setup -q
40
41 %build
42 %py3_build
43
44 %if %{with tests}
45 %{__python3} -m unittest discover -s tests
46 %endif
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50
51 %py3_install
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
60 %{py3_sitescriptdir}/ykman
61 %{py3_sitescriptdir}/yubikit
62 %{py3_sitescriptdir}/yubikey_manager-%{version}-py*.egg-info
This page took 0.054973 seconds and 3 git commands to generate.