Files
python-yara/python-yara.spec
Greg Freemyer 8544647b2a Accepting request 1160064 from home:mcalabkova:branches:security:forensics
- Update to 4.5.0
  * Tied to the changes in yara package itself.
  * Backward incompatible changes to the yara-python API. Specifically, 
    the strings field in the yara.Match object has changed from an array 
    of tuples (<offset>, <string identifier>, <string data>) to an array 
    of yara.StringMatch objects.

OBS-URL: https://build.opensuse.org/request/show/1160064
OBS-URL: https://build.opensuse.org/package/show/security:forensics/python-yara?expand=0&rev=11
2024-03-22 15:41:38 +00:00

59 lines
1.7 KiB
RPMSpec

#
# spec file for package python-yara
#
# Copyright (c) 2024 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/
#
Name: python-yara
Version: 4.5.0
Release: 0
Summary: Python Bindings for YARA (from Virus Total)
License: Apache-2.0
Group: Development/Libraries/Python
URL: https://github.com/VirusTotal/yara-python
Source: https://github.com/VirusTotal/yara-python/archive/v%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: pkgconfig
BuildRequires: python-rpm-macros
BuildRequires: pkgconfig(yara) >= 4.0
%python_subpackages
%description
python bindings for libyara.
YARA is a tool to identify and classify malware samples.
%prep
%setup -q -n yara-python-%{version}
%build
%python_build --dynamic-linking
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check
%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python tests.py
%files %{python_files}
%license LICENSE
%doc README.rst
%{python_sitearch}/yara.cpython*.so
%{python_sitearch}/yara_python-%{version}*-info
%changelog