forked from pool/python-python-magic
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user