forked from pool/python-ssdeep
Accepting request 1035250 from home:pgajdos:python
- silent rpmlint
- version update to 3.4.1
* Add internal build improvements
* Update CI pipelines
- do not require python-six
- added patches
fix 6cf96d63e9
+ python-ssdeep-no-six.patch
OBS-URL: https://build.opensuse.org/request/show/1035250
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ssdeep?expand=0&rev=15
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-ssdeep
|
||||
#
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,10 +16,9 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define skip_python2 1
|
||||
Name: python-ssdeep
|
||||
Version: 3.4
|
||||
Version: 3.4.1
|
||||
Release: 0
|
||||
Summary: Python wrapper for the ssdeep library
|
||||
License: LGPL-3.0-or-later
|
||||
@@ -27,15 +26,15 @@ Group: Development/Languages/Python
|
||||
URL: https://github.com/DinoTools/python-ssdeep
|
||||
#Source: https://files.pythonhosted.org/packages/source/s/ssdeep/ssdeep-%%{version}.tar.gz # no docs here, see https://github.com/DinoTools/python-ssdeep/issues/37
|
||||
Source: https://github.com/DinoTools/python-ssdeep/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
# https://github.com/DinoTools/python-ssdeep/commit/6cf96d63e9512fa14b6557d0d8afaa5128e0e853
|
||||
Patch0: python-ssdeep-no-six.patch
|
||||
BuildRequires: %{python_module cffi >= 0.8.6}
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module six}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: libfuzzy-devel
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-cffi
|
||||
Requires: python-six
|
||||
Requires: ssdeep
|
||||
# SECTION tests
|
||||
BuildRequires: %{python_module pytest}
|
||||
@@ -49,6 +48,7 @@ content and length.
|
||||
|
||||
%prep
|
||||
%setup -q -n python-ssdeep-%{version}
|
||||
%patch0 -p1
|
||||
# https://github.com/DinoTools/python-ssdeep/issues/57
|
||||
sed -i 's:"pytest-runner.*"::' setup.py
|
||||
|
||||
@@ -63,7 +63,8 @@ sed -i 's:"pytest-runner.*"::' setup.py
|
||||
%pytest_arch
|
||||
|
||||
%files %{python_files}
|
||||
%{python_sitearch}/*
|
||||
%{python_sitearch}/ssdeep
|
||||
%{python_sitearch}/ssdeep-*egg-info
|
||||
%doc README.rst CHANGELOG.rst
|
||||
%license LICENSE
|
||||
|
||||
|
Reference in New Issue
Block a user