2022-07-05 09:55:10 +08:00
|
|
|
%global _empty_manifest_terminate_build 0
|
|
|
|
|
Name: python-oauthlib
|
2023-01-19 14:39:38 +08:00
|
|
|
Version: 3.2.2
|
|
|
|
|
Release: 1
|
2022-07-05 09:55:10 +08:00
|
|
|
Summary: A generic, spec-compliant, thorough implementation of the OAuth request-signing logic
|
|
|
|
|
License: BSD
|
|
|
|
|
URL: https://github.com/oauthlib/oauthlib
|
2023-01-19 14:39:38 +08:00
|
|
|
Source0: https://github.com/oauthlib/oauthlib/archive/refs/tags/v%{version}.tar.gz#/oauthlib-%{version}.tar.gz
|
2022-09-26 18:08:44 +08:00
|
|
|
|
2019-09-30 11:15:17 -04:00
|
|
|
BuildArch: noarch
|
|
|
|
|
%description
|
2022-07-05 09:55:10 +08:00
|
|
|
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
|
2019-09-30 11:15:17 -04:00
|
|
|
and get OAuth support for very little effort.
|
|
|
|
|
|
2022-07-05 09:55:10 +08:00
|
|
|
%package -n python3-oauthlib
|
|
|
|
|
Summary: A generic, spec-compliant, thorough implementation of the OAuth request-signing logic
|
|
|
|
|
Provides: python-oauthlib
|
|
|
|
|
# Base build requires
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
BuildRequires: python3-pbr
|
|
|
|
|
BuildRequires: python3-pip
|
|
|
|
|
BuildRequires: python3-wheel
|
|
|
|
|
# General requires
|
|
|
|
|
BuildRequires: python3-cryptography
|
|
|
|
|
BuildRequires: python3-blinker
|
|
|
|
|
BuildRequires: python3-cryptography
|
|
|
|
|
BuildRequires: python3-jwt
|
|
|
|
|
# General requires
|
|
|
|
|
Requires: python3-cryptography
|
|
|
|
|
Requires: python3-blinker
|
|
|
|
|
Requires: python3-cryptography
|
|
|
|
|
Requires: python3-jwt
|
2019-09-30 11:15:17 -04:00
|
|
|
%description -n python3-oauthlib
|
2022-07-05 09:55:10 +08:00
|
|
|
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 help
|
|
|
|
|
Summary: A generic, spec-compliant, thorough implementation of the OAuth request-signing logic
|
|
|
|
|
Provides: python3-oauthlib-doc
|
|
|
|
|
%description help
|
|
|
|
|
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.
|
2019-09-30 11:15:17 -04:00
|
|
|
|
|
|
|
|
%prep
|
2022-09-26 18:08:44 +08:00
|
|
|
%autosetup -n oauthlib-%{version} -p1
|
2019-09-30 11:15:17 -04:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%py3_install
|
|
|
|
|
|
2022-07-05 09:55:10 +08:00
|
|
|
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
|
|
|
|
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
|
|
|
|
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
|
|
|
|
|
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
|
|
|
|
|
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
|
|
|
|
|
pushd %{buildroot}
|
|
|
|
|
if [ -d usr/lib ]; then
|
|
|
|
|
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
|
|
|
|
|
fi
|
|
|
|
|
if [ -d usr/lib64 ]; then
|
|
|
|
|
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
|
|
|
|
|
fi
|
|
|
|
|
if [ -d usr/bin ]; then
|
|
|
|
|
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
|
|
|
|
fi
|
|
|
|
|
if [ -d usr/sbin ]; then
|
|
|
|
|
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
|
|
|
|
|
fi
|
|
|
|
|
touch doclist.lst
|
|
|
|
|
if [ -d usr/share/man ]; then
|
|
|
|
|
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
|
|
|
|
|
fi
|
|
|
|
|
popd
|
|
|
|
|
mv %{buildroot}/filelist.lst .
|
|
|
|
|
mv %{buildroot}/doclist.lst .
|
|
|
|
|
|
2019-09-30 11:15:17 -04:00
|
|
|
%check
|
|
|
|
|
%{__python3} setup.py test
|
|
|
|
|
|
2022-07-05 09:55:10 +08:00
|
|
|
%files -n python3-oauthlib -f filelist.lst
|
|
|
|
|
%dir %{python3_sitelib}/*
|
2020-08-06 03:51:59 +00:00
|
|
|
|
2022-07-05 09:55:10 +08:00
|
|
|
%files help -f doclist.lst
|
|
|
|
|
%{_docdir}/*
|
2019-09-30 11:15:17 -04:00
|
|
|
|
|
|
|
|
%changelog
|
2023-01-19 14:39:38 +08:00
|
|
|
* Thu Jan 19 2023 Zhipeng Xie <xiezhipeng1@huawei.com> - 3.2.2-1
|
|
|
|
|
- Type: requirement
|
|
|
|
|
- CVE: NA
|
|
|
|
|
- SUG: NA
|
|
|
|
|
- DESC: update to 3.2.2
|
|
|
|
|
|
2022-09-26 18:36:32 +08:00
|
|
|
* Mon Sep 26 2022 zhuofeng<zhuofeng2@huawei.com> - 3.2.0-2
|
2022-09-26 18:08:44 +08:00
|
|
|
- Type:CVE
|
|
|
|
|
- CVE:CVE-2022-36087
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:fix CVE-2022-36087
|
|
|
|
|
|
2022-07-05 09:55:10 +08:00
|
|
|
* Tue Jul 05 2022 OpenStack_SIG <openstack@openeuler.org> - 3.2.0-1
|
|
|
|
|
- Upgrade package python3-oauthlib to version 3.2.0
|
|
|
|
|
|
2022-05-25 11:42:51 +08:00
|
|
|
* Wed May 25 2022 renhongxun <renhongxun@h-partners.com> 3.1.1-2
|
|
|
|
|
- Type: requirement
|
|
|
|
|
- ID: NA
|
|
|
|
|
- SUG: NA
|
|
|
|
|
- DESC: remove useless python3-nose from BuildRequires
|
|
|
|
|
|
2021-12-17 16:01:29 +08:00
|
|
|
* Fri Dec 17 2021 renhongxun <renhongxun@huawei.com> - 3.1.1-1
|
|
|
|
|
- Type: bugfix
|
|
|
|
|
- ID: NA
|
|
|
|
|
- SUG: NA
|
|
|
|
|
- DESC: upgrade version to 3.1.1
|
|
|
|
|
|
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
|
|
|
|
|
|
2020-08-06 03:51:59 +00:00
|
|
|
* 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
|