From df0dbc86905f57314a1dcb9be4e89bb0a537e08d Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Nov 01 2013 14:53:52 +0000 Subject: Initial import (#1025367) --- diff --git a/.gitignore b/.gitignore index e69de29..018f42e 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/requests-oauthlib-0.4.0.tar.gz diff --git a/python-requests-oauthlib.spec b/python-requests-oauthlib.spec new file mode 100644 index 0000000..08b12c3 --- /dev/null +++ b/python-requests-oauthlib.spec @@ -0,0 +1,57 @@ +%global distname requests-oauthlib +%global modname requests_oauthlib + +Name: python-requests-oauthlib +Version: 0.4.0 +Release: 2%{?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 +%{__python2} setup.py build + +%install +%{__python2} 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 +#%%{__python2} setup.py test + +%files +%doc README.rst LICENSE HISTORY.rst requirements.txt AUTHORS.rst +%{python2_sitelib}/%{modname}/ +%{python2_sitelib}/%{modname}-%{version}* + +%changelog +* Fri Nov 01 2013 Ralph Bean - 0.4.0-2 +- Modernized the python2 rpm macros as per review feedback. + +* Thu Oct 31 2013 Ralph Bean - 0.4.0-1 +- Initial package for Fedora diff --git a/sources b/sources index e69de29..777270b 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +2649560205a02473998e0e7dd881ee5a requests-oauthlib-0.4.0.tar.gz