|
|
a37a288 |
%if 0%{?rhel}
|
|
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
|
|
|
f18ebb9 |
Release: 7%{?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
|
|
Patrick Uiterwijk |
273594e |
BuildRequires: python-setuptools
|
|
|
a37a288 |
BuildRequires: python-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
|
|
|
8cb7fe5 |
Requires: python-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 |
Group: Development/Libraries
|
|
|
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
|
|
Patrick Uiterwijk |
273594e |
%{__python} setup.py build
|
|
Patrick Uiterwijk |
273594e |
|
|
|
a37a288 |
%if 0%{?with_python3}
|
|
|
a37a288 |
%{__python3} setup.py build
|
|
|
a37a288 |
%endif
|
|
|
a37a288 |
|
|
Patrick Uiterwijk |
273594e |
|
|
Patrick Uiterwijk |
273594e |
%install
|
|
Patrick Uiterwijk |
273594e |
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
|
|
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
|
|
Patrick Uiterwijk |
273594e |
%{python_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
|
|
|
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 |
|