14
0
forked from pool/python-ssdeep
Files
python-ssdeep/python-ssdeep.spec
Tomáš Chvátal 7532d6f359 Accepting request 785934 from home:pgajdos:python
- version update to 3.4
  * Update documentation
  * Replace Jenkins and Travis CI with Drone CI
  * Add new copy() function to Hash() and PseudoHash() class
  * Add new attributes to Hash() and PseudoHash() class
    * name
    * block_size

OBS-URL: https://build.opensuse.org/request/show/785934
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ssdeep?expand=0&rev=5
2020-03-17 13:51:32 +00:00

74 lines
2.4 KiB
RPMSpec

#
# spec file for package python-ssdeep
#
# Copyright (c) 2020 SUSE LLC
#
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-ssdeep
Version: 3.4
Release: 0
Summary: Python wrapper for the ssdeep library
License: LGPL-3.0-or-later
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
BuildRequires: %{python_module cffi >= 0.8.6}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: libfuzzy-devel
BuildRequires: python-rpm-macros
Requires: python-cffi
Requires: ssdeep
# SECTION tests
BuildRequires: %{python_module pytest-runner}
# /SECTION
# SECTION docs
BuildRequires: python-mock
BuildRequires: python-sphinx
# /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
%setup -q -n python-ssdeep-%{version}
%build
%python_build
pushd docs
%make_build html
rm build/html/.buildinfo
popd
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check
%python_exec setup.py test
%files %{python_files}
%{python_sitearch}/*
%doc README.rst CHANGELOG.rst docs/build/html/
%license LICENSE
%changelog