Accepting request 156302 from home:posophe:branches:devel:languages:python

Remove macros usage

OBS-URL: https://build.opensuse.org/request/show/156302
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-httplib2?expand=0&rev=30
This commit is contained in:
Sascha Peilicke 2013-02-25 12:27:56 +00:00 committed by Git OBS Bridge
parent e424a51ce1
commit 8a73ff7588
7 changed files with 220 additions and 9 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d10307bd369983b17a561ecbafee8afdc54ee3c785b9917e3e6489dd2de0f194
size 106664

3
httplib2-0.7.7.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2e2ce18092c32d1ec54f8a447e14e33585e30f240b883bfeeca65f12b3bcfaf6
size 144020

4
pre_checkin.sh Normal file
View File

@ -0,0 +1,4 @@
#!/bin/sh
sed 's,^\(Name: *\)python-,\1python3-,;s,^\(Requires: *\)python-,\1python3-,;s,^\(BuildRequires: *\)python-,\1python3-,;s,python setup.py,python3 setup.py,;s,python_sitelib,python3_sitelib,;s,python_sitearch,python3_sitearch,' python-httplib2.spec > python3-httplib2.spec
cp python-httplib2.changes python3-httplib2.changes

View File

@ -1,3 +1,26 @@
-------------------------------------------------------------------
Fri Jan 11 19:51:38 UTC 2013 - p.drouand@gmail.com
- Drop unneeded python-pyOpenSSL Requires
-------------------------------------------------------------------
Fri Jan 11 19:39:31 UTC 2013 - p.drouand@gmail.com
- Initial python3 support
-------------------------------------------------------------------
Fri Jan 11 19:38:07 UTC 2013 - p.drouand@gmail.com
- Update to 0.7.7 version:
* More fixes for App Engine, now less likely to swallow important exceptions.
* Adding proxy_info_from_* methods to Python3. Reviewed in https://codereview.appspot.com/6588078/.
* Added GeoTrust cert
* Make httplib2.Http() instances pickleable. Reviewed in https://codereview.appspot.com/6506074/
* The following issues have been fixed:
- 229 python3 httplib2 clobbers multiple headers of same key
- 230 Expose meaningful exception for App Engine URLFetch ResponseTooLargeError
- 231 Expose App Engine URLFetch DeadlineExceededError for debugging purposes
-------------------------------------------------------------------
Sat Oct 6 22:26:47 UTC 2012 - os-dev@jacraig.com

View File

@ -1,7 +1,7 @@
#
# spec file for package python-httplib2
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -15,26 +15,25 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define mod_name httplib2
Name: python-httplib2
Version: 0.7.6
Version: 0.7.7
Release: 0
Url: http://code.google.com/p/httplib2/
Summary: A Python HTTP client library
License: MIT and Apache-2.0 and (MPL-1.1 or GPL-2.0+ or LGPL-2.1+)
Group: Development/Libraries/Python
Source0: httplib2-%{version}.tar.gz
Source0: %{mod_name}-%{version}.tar.gz
# PATCH-FIX-OPENSUSE: Don't ship private copy of Mozilla NSS certs, use system certs instead (bnc#761162)
Patch0: httplib2-use-system-certs.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
#BuildRequires: python-pyOpenSSL
%if 0%{?sles_version}
Requires: openssl-certs
%else
Requires: ca-certificates
%endif
Requires: python-pyOpenSSL
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
@ -46,7 +45,7 @@ A comprehensive HTTP client library that supports many features
left out of other HTTP libraries.
%prep
%setup -q -n httplib2-%{version}
%setup -q -n %{mod_name}-%{version}
%patch0 -p1
%build

120
python3-httplib2.changes Normal file
View File

@ -0,0 +1,120 @@
-------------------------------------------------------------------
Fri Jan 11 19:51:38 UTC 2013 - p.drouand@gmail.com
- Drop unneeded python-pyOpenSSL Requires
-------------------------------------------------------------------
Fri Jan 11 19:39:31 UTC 2013 - p.drouand@gmail.com
- Initial python3 support
-------------------------------------------------------------------
Fri Jan 11 19:38:07 UTC 2013 - p.drouand@gmail.com
- Update to 0.7.7 version:
* More fixes for App Engine, now less likely to swallow important exceptions.
* Adding proxy_info_from_* methods to Python3. Reviewed in https://codereview.appspot.com/6588078/.
* Added GeoTrust cert
* Make httplib2.Http() instances pickleable. Reviewed in https://codereview.appspot.com/6506074/
* The following issues have been fixed:
- 229 python3 httplib2 clobbers multiple headers of same key
- 230 Expose meaningful exception for App Engine URLFetch ResponseTooLargeError
- 231 Expose App Engine URLFetch DeadlineExceededError for debugging purposes
-------------------------------------------------------------------
Sat Oct 6 22:26:47 UTC 2012 - os-dev@jacraig.com
- Update to 0.7.6:
* Fix app engine
* On Python App Engine 2.7 a body can be passed in that is actually a
stream. Do a full read of the contents of that stream before proceeding.
- Update URL to one given in setup.py; also where the old one redirects to.
-------------------------------------------------------------------
Sun Sep 9 16:29:51 UTC 2012 - os-dev@jacraig.com
- Update to 0.7.5, no changelog provided.
-------------------------------------------------------------------
Mon Jul 23 14:56:00 UTC 2012 - saschpe@suse.de
- Require openssl-certs on SLE instead of ca-certificates
-------------------------------------------------------------------
Tue Jul 17 08:24:44 UTC 2012 - saschpe@suse.de
- Add missing runtime requirement on python-pyOpenSSL to gain
access to 'ssl' module
-------------------------------------------------------------------
Mon Jul 9 08:47:20 UTC 2012 - cfarrell@suse.com
- license update: MIT and Apache-2.0 and (MPL-1.1 or GPL-2.0+ or LGPL-2.1+)
__init__.py contains code derived from a Google owned Apache project.
cacerts.txt is Mozilla triple-licensed.
-------------------------------------------------------------------
Wed Jun 20 11:41:56 UTC 2012 - saschpe@suse.de
- Don't ship private copy of Mozilla NSS certs, use system certs
instead (bnc#761162)
-------------------------------------------------------------------
Tue Jun 5 09:56:01 UTC 2012 - cstender@opensuse.org
- update to version 0.7.4
* See CHANGELOG for all changes and fixes
-------------------------------------------------------------------
Thu Dec 22 12:52:35 UTC 2011 - cstender@suse.com
- updated to version 0.7.2
-------------------------------------------------------------------
Mon Jul 11 14:06:42 CEST 2011 - cstender@suse.de
- updated to version 0.7.1
* See CHANGELOG for all changes and fixes
-------------------------------------------------------------------
Mon Apr 19 13:47:15 CEST 2010 - dmueller@suse.de
- update to version 0.6.0:
* include python 3 support/compatibility
-------------------------------------------------------------------
Thu Aug 13 10:55:40 UTC 2009 - cstender@novell.com
- build as noarch
-------------------------------------------------------------------
Tue Aug 4 10:51:26 UTC 2009 - cstender@novell.com
- updated to version 0.5.0
* Fixed the following bugs:
#12 - Cache-Control: only-if-cached incorrectly does request if
item not in cache
#39 - Deprecation warnings in Python 2.6
#54 - Http.request fails accesing Google account via http proxy
#56 - Block on response.read() for HEAD requests.
#57 - Timeout ignore for Python 2.6
#58 - Fixed parsing of Cache-Control: header to make it more
robust
-------------------------------------------------------------------
Tue Sep 9 12:41:28 CEST 2008 - cstender@suse.de
- updated package to version 0.4.0
o added support for proxies if the Socksipy module is installed
o fixed bug with some HEAD responses having content-length set to
zero incorrectly
o fixed most except's to catch a specific exception
o added 'connection_type' parameter to Http.request()
o the default for 'force_exception_to_status_code' was changed to
False
-------------------------------------------------------------------
Sat Oct 21 22:37:29 CEST 2006 - dgollub@suse.de
- initial version of python-httplib2 (0.2.0)

65
python3-httplib2.spec Normal file
View File

@ -0,0 +1,65 @@
#
# spec file for package python-httplib2
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define mod_name httplib2
Name: python3-httplib2
Version: 0.7.7
Release: 0
Url: http://code.google.com/p/httplib2/
Summary: A Python HTTP client library
License: MIT and Apache-2.0 and (MPL-1.1 or GPL-2.0+ or LGPL-2.1+)
Group: Development/Libraries/Python
Source0: %{mod_name}-%{version}.tar.gz
# PATCH-FIX-OPENSUSE: Don't ship private copy of Mozilla NSS certs, use system certs instead (bnc#761162)
Patch0: httplib2-use-system-certs.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python3-devel
%if 0%{?sles_version}
Requires: openssl-certs
%else
Requires: ca-certificates
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python3_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
%description
A comprehensive HTTP client library that supports many features
left out of other HTTP libraries.
%prep
%setup -q -n %{mod_name}-%{version}
%patch0 -p1
%build
python3 setup.py build
%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
#%%check
#python python2/httplib2test.py
%files
%defattr(-,root,root)
%doc README
%{python3_sitelib}/*
%changelog