Blame SPECS/python-oauthlib.spec

06a859
%global modname oauthlib
06a859
06a859
Name:               python-oauthlib
06a859
Version:            3.1.1
8f73b7
Release:            5%{?dist}
06a859
Summary:            An implementation of the OAuth request-signing logic
06a859
06a859
License:            BSD
06a859
URL:                https://github.com/oauthlib/oauthlib
06a859
06a859
Source0:            https://github.com/oauthlib/oauthlib/archive/v%{version}/%{modname}-%{version}.tar.gz
06a859
Patch0001:          0001-Rip-out-RSA-SHA1.patch
8f73b7
Patch0002:          0002-Rip-out-the-rest-of-RSA.patch
8f73b7
Patch0003:          0003-IPV6-regex-redirect_uri.patch
8f73b7
Patch0004:          0004-IPV6-parsing-signature.patch
06a859
06a859
BuildArch:          noarch
06a859
06a859
%description
06a859
OAuthLib is a generic utility which implements the logic of OAuth without
06a859
assuming a specific HTTP request object or web framework. Use it to graft
06a859
OAuth client support onto your favorite HTTP library, or provider support
06a859
onto your favourite web framework. If you're a maintainer of such a
06a859
library, write a thin veneer on top of OAuthLib and get OAuth support for
06a859
very little effort.
06a859
06a859
%package -n python3-oauthlib
06a859
Summary:            An implementation of the OAuth request-signing logic
06a859
%{?python_provide:%python_provide python3-oauthlib}
06a859
06a859
Obsoletes:          python3-oauthlib+signedtoken < 3.1.0-2
06a859
06a859
BuildRequires:      python3-devel
06a859
BuildRequires:      python3-setuptools
06a859
06a859
BuildRequires:      python3-pytest
06a859
BuildRequires:      python3-cryptography >= 1.4.0
06a859
06a859
%description -n python3-oauthlib
06a859
OAuthLib is a generic utility which implements the logic of OAuth without
06a859
assuming a specific HTTP request object or web framework. Use it to graft
06a859
OAuth client support onto your favorite HTTP library, or provider support
06a859
onto your favourite web framework. If you're a maintainer of such a
06a859
library, write a thin veneer on top of OAuthLib and get OAuth support for
06a859
very little effort.
06a859
06a859
%prep
8f73b7
%autosetup -n %{modname}-%{version} -p1
06a859
06a859
# python-unittest2 is now provided by "python" package and python-unittest is retired
06a859
#  adapt setup.py to reflect this fact downstream
06a859
sed -i "s/'unittest2', //" setup.py
06a859
06a859
# Remove bundled egg-info in case it exists
06a859
rm -rf %{modname}.egg-info
06a859
06a859
%build
06a859
%py3_build
06a859
06a859
%install
06a859
%py3_install
06a859
06a859
%check
06a859
echo 'import pytest; __getattr__ = lambda _: pytest.skip("this test needs jwt")' > jwt.py
8f73b7
%pytest -rs --ignore tests/oauth2/rfc6749/clients/test_service_application.py \
8f73b7
            --ignore tests/oauth2/rfc6749/clients/test_web_application.py \
8f73b7
            --ignore tests/oauth2/rfc6749/clients/test_mobile_application.py \
8f73b7
            --ignore tests/oauth2/rfc6749/clients/test_legacy_application.py \
8f73b7
            --ignore tests/oauth2/rfc6749/clients/test_backend_application.py \
8f73b7
            --ignore tests/oauth2/rfc6749/test_parameters.py
06a859
rm jwt.py
06a859
06a859
%files -n python3-oauthlib
06a859
%doc README.rst
06a859
%license LICENSE
06a859
%{python3_sitelib}/%{modname}/
06a859
%{python3_sitelib}/%{modname}-%{version}-*
06a859
06a859
%changelog
8f73b7
* Thu Nov 10 2022 TomasHalman <thalman@redhat.com> - 3.1.1-5
8f73b7
- RFC5849 oauth1 signature base_string_uri doesn't parse IPv6 addresses
8f73b7
  Resolves: rhbz#2133805
8f73b7
8f73b7
* Mon Oct 24 2022 TomasHalman <thalman@redhat.com> - 3.1.1-4
8f73b7
- Resolves: rhbz#2133805 - fix for CVE-2022-36087
8f73b7
8f73b7
* Tue Aug 9 2022 TomasHalman <thalman@redhat.com> - 3.1.1-3
8f73b7
- Remove RSA support
8f73b7
- Remove build dependency on blinker
8f73b7
  Resolves: rhbz#1984046 - python-oauthlib depends on jwt for RSA
8f73b7
06a859
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 3.1.1-2
06a859
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
06a859
  Related: rhbz#1991688
06a859
06a859
* Mon Jun 28 2021 Jakub Hrozek <jhrozek@redhat.com> - 3.1.1-1
06a859
- Resolves: rhbz#1935433 - python-oauthlib implements and/or uses the
06a859
                           deprecated SHA1 algorithm by default
06a859
06a859
* Mon May 31 2021 Miro Hrončok <mhroncok@redhat.com> - 3.1.0-2
06a859
- Remove the python3-oauthlib+signedtoken package
06a859
- When building, skip tests that require jwt
06a859
- Resolves: rhbz#1966407 - Drop python-jwt dependency from python-oauthlib
06a859
06a859
* Tue May 25 2021 Jakub Hrozek <jhrozek@redhat.com> - 3.1.0-1
06a859
- Resolves: rhbz#1922352 - python-oauthlib requires python-mock
06a859
- Update to upstream 3.1.0
06a859
- Gets rid of obsolete python-nose dependency
06a859
- Nuke the python2/python3 conditionals, let's only support python3
06a859
06a859
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 3.0.2-10
06a859
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
06a859
06a859
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-9
06a859
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
06a859
06a859
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-8
06a859
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
06a859
06a859
* Fri Jul 10 2020 Miro Hrončok <mhroncok@redhat.com> - 3.0.2-7
06a859
- Add oauthlib[signedtoken] subpackage
06a859
06a859
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 3.0.2-6
06a859
- Rebuilt for Python 3.9
06a859
06a859
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-5
06a859
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
06a859
06a859
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 3.0.2-4
06a859
- Rebuilt for Python 3.8.0rc1 (#1748018)
06a859
06a859
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 3.0.2-3
06a859
- Rebuilt for Python 3.8
06a859
06a859
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-2
06a859
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
06a859
06a859
* Mon Jul 15 2019  <jdennis@redhat.com> - 3.0.2-1
06a859
- Update to upstream 3.0.2
06a859
- Resolves: rhbz#1730033
06a859
06a859
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-2
06a859
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
06a859
06a859
* Fri Aug  3 2018  <jdennis@redhat.com> - 2.1.0-1
06a859
- upgrade to latest upstream 2.1.0
06a859
06a859
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-11
06a859
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
06a859
06a859
* Tue Jul 10 2018  <jdennis@redhat.com> - 2.0.1-10
06a859
- Restore use of bcond for python conditionals
06a859
06a859
* Tue Jul 10 2018  <jdennis@redhat.com> - 2.0.1-9
06a859
- Unify spec file between Fedora and RHEL
06a859
06a859
* Fri Jun 15 2018 Miro Hrončok <mhroncok@redhat.com> - 2.0.1-8
06a859
- Rebuilt for Python 3.7
06a859
06a859
* Mon Feb 12 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.0.1-7
06a859
- Update Python 2 dependency declarations to new packaging standards
06a859
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
06a859
06a859
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-6
06a859
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
06a859
06a859
* Fri Sep 29 2017 Troy Dawson <tdawson@redhat.com> - 0.7.19-5
06a859
- Cleanup spec file conditionals
06a859
06a859
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-4
06a859
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
06a859
06a859
* Mon Apr 17 2017 John Dennis <jdennis@redhat.com> - 2.0.1-3
06a859
- fix dependency on python2-jwt, should be python-jwt
06a859
06a859
* Thu Apr 13 2017 Dennis Gilmore <dennis@ausil.us> - 2.0.1-2
06a859
- add spaces around the >= for Requires
06a859
06a859
* Thu Mar 16 2017 John Dennis <jdennis@redhat.com> - 2.0.1-1
06a859
- Upgrade to upstream 2.0.1
06a859
- port from jwt to jwcrypto (conditional build)
06a859
- bring into alignment with rhel spec file
06a859
06a859
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-5
06a859
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
06a859
06a859
* Tue Dec 13 2016 Stratakis Charalampos <cstratak@redhat.com> - 1.0.3-4
06a859
- Rebuild for Python 3.6
06a859
06a859
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-3
06a859
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
06a859
06a859
* Tue Jun 28 2016 Ralph Bean <rbean@redhat.com> - 1.0.3-2
06a859
- Modernize python macros.
06a859
06a859
* Sun Apr 10 2016 Kevin Fenzi <kevin@scrye.com> - 1.0.3-1
06a859
- Update to 1.0.3
06a859
- Add python2 provides (fixes bug #1313235 and #1314349)
06a859
06a859
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.2-5.20150520git514cad7
06a859
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
06a859
06a859
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.2-4.20150520git514cad7
06a859
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
06a859
06a859
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.2-3.20150520git514cad7
06a859
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
06a859
06a859
* Wed Feb 18 2015 Ralph Bean <rbean@redhat.com> - 0.7.2-2.20150520git514cad7
06a859
- new version, from a git checkout
06a859
- Replace our patch with a sed statement.
06a859
06a859
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-6
06a859
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
06a859
06a859
* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 0.6.0-5
06a859
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
06a859
06a859
* Fri Apr 11 2014 Ralph Bean <rbean@redhat.com> - 0.6.0-4
06a859
- Use forward-compat python-crypto2.6 package for el6.
06a859
06a859
* Tue Jan 21 2014 Ralph Bean <rbean@redhat.com> - 0.6.0-3
06a859
- Compat macros for el6.
06a859
06a859
* Fri Nov 01 2013 Ralph Bean <rbean@redhat.com> - 0.6.0-2
06a859
- Modernized python2 rpmmacros.
06a859
06a859
* Thu Oct 31 2013 Ralph Bean <rbean@redhat.com> - 0.6.0-1
06a859
- Initial package for Fedora