Blame python-openidc-client.spec

Mohan Boddu 010e714
%global srcname openidc-client
Mohan Boddu 010e714
%global pkgname openidc_client
Mohan Boddu 010e714
360f6a5
%global commit 188c5608a59c5357898f1731545303b7475b9958 
Mohan Boddu 010e714
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Mohan Boddu 010e714
Mohan Boddu 010e714
%if 0%{?rhel} && 0%{?rhel} <= 7
Mohan Boddu 010e714
%bcond_with python3
Mohan Boddu 010e714
%else
Mohan Boddu 010e714
%bcond_without python3
Mohan Boddu 010e714
%endif
Mohan Boddu 010e714
Mohan Boddu 010e714
Name:           python-%{srcname}
360f6a5
Version:        0.5.0
360f6a5
Release:        1.20180324git%{shortcommit}%{?dist}
Mohan Boddu 010e714
Summary:        Python OpenID Connect client with token caching and management
Mohan Boddu 010e714
Mohan Boddu 010e714
License:        MIT
Mohan Boddu 010e714
URL:            https://github.com/puiterwijk/%{name}
Mohan Boddu 010e714
Source0:        %{url}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
Mohan Boddu 010e714
Mohan Boddu 010e714
BuildArch:      noarch
Mohan Boddu 010e714
Mohan Boddu 010e714
%description
Mohan Boddu 010e714
%{summary}.
Mohan Boddu 010e714
Mohan Boddu 010e714
%package     -n python2-%{srcname}
Mohan Boddu 010e714
Summary:        %{summary}
Mohan Boddu 010e714
%{?python_provide:%python_provide python2-%{srcname}}
Mohan Boddu 010e714
BuildRequires:  python2-devel
Mohan Boddu 010e714
%if 0%{?rhel} && 0%{?rhel} <= 7
Mohan Boddu 010e714
BuildRequires:  python-setuptools
Mohan Boddu 010e714
BuildRequires:  python-mock
Mohan Boddu 010e714
BuildRequires:  python-requests
Mohan Boddu 010e714
Requires:       python-requests
Mohan Boddu 010e714
%else
Mohan Boddu 010e714
BuildRequires:  python2-setuptools
Mohan Boddu 010e714
BuildRequires:  python2-mock
Mohan Boddu 010e714
BuildRequires:  python2-requests
Mohan Boddu 010e714
Requires:       python2-requests
Mohan Boddu 010e714
%endif
Mohan Boddu 010e714
Mohan Boddu 010e714
%description -n python2-%{srcname}
Mohan Boddu 010e714
%{summary}.
Mohan Boddu 010e714
Mohan Boddu 010e714
Python 2 version.
Mohan Boddu 010e714
Mohan Boddu 010e714
%if %{with python3}
Mohan Boddu 010e714
%package     -n python3-%{srcname}
Mohan Boddu 010e714
Summary:        %{summary}
Mohan Boddu 010e714
%{?python_provide:%python_provide python3-%{srcname}}
Mohan Boddu 010e714
BuildRequires:  python3-devel
Mohan Boddu 010e714
BuildRequires:  python3-setuptools
Mohan Boddu 010e714
BuildRequires:  python3-requests
Mohan Boddu 010e714
Requires:       python3-requests
Mohan Boddu 010e714
Mohan Boddu 010e714
%description -n python3-%{srcname}
Mohan Boddu 010e714
%{summary}.
Mohan Boddu 010e714
Mohan Boddu 010e714
Python 3 version.
Mohan Boddu 010e714
%endif
Mohan Boddu 010e714
Mohan Boddu 010e714
%prep
Mohan Boddu 010e714
%autosetup -n %{name}-%{commit}
Mohan Boddu 010e714
Mohan Boddu 010e714
%build
Mohan Boddu 010e714
%py2_build
Mohan Boddu 010e714
%py3_build
Mohan Boddu 010e714
Mohan Boddu 010e714
%install
Mohan Boddu 010e714
%py2_install
Mohan Boddu 010e714
%py3_install
Mohan Boddu 010e714
Mohan Boddu 010e714
%check
Mohan Boddu 010e714
%{__python2} setup.py test
Mohan Boddu 010e714
%{__python3} setup.py test
Mohan Boddu 010e714
Mohan Boddu 010e714
%files -n python2-openidc-client
Mohan Boddu 010e714
%license COPYING 
Mohan Boddu 010e714
%doc README.md
Mohan Boddu 010e714
%{python2_sitelib}/%{pkgname}-*.egg-info/
Mohan Boddu 010e714
%{python2_sitelib}/%{pkgname}/
Mohan Boddu 010e714
Mohan Boddu 010e714
%if %{with python3}
Mohan Boddu 010e714
%files -n python3-openidc-client
Mohan Boddu 010e714
%license COPYING
Mohan Boddu 010e714
%doc README.md
Mohan Boddu 010e714
%{python3_sitelib}/%{pkgname}-*.egg-info/
Mohan Boddu 010e714
%{python3_sitelib}/%{pkgname}/
Mohan Boddu 010e714
%endif
Mohan Boddu 010e714
Mohan Boddu 010e714
%changelog
360f6a5
* Sat Mar 24 2018 Patrick Uiterwijk <puiterwijk@redhat.com> - 0.5.0-1.20180324git188c560
b17c069
- Fixes python3 compatibility
360f6a5
- Rebase to 0.5.0
360f6a5
6cb439b
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-2.20171113git54dee6e
6cb439b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
6cb439b
Mohan Boddu 5d6a544
* Mon Nov 13 2017 Mohan Boddu <mboddu@bhujji.com> - 0.4.0-1.20171113git54dee6e
Mohan Boddu 5d6a544
- Add Requests AuthBase wrapper
Mohan Boddu 5d6a544
- Allow specifying to not get new tokens in auther
Mohan Boddu 5d6a544
ddb15bc
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0-4.20170523git77cb3ee
ddb15bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
ddb15bc
Mohan Boddu 5fa9342
* Tue May 23 2017 Mohan Boddu <mboddu@bhujji.com> - 0-3.20170523git77cb3ee
Mohan Boddu 5fa9342
- Following the upstream release numbers
Mohan Boddu 5fa9342
- Allow providing HTTP method
Mohan Boddu 5fa9342
- Make refresh_token also update the cache
Mohan Boddu 5fa9342
Mohan Boddu 010e714
* Mon Mar 27 2017 Mohan Boddu <mboddu@bhujji.com> - 0-3.20170327git5456800
Mohan Boddu 010e714
- Changed the version number to use date
Mohan Boddu 010e714
- Using package name in URL
Mohan Boddu 010e714
Mohan Boddu 010e714
* Fri Mar 24 2017 Mohan Boddu <mboddu@bhujji.com> - 0-2.git5456800
Mohan Boddu 010e714
- Skip tests on setup.py install
Mohan Boddu 010e714
- Adding Requires on python{2,3}-requests
Mohan Boddu 010e714
- Adding %py{2,3}_build macros
Mohan Boddu 010e714
- Adding %py{2,3}_install macros
Mohan Boddu 010e714
Mohan Boddu 010e714
* Mon Mar 20 2017 Mohan Boddu <mboddu@bhujji.com> - 0-1
Mohan Boddu 010e714
- Initial packaging of python-openidc-client