Package init
This commit is contained in:
commit
81cbee8f12
BIN
oauthlib-3.0.2.tar.gz
Normal file
BIN
oauthlib-3.0.2.tar.gz
Normal file
Binary file not shown.
93
python-oauthlib.spec
Normal file
93
python-oauthlib.spec
Normal file
@ -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 <buildteam@openeuler.org> - 3.0.2-1
|
||||
- Package init
|
||||
Loading…
x
Reference in New Issue
Block a user