965dcec
%if 0%{?rhel} && 0%{?rhel} <= 7
Patrick Uiterwijk 273594e
# sitelib for noarch packages, sitearch for others (remove the unneeded one)
Patrick Uiterwijk 273594e
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
a37a288
%global with_python3 0
a37a288
%else
a37a288
%global with_python3 1
a37a288
%endif
Patrick Uiterwijk 273594e
Patrick Uiterwijk 273594e
Name:           python-openid-cla
a37a288
Version:        1.2
1b28f84
Release:        12%{?dist}
Patrick Uiterwijk 273594e
Summary:        CLA extension for python-openid
Patrick Uiterwijk 273594e
Patrick Uiterwijk 273594e
License:        BSD
Patrick Uiterwijk 273594e
URL:            https://github.com/puiterwijk/python-openid-cla
a37a288
Source:         https://github.com/puiterwijk/python-openid-cla/releases/download/v%{version}/python-openid-cla-%{version}.tar.gz
Patrick Uiterwijk 273594e
Patrick Uiterwijk 273594e
BuildArch:      noarch
Patrick Uiterwijk 273594e
BuildRequires:  python2-devel
8b46551
BuildRequires:  python2-setuptools
8b46551
BuildRequires:  python2-openid
a37a288
a37a288
%if 0%{?with_python3}
a37a288
BuildRequires:  python3-devel
a37a288
BuildRequires:  python3-setuptools
a37a288
BuildRequires:  python3-openid
a37a288
%endif
a37a288
8cb7fe5
%global _description\
Patrick Uiterwijk 273594e
CLA extension implementation for python-openid
Patrick Uiterwijk 273594e
8cb7fe5
%description %_description
8cb7fe5
8cb7fe5
%package -n python2-openid-cla
8cb7fe5
Summary: %summary
8b46551
Requires:       python2-openid
8cb7fe5
Provides:       python2-openid-cla
8cb7fe5
%{?python_provide:%python_provide python2-openid-cla}
8cb7fe5
8cb7fe5
%description -n python2-openid-cla %_description
8cb7fe5
a37a288
%if 0%{?with_python3}
a37a288
%package -n python3-openid-cla
a37a288
Summary:        OpenID support for Flask
a37a288
Requires:       python3-openid
a37a288
a37a288
%description -n python3-openid-cla
a37a288
CLA extension implementation for python-openid
a37a288
a37a288
This package includes the python 3 version of the module.
a37a288
%endif # with_python3
a37a288
Patrick Uiterwijk 273594e
Patrick Uiterwijk 273594e
%prep
Patrick Uiterwijk 273594e
%setup -q
Patrick Uiterwijk 273594e
Patrick Uiterwijk 273594e
%build
446e029
%py2_build
Patrick Uiterwijk 273594e
a37a288
%if 0%{?with_python3}
a37a288
%{__python3} setup.py build
a37a288
%endif
a37a288
Patrick Uiterwijk 273594e
Patrick Uiterwijk 273594e
%install
cf2f535
%py2_install
Patrick Uiterwijk 273594e
a37a288
%if 0%{?with_python3}
a37a288
%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
a37a288
%endif
a37a288
Patrick Uiterwijk 273594e
 
8cb7fe5
%files -n python2-openid-cla
a37a288
# TODO: Upstream error: no COPYING in latest release
a37a288
#%doc COPYING
6b0cbd1
%{python2_sitelib}/*
Patrick Uiterwijk 273594e
a37a288
%if 0%{?with_python3}
a37a288
%files -n python3-openid-cla
a37a288
%{python3_sitelib}/*
a37a288
a37a288
%endif # with_python3
a37a288
Patrick Uiterwijk 273594e
Patrick Uiterwijk 273594e
%changelog
1b28f84
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-12
1b28f84
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
1b28f84
1655e90
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-11
1655e90
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
1655e90
692191e
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-10
692191e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
692191e
a616663
* Mon Jun 18 2018 Miro Hrončok <mhroncok@redhat.com> - 1.2-9
a616663
- Rebuilt for Python 3.7
a616663
8b46551
* Mon Feb 12 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.2-8
8b46551
- Update Python 2 dependency declarations to new packaging standards
8b46551
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
8b46551
f18ebb9
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-7
f18ebb9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
f18ebb9
8cb7fe5
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.2-6
8cb7fe5
- Python 2 binary package renamed to python2-openid-cla
8cb7fe5
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
8cb7fe5
9afffe9
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-5
9afffe9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
9afffe9
27a0d74
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-4
27a0d74
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
27a0d74
c990086
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.2-3
c990086
- Rebuild for Python 3.6
c990086
04bba87
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-2
04bba87
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
04bba87
a37a288
* Thu Feb 18 2016 Patrick Uiterwijk <puiterwijk@redhat.com> - 1.2-1
a37a288
- Rebase to 1.2 to introduce python3 support
a37a288
ce8542f
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-5
ce8542f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
ce8542f
e3fef72
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-4
e3fef72
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
e3fef72
7331d1b
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-3
7331d1b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
7331d1b
8a896c6
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-2
8a896c6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
8a896c6
Patrick Uiterwijk 273594e
* Sat Jun 02 2013 Patrick Uiterwijk <puiterwijk@gmail.com> - 1.0-1
Patrick Uiterwijk 273594e
- Initial packaging
Patrick Uiterwijk 273594e