2016-09-30 22:59:42 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-yara
|
|
|
|
#
|
2024-03-22 15:41:38 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2016-09-30 22:59:42 +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-08-20 15:57:12 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-09-30 22:59:42 +00:00
|
|
|
#
|
|
|
|
|
2016-10-11 00:19:12 +00:00
|
|
|
|
2016-09-30 22:59:42 +00:00
|
|
|
Name: python-yara
|
2024-03-22 15:41:38 +00:00
|
|
|
Version: 4.5.0
|
2016-10-11 00:19:12 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Python Bindings for YARA (from Virus Total)
|
|
|
|
License: Apache-2.0
|
2016-09-30 22:59:42 +00:00
|
|
|
Group: Development/Libraries/Python
|
2018-05-28 17:35:36 +00:00
|
|
|
URL: https://github.com/VirusTotal/yara-python
|
2017-06-06 12:30:16 +00:00
|
|
|
Source: https://github.com/VirusTotal/yara-python/archive/v%{version}.tar.gz
|
2018-05-28 17:35:36 +00:00
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
2016-10-11 00:19:12 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: pkgconfig
|
2018-05-28 17:35:36 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2020-08-20 15:57:12 +00:00
|
|
|
BuildRequires: pkgconfig(yara) >= 4.0
|
2018-05-28 17:35:36 +00:00
|
|
|
%python_subpackages
|
2016-09-30 22:59:42 +00:00
|
|
|
|
|
|
|
%description
|
2018-05-28 17:35:36 +00:00
|
|
|
python bindings for libyara.
|
|
|
|
YARA is a tool to identify and classify malware samples.
|
2016-09-30 22:59:42 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n yara-python-%{version}
|
|
|
|
|
|
|
|
%build
|
2018-05-28 17:35:36 +00:00
|
|
|
%python_build --dynamic-linking
|
2016-09-30 22:59:42 +00:00
|
|
|
|
|
|
|
%install
|
2018-05-28 17:35:36 +00:00
|
|
|
%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
|
2024-03-22 15:41:38 +00:00
|
|
|
%{python_sitearch}/yara.cpython*.so
|
|
|
|
%{python_sitearch}/yara_python-%{version}*-info
|
2016-09-30 22:59:42 +00:00
|
|
|
|
|
|
|
%changelog
|