summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-23 05:02:21 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-23 05:02:21 +0000
commite6a280ef1268814dd1ac93b28ded78376406dc1b (patch)
tree0b786c76453e825d41f26b5539859769fac0cecd
parent2d946fa2a18a2b8c866e16463455c0863c835ef2 (diff)
automatic import of python-yara-pythonopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-yara-python.spec38
-rw-r--r--sources2
3 files changed, 33 insertions, 8 deletions
diff --git a/.gitignore b/.gitignore
index 95814da..1c7c4b2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/yara-python-4.3.0.tar.gz
+/yara-python-4.3.1.tar.gz
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
diff --git a/sources b/sources
index 52dbb79..ca5b4e9 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-bc938ba9b795438df3d9b235188dd2bb yara-python-4.3.0.tar.gz
+ea531e711f4f34cda69fc23c74e6e43c yara-python-4.3.1.tar.gz