2018-08-09 09:19:14 +00:00
#
# spec file for package python-ssdeep
#
2024-03-04 07:20:12 +00:00
# Copyright (c) 2024 SUSE LLC
2018-08-09 09:19:14 +00:00
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
2020-03-17 13:51:32 +00:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
2018-08-09 09:19:14 +00:00
Name : python-ssdeep
2022-11-11 13:42:27 +00:00
Version : 3.4.1
2018-08-09 09:19:14 +00:00
Release : 0
Summary : Python wrapper for the ssdeep library
2020-03-17 13:51:32 +00:00
License : LGPL-3.0-or-later
URL : https://github.com/DinoTools/python-ssdeep
2018-08-09 09:19:14 +00:00
#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
2022-11-11 13:42:27 +00:00
# https://github.com/DinoTools/python-ssdeep/commit/6cf96d63e9512fa14b6557d0d8afaa5128e0e853
Patch0 : python-ssdeep-no-six.patch
2020-03-17 13:51:32 +00:00
BuildRequires : %{python_module cffi >= 0.8.6}
2018-08-09 09:19:14 +00:00
BuildRequires : %{python_module devel}
2024-03-04 07:20:12 +00:00
BuildRequires : %{python_module pip}
2018-08-09 09:19:14 +00:00
BuildRequires : %{python_module setuptools}
2024-03-04 07:20:12 +00:00
BuildRequires : %{python_module wheel}
2020-03-17 13:51:32 +00:00
BuildRequires : fdupes
BuildRequires : libfuzzy-devel
BuildRequires : python-rpm-macros
Requires : python-cffi
Requires : ssdeep
2018-08-09 09:19:14 +00:00
# SECTION tests
2021-12-07 22:24:30 +00:00
BuildRequires : %{python_module pytest}
2018-08-09 09:19:14 +00:00
# /SECTION
%python_subpackages
%description
A Python wrapper for ssdeep, which is a library for computing context triggered piecewise hashes (CTPH). Also called fuzzy hashes, CTPH can match inputs that have homologies. Such inputs
have sequences of identical bytes in the same order, although bytes in between these sequences may be different in both
content and length.
%prep
2024-03-04 07:20:12 +00:00
%autosetup -p1 -n python-ssdeep-%{version}
2021-12-07 22:24:30 +00:00
# https://github.com/DinoTools/python-ssdeep/issues/57
sed -i 's:"pytest-runner.*"::' setup.py
2018-08-09 09:19:14 +00:00
%build
2024-03-04 07:20:12 +00:00
%pyproject_wheel
2018-08-09 09:19:14 +00:00
%install
2024-03-04 07:20:12 +00:00
%pyproject_install
2018-08-09 09:19:14 +00:00
%python_expand %fdupes %{buildroot} %{$python_sitearch}
%check
2021-01-13 13:07:24 +00:00
%pytest_arch
2018-08-09 09:19:14 +00:00
%files %{python_files}
2020-04-20 09:33:39 +00:00
%doc README.rst CHANGELOG.rst
2018-08-09 09:19:14 +00:00
%license LICENSE
2024-03-04 07:20:12 +00:00
%{python_sitearch} /ssdeep
%{python_sitearch} /ssdeep-%{version} .dist-info
2018-08-09 09:19:14 +00:00
%changelog