Initial import (#1025367)

This commit is contained in:
Ralph Bean 2013-11-01 10:53:52 -04:00
parent d7685c2199
commit df0dbc8690
3 changed files with 59 additions and 0 deletions

1
.gitignore vendored
View File

@ -0,0 +1 @@
/requests-oauthlib-0.4.0.tar.gz

View File

@ -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 <rbean@redhat.com> - 0.4.0-2
- Modernized the python2 rpm macros as per review feedback.
* Thu Oct 31 2013 Ralph Bean <rbean@redhat.com> - 0.4.0-1
- Initial package for Fedora

View File

@ -0,0 +1 @@
2649560205a02473998e0e7dd881ee5a requests-oauthlib-0.4.0.tar.gz