14
0

Accepting request 926913 from home:marxin:branches:devel:languages:python

- Add fix-support-file-5.41.patch to support file 5.41.

OBS-URL: https://build.opensuse.org/request/show/926913
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-magic?expand=0&rev=17
This commit is contained in:
2021-10-22 10:05:08 +00:00
committed by Git OBS Bridge
parent b174768aad
commit 0f1369b1e7
3 changed files with 22 additions and 0 deletions

View File

@@ -30,6 +30,7 @@ Source: https://github.com/ahupp/python-magic/archive/%{version}.tar.gz
Patch0: fix-test.patch
Patch1: fix-test-tumbleweed.patch
Patch2: fix-4-file-5.40.patch
Patch3: fix-support-file-5.41.patch
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: file
@@ -62,6 +63,9 @@ supports both textual and MIME-type output.
%if %{?pkg_vcmp:%{pkg_vcmp file >= 5.40}}%{!?pkg_vcmp:0}
%patch2 -p0
%endif
%if %{?pkg_vcmp:%{pkg_vcmp file >= 5.41}}%{!?pkg_vcmp:0}
%patch3 -p1
%endif
%build
%python_build