Hello community, here is the log from the commit of package python-WebHelpers for openSUSE:Factory checked in at 2018-06-08 23:17:24 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-WebHelpers (Old) and /work/SRC/openSUSE:Factory/.python-WebHelpers.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-WebHelpers" Fri Jun 8 23:17:24 2018 rev:7 rq:614612 version:1.3 Changes: -------- --- /work/SRC/openSUSE:Factory/python-WebHelpers/python-WebHelpers.changes 2013-10-25 11:35:38.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-WebHelpers.new/python-WebHelpers.changes 2018-06-08 23:17:30.811625751 +0200 @@ -1,0 +2,13 @@ +Wed Jun 6 17:04:08 UTC 2018 - mc...@suse.com + +- Clean SPEC file +- Switch on tests +- Added patch 69ce4f780c-fix-error-on-webob-1.2.3.patch from upstream + fixing the tests to pass. + +------------------------------------------------------------------- +Thu Aug 24 13:57:21 UTC 2017 - jmate...@suse.com + +- singlespec auto-conversion + +------------------------------------------------------------------- @@ -19,0 +33 @@ + New: ---- 69ce4f780c-fix-error-on-webob-1.2.3.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-WebHelpers.spec ++++++ --- /var/tmp/diff_new_pack.qnlefr/_old 2018-06-08 23:17:31.531599745 +0200 +++ /var/tmp/diff_new_pack.qnlefr/_new 2018-06-08 23:17:31.535599601 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-WebHelpers # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,26 +16,32 @@ # +%define skip_python3 1 +%define oldpython python +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-WebHelpers Version: 1.3 Release: 0 -Url: http://docs.pylonsproject.org/projects/webhelpers/dev/ Summary: Web Helpers License: BSD-3-Clause Group: Development/Languages/Python -Source: http://pypi.python.org/packages/source/W/WebHelpers/WebHelpers-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: python-devel -BuildRequires: python-setuptools +URL: https://webhelpers.readthedocs.io/en/latest/ +Source: https://files.pythonhosted.org/packages/source/W/WebHelpers/WebHelpers-%{version}.tar.gz +# From https://bitbucket.org/bbangert/webhelpers/commits/69ce4f780c?at=trunk +# fix of https://bitbucket.org/bbangert/webhelpers/issues/73/ which +# makes tests fail. +Patch0: 69ce4f780c-fix-error-on-webob-1.2.3.patch +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros Requires: python-Routes Requires: python-nose -Provides: python-webhelpers = %{version} -Obsoletes: python-webhelpers < %{version} -%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 BuildArch: noarch +%ifpython2 +Provides: %{oldpython}-webhelpers = %{version} +Obsoletes: %{oldpython}-webhelpers < %{version} %endif +%python_subpackages %description Web Helpers is a library of helper functions intended to make writing @@ -46,17 +52,19 @@ %prep %setup -q -n WebHelpers-%{version} +%patch0 -p1 sed -i "1d" webhelpers/{pylonslib/_jsmin,markdown,textile,pylonslib/minify}.py # Fix non-executable script %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} -%files -%defattr(-,root,root,-) -%doc CHANGELOG LICENSE README.txt TODO +%files %{python_files} +%license LICENSE +%doc CHANGELOG README.txt TODO %{python_sitelib}/* %changelog ++++++ 69ce4f780c-fix-error-on-webob-1.2.3.patch ++++++ # HG changeset patch # User Atsushi Odagiri <aod...@gmail.com> # Date 1352733956 -32400 # Branch trunk # Node ID 69ce4f780c4332d137499bdc2f60676e50dbb27a # Parent acfb17881c1c1b045bab1f9b145d336b64ab7d08 fix error on webob 1.2.3 diff --git a/webhelpers/mimehelper.py b/webhelpers/mimehelper.py --- a/webhelpers/mimehelper.py +++ b/webhelpers/mimehelper.py @@ -110,8 +110,7 @@ if '.' in last_part: has_extension = True if 'HTTP_ACCEPT' in self.env: - possible_from_accept_header = webob.acceptparse.MIMEAccept('ACCEPT', - self.env['HTTP_ACCEPT']) + possible_from_accept_header = webob.acceptparse.MIMEAccept(self.env['HTTP_ACCEPT']) if has_extension == False: if possible_from_accept_header is None: return self._set_response_content_type(content_type)