40184939 |
%{!?python2_sitelib: %define python2_sitelib %(python2 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")}
%{!?python3_sitelib: %define python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")}
Summary: An implementation of the OAuth request-signing logic
Name: python-oauthlib |
7404bf19 |
Version: 2.1.0
Release: 1%{?dist} |
40184939 |
License: BSD
Url: https://pypi.python.org/pypi/python-oauthlib/
Group: Development/Languages/Python
Vendor: VMware, Inc.
Distribution: Photon |
7404bf19 |
Source0: https://pypi.python.org/packages/fa/2e/25f25e6c69d97cf921f0a8f7d520e0ef336dd3deca0142c0b634b0236a90/oauthlib-%{version}.tar.gz
%define sha1 oauthlib=3e7b426212fc0d9f91813a983238321ee9026d15 |
40184939 |
BuildRequires: python2-devel
BuildRequires: python-setuptools |
63bfaba0 |
BuildRequires: libffi-devel |
40184939 |
Requires: python2
Requires: python2-libs
BuildArch: noarch
%description
OAuthLib is a generic utility which implements the logic of OAuth without assuming a specific HTTP request object or web framework
%package -n python3-oauthlib
Summary: Python3 package for oauthlib
BuildRequires: python3-devel |
a848bcf8 |
BuildRequires: python3-setuptools
BuildRequires: python3-xml |
40184939 |
Requires: python3
Requires: python3-libs
%description -n python3-oauthlib
Python 3 version of oauthlib
%prep
%setup -q -n oauthlib-%{version}
rm -rf ../p3dir
cp -a . ../p3dir
%build
python2 setup.py build
pushd ../p3dir
python3 setup.py build
popd
%install
rm -rf %{buildroot}
python2 setup.py install --root=%{buildroot}
pushd ../p3dir
python3 setup.py install --root=%{buildroot}
popd
%check |
63bfaba0 |
easy_install_2=$(ls /usr/bin |grep easy_install |grep 2)
$easy_install_2 mock |
40184939 |
python2 setup.py test
pushd ../p3dir |
63bfaba0 |
easy_install_3=$(ls /usr/bin |grep easy_install |grep 3)
$easy_install_3 mock |
40184939 |
python3 setup.py test
popd
%files
%defattr(-, root, root, -)
%{python2_sitelib}/*
%files -n python3-oauthlib
%{python3_sitelib}/*
%changelog |
7404bf19 |
* Sun Sep 09 2018 Tapas Kundu <tkundu@vmware.com> 2.1.0-1
- Update to version 2.1.0 |
63bfaba0 |
* Fri Jul 07 2017 Chang Lee <changlee@vmware.com> 2.0.2-3
- Add libffi-devel in BuildRequires and install mock python module in %check |
a848bcf8 |
* Wed Jun 07 2017 Xiaolin Li <xiaolinl@vmware.com> 2.0.2-2
- Add python3-setuptools and python3-xml to python3 sub package Buildrequires. |
40184939 |
* Thu Apr 13 2017 Anish Swaminathan <anishs@vmware.com> 2.0.2-1
- Initial packaging for Photon
|