2012-06-22 06:49:51 +00:00
|
|
|
%if 0%{?fedora} >= 13
|
2010-04-20 21:43:56 +00:00
|
|
|
%global with_python3 1
|
2012-06-22 06:49:51 +00:00
|
|
|
%else
|
|
|
|
%if 0%{?rhel} >= 7
|
|
|
|
%global with_python3 1
|
|
|
|
%endif
|
|
|
|
%endif
|
2010-04-20 21:43:56 +00:00
|
|
|
|
2007-12-28 19:28:45 +00:00
|
|
|
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
2010-04-20 21:43:56 +00:00
|
|
|
|
2007-12-28 19:28:45 +00:00
|
|
|
Name: python-httplib2
|
2012-05-04 02:09:01 +00:00
|
|
|
Version: 0.7.4
|
2012-08-04 04:16:41 +00:00
|
|
|
Release: 7%{?dist}
|
2007-12-28 19:28:45 +00:00
|
|
|
Summary: A comprehensive HTTP client library
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
License: MIT
|
|
|
|
URL: http://code.google.com/p/httplib2/
|
2010-04-20 21:43:56 +00:00
|
|
|
Source0: http://httplib2.googlecode.com/files/httplib2-%{version}.tar.gz
|
2012-02-24 14:27:30 +00:00
|
|
|
#Patch0: httplib_py26.diff
|
2012-05-04 02:09:01 +00:00
|
|
|
Patch1: %{name}.certfile.patch
|
|
|
|
Patch2: %{name}.getCertHost.patch
|
2012-07-27 08:50:25 +00:00
|
|
|
Patch3: %{name}.rfc2459.patch
|
2007-12-28 19:28:45 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
2010-04-20 21:43:56 +00:00
|
|
|
BuildRequires: python-setuptools-devel
|
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildArch: noarch
|
2007-12-28 19:28:45 +00:00
|
|
|
|
2010-04-20 21:43:56 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
%endif # if with_python3
|
2007-12-28 19:28:45 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
A comprehensive HTTP client library that supports many features left out of
|
|
|
|
other HTTP libraries.
|
|
|
|
|
2010-04-20 21:43:56 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
%package -n python3-httplib2
|
|
|
|
Summary: A comprehensive HTTP client library
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
|
|
|
|
%description -n python3-httplib2
|
|
|
|
A comprehensive HTTP client library that supports many features left out of
|
|
|
|
other HTTP libraries.
|
|
|
|
%endif # with_python3
|
|
|
|
|
2007-12-28 19:28:45 +00:00
|
|
|
%prep
|
|
|
|
%setup -q -n httplib2-%{version}
|
2012-02-24 14:27:30 +00:00
|
|
|
#%patch0 -p0 -b .issue39
|
|
|
|
%patch1 -p0 -b .certfile
|
2012-05-04 02:09:01 +00:00
|
|
|
%patch2 -p0 -b .getCertHost
|
2012-07-27 08:50:25 +00:00
|
|
|
%patch3 -p0 -b .rfc2459
|
2007-12-28 19:28:45 +00:00
|
|
|
|
2010-04-20 21:43:56 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
rm -rf %{py3dir}
|
|
|
|
cp -a . %{py3dir}
|
|
|
|
find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!/usr/bin/python|#!%{__python3}|'
|
|
|
|
%endif # with_python3
|
|
|
|
|
2007-12-28 19:28:45 +00:00
|
|
|
%build
|
2012-06-01 01:02:06 +00:00
|
|
|
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
|
2007-12-28 19:28:45 +00:00
|
|
|
|
2010-04-20 21:43:56 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
pushd %{py3dir}
|
|
|
|
%{__python3} setup.py build
|
|
|
|
popd
|
|
|
|
%endif # with_python3
|
2007-12-28 19:28:45 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
|
|
|
|
|
2010-04-20 21:43:56 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
pushd %{py3dir}
|
|
|
|
%{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT
|
|
|
|
popd
|
|
|
|
%endif # with_python3
|
|
|
|
|
2007-12-28 19:28:45 +00:00
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2010-04-12 05:50:39 +00:00
|
|
|
%doc README
|
2007-12-28 19:28:45 +00:00
|
|
|
%{python_sitelib}/*
|
|
|
|
|
2010-04-20 21:43:56 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
%files -n python3-httplib2
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc README
|
|
|
|
%{python3_sitelib}/*
|
|
|
|
%endif # with_python3
|
|
|
|
|
2007-12-28 19:28:45 +00:00
|
|
|
%changelog
|
2012-08-04 04:16:41 +00:00
|
|
|
* Sat Aug 04 2012 David Malcolm <dmalcolm@redhat.com> - 0.7.4-7
|
|
|
|
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
|
|
|
|
|
2012-07-30 01:06:39 +00:00
|
|
|
* Fri Jul 27 2012 Ding-Yi Chen <dchen at redhat.com> - 0.7.4-6
|
2012-07-27 08:50:25 +00:00
|
|
|
- Fixed Bug 840968 - SSL errors when the site certificate contains
|
|
|
|
subjectAltName but DNS is not in it
|
|
|
|
|
2012-07-21 06:36:28 +00:00
|
|
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.4-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-06-22 06:49:51 +00:00
|
|
|
* Fri Jun 22 2012 Ding-Yi Chen <dchen at redhat.com> - 0.7.4-4
|
|
|
|
- Unify the spec file between EPEL and Fedora.
|
|
|
|
|
2012-06-22 05:54:23 +00:00
|
|
|
* Thu Jun 21 2012 Ding-Yi Chen <dchen at redhat.com> - 0.7.4-3
|
|
|
|
- Applied patch suggested by richardfearn@gmail.com regarding issue 208
|
|
|
|
- Fixed: Bug 832344 - Certification validation fails due to multiple 'dns' entries in subjectAltName
|
|
|
|
|
2012-06-01 01:02:06 +00:00
|
|
|
* Fri Jun 01 2012 Ding-Yi Chen <dchen at redhat.com> - 0.7.4-2
|
|
|
|
- Upstream update for Fedora
|
|
|
|
|
2012-05-04 02:09:01 +00:00
|
|
|
* Thu May 03 2012 Ding-Yi Chen <dchen at redhat.com> - 0.7.4-1
|
|
|
|
- Upstream update to 0.7.4
|
|
|
|
- Applied patch suggested in issue 208
|
|
|
|
|
2012-02-24 14:27:30 +00:00
|
|
|
* Fri Feb 24 2012 Ding-Yi Chen <dchen at redhat.com> - 0.7.2-1
|
|
|
|
- Upstream update to 0.7.2
|
|
|
|
Which may fixed http://code.google.com/p/httplib2/issues/detail?id=62
|
|
|
|
Note this version uses fedora's cert file bundle instead of httplib2
|
|
|
|
default.
|
|
|
|
|
2012-01-14 01:47:02 +00:00
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2012-05-04 02:09:01 +00:00
|
|
|
* Fri Jul 29 2011 Ding-Yi Chen <dchen at redhat.com> - 0.4.0-5.el6
|
2011-07-29 07:14:33 +00:00
|
|
|
- Apply that address python-httplib2 (GoogleCode Hosted) issue 39
|
|
|
|
http://code.google.com/p/httplib2/issues/detail?id=39
|
|
|
|
|
2011-02-09 04:12:54 +00:00
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2010-08-25 15:24:30 +00:00
|
|
|
* Wed Aug 25 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.6.0-4
|
|
|
|
- rebuild with python3.2
|
|
|
|
http://lists.fedoraproject.org/pipermail/devel/2010-August/141368.html
|
|
|
|
|
2010-07-22 04:24:38 +00:00
|
|
|
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.6.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
|
|
2010-04-20 21:43:56 +00:00
|
|
|
* Tue Apr 20 2010 Tom "spot" Callaway <tcallawa@redhat.com>
|
|
|
|
- minor spec cleanups
|
|
|
|
- enable python3 support
|
|
|
|
|
2012-05-04 02:09:01 +00:00
|
|
|
* Fri Apr 02 2010 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de> - 0.6.0-1
|
2010-04-12 05:50:39 +00:00
|
|
|
- version upgrade (#566721)
|
|
|
|
|
2009-07-26 20:26:57 +00:00
|
|
|
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-02-26 21:41:36 +00:00
|
|
|
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2008-11-29 15:36:01 +00:00
|
|
|
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.4.0-2
|
|
|
|
- Rebuild for Python 2.6
|
|
|
|
|
2012-05-04 02:09:01 +00:00
|
|
|
* Thu Dec 27 2007 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de> - 0.4.0-1
|
2007-12-28 19:28:45 +00:00
|
|
|
- initial version
|