58 lines
1.6 KiB
RPMSpec
58 lines
1.6 KiB
RPMSpec
%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
|