commit 81cbee8f127fd6272da2ca575a53fff571d9c482 Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 11:15:17 2019 -0400 Package init diff --git a/oauthlib-3.0.2.tar.gz b/oauthlib-3.0.2.tar.gz new file mode 100644 index 0000000..dff17a7 Binary files /dev/null and b/oauthlib-3.0.2.tar.gz differ diff --git a/python-oauthlib.spec b/python-oauthlib.spec new file mode 100644 index 0000000..699f859 --- /dev/null +++ b/python-oauthlib.spec @@ -0,0 +1,93 @@ +Name: python-oauthlib +Version: 3.0.2 +Release: 1 +Summary: Python Framework for OAuth1 & OAuth2 +License: BSD +URL: https://github.com/oauthlib/oauthlib +Source0: https://github.com/oauthlib/oauthlib/archive/oauthlib-%{version}.tar.gz + + +BuildArch: noarch + +%description +AuthLib is a framework which implements the logic of OAuth1 or OAuth2 +without assuming a specific HTTP request object or web framework. Use +it to graft OAuth client support onto your favorite HTTP library, or +provide support onto your favourite web framework. If you're a +maintainer of such a library, write a thin veneer on top of OAuthLib +and get OAuth support for very little effort. + +%if 0%{?with_python2} +%package -n python2-oauthlib +Summary: Python2 package for oauthlib +BuildRequires: python2-devel python2-setuptools python2-nose python2-mock +BuildRequires: python2-blinker python2-jwt python2-cryptography +Requires: python2-jwt python2-cryptography + +%description -n python2-oauthlib +Python2 package for oauthlib +%endif + +%if 0%{?with_python3} +%package -n python3-oauthlib +Summary: Python3 package for oauthlib +BuildRequires: python3-devel python3-setuptools python3-nose python3-mock +BuildRequires: python3-blinker python3-jwt python3-cryptography +Requires: python3-jwt python3-cryptography + +%description -n python3-oauthlib +Python3 package for oauthlib +%endif + +%prep +%autosetup -n oauthlib-%{version} -p1 +sed -i "s/'unittest2', //" setup.py + +%build +%if 0%{?with_python2} +%py2_build +%endif + +%if 0%{?with_python3} +%py3_build +%endif + +%install +%if 0%{?with_python2} +%py2_install +%endif + +%if 0%{?with_python3} +%py3_install +%endif + +%check +%if 0%{?with_python2} +%{__python2} setup.py test +%endif + +%if 0%{?with_python3} +%{__python3} setup.py test +%endif + +%if 0%{?with_python2} +%files -n python2-oauthlib +%defattr(-,root,root) +%doc README.rst +%license LICENSE +%{python2_sitelib}/oauthlib/* +%{python2_sitelib}/oauthlib-%{version}* +%endif + +%if 0%{?with_python3} +%files -n python3-oauthlib +%defattr(-,root,root) +%doc README.rst +%license LICENSE +%{python3_sitelib}/oauthlib/* +%{python3_sitelib}/oauthlib-%{version}* +%endif + +%changelog +* Tue Sep 3 2019 openEuler Buildteam - 3.0.2-1 +- Package init