%global distname requests-oauthlib %global modname requests_oauthlib Name: python-requests-oauthlib Version: 0.4.0 Release: 1%{?dist} Summary: OAuthlib authentication support for Requests. Group: Development/Libraries License: ISC URL: http://pypi.python.org/pypi/requests-oauthlib Source0: http://pypi.python.org/packages/source/r/%{distname}/%{distname}-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel BuildRequires: python-setuptools BuildRequires: python-mock BuildRequires: python-oauthlib BuildRequires: python-requests Requires: python-oauthlib Requires: python-requests %description This project provides first-class OAuth library support for python-request. %prep %setup -q -n %{distname}-%{version} # Remove bundled egg-info in case it exists rm -rf %{distname}.egg-info %build %{__python} setup.py build %install %{__python} setup.py install -O1 --skip-build --root=%{buildroot} # Upstream doesn't actually ship the tests with the tarball. # https://github.com/requests/requests-oauthlib/pull/91 #%%check #%%{__python} setup.py test %files %doc README.rst LICENSE HISTORY.rst requirements.txt AUTHORS.rst %{python_sitelib}/%{modname}/ %{python_sitelib}/%{modname}-%{version}* %changelog * Thu Oct 31 2013 Ralph Bean - 0.4.0-1 - Initial package for Fedora