|
|
b86481 |
%{!?_licensedir:%global license %%doc}
|
|
|
b86481 |
|
|
|
b86481 |
%global srcname yubico
|
|
|
b86481 |
|
|
|
b86481 |
%if 0%{?rhel} > 7
|
|
|
b86481 |
# Disable python2 build by default
|
|
|
b86481 |
%bcond_with python2
|
|
|
b86481 |
%else
|
|
|
b86481 |
%bcond_without python2
|
|
|
b86481 |
%endif
|
|
|
b86481 |
|
|
|
b86481 |
Name: python-%{srcname}
|
|
|
b86481 |
Version: 1.3.2
|
|
|
7c0ab7 |
Release: 9.1%{?dist}
|
|
|
b86481 |
Summary: Pure-python library for interacting with Yubikeys
|
|
|
b86481 |
|
|
|
b86481 |
License: BSD
|
|
|
b86481 |
URL: https://github.com/Yubico/%{name}
|
|
|
b86481 |
Source0: https://github.com/Yubico/%{name}/archive/%{name}-%{version}.tar.gz
|
|
|
b86481 |
Patch0: python-yubico-py3.patch
|
|
|
b86481 |
|
|
|
b86481 |
BuildArch: noarch
|
|
|
b86481 |
|
|
|
b86481 |
%if %{with python2}
|
|
|
b86481 |
BuildRequires: python2-devel
|
|
|
b86481 |
BuildRequires: python2-setuptools
|
|
|
b86481 |
BuildRequires: python2-nose
|
|
|
b86481 |
BuildRequires: python2-pyusb
|
|
|
b86481 |
%endif # with python2
|
|
|
b86481 |
|
|
|
b86481 |
BuildRequires: python3-devel
|
|
|
b86481 |
BuildRequires: python3-setuptools
|
|
|
b86481 |
BuildRequires: python3-nose
|
|
|
b86481 |
BuildRequires: python3-pyusb
|
|
|
b86481 |
|
|
|
b86481 |
%description
|
|
|
b86481 |
Pure-python library for interacting with Yubikeys
|
|
|
b86481 |
|
|
|
b86481 |
%if %{with python2}
|
|
|
b86481 |
%package -n python2-%{srcname}
|
|
|
b86481 |
Summary: Pure-python library for interacting with Yubikeys
|
|
|
b86481 |
Requires: pyusb
|
|
|
b86481 |
Obsoletes: python-yubico < %{version}-%{release}
|
|
|
b86481 |
|
|
|
b86481 |
%{?python_provide:%python_provide python2-%{srcname}}
|
|
|
b86481 |
|
|
|
b86481 |
%description -n python2-%{srcname}
|
|
|
b86481 |
Pure-python library for interacting with Yubikeys. For Python 2.
|
|
|
b86481 |
%endif # with python2
|
|
|
b86481 |
|
|
|
b86481 |
%package -n python3-%{srcname}
|
|
|
b86481 |
Summary: Pure-python library for interacting with Yubikeys
|
|
|
b86481 |
Requires: python3-pyusb
|
|
|
b86481 |
|
|
|
b86481 |
%{?python_provide:%python_provide python3-%{srcname}}
|
|
|
b86481 |
|
|
|
b86481 |
%description -n python3-%{srcname}
|
|
|
b86481 |
Pure-python library for interacting with Yubikeys. For Python 3.
|
|
|
b86481 |
|
|
|
b86481 |
|
|
|
b86481 |
%prep
|
|
|
b86481 |
%autosetup -n %{name}-%{name}-%{version} -p1
|
|
|
b86481 |
|
|
|
b86481 |
|
|
|
b86481 |
%build
|
|
|
b86481 |
%if %{with python2}
|
|
|
b86481 |
%py2_build
|
|
|
b86481 |
%endif # with python2
|
|
|
b86481 |
%py3_build
|
|
|
b86481 |
|
|
|
b86481 |
|
|
|
b86481 |
%install
|
|
|
b86481 |
%if %{with python2}
|
|
|
b86481 |
%py2_install
|
|
|
b86481 |
%endif # with python2
|
|
|
b86481 |
%py3_install
|
|
|
b86481 |
|
|
|
b86481 |
|
|
|
b86481 |
%check
|
|
|
b86481 |
%if %{with python2}
|
|
|
b86481 |
nosetests-%{python2_version} -e test_challenge_response -e test_serial -e test_status
|
|
|
b86481 |
%endif # with python2
|
|
|
b86481 |
nosetests-%{python3_version} -e test_challenge_response -e test_serial -e test_status
|
|
|
b86481 |
|
|
|
b86481 |
%if %{with python2}
|
|
|
b86481 |
%files -n python2-%{srcname}
|
|
|
b86481 |
%license COPYING
|
|
|
b86481 |
%doc NEWS README
|
|
|
b86481 |
%{python2_sitelib}/*
|
|
|
b86481 |
%endif # with python2
|
|
|
b86481 |
|
|
|
b86481 |
%files -n python3-%{srcname}
|
|
|
b86481 |
%license COPYING
|
|
|
b86481 |
%doc NEWS README
|
|
|
b86481 |
%{python3_sitelib}/*
|
|
|
b86481 |
|
|
|
b86481 |
|
|
|
b86481 |
%changelog
|
|
|
7c0ab7 |
* Thu Jun 16 2022 Florence Blanc-Renaud <frenaud@redhat.com> - 1.3.2-9.1
|
|
|
7c0ab7 |
- Rebuilt to fix NVR issue (#2097803)
|
|
|
7c0ab7 |
|
|
|
b86481 |
* Tue Jun 19 2018 Charalampos Stratakis <cstratak@redhat.com> - 1.3.2-9
|
|
|
b86481 |
- Conditionalize the python2 subpackage
|
|
|
b86481 |
|
|
|
b86481 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.2-8
|
|
|
b86481 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
b86481 |
|
|
|
b86481 |
* Thu Aug 24 2017 Nathaniel McCallum <npmccallum@redhat.com> - 1.3.2-7
|
|
|
b86481 |
- Backport an upstream python3 fix (#1484862)
|
|
|
b86481 |
|
|
|
b86481 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.2-6
|
|
|
b86481 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
b86481 |
|
|
|
b86481 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.2-5
|
|
|
b86481 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
b86481 |
|
|
|
b86481 |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.3.2-4
|
|
|
b86481 |
- Rebuild for Python 3.6
|
|
|
b86481 |
|
|
|
b86481 |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.2-3
|
|
|
b86481 |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
b86481 |
|
|
|
b86481 |
* Wed May 11 2016 Nathaniel McCallum <npmccallum@redhat.com> - 1.3.2-2
|
|
|
b86481 |
- Add missing provide for python-yubico
|
|
|
b86481 |
- Add missing obsoletes for python-yubico
|
|
|
b86481 |
|
|
|
b86481 |
* Tue May 10 2016 Nathaniel McCallum <npmccallum@redhat.com> - 1.3.2-1
|
|
|
b86481 |
- Cleanup obsolete conditions (like RHEL 6)
|
|
|
b86481 |
- Update to v1.3.2
|
|
|
b86481 |
|
|
|
b86481 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.3-6
|
|
|
b86481 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
b86481 |
|
|
|
b86481 |
* Mon Jan 11 2016 Will Thompson <will@willthompson.co.uk> - 1.2.3-5
|
|
|
b86481 |
- Add python3-pyusb dependency to python3 subpackage (#1278210)
|
|
|
b86481 |
|
|
|
b86481 |
* Mon Jan 11 2016 Ville Skyttä <ville.skytta@iki.fi>
|
|
|
b86481 |
- Ship COPYING as %%license where applicable
|
|
|
b86481 |
|
|
|
b86481 |
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.3-4
|
|
|
b86481 |
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
b86481 |
|
|
|
b86481 |
* Mon Jul 20 2015 Miro Hrončok <mhroncok@redhat.com> - 1.2.3-3
|
|
|
b86481 |
- Add Python 3 subpackage (#1244237)
|
|
|
b86481 |
|
|
|
b86481 |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.3-2
|
|
|
b86481 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
b86481 |
|
|
|
b86481 |
* Mon Mar 23 2015 Nathaniel McCallum <npmccallum@redhat.com> - 1.2.3-1
|
|
|
b86481 |
- Upstream 1.2.3
|
|
|
b86481 |
- Require pyusb during building when running tests
|
|
|
b86481 |
|
|
|
b86481 |
* Mon Jun 23 2014 Nathaniel McCallum <npmccallum@redhat.com> - 1.2.1-3
|
|
|
b86481 |
- Enable build on EL6.
|
|
|
b86481 |
|
|
|
b86481 |
* Sat Jun 21 2014 Nathaniel McCallum <npmccallum@redhat.com> - 1.2.1-2
|
|
|
b86481 |
- Run upstream tests during build.
|
|
|
b86481 |
|
|
|
b86481 |
* Thu Jun 19 2014 Nathaniel McCallum <npmccallum@redhat.com> - 1.2.1-1
|
|
|
b86481 |
- Initial release.
|