summaryrefslogtreecommitdiff
path: root/python-yara-python.spec
diff options
context:
space:
mode:
Diffstat (limited to 'python-yara-python.spec')
-rw-r--r--python-yara-python.spec38
1 files changed, 31 insertions, 7 deletions
diff --git a/python-yara-python.spec b/python-yara-python.spec
index 5030660..d2b435c 100644
--- a/python-yara-python.spec
+++ b/python-yara-python.spec
@@ -1,11 +1,11 @@
%global _empty_manifest_terminate_build 0
Name: python-yara-python
-Version: 4.3.0
+Version: 4.3.1
Release: 1
Summary: Python interface for YARA
License: Apache 2.0
URL: https://github.com/VirusTotal/yara-python
-Source0: https://mirrors.nju.edu.cn/pypi/web/packages/47/c5/23148d89227e8f2fa01d3b65094cddd36689c2aba9d6f63f8baff633138d/yara-python-4.3.0.tar.gz
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/5f/34/60a293c7ae05731c2e6366e132a9fe4c02ae84c4f57714a2f5e8651a8491/yara-python-4.3.1.tar.gz
%description
@@ -23,7 +23,15 @@ Here it goes a little example:
>>> print(matches[0].tags)
['bar']
>>> print(matches[0].strings)
- [(10L, '$a', 'lmn')]
+ [$a]
+ >>> print(matches[0].strings[0].identifier)
+ $a
+ >>> print(matches[0].strings[0].instances)
+ [lmn]
+ >>> print(matches[0].strings[0].instances[0].offset)
+ 10
+ >>> print(matches[0].strings[0].instances[0].matched_length)
+ 3
%package -n python3-yara-python
Summary: Python interface for YARA
@@ -49,7 +57,15 @@ Here it goes a little example:
>>> print(matches[0].tags)
['bar']
>>> print(matches[0].strings)
- [(10L, '$a', 'lmn')]
+ [$a]
+ >>> print(matches[0].strings[0].identifier)
+ $a
+ >>> print(matches[0].strings[0].instances)
+ [lmn]
+ >>> print(matches[0].strings[0].instances[0].offset)
+ 10
+ >>> print(matches[0].strings[0].instances[0].matched_length)
+ 3
%package help
Summary: Development documents and examples for yara-python
@@ -69,10 +85,18 @@ Here it goes a little example:
>>> print(matches[0].tags)
['bar']
>>> print(matches[0].strings)
- [(10L, '$a', 'lmn')]
+ [$a]
+ >>> print(matches[0].strings[0].identifier)
+ $a
+ >>> print(matches[0].strings[0].instances)
+ [lmn]
+ >>> print(matches[0].strings[0].instances[0].offset)
+ 10
+ >>> print(matches[0].strings[0].instances[0].matched_length)
+ 3
%prep
-%autosetup -n yara-python-4.3.0
+%autosetup -n yara-python-4.3.1
%build
%py3_build
@@ -112,5 +136,5 @@ mv %{buildroot}/doclist.lst .
%{_docdir}/*
%changelog
-* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 4.3.0-1
+* Sun Apr 23 2023 Python_Bot <Python_Bot@openeuler.org> - 4.3.1-1
- Package Spec generated