14
0

Accepting request 941855 from home:PSuarezHernandez:branches:devel:languages:python

- Use binary mode when reopening files
- Added:
  * use-binary-mode-when-reopening-files.patch

OBS-URL: https://build.opensuse.org/request/show/941855
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-urlgrabber?expand=0&rev=44
This commit is contained in:
2021-12-21 17:57:00 +00:00
committed by Git OBS Bridge
parent 8f78dfe2c8
commit aee0892c25
3 changed files with 25 additions and 0 deletions

View File

@@ -26,6 +26,9 @@ License: LGPL-2.1-only
Group: Development/Libraries/Python
URL: https://github.com/rpm-software-management/urlgrabber
Source: https://github.com/rpm-software-management/%{modname}/releases/download/%{modname}-4-1-0/%{modname}-%{version}.tar.gz
# PATCH-FIX_UPSTREAM https://github.com/rpm-software-management/urlgrabber/pull/32
Patch0: use-binary-mode-when-reopening-files.patch
BuildRequires: %{python_module pycurl}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
@@ -47,6 +50,7 @@ throttling, authentication, proxies and more.
%setup -q -n urlgrabber-%{version}
# Remove with next release
sed -i "13d" urlgrabber/__init__.py # Remove wrong license header, fixes bnc#781323
%autopatch -p1
# Fix location of %%{_libexecdir}
sed -i 's!/usr/libexec!%{_libexecdir}!' urlgrabber/grabber.py