|
|
e4ab59 |
%if (0%{?fedora} > 0 && 0%{?fedora} < 32) || (0%{?rhel} > 0 && 0%{?rhel} <= 7)
|
|
|
e4ab59 |
%bcond_without python2
|
|
|
e4ab59 |
%bcond_without python3
|
|
|
e4ab59 |
%endif
|
|
|
e4ab59 |
|
|
|
e4ab59 |
%if 0%{?fedora} || 0%{?rhel} >= 8
|
|
|
e4ab59 |
%bcond_with python2
|
|
|
e4ab59 |
%bcond_without python3
|
|
|
e4ab59 |
%endif
|
|
|
e4ab59 |
|
|
|
e4ab59 |
%if 0%{?el6}%{?el7}
|
|
|
e4ab59 |
# python3 and python version related macros
|
|
|
e4ab59 |
# required to build python3- subpackage
|
|
|
e4ab59 |
# are not available in el6 and el7
|
|
|
e4ab59 |
%{!?__python2: %global __python2 %{__python}}
|
|
|
e4ab59 |
%{!?python2_sitelib: %global python2_sitelib %{python_sitelib}}
|
|
|
e4ab59 |
%{!?py2_build: %global py2_build %{__python2} setup.py build --executable="%{__python2} -s" %{?*}}
|
|
|
e4ab59 |
%{!?py2_install: %global py2_install %{__python2} setup.py install --skip-build --root %{buildroot} %{?*}}
|
|
|
e4ab59 |
%endif
|
|
|
e4ab59 |
|
|
|
e4ab59 |
%global distname requests-oauthlib
|
|
|
e4ab59 |
%global modname requests_oauthlib
|
|
|
e4ab59 |
|
|
|
e4ab59 |
Name: python-requests-oauthlib
|
|
|
e4ab59 |
Version: 1.0.0
|
|
|
e4ab59 |
Release: 1%{?dist}
|
|
|
e4ab59 |
Summary: OAuthlib authentication support for Requests.
|
|
|
e4ab59 |
|
|
|
e4ab59 |
Group: Development/Libraries
|
|
|
e4ab59 |
License: ISC
|
|
|
e4ab59 |
URL: http://pypi.python.org/pypi/requests-oauthlib
|
|
|
e4ab59 |
Source0: https://github.com/requests/requests-oauthlib/archive/v%{version}.tar.gz
|
|
|
e4ab59 |
|
|
|
e4ab59 |
BuildArch: noarch
|
|
|
e4ab59 |
|
|
|
e4ab59 |
%description
|
|
|
e4ab59 |
This project provides first-class OAuth library support for python-request.
|
|
|
e4ab59 |
|
|
|
e4ab59 |
%if %{with python2}
|
|
|
e4ab59 |
%package -n python2-%{distname}
|
|
|
e4ab59 |
%if 0%{?python_provide:1}
|
|
|
e4ab59 |
%python_provide python2-%{distname}
|
|
|
e4ab59 |
%else
|
|
|
e4ab59 |
Provides: python-%{distname} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
e4ab59 |
%endif
|
|
|
e4ab59 |
|
|
|
e4ab59 |
Summary: OAuthlib authentication support for Requests.
|
|
|
e4ab59 |
Group: Development/Libraries
|
|
|
e4ab59 |
|
|
|
e4ab59 |
BuildRequires: python2-devel
|
|
|
e4ab59 |
BuildRequires: python2-setuptools
|
|
|
e4ab59 |
|
|
|
e4ab59 |
BuildRequires: python2-oauthlib >= 0.6.2
|
|
|
e4ab59 |
BuildRequires: python2-requests >= 2.0.0
|
|
|
e4ab59 |
|
|
|
e4ab59 |
BuildRequires: python2-mock
|
|
|
e4ab59 |
|
|
|
e4ab59 |
Requires: python2-oauthlib
|
|
|
e4ab59 |
Requires: python2-requests >= 2.0.0
|
|
|
e4ab59 |
|
|
|
e4ab59 |
%description -n python2-%{distname}
|
|
|
e4ab59 |
This project provides first-class OAuth library support for python-request.
|
|
|
e4ab59 |
%endif # with python2
|
|
|
e4ab59 |
|
|
|
e4ab59 |
%if %{with python3}
|
|
|
e4ab59 |
%package -n python3-%{distname}
|
|
|
e4ab59 |
%{?python_provide:%python_provide python3-%{distname}}
|
|
|
e4ab59 |
Summary: OAuthlib authentication support for Requests.
|
|
|
e4ab59 |
Group: Development/Libraries
|
|
|
e4ab59 |
|
|
|
e4ab59 |
BuildRequires: python3-devel
|
|
|
e4ab59 |
BuildRequires: python3-setuptools
|
|
|
e4ab59 |
|
|
|
e4ab59 |
BuildRequires: python3-oauthlib >= 0.6.2
|
|
|
e4ab59 |
BuildRequires: python3-requests >= 2.0.0
|
|
|
e4ab59 |
|
|
|
e4ab59 |
BuildRequires: python3-mock
|
|
|
e4ab59 |
|
|
|
e4ab59 |
Requires: python3-oauthlib
|
|
|
e4ab59 |
Requires: python3-requests
|
|
|
e4ab59 |
|
|
|
e4ab59 |
%description -n python3-%{distname}
|
|
|
e4ab59 |
This project provides first-class OAuth library support for python-request.
|
|
|
e4ab59 |
%endif
|
|
|
e4ab59 |
|
|
|
e4ab59 |
%prep
|
|
|
e4ab59 |
%autosetup -n %{distname}-%{version}
|
|
|
e4ab59 |
|
|
|
e4ab59 |
# Remove bundled egg-info in case it exists
|
|
|
e4ab59 |
rm -rf %{distname}.egg-info
|
|
|
e4ab59 |
|
|
|
e4ab59 |
|
|
|
e4ab59 |
%build
|
|
|
e4ab59 |
%if %{with python2}
|
|
|
e4ab59 |
%py2_build
|
|
|
e4ab59 |
%endif # with python2
|
|
|
e4ab59 |
%if %{with python3}
|
|
|
e4ab59 |
%py3_build
|
|
|
e4ab59 |
%endif
|
|
|
e4ab59 |
|
|
|
e4ab59 |
%install
|
|
|
e4ab59 |
%if %{with python2}
|
|
|
e4ab59 |
%py2_install
|
|
|
e4ab59 |
%endif # with python2
|
|
|
e4ab59 |
%if %{with python3}
|
|
|
e4ab59 |
%py3_install
|
|
|
e4ab59 |
%endif
|
|
|
e4ab59 |
|
|
|
e4ab59 |
# Upstream doesn't actually ship the tests with the tarball.
|
|
|
e4ab59 |
# https://github.com/requests/requests-oauthlib/pull/91
|
|
|
e4ab59 |
#%%check
|
|
|
e4ab59 |
#%%{__python2} setup.py test
|
|
|
e4ab59 |
|
|
|
e4ab59 |
%if %{with python2}
|
|
|
e4ab59 |
%files -n python2-%{distname}
|
|
|
e4ab59 |
%doc README.rst HISTORY.rst requirements.txt AUTHORS.rst
|
|
|
e4ab59 |
%license LICENSE
|
|
|
e4ab59 |
%{python2_sitelib}/%{modname}/
|
|
|
e4ab59 |
%{python2_sitelib}/%{modname}-%{version}*
|
|
|
e4ab59 |
%endif # with python2
|
|
|
e4ab59 |
|
|
|
e4ab59 |
%if %{with python3}
|
|
|
e4ab59 |
%files -n python3-%{distname}
|
|
|
e4ab59 |
%doc README.rst HISTORY.rst requirements.txt AUTHORS.rst
|
|
|
e4ab59 |
%license LICENSE
|
|
|
e4ab59 |
%{python3_sitelib}/%{modname}/
|
|
|
e4ab59 |
%{python3_sitelib}/%{modname}-%{version}*
|
|
|
e4ab59 |
%endif
|
|
|
e4ab59 |
|
|
|
e4ab59 |
%changelog
|
|
|
e4ab59 |
* Mon Jul 30 2018 <jdennis@redhat.com> - 1.0.0-1
|
|
|
e4ab59 |
- upgrade to new upstream release 1.0.0
|
|
|
e4ab59 |
|
|
|
e4ab59 |
* Tue Jul 10 2018 <jdennis@redhat.com> - 0.8.0-6
|
|
|
e4ab59 |
- Unify Fedora/RHEL py2/py3 logic
|
|
|
e4ab59 |
|
|
|
e4ab59 |
* Wed May 16 2018 Charalampos Stratakis <cstratak@redhat.com> - 0.8.0-5
|
|
|
e4ab59 |
- Conditionalize the python2 subpackage
|
|
|
e4ab59 |
|
|
|
e4ab59 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-4
|
|
|
e4ab59 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
e4ab59 |
|
|
|
e4ab59 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-3
|
|
|
e4ab59 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
e4ab59 |
|
|
|
e4ab59 |
* Wed Apr 12 2017 John Dennis <jdennis@redhat.com> - 0.8.0-2
|
|
|
e4ab59 |
- bring spec file for fedora & rhel closer together
|
|
|
e4ab59 |
|
|
|
e4ab59 |
* Sat Feb 25 2017 Kevin Fenzi <kevin@scrye.com> - 0.8.0-1
|
|
|
e4ab59 |
- Update to 0.8.0.
|
|
|
e4ab59 |
- Make sure to specify package versions required. Fixes bug #1320683
|
|
|
e4ab59 |
|
|
|
e4ab59 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-8
|
|
|
e4ab59 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
e4ab59 |
|
|
|
e4ab59 |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.5.0-7
|
|
|
e4ab59 |
- Rebuild for Python 3.6
|
|
|
e4ab59 |
|
|
|
e4ab59 |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-6
|
|
|
e4ab59 |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
e4ab59 |
|
|
|
e4ab59 |
* Tue Jun 28 2016 Ralph Bean <rbean@redhat.com> - 0.5.0-5
|
|
|
e4ab59 |
- Add an explicit python2 subpackage for #1313242.
|
|
|
e4ab59 |
|
|
|
e4ab59 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-4
|
|
|
e4ab59 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
e4ab59 |
|
|
|
e4ab59 |
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-3
|
|
|
e4ab59 |
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
e4ab59 |
|
|
|
e4ab59 |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-2
|
|
|
e4ab59 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
e4ab59 |
|
|
|
e4ab59 |
* Thu May 21 2015 Ralph Bean <rbean@redhat.com> - 0.5.0-1
|
|
|
e4ab59 |
- new version
|
|
|
e4ab59 |
|
|
|
e4ab59 |
* Fri Jan 23 2015 Ralph Bean <rbean@redhat.com> - 0.4.0-7
|
|
|
e4ab59 |
- Alter egg requirements for epel.
|
|
|
e4ab59 |
|
|
|
e4ab59 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-6
|
|
|
e4ab59 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
e4ab59 |
|
|
|
e4ab59 |
* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 0.4.0-5
|
|
|
e4ab59 |
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
|
|
|
e4ab59 |
|
|
|
e4ab59 |
* Mon Mar 3 2014 Jakub Dorňák <jdornak@redhat.com> - 0.4.0-4
|
|
|
e4ab59 |
- python3 and python version related macros required to build
|
|
|
e4ab59 |
python3- subpackage are not available in el6 and el7
|
|
|
e4ab59 |
|
|
|
e4ab59 |
* Fri Nov 29 2013 Jakub Dorňák <jdornak@redhat.com> - 0.4.0-3
|
|
|
e4ab59 |
- added python3 subpackage
|
|
|
e4ab59 |
|
|
|
e4ab59 |
* Fri Nov 01 2013 Ralph Bean <rbean@redhat.com> - 0.4.0-2
|
|
|
e4ab59 |
- Modernized the python2 rpm macros as per review feedback.
|
|
|
e4ab59 |
|
|
|
e4ab59 |
* Thu Oct 31 2013 Ralph Bean <rbean@redhat.com> - 0.4.0-1
|
|
|
e4ab59 |
- Initial package for Fedora
|