Blame SPECS/python-httplib2.spec

abb59a
%if 0%{?fedora} >= 13
abb59a
%global with_python3 1
abb59a
%else
abb59a
%if 0%{?rhel} >= 7
abb59a
%global with_python3 1
abb59a
%endif
abb59a
%endif
abb59a
abb59a
%if 0%{?rhel} > 7
abb59a
# Disable python2 build by default
abb59a
%bcond_with python2
abb59a
%else
abb59a
%bcond_without python2
abb59a
%endif
abb59a
abb59a
Name:           python-httplib2
abb59a
Version:        0.10.3
abb59a
Release:        4%{?dist}
abb59a
Summary:        A comprehensive HTTP client library
abb59a
Group:          System Environment/Libraries
abb59a
License:        MIT
abb59a
URL:            https://pypi.python.org/pypi/httplib2
abb59a
Source0:        https://pypi.python.org/packages/source/h/httplib2/httplib2-%{version}.tar.gz
abb59a
# See also the 'locater plugin' system httplib2 now allows, and
abb59a
# https://github.com/dreamhost/httplib2-ca_certs_locater
abb59a
# It's kind of problematic, though: https://github.com/jcgregorio/httplib2/issues/293
abb59a
Patch1:         %{name}.certfile.patch
abb59a
Patch2:         %{name}.getCertHost.patch
abb59a
Patch3:         %{name}.rfc2459.patch
abb59a
#
abb59a
# Fix proxy with plain http
abb59a
# https://bugzilla.redhat.com/show_bug.cgi?id=857514
abb59a
# https://github.com/jcgregorio/httplib2/issues/228
abb59a
# 
abb59a
Patch4:         python-httplib2-0.9-proxy-http.patch
abb59a
abb59a
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
abb59a
%if %{with python2}
abb59a
BuildRequires:  python2-setuptools
abb59a
BuildRequires:  python2-devel
abb59a
%endif # with python2
abb59a
BuildArch:      noarch
abb59a
abb59a
%if 0%{?with_python3}
abb59a
BuildRequires:  python3-devel
abb59a
BuildRequires:  python3-setuptools
abb59a
%endif # if with_python3
abb59a
abb59a
%global _description\
abb59a
A comprehensive HTTP client library that supports many features left out of\
abb59a
other HTTP libraries.
abb59a
abb59a
%description %_description
abb59a
abb59a
%if %{with python2}
abb59a
%package -n python2-httplib2
abb59a
Summary: %summary
abb59a
%{?python_provide:%python_provide python2-httplib2}
abb59a
abb59a
%description -n python2-httplib2 %_description
abb59a
%endif # with python2
abb59a
abb59a
%if 0%{?with_python3}
abb59a
%package -n python3-httplib2
abb59a
Summary:        A comprehensive HTTP client library
abb59a
%{?python_provide:%python_provide python3-httplib2}
abb59a
abb59a
%description -n python3-httplib2
abb59a
A comprehensive HTTP client library that supports many features left out of
abb59a
other HTTP libraries.
abb59a
%endif # with_python3
abb59a
abb59a
%prep
abb59a
%setup -q -n httplib2-%{version}
abb59a
%patch1 -p1 -b .certfile
abb59a
%patch2 -p0 -b .getCertHost
abb59a
%patch3 -p0 -b .rfc2459
abb59a
%patch4 -p1
abb59a
abb59a
%if 0%{?with_python3}
abb59a
rm -rf %{py3dir}
abb59a
cp -a . %{py3dir}
abb59a
find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!/usr/bin/python|#!%{__python3}|'
abb59a
%endif # with_python3
abb59a
abb59a
%build
abb59a
%if %{with python2}
abb59a
%py2_build
abb59a
%endif # with python2
abb59a
abb59a
%if 0%{?with_python3}
abb59a
pushd %{py3dir}
abb59a
%py3_build
abb59a
popd
abb59a
%endif # with_python3
abb59a
abb59a
%install
abb59a
%if %{with python2}
abb59a
%py2_install
abb59a
%endif # with python2
abb59a
abb59a
%if 0%{?with_python3}
abb59a
pushd %{py3dir}
abb59a
%py3_install
abb59a
popd
abb59a
%endif # with_python3
abb59a
abb59a
%if %{with python2}
abb59a
%files -n python2-httplib2
abb59a
%{python2_sitelib}/*
abb59a
%endif # with python2
abb59a
abb59a
%if 0%{?with_python3}
abb59a
%files -n python3-httplib2
abb59a
%{python3_sitelib}/*
abb59a
%endif # with_python3
abb59a
abb59a
%changelog
abb59a
* Fri Jun 08 2018 Charalampos Stratakis <cstratak@redhat.com> - 0.10.3-4
abb59a
- Conditionalize the python2 subpackage
abb59a
abb59a
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.3-3
abb59a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
abb59a
abb59a
* Mon Sep 11 2017 Nick Bebout <nb@fedoraproject.org> - 0.10.3-2
abb59a
- Fix BuildRequires to use python2-* instead of python-*
abb59a
abb59a
* Sun Sep 10 2017 Nick Bebout <nb@fedoraproject.org> - 0.10.3-1
abb59a
- Update to 0.10.3
abb59a
abb59a
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.9.2-7
abb59a
- Python 2 binary package renamed to python2-httplib2
abb59a
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
abb59a
abb59a
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.2-6
abb59a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
abb59a
abb59a
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.2-5
abb59a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
abb59a
abb59a
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.9.2-4
abb59a
- Rebuild for Python 3.6
abb59a
abb59a
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.2-3
abb59a
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
abb59a
abb59a
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.2-2
abb59a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
abb59a
abb59a
* Sat Dec 26 2015 Kevin Fenzi <kevin@scrye.com> - 0.9.2-1
abb59a
- Update to 0.9.2
abb59a
abb59a
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-3
abb59a
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
abb59a
abb59a
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-2
abb59a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
abb59a
abb59a
* Sun Apr 12 2015 Kevin Fenzi <kevin@scrye.com> 0.9.1-1
abb59a
- Update to 0.9.1 and drop upstreamed patches
abb59a
abb59a
* Fri Apr 03 2015 Kevin Fenzi <kevin@scrye.com> 0.9-6
abb59a
- Add patch to fix http over proxy. Fixes bug #857514
abb59a
- Add patch to fix CVE-2013-2037. Fixes bug #958640
abb59a
- Add patch to fix binary headers in python3. Fixes bug #1205127
abb59a
abb59a
* Mon Jan 12 2015 Adam Williamson <awilliam@redhat.com> - 0.9-5
abb59a
- certfile.patch: use /etc/pki/tls not /etc/ssl/certs, patch python3 too
abb59a
abb59a
* Mon Jun 30 2014 Toshio Kuratomi <toshio@fedoraproject.org> - 0.9-4
abb59a
- Replace python-setuptools-devel BR with python-setuptools
abb59a
abb59a
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-3
abb59a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
abb59a
abb59a
* Wed May 28 2014 Kalev Lember <kalevlember@gmail.com> - 0.9-2
abb59a
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
abb59a
abb59a
* Fri May 23 2014 Kevin Fenzi <kevin@scrye.com> 0.9-1
abb59a
- Update to 0.9
abb59a
abb59a
* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 0.7.7-4
abb59a
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
abb59a
abb59a
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.7-3
abb59a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
abb59a
abb59a
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.7-2
abb59a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
abb59a
abb59a
* Wed Jan 02 2013 Ding-Yi Chen <dchen at redhat.com> - 0.7.7-1
abb59a
- Upstream update to 0.7.7
abb59a
abb59a
* Sat Aug 04 2012 David Malcolm <dmalcolm@redhat.com> - 0.7.4-7
abb59a
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
abb59a
abb59a
* Fri Jul 27 2012 Ding-Yi Chen <dchen at redhat.com> - 0.7.4-6
abb59a
- Fixed Bug 840968 - SSL errors when the site certificate contains
abb59a
  subjectAltName but DNS is not in it
abb59a
abb59a
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.4-5
abb59a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
abb59a
abb59a
* Fri Jun 22 2012 Ding-Yi Chen <dchen at redhat.com> - 0.7.4-4
abb59a
- Unify the spec file between EPEL and Fedora.
abb59a
abb59a
* Thu Jun 21 2012 Ding-Yi Chen <dchen at redhat.com> - 0.7.4-3
abb59a
- Applied patch suggested by richardfearn@gmail.com regarding issue 208
abb59a
- Fixed: Bug 832344 - Certification validation fails due to multiple 'dns' entries in subjectAltName
abb59a
abb59a
* Fri Jun 01 2012 Ding-Yi Chen <dchen at redhat.com> - 0.7.4-2
abb59a
- Upstream update for Fedora
abb59a
abb59a
* Thu May 03 2012 Ding-Yi Chen <dchen at redhat.com> - 0.7.4-1
abb59a
- Upstream update to 0.7.4
abb59a
- Applied patch suggested in issue 208
abb59a
abb59a
* Fri Feb 24 2012 Ding-Yi Chen <dchen at redhat.com> - 0.7.2-1
abb59a
- Upstream update to 0.7.2
abb59a
  Which may fixed http://code.google.com/p/httplib2/issues/detail?id=62
abb59a
  Note this version uses fedora's cert file bundle instead of httplib2
abb59a
  default.
abb59a
abb59a
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-6
abb59a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
abb59a
abb59a
* Fri Jul 29 2011 Ding-Yi Chen <dchen at redhat.com>  - 0.4.0-5.el6
abb59a
- Apply that address python-httplib2 (GoogleCode Hosted) issue 39
abb59a
  http://code.google.com/p/httplib2/issues/detail?id=39
abb59a
abb59a
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-5
abb59a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
abb59a
abb59a
* Wed Aug 25 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.6.0-4
abb59a
- rebuild with python3.2
abb59a
  http://lists.fedoraproject.org/pipermail/devel/2010-August/141368.html
abb59a
abb59a
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.6.0-3
abb59a
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
abb59a
abb59a
* Tue Apr 20 2010 Tom "spot" Callaway <tcallawa@redhat.com>
abb59a
- minor spec cleanups
abb59a
- enable python3 support
abb59a
abb59a
* Fri Apr 02 2010 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de> - 0.6.0-1
abb59a
- version upgrade (#566721)
abb59a
abb59a
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-4
abb59a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
abb59a
abb59a
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-3
abb59a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
abb59a
abb59a
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.4.0-2
abb59a
- Rebuild for Python 2.6
abb59a
abb59a
* Thu Dec 27 2007 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de> - 0.4.0-1
abb59a
- initial version