diff --git a/python-yubico.spec b/python-yubico.spec index ddf8d5c..cc9a5bb 100644 --- a/python-yubico.spec +++ b/python-yubico.spec @@ -4,7 +4,7 @@ Name: python-%{srcname} Version: 1.3.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Pure-python library for interacting with Yubikeys License: BSD @@ -12,46 +12,61 @@ URL: https://github.com/Yubico/%{name} Source0: https://github.com/Yubico/%{name}/archive/%{name}-%{version}.tar.gz BuildArch: noarch + BuildRequires: python2-devel BuildRequires: python2-setuptools BuildRequires: python2-nose BuildRequires: pyusb -%if 0%{fedora} BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-nose BuildRequires: python3-pyusb -%endif %description Pure-python library for interacting with Yubikeys + %package -n python2-%{srcname} Summary: Pure-python library for interacting with Yubikeys Requires: pyusb +Obsoletes: python-yubico < %{version}-%{release} + +%{?python_provide:%python_provide python2-%{srcname}} %description -n python2-%{srcname} Pure-python library for interacting with Yubikeys. For Python 2. + %package -n python3-%{srcname} Summary: Pure-python library for interacting with Yubikeys Requires: python3-pyusb +%{?python_provide:%python_provide python3-%{srcname}} + %description -n python3-%{srcname} Pure-python library for interacting with Yubikeys. For Python 3. + %prep %autosetup -n %{name}-%{name}-%{version} + %build %py2_build %py3_build + %install %py2_install %py3_install + +%check +nosetests-%{python2_version} -e test_challenge_response -e test_serial -e test_status +nosetests-%{python3_version} -e test_challenge_response -e test_serial -e test_status + + %files -n python2-%{srcname} %license COPYING %doc NEWS README @@ -62,11 +77,12 @@ Pure-python library for interacting with Yubikeys. For Python 3. %doc NEWS README %{python3_sitelib}/* -%check -nosetests-%{python2_version} -e test_challenge_response -e test_serial -e test_status -nosetests-%{python3_version} -e test_challenge_response -e test_serial -e test_status %changelog +* Wed May 11 2016 Nathaniel McCallum - 1.3.2-2 +- Add missing provide for python-yubico +- Add missing obsoletes for python-yubico + * Tue May 10 2016 Nathaniel McCallum - 1.3.2-1 - Cleanup obsolete conditions (like RHEL 6) - Update to v1.3.2