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