From 869de8f2b81e7545642cc54d9e368b58262685b7 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Mar 05 2015 13:25:18 +0000 Subject: import python-yubico-1.2.1-3.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8e9d3f4 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/python-yubico-1.2.1.tar.gz diff --git a/.python-yubico.metadata b/.python-yubico.metadata new file mode 100644 index 0000000..bafa907 --- /dev/null +++ b/.python-yubico.metadata @@ -0,0 +1 @@ +9eef71feecffdaa05685f84432b2d6cacf5b0ef9 SOURCES/python-yubico-1.2.1.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/python-yubico.spec b/SPECS/python-yubico.spec new file mode 100644 index 0000000..5092b58 --- /dev/null +++ b/SPECS/python-yubico.spec @@ -0,0 +1,57 @@ +%if 0%{?rhel} != 0 && 0%{?rhel} <= 6 +%{!?__python2: %global __python2 /usr/bin/python2} +%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} +%endif + +Name: python-yubico +Version: 1.2.1 +Release: 3%{?dist} +Summary: Pure-python library for interacting with Yubikeys + +License: BSD +URL: https://github.com/Yubico/python-yubico +Source0: https://github.com/Yubico/python-yubico/archive/%{name}-%{version}.tar.gz + +BuildArch: noarch +BuildRequires: python2-devel +BuildRequires: python-setuptools +%if 0%{?rhel} == 0 || 0%{?rhel} >= 7 +BuildRequires: python-nose +%endif +Requires: pyusb + +%description +Pure-python library for interacting with Yubikeys + +%prep +%setup -q -n %{name}-%{name}-%{version} + + +%build +sed -i 's|setup_requires=|tests_require=|' setup.py +%{__python2} setup.py build + + +%install +%{__python2} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT + + +%files +%doc COPYING NEWS README +%{python2_sitelib}/* + +%if 0%{?rhel} == 0 || 0%{?rhel} >= 7 +%check +# Exclude tests that require a physical yubikey attached. +nosetests -e test_challenge_response -e test_serial -e test_status +%endif + +%changelog +* Mon Jun 23 2014 Nathaniel McCallum - 1.2.1-3 +- Enable build on EL6. + +* Sat Jun 21 2014 Nathaniel McCallum - 1.2.1-2 +- Run upstream tests during build. + +* Thu Jun 19 2014 Nathaniel McCallum - 1.2.1-1 +- Initial release.