python-oauthlib/python-oauthlib.spec

75 lines
2.0 KiB
RPMSpec
Raw Normal View History

%global modname oauthlib
2019-09-30 11:15:17 -04:00
Name: python-oauthlib
2020-07-23 20:00:56 +08:00
Version: 3.1.0
2021-09-27 10:11:12 +08:00
Release: 4
2019-09-30 11:15:17 -04:00
Summary: Python Framework for OAuth1 & OAuth2
License: BSD
URL: https://github.com/oauthlib/oauthlib
2020-09-08 17:00:47 +08:00
Source0: https://github.com/oauthlib/oauthlib/archive/v%{version}.tar.gz
2019-09-30 11:15:17 -04:00
Patch6000: backport-Use-unittest.mock-instead-of-external-mock.patch.patch
2019-09-30 11:15:17 -04:00
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.
%package -n python3-oauthlib
Summary: Python3 package for oauthlib
2021-09-27 10:11:12 +08:00
%{?python_provide:%python_provide python3-%{modname}}
2019-09-30 11:15:17 -04:00
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
%prep
%autosetup -n oauthlib-%{version} -p1
sed -i "s/'unittest2', //" setup.py
rm -rf %{modname}.egg-info
2019-09-30 11:15:17 -04:00
%build
%py3_build
%install
%py3_install
%check
%{__python3} setup.py test
%files -n python3-oauthlib
%defattr(-,root,root)
%doc README.rst
%license LICENSE
%{python3_sitelib}/oauthlib/*
%{python3_sitelib}/oauthlib-%{version}*
2019-09-30 11:15:17 -04:00
%changelog
2021-09-27 10:11:12 +08:00
* Mon Sep 27 2021 caodongxia <caodongxia@huawei.com> - 3.1.0-4
- Provides python-oauthlib
2020-09-08 17:00:47 +08:00
* Tue Sep 8 2020 shixuantong <shixuantong@huawei.com> - 3.1.0-3
- Type: bugfix
- ID: NA
- SUG: NA
- DESC: update Source0
* Thu Aug 6 2020 wenzhanli<wenzhanli23@huawei.com> - 3.1.0-2
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:Remove python2 require and Fix make test
2020-07-23 20:00:56 +08:00
* Thu Jul 23 2020 tianwei <tianwei12@huawei.com> - 3.1.0-1
- Package update to release 3.1.0
2019-09-30 11:15:17 -04:00
* Tue Sep 3 2019 openEuler Buildteam <buildteam@openeuler.org> - 3.0.2-1
- Package init