60 lines
1.4 KiB
RPMSpec
60 lines
1.4 KiB
RPMSpec
%{!?_licensedir:%global license %%doc}
|
|
|
|
Name: python-yubico
|
|
Version: 1.3.3
|
|
Release: 3
|
|
Summary: Python package for talking to YubiKeys
|
|
License: BSD-2-Clause
|
|
URL: https://github.com/Yubico/python-yubico
|
|
Source0: https://github.com/Yubico/python-yubico/archive/python-yubico-%{version}.tar.gz
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: python3-devel python3-setuptools python3-pytest python3-pyusb
|
|
|
|
%description
|
|
Python package for talking to YubiKeys
|
|
|
|
%package -n python3-yubico
|
|
Summary: Python package for talking to YubiKeys
|
|
Requires: python3-pyusb
|
|
|
|
%{?python_provide:%python_provide python3-yubico}
|
|
|
|
%description -n python3-yubico
|
|
Python package for talking to YubiKeys. For Python 3.
|
|
|
|
%package -n python-yubico-help
|
|
Summary: Docs for python3-yubico
|
|
|
|
%description -n python-yubico-help
|
|
Docs for python-yubico
|
|
|
|
%prep
|
|
%autosetup -n python-yubico-python-yubico-%{version} -p1
|
|
|
|
%build
|
|
%py3_build
|
|
|
|
%install
|
|
%py3_install
|
|
|
|
%check
|
|
%{__python3} -m pytest test/soft/
|
|
|
|
%files -n python3-yubico
|
|
%doc COPYING
|
|
%{python3_sitelib}/*
|
|
|
|
%files -n python-yubico-help
|
|
%doc NEWS README
|
|
|
|
%changelog
|
|
* Mon Aug 01 2022 liukuo <liukuo@kylinos.cn> - 1.3.3-3
|
|
- License compliance rectification
|
|
|
|
* Mon Jan 10 2022 yaoxin <yaoxin30@huawei.com> - 1.3.3-2
|
|
- Solve the problem that python-yubico compilation depends on the python3-nose decay package.
|
|
|
|
* Tue Apr 14 2020 huanghaitao <huanghaitao8@huawei.com> - 1.3.3-1
|
|
- Package init
|