|
|
@ -1,25 +1,72 @@
|
|
|
|
|
|
|
|
%if (0%{?fedora} > 0 && 0%{?fedora} < 32) || (0%{?rhel} > 0 && 0%{?rhel} <= 7)
|
|
|
|
|
|
|
|
%bcond_without python2
|
|
|
|
|
|
|
|
%bcond_without python3
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora} || 0%{?rhel} >= 8
|
|
|
|
|
|
|
|
%bcond_with python2
|
|
|
|
|
|
|
|
%bcond_without python3
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?el6}%{?el7}
|
|
|
|
|
|
|
|
# python3 and python version related macros
|
|
|
|
|
|
|
|
# required to build python3- subpackage
|
|
|
|
|
|
|
|
# are not available in el6 and el7
|
|
|
|
|
|
|
|
%{!?__python2: %global __python2 %{__python}}
|
|
|
|
|
|
|
|
%{!?python2_sitelib: %global python2_sitelib %{python_sitelib}}
|
|
|
|
|
|
|
|
%{!?py2_build: %global py2_build %{__python2} setup.py build --executable="%{__python2} -s" %{?*}}
|
|
|
|
|
|
|
|
%{!?py2_install: %global py2_install %{__python2} setup.py install --skip-build --root %{buildroot} %{?*}}
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%global distname requests-oauthlib
|
|
|
|
%global distname requests-oauthlib
|
|
|
|
%global modname requests_oauthlib
|
|
|
|
%global modname requests_oauthlib
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-requests-oauthlib
|
|
|
|
Name: python-requests-oauthlib
|
|
|
|
Version: 1.3.0
|
|
|
|
Version: 1.0.0
|
|
|
|
Release: 12%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: OAuthlib authentication support for Requests.
|
|
|
|
Summary: OAuthlib authentication support for Requests.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
License: ISC
|
|
|
|
License: ISC
|
|
|
|
URL: http://pypi.python.org/pypi/requests-oauthlib
|
|
|
|
URL: http://pypi.python.org/pypi/requests-oauthlib
|
|
|
|
Source0: https://github.com/requests/requests-oauthlib/archive/v%{version}.tar.gz
|
|
|
|
Source0: https://github.com/requests/requests-oauthlib/archive/v%{version}.tar.gz
|
|
|
|
Patch0001: 401.patch
|
|
|
|
|
|
|
|
Patch0002: 0002-Don-t-use-SIGNATURE_RSA.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
This project provides first-class OAuth library support for python-request.
|
|
|
|
This project provides first-class OAuth library support for python-request.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python2}
|
|
|
|
|
|
|
|
%package -n python2-%{distname}
|
|
|
|
|
|
|
|
%if 0%{?python_provide:1}
|
|
|
|
|
|
|
|
%python_provide python2-%{distname}
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
Provides: python-%{distname} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Summary: OAuthlib authentication support for Requests.
|
|
|
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
|
|
|
|
BuildRequires: python2-setuptools
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: python2-oauthlib >= 0.6.2
|
|
|
|
|
|
|
|
BuildRequires: python2-requests >= 2.0.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: python2-mock
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Requires: python2-oauthlib
|
|
|
|
|
|
|
|
Requires: python2-requests >= 2.0.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description -n python2-%{distname}
|
|
|
|
|
|
|
|
This project provides first-class OAuth library support for python-request.
|
|
|
|
|
|
|
|
%endif # with python2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
%package -n python3-%{distname}
|
|
|
|
%package -n python3-%{distname}
|
|
|
|
%{?python_provide:%python_provide python3-%{distname}}
|
|
|
|
%{?python_provide:%python_provide python3-%{distname}}
|
|
|
|
Summary: OAuthlib authentication support for Requests.
|
|
|
|
Summary: OAuthlib authentication support for Requests.
|
|
|
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
@ -27,90 +74,71 @@ BuildRequires: python3-setuptools
|
|
|
|
BuildRequires: python3-oauthlib >= 0.6.2
|
|
|
|
BuildRequires: python3-oauthlib >= 0.6.2
|
|
|
|
BuildRequires: python3-requests >= 2.0.0
|
|
|
|
BuildRequires: python3-requests >= 2.0.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: python3-mock
|
|
|
|
|
|
|
|
|
|
|
|
Requires: python3-oauthlib
|
|
|
|
Requires: python3-oauthlib
|
|
|
|
Requires: python3-requests
|
|
|
|
Requires: python3-requests
|
|
|
|
|
|
|
|
|
|
|
|
%description -n python3-%{distname}
|
|
|
|
%description -n python3-%{distname}
|
|
|
|
This project provides first-class OAuth library support for python-request.
|
|
|
|
This project provides first-class OAuth library support for python-request.
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{distname}-%{version} -p1
|
|
|
|
%autosetup -n %{distname}-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
# Remove bundled egg-info in case it exists
|
|
|
|
# Remove bundled egg-info in case it exists
|
|
|
|
rm -rf %{distname}.egg-info
|
|
|
|
rm -rf %{distname}.egg-info
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
|
|
|
|
%if %{with python2}
|
|
|
|
|
|
|
|
%py2_build
|
|
|
|
|
|
|
|
%endif # with python2
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
%py3_build
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
|
|
|
|
%if %{with python2}
|
|
|
|
|
|
|
|
%py2_install
|
|
|
|
|
|
|
|
%endif # with python2
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
%py3_install
|
|
|
|
%py3_install
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Upstream doesn't actually ship the tests with the tarball.
|
|
|
|
|
|
|
|
# https://github.com/requests/requests-oauthlib/pull/91
|
|
|
|
|
|
|
|
#%%check
|
|
|
|
|
|
|
|
#%%{__python2} setup.py test
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python2}
|
|
|
|
|
|
|
|
%files -n python2-%{distname}
|
|
|
|
|
|
|
|
%doc README.rst HISTORY.rst requirements.txt AUTHORS.rst
|
|
|
|
|
|
|
|
%license LICENSE
|
|
|
|
|
|
|
|
%{python2_sitelib}/%{modname}/
|
|
|
|
|
|
|
|
%{python2_sitelib}/%{modname}-%{version}*
|
|
|
|
|
|
|
|
%endif # with python2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
%files -n python3-%{distname}
|
|
|
|
%files -n python3-%{distname}
|
|
|
|
%doc README.rst HISTORY.rst requirements.txt AUTHORS.rst
|
|
|
|
%doc README.rst HISTORY.rst requirements.txt AUTHORS.rst
|
|
|
|
%license LICENSE
|
|
|
|
%license LICENSE
|
|
|
|
%{python3_sitelib}/%{modname}/
|
|
|
|
%{python3_sitelib}/%{modname}/
|
|
|
|
%{python3_sitelib}/%{modname}-%{version}*
|
|
|
|
%{python3_sitelib}/%{modname}-%{version}*
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 1.3.0-12
|
|
|
|
* Wed Jul 26 2023 MSVSphere Packaging Team <packager@msvsphere.ru> - 1.0.0-1
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
- Rebuilt for MSVSphere 8.8
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Jul 3 2021 Jakub Hrozek <jhrozek@redhat.com> - 1.3.0-11
|
|
|
|
|
|
|
|
- Don't use SIGNATURE_RSA
|
|
|
|
|
|
|
|
- Related: #1935433 - python-oauthlib implements and/or uses the deprecated
|
|
|
|
|
|
|
|
SHA1 algorithm by default
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.3.0-10
|
|
|
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Feb 8 2021 Jakub Hrozek <jhrozek@redhat.com> - 1.3.0-9
|
|
|
|
|
|
|
|
- Drop python2 support
|
|
|
|
|
|
|
|
- actually run unit tests
|
|
|
|
|
|
|
|
- drop unused python3-mock dependency
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-8
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Sep 27 2020 Kevin Fenzi <kevin@scrye.com> - 1.3.0-7
|
|
|
|
|
|
|
|
- Update to 1.3.0. Fixes bug #1769415
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-7
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.2.0-6
|
|
|
|
|
|
|
|
- Rebuilt for Python 3.9
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-5
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.2.0-4
|
|
|
|
|
|
|
|
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.2.0-3
|
|
|
|
|
|
|
|
- Rebuilt for Python 3.8
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Jun 29 2019 Kevin Fenzi <kevin@scrye.com> - 1.2.0-1
|
|
|
|
|
|
|
|
- Update to 1.2.0. Fixes bug #1697439
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jul 30 2018 <jdennis@redhat.com> - 1.0.0-1
|
|
|
|
* Mon Jul 30 2018 <jdennis@redhat.com> - 1.0.0-1
|
|
|
|
- upgrade to new upstream release 1.0.0
|
|
|
|
- upgrade to new upstream release 1.0.0
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-7
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jul 10 2018 <jdennis@redhat.com> - 0.8.0-6
|
|
|
|
* Tue Jul 10 2018 <jdennis@redhat.com> - 0.8.0-6
|
|
|
|
- Unify Fedora/RHEL py2/py3 logic
|
|
|
|
- Unify Fedora/RHEL py2/py3 logic
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.8.0-5
|
|
|
|
* Wed May 16 2018 Charalampos Stratakis <cstratak@redhat.com> - 0.8.0-5
|
|
|
|
- Rebuilt for Python 3.7
|
|
|
|
- Conditionalize the python2 subpackage
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-4
|
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|