From 5c2f4e478684c8b0b2907effc016d3e679efdcae Mon Sep 17 00:00:00 2001 From: Michal Ambroz Date: Mon, 15 Aug 2016 23:37:57 +0200 Subject: [PATCH 01/93] import of the package --- .gitignore | 1 + python-yara.spec | 152 +++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 154 insertions(+) create mode 100644 python-yara.spec diff --git a/.gitignore b/.gitignore index e69de29..72e6a6d 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/python-yara-3.5.0-9fd9fd2.tar.gz diff --git a/python-yara.spec b/python-yara.spec new file mode 100644 index 0000000..e1a2cdf --- /dev/null +++ b/python-yara.spec @@ -0,0 +1,152 @@ +%global srcname yara +%global gituser VirusTotal +%global gitname %{srcname}-python +%global commit 9fd9fd290872e36360e5e3839c49e21a908bf128 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) + +%if 0%{?fedora} || ( 0%{?rhel} && 0%{?rhel} >= 7 ) +%global with_python3 1 +%endif + +%if 0%{?rhel} && 0%{?rhel} <= 6 +%{!?__python2: %global __python2 /usr/bin/python2} +%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} +%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} +%endif + +%if 0%{?fedora} <= 21 + %{!?py2_build: %global py2_build %{__python2} setup.py build --executable="%{__python2} -s"} + %{!?py2_install: %global py2_install %{__python2} setup.py install -O1 --skip-build --root %{buildroot}} + %{!?py3_build: %global py3_build %{__python3} setup.py build --executable="%{__python3} -s"} + %{!?py3_install: %global py3_install %{__python3} setup.py install -O1 --skip-build --root %{buildroot}} +%endif + + +Name: python-%{srcname} +Version: 3.5.0 +Release: 4%{?dist} +Summary: Python binding for the YARA pattern matching tool +Group: Development/Libraries + +License: ASL 2.0 +URL: http://github.com/VirusTotal/yara-python/ +#URL: http://VirusTotal.github.io/yara/ +Source0: https://github.com/%{gituser}/%{gitname}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz + +BuildRequires: gcc +BuildRequires: pkgconfig(yara) +BuildRequires: libtool +BuildRequires: yara-devel +BuildRequires: python2 +BuildRequires: python2-devel +BuildRequires: python-libs +BuildRequires: python-nose +BuildRequires: python-setuptools + +%if 0%{?with_python3} +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-libs +BuildRequires: python%{python3_pkgversion}-nose +BuildRequires: python%{python3_pkgversion}-setuptools +%endif # if with_python3 + +#html doc generation +BuildRequires: python-sphinx + + +%description +Python binding for the YARA pattern matching tool. +YARA is a tool aimed at (but not limited to) helping malware researchers to +identify and classify malware samples. With YARA you can create descriptions +of malware families (or whatever you want to describe) based on textual or +binary patterns. Each description, a.k.a rule, consists of a set of strings +and a Boolean expression which determine its logic. + + + +%package -n python2-%{srcname} +Summary: Python2 binding for the YARA pattern matching tool +Group: Development/Libraries +%{?python_provide:%python_provide python2-%{srcname}} + +%description -n python2-%{srcname} +YARA for Python2 - This is a Python extension that gives access to YARA's +powerful features from Python scripts. + + + +%if 0%{?with_python3} +%package -n python%{python3_pkgversion}-%{srcname} +Summary: Python3 binding for the YARA pattern matching tool +Group: Development/Libraries +%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}} + + + +%description -n python%{python3_pkgversion}-%{srcname} +YARA for Python3 - This is a Python extension that gives access to YARA's +powerful features from Python scripts. +%endif # with_python3 + +%prep +%autosetup -n %{gitname}-%{commit} + + +%build +%py2_build "--dynamic-linking" + +%if 0%{?with_python3} +%py3_build "--dynamic-linking" +%endif # with_python3 + + + +%install +%py2_install + +%if 0%{?with_python3} +%py3_install +%endif # with_python3 + + +%check +NOSETESTS2=`ls /usr/bin/nosetests-2.* || ls /usr/bin/nosetests || which false ` +PYTHONPATH=%{buildroot}/%{python2_sitearch}/ $NOSETESTS2 -v + +#Tests for python3 always fail on testModuleData testcase +#Tests for python3 randomly fail on testCompare testcase +#reporting to upstream - https://github.com/VirusTotal/yara-python/issues/21 +#temporarily run the failing tests but ignore the results for those 2 +%if 0%{?with_python3} +NOSETESTS3=`ls /usr/bin/nosetests-3.* || which false ` +PYTHONPATH=%{buildroot}/%{python3_sitearch}/ $NOSETESTS3 -v --exclude="^testCompare$|^testModuleData$" +PYTHONPATH=%{buildroot}/%{python3_sitearch}/ $NOSETESTS3 -v ./tests.py:TestYara.testCompare ./tests.py:TestYara.testModuleData || true +%endif # with_python3 + + +%files -n python2-%{srcname} +%license LICENSE +%doc README.rst +%{python2_sitearch}/%{srcname}* + +%if 0%{?with_python3} +%files -n python%{python3_pkgversion}-%{srcname} +%license LICENSE +%doc README.rst +%{python3_sitearch}/%{srcname}* +%endif # with_python3 + + +%changelog +* Fri Aug 12 2016 Michal Ambroz - 3.5.0-4 +- remove unnecessary ldconfig +- count with the python3 test values except the 2 known for failing + +* Thu Aug 11 2016 Michal Ambroz - 3.5.0-3 +- change python3 naming to allow epel7 python34 packages + +* Thu Aug 04 2016 Michal Ambroz - 3.5.0-2 +- cosmetics + +* Thu Aug 04 2016 Michal Ambroz - 3.5.0-1 +- with yara 3.5.0 the python yara binding is separate library diff --git a/sources b/sources index e69de29..159023b 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +697e89cb6d780eb92e12866442a2a621 python-yara-3.5.0-9fd9fd2.tar.gz From 381b1bcdc1426d06cf2431692b90fc5c07c4e5a7 Mon Sep 17 00:00:00 2001 From: Michal Ambroz Date: Tue, 16 Aug 2016 00:53:15 +0200 Subject: [PATCH 02/93] testModuleData failing for arm platform --- python-yara.spec | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/python-yara.spec b/python-yara.spec index e1a2cdf..73ed68f 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -24,7 +24,7 @@ Name: python-%{srcname} Version: 3.5.0 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Python binding for the YARA pattern matching tool Group: Development/Libraries @@ -110,8 +110,10 @@ powerful features from Python scripts. %check +#Test for python-2.7 fails on testModuleData testcase on arm platform NOSETESTS2=`ls /usr/bin/nosetests-2.* || ls /usr/bin/nosetests || which false ` -PYTHONPATH=%{buildroot}/%{python2_sitearch}/ $NOSETESTS2 -v +PYTHONPATH=%{buildroot}/%{python2_sitearch}/ $NOSETESTS2 -v --exclude="^testModuleData$" +PYTHONPATH=%{buildroot}/%{python2_sitearch}/ $NOSETESTS2 -v ./tests.py:TestYara.testModuleData || true #Tests for python3 always fail on testModuleData testcase #Tests for python3 randomly fail on testCompare testcase @@ -138,6 +140,9 @@ PYTHONPATH=%{buildroot}/%{python3_sitearch}/ $NOSETESTS3 -v ./tests.py:TestYara. %changelog +* Mon Aug 16 2016 Michal Ambroz - 3.5.0-5 +- testModuleData is failing on arm platform even for python 2.7 + * Fri Aug 12 2016 Michal Ambroz - 3.5.0-4 - remove unnecessary ldconfig - count with the python3 test values except the 2 known for failing From ec553891e38bc0e0fc4c12a1c9a972371f6673c2 Mon Sep 17 00:00:00 2001 From: h3x2b Date: Tue, 15 Nov 2016 16:50:38 +0000 Subject: [PATCH 03/93] ignore architecture based testcases failures for s390 and ppc64 --- python-yara.spec | 57 ++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 50 insertions(+), 7 deletions(-) diff --git a/python-yara.spec b/python-yara.spec index 73ed68f..46b9055 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -24,7 +24,7 @@ Name: python-%{srcname} Version: 3.5.0 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Python binding for the YARA pattern matching tool Group: Development/Libraries @@ -110,19 +110,57 @@ powerful features from Python scripts. %check -#Test for python-2.7 fails on testModuleData testcase on arm platform -NOSETESTS2=`ls /usr/bin/nosetests-2.* || ls /usr/bin/nosetests || which false ` -PYTHONPATH=%{buildroot}/%{python2_sitearch}/ $NOSETESTS2 -v --exclude="^testModuleData$" -PYTHONPATH=%{buildroot}/%{python2_sitearch}/ $NOSETESTS2 -v ./tests.py:TestYara.testModuleData || true +# ============================================================================== +#python2 +EXCLUDE="" +#Test for python-2.7 fails on testModuleData testcase on arm platform +%ifarch arm +EXCLUDE='--exclude=^testModuleData$' +%endif + +#Yara is not prepared to run on s390 - more tests failing on s390 +#http://s390.koji.fedoraproject.org/kojifiles/work/tasks/9135/2399135/build.log +%ifarch s390 +EXCLUDE='--exclude=^testModuleData$|^testEntrypoint$|^testIn$|^testIntegerFunctions$' +%endif +%ifarch ppc64 +EXCLUDE='--exclude=^testModuleData$|^testEntrypoint$|^testIn$|^testIntegerFunctions$' +%endif + +#Find the NOSETEST binary or use false if not present +NOSETESTS2=`ls /usr/bin/nosetests-2.* || ls /usr/bin/nosetests || which false ` +PYTHONPATH=%{buildroot}/%{python2_sitearch}/ "$NOSETESTS2" -v "$EXCLUDE" + +#Run potentially ignored tests separately so we can at least see the results +PYTHONPATH=%{buildroot}/%{python2_sitearch}/ "$NOSETESTS2" -v ./tests.py:TestYara.testModuleData \ + ./tests.py:TestYara.testEntrypoint ./tests.py:TestYara.testIn ./tests.py:TestYara.testIntegerFunctions || true + +# ============================================================================== #Tests for python3 always fail on testModuleData testcase #Tests for python3 randomly fail on testCompare testcase #reporting to upstream - https://github.com/VirusTotal/yara-python/issues/21 #temporarily run the failing tests but ignore the results for those 2 %if 0%{?with_python3} +EXCLUDE='--exclude=^testCompare$|^testModuleData$' + +#Yara is not prepared to run on s390 - more tests failing on s390 +#http://s390.koji.fedoraproject.org/kojifiles/work/tasks/9135/2399135/build.log +%ifarch s390 +EXCLUDE='--exclude=^testCompare$|^testModuleData$|^testEntrypoint$|^testIn$|^testIntegerFunctions$' +%endif +%ifarch ppc64 +EXCLUDE='--exclude=^testCompare$|^testModuleData$|^testEntrypoint$|^testIn$|^testIntegerFunctions$' +%endif + +#Find the NOSETEST binary or use false if not present NOSETESTS3=`ls /usr/bin/nosetests-3.* || which false ` -PYTHONPATH=%{buildroot}/%{python3_sitearch}/ $NOSETESTS3 -v --exclude="^testCompare$|^testModuleData$" -PYTHONPATH=%{buildroot}/%{python3_sitearch}/ $NOSETESTS3 -v ./tests.py:TestYara.testCompare ./tests.py:TestYara.testModuleData || true +PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v "$EXCLUDE" + +#Run potentially ignored tests separately so we can at least see the results +PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v ./tests.py:TestYara.testCompare \ + ./tests.py:TestYara.testModuleData ./tests.py:TestYara.testEntrypoint \ + ./tests.py:TestYara.testIn ./tests.py:TestYara.testIntegerFunctions || true %endif # with_python3 @@ -140,8 +178,13 @@ PYTHONPATH=%{buildroot}/%{python3_sitearch}/ $NOSETESTS3 -v ./tests.py:TestYara. %changelog +* Mon Aug 16 2016 Michal Ambroz - 3.5.0-6 +- additionally testEntrypoint testIn testIntegerFunctions failing on s390/ppc64 +- exclude those tests for build of s390/ppc64 + * Mon Aug 16 2016 Michal Ambroz - 3.5.0-5 - testModuleData is failing on arm platform even for python 2.7 +- exclude this test for build of arm * Fri Aug 12 2016 Michal Ambroz - 3.5.0-4 - remove unnecessary ldconfig From 3afb8fffa56fc785750becde24fc861ab51815ae Mon Sep 17 00:00:00 2001 From: h3x2b Date: Tue, 15 Nov 2016 20:37:25 +0000 Subject: [PATCH 04/93] adding test exclusions also to armv7hl and ppc64le platforms --- python-yara.spec | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/python-yara.spec b/python-yara.spec index 46b9055..832821b 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -24,7 +24,7 @@ Name: python-%{srcname} Version: 3.5.0 -Release: 6%{?dist} +Release: 7%{?dist} Summary: Python binding for the YARA pattern matching tool Group: Development/Libraries @@ -115,16 +115,13 @@ powerful features from Python scripts. EXCLUDE="" #Test for python-2.7 fails on testModuleData testcase on arm platform -%ifarch arm +%ifarch arm armv7hl EXCLUDE='--exclude=^testModuleData$' %endif #Yara is not prepared to run on s390 - more tests failing on s390 #http://s390.koji.fedoraproject.org/kojifiles/work/tasks/9135/2399135/build.log -%ifarch s390 -EXCLUDE='--exclude=^testModuleData$|^testEntrypoint$|^testIn$|^testIntegerFunctions$' -%endif -%ifarch ppc64 +%ifarch s390 ppc64 ppc64le EXCLUDE='--exclude=^testModuleData$|^testEntrypoint$|^testIn$|^testIntegerFunctions$' %endif @@ -146,10 +143,7 @@ EXCLUDE='--exclude=^testCompare$|^testModuleData$' #Yara is not prepared to run on s390 - more tests failing on s390 #http://s390.koji.fedoraproject.org/kojifiles/work/tasks/9135/2399135/build.log -%ifarch s390 -EXCLUDE='--exclude=^testCompare$|^testModuleData$|^testEntrypoint$|^testIn$|^testIntegerFunctions$' -%endif -%ifarch ppc64 +%ifarch s390 ppc64 ppc64le EXCLUDE='--exclude=^testCompare$|^testModuleData$|^testEntrypoint$|^testIn$|^testIntegerFunctions$' %endif @@ -178,6 +172,9 @@ PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v ./tests.py:TestYar %changelog +* Mon Aug 16 2016 Michal Ambroz - 3.5.0-7 +- adding test exclusions also for armv7hl and ppc64le + * Mon Aug 16 2016 Michal Ambroz - 3.5.0-6 - additionally testEntrypoint testIn testIntegerFunctions failing on s390/ppc64 - exclude those tests for build of s390/ppc64 From 040dcc15cf7b6a11f3fd36821496a2042652fbc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20Hor=C3=A1k?= Date: Wed, 23 Nov 2016 13:38:02 +0100 Subject: [PATCH 05/93] - fix the arch lists --- python-yara.spec | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/python-yara.spec b/python-yara.spec index 832821b..184aee5 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -24,7 +24,7 @@ Name: python-%{srcname} Version: 3.5.0 -Release: 7%{?dist} +Release: 8%{?dist} Summary: Python binding for the YARA pattern matching tool Group: Development/Libraries @@ -115,13 +115,13 @@ powerful features from Python scripts. EXCLUDE="" #Test for python-2.7 fails on testModuleData testcase on arm platform -%ifarch arm armv7hl +%ifarch %{arm} EXCLUDE='--exclude=^testModuleData$' %endif #Yara is not prepared to run on s390 - more tests failing on s390 #http://s390.koji.fedoraproject.org/kojifiles/work/tasks/9135/2399135/build.log -%ifarch s390 ppc64 ppc64le +%ifarch s390 s390x %{power64} EXCLUDE='--exclude=^testModuleData$|^testEntrypoint$|^testIn$|^testIntegerFunctions$' %endif @@ -143,7 +143,7 @@ EXCLUDE='--exclude=^testCompare$|^testModuleData$' #Yara is not prepared to run on s390 - more tests failing on s390 #http://s390.koji.fedoraproject.org/kojifiles/work/tasks/9135/2399135/build.log -%ifarch s390 ppc64 ppc64le +%ifarch s390 s390x %{power64} EXCLUDE='--exclude=^testCompare$|^testModuleData$|^testEntrypoint$|^testIn$|^testIntegerFunctions$' %endif @@ -172,6 +172,9 @@ PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v ./tests.py:TestYar %changelog +* Wed Nov 23 2016 Dan Horák - 3.5.0-8 +- fix the arch lists + * Mon Aug 16 2016 Michal Ambroz - 3.5.0-7 - adding test exclusions also for armv7hl and ppc64le From b901d294d8e9de7ecfd7b9baa625a0beb9606595 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Mon, 19 Dec 2016 18:20:38 +0100 Subject: [PATCH 06/93] Rebuild for Python 3.6 --- python-yara.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-yara.spec b/python-yara.spec index 184aee5..5f266a2 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -24,7 +24,7 @@ Name: python-%{srcname} Version: 3.5.0 -Release: 8%{?dist} +Release: 9%{?dist} Summary: Python binding for the YARA pattern matching tool Group: Development/Libraries @@ -172,6 +172,9 @@ PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v ./tests.py:TestYar %changelog +* Mon Dec 19 2016 Miro Hrončok - 3.5.0-9 +- Rebuild for Python 3.6 + * Wed Nov 23 2016 Dan Horák - 3.5.0-8 - fix the arch lists From fe4c5d52debd7b18f0e4e923f130769da9e39b91 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 11 Feb 2017 10:59:29 +0000 Subject: [PATCH 07/93] - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild --- python-yara.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-yara.spec b/python-yara.spec index 5f266a2..8439f09 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -24,7 +24,7 @@ Name: python-%{srcname} Version: 3.5.0 -Release: 9%{?dist} +Release: 10%{?dist} Summary: Python binding for the YARA pattern matching tool Group: Development/Libraries @@ -172,6 +172,9 @@ PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v ./tests.py:TestYar %changelog +* Sat Feb 11 2017 Fedora Release Engineering - 3.5.0-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + * Mon Dec 19 2016 Miro Hrončok - 3.5.0-9 - Rebuild for Python 3.6 From 8aeabcab13f38be0595b2486ffa45321b2dfb9a7 Mon Sep 17 00:00:00 2001 From: Michal Ambroz Date: Tue, 18 Jul 2017 03:59:57 +0200 Subject: [PATCH 08/93] bump to version 3.6.3 --- .gitignore | 1 + python-yara.spec | 19 ++++++++++++++----- sources | 2 +- 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 72e6a6d..9f08e06 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /python-yara-3.5.0-9fd9fd2.tar.gz +/python-yara-3.6.3.tar.gz diff --git a/python-yara.spec b/python-yara.spec index 8439f09..e4aa92b 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -1,7 +1,8 @@ %global srcname yara %global gituser VirusTotal %global gitname %{srcname}-python -%global commit 9fd9fd290872e36360e5e3839c49e21a908bf128 +# Release 3.6.3 +%global commit 043835d4b6ce2ad444f2571cf87052bb765b2be7 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %if 0%{?fedora} || ( 0%{?rhel} && 0%{?rhel} >= 7 ) @@ -23,15 +24,17 @@ Name: python-%{srcname} -Version: 3.5.0 -Release: 10%{?dist} +Version: 3.6.3 +Release: 1%{?dist} Summary: Python binding for the YARA pattern matching tool Group: Development/Libraries License: ASL 2.0 URL: http://github.com/VirusTotal/yara-python/ #URL: http://VirusTotal.github.io/yara/ -Source0: https://github.com/%{gituser}/%{gitname}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz +#Source0: https://github.com/%{gituser}/%{gitname}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz +Source0: https://github.com/%{gituser}/%{gitname}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz + BuildRequires: gcc BuildRequires: pkgconfig(yara) @@ -68,6 +71,8 @@ and a Boolean expression which determine its logic. Summary: Python2 binding for the YARA pattern matching tool Group: Development/Libraries %{?python_provide:%python_provide python2-%{srcname}} +# Provide also the upstream original name yara-python + %description -n python2-%{srcname} YARA for Python2 - This is a Python extension that gives access to YARA's @@ -89,7 +94,8 @@ powerful features from Python scripts. %endif # with_python3 %prep -%autosetup -n %{gitname}-%{commit} +#autosetup -n %{gitname}-%{commit} +%autosetup -n %{gitname}-%{version} %build @@ -172,6 +178,9 @@ PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v ./tests.py:TestYar %changelog +* Mon Jul 17 2017 Michal Ambroz - 3.6.3-1 +- bump to upstream 3.6.3 release version + * Sat Feb 11 2017 Fedora Release Engineering - 3.5.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild diff --git a/sources b/sources index 159023b..198c3cd 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -697e89cb6d780eb92e12866442a2a621 python-yara-3.5.0-9fd9fd2.tar.gz +SHA512 (python-yara-3.6.3.tar.gz) = 22d69e1dad6ac709e9d1e1e5161b9afc0f9424f211b77ea615c304193d42be2823916d39bcd43a0189d862ff9af31bd80a0abd8e6336f039d4e1089fa2526e6a From 4dee5a87a9d6c0e1702206f5c72434d6a0d9ecf2 Mon Sep 17 00:00:00 2001 From: Michal Ambroz Date: Tue, 18 Jul 2017 04:06:22 +0200 Subject: [PATCH 09/93] cosmetics --- python-yara.spec | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/python-yara.spec b/python-yara.spec index e4aa92b..8c97dcd 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -25,7 +25,7 @@ Name: python-%{srcname} Version: 3.6.3 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Python binding for the YARA pattern matching tool Group: Development/Libraries @@ -178,6 +178,9 @@ PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v ./tests.py:TestYar %changelog +* Mon Jul 17 2017 Michal Ambroz - 3.6.3-2 +- fix bogus dates in the changelog + * Mon Jul 17 2017 Michal Ambroz - 3.6.3-1 - bump to upstream 3.6.3 release version @@ -190,14 +193,14 @@ PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v ./tests.py:TestYar * Wed Nov 23 2016 Dan Horák - 3.5.0-8 - fix the arch lists -* Mon Aug 16 2016 Michal Ambroz - 3.5.0-7 +* Tue Aug 16 2016 Michal Ambroz - 3.5.0-7 - adding test exclusions also for armv7hl and ppc64le -* Mon Aug 16 2016 Michal Ambroz - 3.5.0-6 +* Tue Aug 16 2016 Michal Ambroz - 3.5.0-6 - additionally testEntrypoint testIn testIntegerFunctions failing on s390/ppc64 - exclude those tests for build of s390/ppc64 -* Mon Aug 16 2016 Michal Ambroz - 3.5.0-5 +* Tue Aug 16 2016 Michal Ambroz - 3.5.0-5 - testModuleData is failing on arm platform even for python 2.7 - exclude this test for build of arm From 6e8f36775fa2d23e4ec3b4f5cfa64202466ee018 Mon Sep 17 00:00:00 2001 From: Michal Ambroz Date: Tue, 18 Jul 2017 14:52:45 +0000 Subject: [PATCH 10/93] omit testCompileFile for s390x architecture --- python-yara.spec | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/python-yara.spec b/python-yara.spec index 8c97dcd..89afa7b 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -125,10 +125,13 @@ EXCLUDE="" EXCLUDE='--exclude=^testModuleData$' %endif -#Yara is not prepared to run on s390 - more tests failing on s390 -#http://s390.koji.fedoraproject.org/kojifiles/work/tasks/9135/2399135/build.log +# Yara is not prepared to run on s390 - more tests failing on s390 +# http://s390.koji.fedoraproject.org/kojifiles/work/tasks/9135/2399135/build.log +# https://github.com/VirusTotal/yara-python/issues/25 +# 3.6.3 - testCompileFile started failing - https://kojipkgs.fedoraproject.org//work/tasks/9619/20589619/build.log +# https://github.com/VirusTotal/yara-python/issues/54 %ifarch s390 s390x %{power64} -EXCLUDE='--exclude=^testModuleData$|^testEntrypoint$|^testIn$|^testIntegerFunctions$' +EXCLUDE='--exclude=^testModuleData$|^testEntrypoint$|^testIn$|^testIntegerFunctions$|^testCompileFile$' %endif #Find the NOSETEST binary or use false if not present @@ -147,10 +150,13 @@ PYTHONPATH=%{buildroot}/%{python2_sitearch}/ "$NOSETESTS2" -v ./tests.py:TestYar %if 0%{?with_python3} EXCLUDE='--exclude=^testCompare$|^testModuleData$' -#Yara is not prepared to run on s390 - more tests failing on s390 -#http://s390.koji.fedoraproject.org/kojifiles/work/tasks/9135/2399135/build.log +# Yara is not prepared to run on s390 - more tests failing on s390 +# http://s390.koji.fedoraproject.org/kojifiles/work/tasks/9135/2399135/build.log +# https://github.com/VirusTotal/yara-python/issues/25 +# 3.6.3 - testCompileFile started failing - https://kojipkgs.fedoraproject.org//work/tasks/9619/20589619/build.log +# https://github.com/VirusTotal/yara-python/issues/54 %ifarch s390 s390x %{power64} -EXCLUDE='--exclude=^testCompare$|^testModuleData$|^testEntrypoint$|^testIn$|^testIntegerFunctions$' +EXCLUDE='--exclude=^testCompare$|^testModuleData$|^testEntrypoint$|^testIn$|^testIntegerFunctions$|^testCompileFile$' %endif #Find the NOSETEST binary or use false if not present @@ -180,6 +186,7 @@ PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v ./tests.py:TestYar %changelog * Mon Jul 17 2017 Michal Ambroz - 3.6.3-2 - fix bogus dates in the changelog +- omit failing testCompileFile test for s390/ppc64 * Mon Jul 17 2017 Michal Ambroz - 3.6.3-1 - bump to upstream 3.6.3 release version From 612613f57414af9e90baad5aa89b79f3b9541d04 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 27 Jul 2017 12:21:08 +0000 Subject: [PATCH 11/93] - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild --- python-yara.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-yara.spec b/python-yara.spec index 89afa7b..a2cf09f 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -25,7 +25,7 @@ Name: python-%{srcname} Version: 3.6.3 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Python binding for the YARA pattern matching tool Group: Development/Libraries @@ -184,6 +184,9 @@ PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v ./tests.py:TestYar %changelog +* Thu Jul 27 2017 Fedora Release Engineering - 3.6.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + * Mon Jul 17 2017 Michal Ambroz - 3.6.3-2 - fix bogus dates in the changelog - omit failing testCompileFile test for s390/ppc64 From 92ef00ed06718a4db72ddb888b6c2841a3126d95 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 3 Aug 2017 07:03:32 +0000 Subject: [PATCH 12/93] - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild --- python-yara.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-yara.spec b/python-yara.spec index a2cf09f..a59e114 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -25,7 +25,7 @@ Name: python-%{srcname} Version: 3.6.3 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Python binding for the YARA pattern matching tool Group: Development/Libraries @@ -184,6 +184,9 @@ PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v ./tests.py:TestYar %changelog +* Thu Aug 03 2017 Fedora Release Engineering - 3.6.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + * Thu Jul 27 2017 Fedora Release Engineering - 3.6.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild From 2f45b091673e41184619f258daf3cf2406f099df Mon Sep 17 00:00:00 2001 From: Michal Ambroz Date: Wed, 15 Nov 2017 19:57:04 +0000 Subject: [PATCH 13/93] bump to yara 3.7.0 release version (#1511921) --- .gitignore | 1 + python-yara.spec | 33 ++++++++++++++++++--------------- sources | 2 +- 3 files changed, 20 insertions(+), 16 deletions(-) diff --git a/.gitignore b/.gitignore index 9f08e06..27269c6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /python-yara-3.5.0-9fd9fd2.tar.gz /python-yara-3.6.3.tar.gz +/python-yara-3.7.0.tar.gz diff --git a/python-yara.spec b/python-yara.spec index a59e114..661cf0a 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -1,8 +1,8 @@ %global srcname yara %global gituser VirusTotal %global gitname %{srcname}-python -# Release 3.6.3 -%global commit 043835d4b6ce2ad444f2571cf87052bb765b2be7 +# Release 3.7.0 - 2017-11-10 +%global commit 71138553e7cfe7f96e7822898dd8331f3eacef4e %global shortcommit %(c=%{commit}; echo ${c:0:7}) %if 0%{?fedora} || ( 0%{?rhel} && 0%{?rhel} >= 7 ) @@ -24,14 +24,14 @@ Name: python-%{srcname} -Version: 3.6.3 -Release: 4%{?dist} +Version: 3.7.0 +Release: 1%{?dist} Summary: Python binding for the YARA pattern matching tool Group: Development/Libraries License: ASL 2.0 +# http://VirusTotal.github.io/yara/ URL: http://github.com/VirusTotal/yara-python/ -#URL: http://VirusTotal.github.io/yara/ #Source0: https://github.com/%{gituser}/%{gitname}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz Source0: https://github.com/%{gituser}/%{gitname}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz @@ -53,7 +53,7 @@ BuildRequires: python%{python3_pkgversion}-nose BuildRequires: python%{python3_pkgversion}-setuptools %endif # if with_python3 -#html doc generation +# html doc generation BuildRequires: python-sphinx @@ -120,7 +120,7 @@ powerful features from Python scripts. #python2 EXCLUDE="" -#Test for python-2.7 fails on testModuleData testcase on arm platform +# Test for python-2.7 fails on testModuleData testcase on arm platform %ifarch %{arm} EXCLUDE='--exclude=^testModuleData$' %endif @@ -134,19 +134,19 @@ EXCLUDE='--exclude=^testModuleData$' EXCLUDE='--exclude=^testModuleData$|^testEntrypoint$|^testIn$|^testIntegerFunctions$|^testCompileFile$' %endif -#Find the NOSETEST binary or use false if not present +# Find the NOSETEST binary or use false if not present NOSETESTS2=`ls /usr/bin/nosetests-2.* || ls /usr/bin/nosetests || which false ` PYTHONPATH=%{buildroot}/%{python2_sitearch}/ "$NOSETESTS2" -v "$EXCLUDE" -#Run potentially ignored tests separately so we can at least see the results +# Run potentially ignored tests separately so we can at least see the results PYTHONPATH=%{buildroot}/%{python2_sitearch}/ "$NOSETESTS2" -v ./tests.py:TestYara.testModuleData \ ./tests.py:TestYara.testEntrypoint ./tests.py:TestYara.testIn ./tests.py:TestYara.testIntegerFunctions || true # ============================================================================== -#Tests for python3 always fail on testModuleData testcase -#Tests for python3 randomly fail on testCompare testcase -#reporting to upstream - https://github.com/VirusTotal/yara-python/issues/21 -#temporarily run the failing tests but ignore the results for those 2 +# Tests for python3 always fail on testModuleData testcase +# Tests for python3 randomly fail on testCompare testcase +# reporting to upstream - https://github.com/VirusTotal/yara-python/issues/21 +# temporarily run the failing tests but ignore the results for those 2 %if 0%{?with_python3} EXCLUDE='--exclude=^testCompare$|^testModuleData$' @@ -159,11 +159,11 @@ EXCLUDE='--exclude=^testCompare$|^testModuleData$' EXCLUDE='--exclude=^testCompare$|^testModuleData$|^testEntrypoint$|^testIn$|^testIntegerFunctions$|^testCompileFile$' %endif -#Find the NOSETEST binary or use false if not present +# Find the NOSETEST binary or use false if not present NOSETESTS3=`ls /usr/bin/nosetests-3.* || which false ` PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v "$EXCLUDE" -#Run potentially ignored tests separately so we can at least see the results +# Run potentially ignored tests separately so we can at least see the results PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v ./tests.py:TestYara.testCompare \ ./tests.py:TestYara.testModuleData ./tests.py:TestYara.testEntrypoint \ ./tests.py:TestYara.testIn ./tests.py:TestYara.testIntegerFunctions || true @@ -184,6 +184,9 @@ PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v ./tests.py:TestYar %changelog +* Wed Nov 15 2017 Michal Ambroz - 3.7.0-1 +- bump to yara 3.7.0 release version (#1511921) + * Thu Aug 03 2017 Fedora Release Engineering - 3.6.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild diff --git a/sources b/sources index 198c3cd..674f59b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (python-yara-3.6.3.tar.gz) = 22d69e1dad6ac709e9d1e1e5161b9afc0f9424f211b77ea615c304193d42be2823916d39bcd43a0189d862ff9af31bd80a0abd8e6336f039d4e1089fa2526e6a +SHA512 (python-yara-3.7.0.tar.gz) = 96d43620787f3369843a3255c3dc6ec7e8dd8afedcb8a5414d964c9a30f4e91277156a2543dd9dc28474fc1cfdbedc90e46ed76c83481673fc2c39dd6dc97f73 From 7666c2752b8b28c171b412ea582560a8273f59e0 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 9 Feb 2018 11:47:34 +0000 Subject: [PATCH 14/93] - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-yara.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-yara.spec b/python-yara.spec index 661cf0a..94b7caf 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -25,7 +25,7 @@ Name: python-%{srcname} Version: 3.7.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Python binding for the YARA pattern matching tool Group: Development/Libraries @@ -184,6 +184,9 @@ PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v ./tests.py:TestYar %changelog +* Fri Feb 09 2018 Fedora Release Engineering - 3.7.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + * Wed Nov 15 2017 Michal Ambroz - 3.7.0-1 - bump to yara 3.7.0 release version (#1511921) From c4912b97e47edb72057a02b852e1e08c7cf07262 Mon Sep 17 00:00:00 2001 From: Iryna Shcherbina Date: Wed, 28 Feb 2018 06:07:57 +0100 Subject: [PATCH 15/93] Update Python 2 dependency declarations to new packaging standards --- python-yara.spec | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/python-yara.spec b/python-yara.spec index 94b7caf..26256fd 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -25,7 +25,7 @@ Name: python-%{srcname} Version: 3.7.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Python binding for the YARA pattern matching tool Group: Development/Libraries @@ -42,9 +42,9 @@ BuildRequires: libtool BuildRequires: yara-devel BuildRequires: python2 BuildRequires: python2-devel -BuildRequires: python-libs -BuildRequires: python-nose -BuildRequires: python-setuptools +BuildRequires: python2-libs +BuildRequires: python2-nose +BuildRequires: python2-setuptools %if 0%{?with_python3} BuildRequires: python%{python3_pkgversion}-devel @@ -54,7 +54,7 @@ BuildRequires: python%{python3_pkgversion}-setuptools %endif # if with_python3 # html doc generation -BuildRequires: python-sphinx +BuildRequires: python2-sphinx %description @@ -184,6 +184,10 @@ PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v ./tests.py:TestYar %changelog +* Wed Feb 28 2018 Iryna Shcherbina - 3.7.0-3 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) + * Fri Feb 09 2018 Fedora Release Engineering - 3.7.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild From c701474dbddfd236ca3b9323593b3b9e2551d5e1 Mon Sep 17 00:00:00 2001 From: Michal Ambroz Date: Thu, 15 Mar 2018 18:02:37 +0000 Subject: [PATCH 16/93] rebuild on supported platforms with the new yara 3.7.1 --- python-yara.spec | 61 ++++++++++++++++++++++++++++++++++-------------- 1 file changed, 44 insertions(+), 17 deletions(-) diff --git a/python-yara.spec b/python-yara.spec index 26256fd..fca886b 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -1,14 +1,25 @@ +Name: python-yara +Version: 3.7.0 +Summary: Python binding for the YARA pattern matching tool +Group: Development/Libraries +License: ASL 2.0 +URL: http://github.com/VirusTotal/yara-python/ +# http://VirusTotal.github.io/yara/ + + %global srcname yara %global gituser VirusTotal %global gitname %{srcname}-python -# Release 3.7.0 - 2017-11-10 %global commit 71138553e7cfe7f96e7822898dd8331f3eacef4e +%global gitdate 20171110 %global shortcommit %(c=%{commit}; echo ${c:0:7}) +# Build also the python3 package %if 0%{?fedora} || ( 0%{?rhel} && 0%{?rhel} >= 7 ) -%global with_python3 1 +%global with_python3 1 %endif +# Introduce the python macros on older platforms if needed %if 0%{?rhel} && 0%{?rhel} <= 6 %{!?__python2: %global __python2 /usr/bin/python2} %{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} @@ -22,19 +33,16 @@ %{!?py3_install: %global py3_install %{__python3} setup.py install -O1 --skip-build --root %{buildroot}} %endif +# Build source is github release=1 or git commit=0 +%global build_release 1 -Name: python-%{srcname} -Version: 3.7.0 -Release: 3%{?dist} -Summary: Python binding for the YARA pattern matching tool -Group: Development/Libraries - -License: ASL 2.0 -# http://VirusTotal.github.io/yara/ -URL: http://github.com/VirusTotal/yara-python/ -#Source0: https://github.com/%{gituser}/%{gitname}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz +%if 0%{?build_release} > 0 +Release: 4%{?dist} Source0: https://github.com/%{gituser}/%{gitname}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz - +%else +Release: 0.1.%{gitdate}git%{shortcommit}%{?dist} +Source0: https://github.com/%{gituser}/%{gitname}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz +%endif #Build_release BuildRequires: gcc BuildRequires: pkgconfig(yara) @@ -45,6 +53,8 @@ BuildRequires: python2-devel BuildRequires: python2-libs BuildRequires: python2-nose BuildRequires: python2-setuptools +# html doc generation +BuildRequires: python2-sphinx %if 0%{?with_python3} BuildRequires: python%{python3_pkgversion}-devel @@ -53,8 +63,6 @@ BuildRequires: python%{python3_pkgversion}-nose BuildRequires: python%{python3_pkgversion}-setuptools %endif # if with_python3 -# html doc generation -BuildRequires: python2-sphinx %description @@ -67,6 +75,7 @@ and a Boolean expression which determine its logic. +#==================================================================== %package -n python2-%{srcname} Summary: Python2 binding for the YARA pattern matching tool Group: Development/Libraries @@ -93,11 +102,21 @@ YARA for Python3 - This is a Python extension that gives access to YARA's powerful features from Python scripts. %endif # with_python3 + +#==================================================================== %prep -#autosetup -n %{gitname}-%{commit} +%if 0%{?build_release} > 0 +# Build from git release version %autosetup -n %{gitname}-%{version} +%else +# Build from git commit +%autosetup -n %{gitname}-%{commit} +%endif #build_release + + +#==================================================================== %build %py2_build "--dynamic-linking" @@ -107,6 +126,7 @@ powerful features from Python scripts. +#==================================================================== %install %py2_install @@ -115,8 +135,8 @@ powerful features from Python scripts. %endif # with_python3 +#==================================================================== %check -# ============================================================================== #python2 EXCLUDE="" @@ -170,6 +190,8 @@ PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v ./tests.py:TestYar %endif # with_python3 + +#==================================================================== %files -n python2-%{srcname} %license LICENSE %doc README.rst @@ -183,7 +205,12 @@ PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v ./tests.py:TestYar %endif # with_python3 + +#==================================================================== %changelog +* Thu Mar 15 2018 Michal Ambroz - 3.7.0-4 +- rebuild with yara 3.7.1 for supported platforms + * Wed Feb 28 2018 Iryna Shcherbina - 3.7.0-3 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) From 27fde41caf7261fdd97b617cd03ec671e796f8cc Mon Sep 17 00:00:00 2001 From: Michal Ambroz Date: Fri, 16 Mar 2018 00:52:58 +0000 Subject: [PATCH 17/93] fix dependencies for building the epel branch --- python-yara.spec | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/python-yara.spec b/python-yara.spec index fca886b..588be1f 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -37,7 +37,7 @@ URL: http://github.com/VirusTotal/yara-python/ %global build_release 1 %if 0%{?build_release} > 0 -Release: 4%{?dist} +Release: 5%{?dist} Source0: https://github.com/%{gituser}/%{gitname}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz %else Release: 0.1.%{gitdate}git%{shortcommit}%{?dist} @@ -50,7 +50,6 @@ BuildRequires: libtool BuildRequires: yara-devel BuildRequires: python2 BuildRequires: python2-devel -BuildRequires: python2-libs BuildRequires: python2-nose BuildRequires: python2-setuptools # html doc generation @@ -58,7 +57,6 @@ BuildRequires: python2-sphinx %if 0%{?with_python3} BuildRequires: python%{python3_pkgversion}-devel -BuildRequires: python%{python3_pkgversion}-libs BuildRequires: python%{python3_pkgversion}-nose BuildRequires: python%{python3_pkgversion}-setuptools %endif # if with_python3 @@ -208,8 +206,12 @@ PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v ./tests.py:TestYar #==================================================================== %changelog +* Fri Mar 16 2018 Michal Ambroz - 3.7.0-5 +- fix dependencies for building the epel packages + * Thu Mar 15 2018 Michal Ambroz - 3.7.0-4 - rebuild with yara 3.7.1 for supported platforms +- fix dependencies for building the epel packages * Wed Feb 28 2018 Iryna Shcherbina - 3.7.0-3 - Update Python 2 dependency declarations to new packaging standards From 29b5279b1b3b2606645dfab09bdccb30c87ba015 Mon Sep 17 00:00:00 2001 From: Michal Ambroz Date: Fri, 16 Mar 2018 01:39:37 +0000 Subject: [PATCH 18/93] fix for el6 --- python-yara.spec | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/python-yara.spec b/python-yara.spec index 588be1f..d3c72d8 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -17,6 +17,7 @@ URL: http://github.com/VirusTotal/yara-python/ # Build also the python3 package %if 0%{?fedora} || ( 0%{?rhel} && 0%{?rhel} >= 7 ) %global with_python3 1 +%global with_check 1 %endif # Introduce the python macros on older platforms if needed @@ -50,10 +51,12 @@ BuildRequires: libtool BuildRequires: yara-devel BuildRequires: python2 BuildRequires: python2-devel -BuildRequires: python2-nose BuildRequires: python2-setuptools # html doc generation BuildRequires: python2-sphinx +%if 0%{?with_check} +BuildRequires: python2-nose +%endif %if 0%{?with_python3} BuildRequires: python%{python3_pkgversion}-devel @@ -135,6 +138,7 @@ powerful features from Python scripts. #==================================================================== %check +%if 0%{?with_check} #python2 EXCLUDE="" @@ -187,6 +191,7 @@ PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v ./tests.py:TestYar ./tests.py:TestYara.testIn ./tests.py:TestYara.testIntegerFunctions || true %endif # with_python3 +%endif # with_check #==================================================================== @@ -207,7 +212,8 @@ PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v ./tests.py:TestYar #==================================================================== %changelog * Fri Mar 16 2018 Michal Ambroz - 3.7.0-5 -- fix dependencies for building the epel packages +- fix dependencies for building the epel7/epel6 packages + * Thu Mar 15 2018 Michal Ambroz - 3.7.0-4 - rebuild with yara 3.7.1 for supported platforms From 6e65c3c32220167ce0b8eaba69fa40f551763811 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Tue, 19 Jun 2018 11:24:59 +0200 Subject: [PATCH 19/93] Rebuilt for Python 3.7 --- python-yara.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/python-yara.spec b/python-yara.spec index d3c72d8..3c9f1e9 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -38,10 +38,10 @@ URL: http://github.com/VirusTotal/yara-python/ %global build_release 1 %if 0%{?build_release} > 0 -Release: 5%{?dist} +Release: 6%{?dist} Source0: https://github.com/%{gituser}/%{gitname}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz %else -Release: 0.1.%{gitdate}git%{shortcommit}%{?dist} +Release: 0.2.%{gitdate}git%{shortcommit}%{?dist} Source0: https://github.com/%{gituser}/%{gitname}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz %endif #Build_release @@ -211,6 +211,9 @@ PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v ./tests.py:TestYar #==================================================================== %changelog +* Tue Jun 19 2018 Miro Hrončok - 3.7.0-6 +- Rebuilt for Python 3.7 + * Fri Mar 16 2018 Michal Ambroz - 3.7.0-5 - fix dependencies for building the epel7/epel6 packages From ddc42ac9d9826dfff7a3f7dbfe1d4a2e21ff1154 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 14 Jul 2018 02:43:28 +0000 Subject: [PATCH 20/93] - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-yara.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/python-yara.spec b/python-yara.spec index 3c9f1e9..b5d936c 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -38,10 +38,10 @@ URL: http://github.com/VirusTotal/yara-python/ %global build_release 1 %if 0%{?build_release} > 0 -Release: 6%{?dist} +Release: 7%{?dist} Source0: https://github.com/%{gituser}/%{gitname}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz %else -Release: 0.2.%{gitdate}git%{shortcommit}%{?dist} +Release: 0.3.%{gitdate}git%{shortcommit}%{?dist} Source0: https://github.com/%{gituser}/%{gitname}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz %endif #Build_release @@ -211,6 +211,9 @@ PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v ./tests.py:TestYar #==================================================================== %changelog +* Sat Jul 14 2018 Fedora Release Engineering - 3.7.0-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + * Tue Jun 19 2018 Miro Hrončok - 3.7.0-6 - Rebuilt for Python 3.7 From 756bb1b56b8aa288ebcba1874e119fc666db6b5b Mon Sep 17 00:00:00 2001 From: Michal Ambroz Date: Mon, 27 Aug 2018 19:25:50 +0000 Subject: [PATCH 21/93] bump to 3.8.1 --- .gitignore | 1 + python-yara.spec | 18 +++++++++++------- sources | 2 +- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index 27269c6..6467b7f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /python-yara-3.5.0-9fd9fd2.tar.gz /python-yara-3.6.3.tar.gz /python-yara-3.7.0.tar.gz +/python-yara-3.8.1.tar.gz diff --git a/python-yara.spec b/python-yara.spec index d3c72d8..4264d4b 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -1,17 +1,19 @@ Name: python-yara -Version: 3.7.0 +Version: 3.8.1 +%global rel 1 Summary: Python binding for the YARA pattern matching tool Group: Development/Libraries License: ASL 2.0 URL: http://github.com/VirusTotal/yara-python/ # http://VirusTotal.github.io/yara/ +# https://github.com/VirusTotal/yara-python/releases - +%global rel 1 %global srcname yara %global gituser VirusTotal %global gitname %{srcname}-python -%global commit 71138553e7cfe7f96e7822898dd8331f3eacef4e -%global gitdate 20171110 +%global commit a73270276df017d660f438d5ff235bd5f3259bc8 +%global gitdate 20180816 %global shortcommit %(c=%{commit}; echo ${c:0:7}) # Build also the python3 package @@ -38,10 +40,10 @@ URL: http://github.com/VirusTotal/yara-python/ %global build_release 1 %if 0%{?build_release} > 0 -Release: 5%{?dist} +Release: %{rel}%{?dist} Source0: https://github.com/%{gituser}/%{gitname}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz %else -Release: 0.1.%{gitdate}git%{shortcommit}%{?dist} +Release: %{rel}.%{gitdate}git%{shortcommit}%{?dist} Source0: https://github.com/%{gituser}/%{gitname}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz %endif #Build_release @@ -211,10 +213,12 @@ PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v ./tests.py:TestYar #==================================================================== %changelog +* Mon Aug 27 2018 Michal Ambroz - 3.8.1-1 +- bump to 3.8.1 + * Fri Mar 16 2018 Michal Ambroz - 3.7.0-5 - fix dependencies for building the epel7/epel6 packages - * Thu Mar 15 2018 Michal Ambroz - 3.7.0-4 - rebuild with yara 3.7.1 for supported platforms - fix dependencies for building the epel packages diff --git a/sources b/sources index 674f59b..221fcbd 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (python-yara-3.7.0.tar.gz) = 96d43620787f3369843a3255c3dc6ec7e8dd8afedcb8a5414d964c9a30f4e91277156a2543dd9dc28474fc1cfdbedc90e46ed76c83481673fc2c39dd6dc97f73 +SHA512 (python-yara-3.8.1.tar.gz) = 5d52e2f374cf8d8a2b8afc794edaeded6a433fc184b285575bc53e8f98280e003ac2f9f2b9219c961cf2cffe82df343e74401412435ce8a8e7eff461148f7bf2 From 67dc563ab4c951144aefe1fa75110935fa88fa23 Mon Sep 17 00:00:00 2001 From: Michal Ambroz Date: Mon, 27 Aug 2018 21:02:50 +0000 Subject: [PATCH 22/93] rebuild with yara 3.8.1 override --- python-yara.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-yara.spec b/python-yara.spec index 6de1d44..0f99fef 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -1,6 +1,6 @@ Name: python-yara Version: 3.8.1 -%global rel 1 +%global rel 2 Summary: Python binding for the YARA pattern matching tool Group: Development/Libraries License: ASL 2.0 @@ -213,6 +213,9 @@ PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v ./tests.py:TestYar #==================================================================== %changelog +* Mon Aug 27 2018 Michal Ambroz - 3.8.1-2 +- rebuild with yara 3.8.1 override + * Mon Aug 27 2018 Michal Ambroz - 3.8.1-1 - bump to 3.8.1 From c31e9ecd5295d74f6f7dc90885c7ec263bb681ad Mon Sep 17 00:00:00 2001 From: Michal Ambroz Date: Mon, 27 Aug 2018 21:05:55 +0000 Subject: [PATCH 23/93] rebuild with yara 3.8.1 override --- python-yara.spec | 1 - 1 file changed, 1 deletion(-) diff --git a/python-yara.spec b/python-yara.spec index 0f99fef..65c7dfd 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -8,7 +8,6 @@ URL: http://github.com/VirusTotal/yara-python/ # http://VirusTotal.github.io/yara/ # https://github.com/VirusTotal/yara-python/releases -%global rel 1 %global srcname yara %global gituser VirusTotal %global gitname %{srcname}-python From 18f492bf0c6440ca615f53b6b834b8ab56c3be29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Fri, 12 Oct 2018 16:04:06 +0200 Subject: [PATCH 24/93] Python2 binary package has been removed --- python-yara.spec | 91 +++++------------------------------------------- 1 file changed, 8 insertions(+), 83 deletions(-) diff --git a/python-yara.spec b/python-yara.spec index 65c7dfd..255a02b 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -1,6 +1,6 @@ Name: python-yara Version: 3.8.1 -%global rel 2 +%global rel 3 Summary: Python binding for the YARA pattern matching tool Group: Development/Libraries License: ASL 2.0 @@ -17,32 +17,17 @@ URL: http://github.com/VirusTotal/yara-python/ # Build also the python3 package %if 0%{?fedora} || ( 0%{?rhel} && 0%{?rhel} >= 7 ) -%global with_python3 1 %global with_check 1 %endif -# Introduce the python macros on older platforms if needed -%if 0%{?rhel} && 0%{?rhel} <= 6 -%{!?__python2: %global __python2 /usr/bin/python2} -%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} -%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} -%endif - -%if 0%{?fedora} <= 21 - %{!?py2_build: %global py2_build %{__python2} setup.py build --executable="%{__python2} -s"} - %{!?py2_install: %global py2_install %{__python2} setup.py install -O1 --skip-build --root %{buildroot}} - %{!?py3_build: %global py3_build %{__python3} setup.py build --executable="%{__python3} -s"} - %{!?py3_install: %global py3_install %{__python3} setup.py install -O1 --skip-build --root %{buildroot}} -%endif - # Build source is github release=1 or git commit=0 %global build_release 1 %if 0%{?build_release} > 0 -Release: %{rel}%{?dist} +Release: %{rel}%{?dist}.1 Source0: https://github.com/%{gituser}/%{gitname}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz %else -Release: %{rel}.%{gitdate}git%{shortcommit}%{?dist} +Release: %{rel}.%{gitdate}git%{shortcommit}%{?dist}.1 Source0: https://github.com/%{gituser}/%{gitname}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz %endif #Build_release @@ -51,19 +36,12 @@ BuildRequires: pkgconfig(yara) BuildRequires: libtool BuildRequires: yara-devel BuildRequires: python2 -BuildRequires: python2-devel -BuildRequires: python2-setuptools # html doc generation -BuildRequires: python2-sphinx -%if 0%{?with_check} -BuildRequires: python2-nose -%endif +BuildRequires: python3-sphinx -%if 0%{?with_python3} BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-nose BuildRequires: python%{python3_pkgversion}-setuptools -%endif # if with_python3 @@ -78,20 +56,6 @@ and a Boolean expression which determine its logic. #==================================================================== -%package -n python2-%{srcname} -Summary: Python2 binding for the YARA pattern matching tool -Group: Development/Libraries -%{?python_provide:%python_provide python2-%{srcname}} -# Provide also the upstream original name yara-python - - -%description -n python2-%{srcname} -YARA for Python2 - This is a Python extension that gives access to YARA's -powerful features from Python scripts. - - - -%if 0%{?with_python3} %package -n python%{python3_pkgversion}-%{srcname} Summary: Python3 binding for the YARA pattern matching tool Group: Development/Libraries @@ -102,7 +66,6 @@ Group: Development/Libraries %description -n python%{python3_pkgversion}-%{srcname} YARA for Python3 - This is a Python extension that gives access to YARA's powerful features from Python scripts. -%endif # with_python3 #==================================================================== @@ -120,57 +83,23 @@ powerful features from Python scripts. #==================================================================== %build -%py2_build "--dynamic-linking" - -%if 0%{?with_python3} %py3_build "--dynamic-linking" -%endif # with_python3 #==================================================================== %install -%py2_install - -%if 0%{?with_python3} %py3_install -%endif # with_python3 #==================================================================== %check %if 0%{?with_check} -#python2 -EXCLUDE="" - -# Test for python-2.7 fails on testModuleData testcase on arm platform -%ifarch %{arm} -EXCLUDE='--exclude=^testModuleData$' -%endif - -# Yara is not prepared to run on s390 - more tests failing on s390 -# http://s390.koji.fedoraproject.org/kojifiles/work/tasks/9135/2399135/build.log -# https://github.com/VirusTotal/yara-python/issues/25 -# 3.6.3 - testCompileFile started failing - https://kojipkgs.fedoraproject.org//work/tasks/9619/20589619/build.log -# https://github.com/VirusTotal/yara-python/issues/54 -%ifarch s390 s390x %{power64} -EXCLUDE='--exclude=^testModuleData$|^testEntrypoint$|^testIn$|^testIntegerFunctions$|^testCompileFile$' -%endif - -# Find the NOSETEST binary or use false if not present -NOSETESTS2=`ls /usr/bin/nosetests-2.* || ls /usr/bin/nosetests || which false ` -PYTHONPATH=%{buildroot}/%{python2_sitearch}/ "$NOSETESTS2" -v "$EXCLUDE" - -# Run potentially ignored tests separately so we can at least see the results -PYTHONPATH=%{buildroot}/%{python2_sitearch}/ "$NOSETESTS2" -v ./tests.py:TestYara.testModuleData \ - ./tests.py:TestYara.testEntrypoint ./tests.py:TestYara.testIn ./tests.py:TestYara.testIntegerFunctions || true - # ============================================================================== # Tests for python3 always fail on testModuleData testcase # Tests for python3 randomly fail on testCompare testcase # reporting to upstream - https://github.com/VirusTotal/yara-python/issues/21 # temporarily run the failing tests but ignore the results for those 2 -%if 0%{?with_python3} EXCLUDE='--exclude=^testCompare$|^testModuleData$' # Yara is not prepared to run on s390 - more tests failing on s390 @@ -190,28 +119,24 @@ PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v "$EXCLUDE" PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v ./tests.py:TestYara.testCompare \ ./tests.py:TestYara.testModuleData ./tests.py:TestYara.testEntrypoint \ ./tests.py:TestYara.testIn ./tests.py:TestYara.testIntegerFunctions || true -%endif # with_python3 %endif # with_check #==================================================================== -%files -n python2-%{srcname} -%license LICENSE -%doc README.rst -%{python2_sitearch}/%{srcname}* - -%if 0%{?with_python3} %files -n python%{python3_pkgversion}-%{srcname} %license LICENSE %doc README.rst %{python3_sitearch}/%{srcname}* -%endif # with_python3 #==================================================================== %changelog +* Fri Oct 12 2018 Zbigniew Jędrzejewski-Szmek - 3.8.1-3 +- Python2 binary package has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + * Mon Aug 27 2018 Michal Ambroz - 3.8.1-2 - rebuild with yara 3.8.1 override From 72b2ba5a93967b5aeb9d928731aa4e7f3a620593 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Mon, 28 Jan 2019 20:18:19 +0100 Subject: [PATCH 25/93] Remove obsolete Group tag References: https://fedoraproject.org/wiki/Changes/Remove_Group_Tag --- python-yara.spec | 2 -- 1 file changed, 2 deletions(-) diff --git a/python-yara.spec b/python-yara.spec index 255a02b..bc08549 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -2,7 +2,6 @@ Name: python-yara Version: 3.8.1 %global rel 3 Summary: Python binding for the YARA pattern matching tool -Group: Development/Libraries License: ASL 2.0 URL: http://github.com/VirusTotal/yara-python/ # http://VirusTotal.github.io/yara/ @@ -58,7 +57,6 @@ and a Boolean expression which determine its logic. #==================================================================== %package -n python%{python3_pkgversion}-%{srcname} Summary: Python3 binding for the YARA pattern matching tool -Group: Development/Libraries %{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}} From 79c3738b74c9caa59f8e47508dab8bd681717abe Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 2 Feb 2019 10:10:13 +0000 Subject: [PATCH 26/93] - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-yara.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/python-yara.spec b/python-yara.spec index bc08549..732e260 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -23,10 +23,10 @@ URL: http://github.com/VirusTotal/yara-python/ %global build_release 1 %if 0%{?build_release} > 0 -Release: %{rel}%{?dist}.1 +Release: %{rel}%{?dist}.2 Source0: https://github.com/%{gituser}/%{gitname}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz %else -Release: %{rel}.%{gitdate}git%{shortcommit}%{?dist}.1 +Release: %{rel}.%{gitdate}git%{shortcommit}%{?dist}.2 Source0: https://github.com/%{gituser}/%{gitname}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz %endif #Build_release @@ -131,6 +131,9 @@ PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v ./tests.py:TestYar #==================================================================== %changelog +* Sat Feb 02 2019 Fedora Release Engineering - 3.8.1-3.2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + * Fri Oct 12 2018 Zbigniew Jędrzejewski-Szmek - 3.8.1-3 - Python2 binary package has been removed See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal From 926f10ec55135719e3f7532e31e98f1cbec331a3 Mon Sep 17 00:00:00 2001 From: rpmbuild Date: Mon, 18 Mar 2019 19:44:04 +0000 Subject: [PATCH 27/93] bump to 3.9.0 --- .gitignore | 1 + python-yara.spec | 24 ++++++++++++++---------- sources | 2 +- 3 files changed, 16 insertions(+), 11 deletions(-) diff --git a/.gitignore b/.gitignore index 6467b7f..aa1ccca 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /python-yara-3.6.3.tar.gz /python-yara-3.7.0.tar.gz /python-yara-3.8.1.tar.gz +/python-yara-3.9.0.tar.gz diff --git a/python-yara.spec b/python-yara.spec index 732e260..ac86ee4 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -1,6 +1,6 @@ Name: python-yara -Version: 3.8.1 -%global rel 3 +Version: 3.9.0 +%global rel 1 Summary: Python binding for the YARA pattern matching tool License: ASL 2.0 URL: http://github.com/VirusTotal/yara-python/ @@ -10,8 +10,8 @@ URL: http://github.com/VirusTotal/yara-python/ %global srcname yara %global gituser VirusTotal %global gitname %{srcname}-python -%global commit a73270276df017d660f438d5ff235bd5f3259bc8 -%global gitdate 20180816 +%global commit 63ac2417a918692be6d5bd659fbfd39564396ec3 +%global gitdate 20190222 %global shortcommit %(c=%{commit}; echo ${c:0:7}) # Build also the python3 package @@ -23,10 +23,10 @@ URL: http://github.com/VirusTotal/yara-python/ %global build_release 1 %if 0%{?build_release} > 0 -Release: %{rel}%{?dist}.2 +Release: %{rel}%{?dist} Source0: https://github.com/%{gituser}/%{gitname}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz %else -Release: %{rel}.%{gitdate}git%{shortcommit}%{?dist}.2 +Release: %{rel}.%{gitdate}git%{shortcommit}%{?dist} Source0: https://github.com/%{gituser}/%{gitname}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz %endif #Build_release @@ -94,11 +94,12 @@ powerful features from Python scripts. %check %if 0%{?with_check} # ============================================================================== -# Tests for python3 always fail on testModuleData testcase -# Tests for python3 randomly fail on testCompare testcase -# reporting to upstream - https://github.com/VirusTotal/yara-python/issues/21 +# Tests for python3 used to always fail on testModuleData testcase +# Tests for python3 used to randomly fail on testCompare testcase +# reported to upstream - https://github.com/VirusTotal/yara-python/issues/21 # temporarily run the failing tests but ignore the results for those 2 -EXCLUDE='--exclude=^testCompare$|^testModuleData$' +# EXCLUDE='--exclude=^testCompare$|^testModuleData$' +EXCLUDE='--exclude=^nothing$' # Yara is not prepared to run on s390 - more tests failing on s390 # http://s390.koji.fedoraproject.org/kojifiles/work/tasks/9135/2399135/build.log @@ -131,6 +132,9 @@ PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v ./tests.py:TestYar #==================================================================== %changelog +* Mon Mar 18 2019 Michal Ambroz - 3.9.0-1 +- bump to 3.9.0 + * Sat Feb 02 2019 Fedora Release Engineering - 3.8.1-3.2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild diff --git a/sources b/sources index 221fcbd..e9be353 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (python-yara-3.8.1.tar.gz) = 5d52e2f374cf8d8a2b8afc794edaeded6a433fc184b285575bc53e8f98280e003ac2f9f2b9219c961cf2cffe82df343e74401412435ce8a8e7eff461148f7bf2 +SHA512 (python-yara-3.9.0.tar.gz) = 3871cb457f29b3149ed4656abfb1cef40a42bbce09f0480b24dbe0fddde17560037303702f3ae74fed39773470859dfdd0e69cd9f8e4dc8a1e54a4dde9239bae From f57433cc926a39f3c38964cbcbb2134856496088 Mon Sep 17 00:00:00 2001 From: rpmbuild Date: Mon, 18 Mar 2019 19:49:19 +0000 Subject: [PATCH 28/93] python3-sphinx for 31 --- python-yara.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/python-yara.spec b/python-yara.spec index ac86ee4..e6d2d67 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -36,7 +36,11 @@ BuildRequires: libtool BuildRequires: yara-devel BuildRequires: python2 # html doc generation +%if 0%{?rhel} || 0%{?fedora} < 31 +BuildRequires: python2-sphinx +%else BuildRequires: python3-sphinx +%endif BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-nose @@ -194,7 +198,7 @@ PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v ./tests.py:TestYar - fix the arch lists * Tue Aug 16 2016 Michal Ambroz - 3.5.0-7 -- adding test exclusions also for armv7hl and ppc64le +- adding test exclusions also for armv7hl and ppc64le * Tue Aug 16 2016 Michal Ambroz - 3.5.0-6 - additionally testEntrypoint testIn testIntegerFunctions failing on s390/ppc64 From 09ce81e2bdf1f878a0360cacc65be1ec99f4fc9c Mon Sep 17 00:00:00 2001 From: rpmbuild Date: Mon, 18 Mar 2019 23:20:37 +0000 Subject: [PATCH 29/93] exclude testModuleData on the armv7hl architecture --- python-yara.spec | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/python-yara.spec b/python-yara.spec index e6d2d67..18f0a38 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -103,6 +103,7 @@ powerful features from Python scripts. # reported to upstream - https://github.com/VirusTotal/yara-python/issues/21 # temporarily run the failing tests but ignore the results for those 2 # EXCLUDE='--exclude=^testCompare$|^testModuleData$' +# seems to be fixed in 3.9.0 EXCLUDE='--exclude=^nothing$' # Yara is not prepared to run on s390 - more tests failing on s390 @@ -110,10 +111,18 @@ EXCLUDE='--exclude=^nothing$' # https://github.com/VirusTotal/yara-python/issues/25 # 3.6.3 - testCompileFile started failing - https://kojipkgs.fedoraproject.org//work/tasks/9619/20589619/build.log # https://github.com/VirusTotal/yara-python/issues/54 -%ifarch s390 s390x %{power64} -EXCLUDE='--exclude=^testCompare$|^testModuleData$|^testEntrypoint$|^testIn$|^testIntegerFunctions$|^testCompileFile$' +# seems to be fixed in 3.9.0 +%ifarch s390 s390x %{power64} +# EXCLUDE='--exclude=^testCompare$|^testModuleData$|^testEntrypoint$|^testIn$|^testIntegerFunctions$|^testCompileFile$' +EXCLUDE='--exclude=^nothing$' %endif +# 3.9.0 - testModuleData is always failing for architecture armv7hl +%ifarch armv7hl +EXCLUDE='--exclude=^testModuleData$' +%endif + + # Find the NOSETEST binary or use false if not present NOSETESTS3=`ls /usr/bin/nosetests-3.* || which false ` PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v "$EXCLUDE" @@ -121,7 +130,8 @@ PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v "$EXCLUDE" # Run potentially ignored tests separately so we can at least see the results PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v ./tests.py:TestYara.testCompare \ ./tests.py:TestYara.testModuleData ./tests.py:TestYara.testEntrypoint \ - ./tests.py:TestYara.testIn ./tests.py:TestYara.testIntegerFunctions || true + ./tests.py:TestYara.testIn ./tests.py:TestYara.testIntegerFunctions \ + ./tests.py:TestYara.testCompileFile || true %endif # with_check From 39fc6263389b87ea6b6f705f4d14ff184d7362fe Mon Sep 17 00:00:00 2001 From: rpmbuild Date: Fri, 22 Mar 2019 13:37:26 +0000 Subject: [PATCH 30/93] change sphinx dependency to be based on the file /usr/bin/sphinx-build --- python-yara.spec | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/python-yara.spec b/python-yara.spec index 18f0a38..c63c01d 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -1,6 +1,6 @@ Name: python-yara Version: 3.9.0 -%global rel 1 +%global rel 2 Summary: Python binding for the YARA pattern matching tool License: ASL 2.0 URL: http://github.com/VirusTotal/yara-python/ @@ -36,11 +36,7 @@ BuildRequires: libtool BuildRequires: yara-devel BuildRequires: python2 # html doc generation -%if 0%{?rhel} || 0%{?fedora} < 31 -BuildRequires: python2-sphinx -%else -BuildRequires: python3-sphinx -%endif +BuildRequires: /usr/bin/sphinx-build BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-nose @@ -146,6 +142,9 @@ PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v ./tests.py:TestYar #==================================================================== %changelog +* Fri Mar 22 2019 Michal Ambroz - 3.9.0-2 +- change dependency to sphinx based on the /usr/bin/sphinx-build + * Mon Mar 18 2019 Michal Ambroz - 3.9.0-1 - bump to 3.9.0 From e57d767dbbf28d2f3e9a622c19afee7a933257a3 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 26 Jul 2019 17:13:01 +0000 Subject: [PATCH 31/93] - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-yara.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/python-yara.spec b/python-yara.spec index c63c01d..099bf11 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -23,10 +23,10 @@ URL: http://github.com/VirusTotal/yara-python/ %global build_release 1 %if 0%{?build_release} > 0 -Release: %{rel}%{?dist} +Release: %{rel}%{?dist}.1 Source0: https://github.com/%{gituser}/%{gitname}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz %else -Release: %{rel}.%{gitdate}git%{shortcommit}%{?dist} +Release: %{rel}.%{gitdate}git%{shortcommit}%{?dist}.1 Source0: https://github.com/%{gituser}/%{gitname}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz %endif #Build_release @@ -142,6 +142,9 @@ PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v ./tests.py:TestYar #==================================================================== %changelog +* Fri Jul 26 2019 Fedora Release Engineering - 3.9.0-2.1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + * Fri Mar 22 2019 Michal Ambroz - 3.9.0-2 - change dependency to sphinx based on the /usr/bin/sphinx-build From d8f08508f6c792323a2bab634c2072cceafc7725 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Mon, 19 Aug 2019 11:02:56 +0200 Subject: [PATCH 32/93] Rebuilt for Python 3.8 --- python-yara.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/python-yara.spec b/python-yara.spec index 099bf11..6ab9fd3 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -23,10 +23,10 @@ URL: http://github.com/VirusTotal/yara-python/ %global build_release 1 %if 0%{?build_release} > 0 -Release: %{rel}%{?dist}.1 +Release: %{rel}%{?dist}.2 Source0: https://github.com/%{gituser}/%{gitname}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz %else -Release: %{rel}.%{gitdate}git%{shortcommit}%{?dist}.1 +Release: %{rel}.%{gitdate}git%{shortcommit}%{?dist}.2 Source0: https://github.com/%{gituser}/%{gitname}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz %endif #Build_release @@ -142,6 +142,9 @@ PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v ./tests.py:TestYar #==================================================================== %changelog +* Mon Aug 19 2019 Miro Hrončok - 3.9.0-2.2 +- Rebuilt for Python 3.8 + * Fri Jul 26 2019 Fedora Release Engineering - 3.9.0-2.1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild From c1ce4c268728b94ae6e379c96b2a99ee5d657fb6 Mon Sep 17 00:00:00 2001 From: rpmbuild Date: Mon, 14 Oct 2019 14:24:20 +0000 Subject: [PATCH 33/93] bump the python binding for yara to 3.11.0 --- .gitignore | 1 + python-yara.spec | 70 ++++++++++++++++++++++++++++++++++++++---------- sources | 2 +- 3 files changed, 58 insertions(+), 15 deletions(-) diff --git a/.gitignore b/.gitignore index aa1ccca..2eb7876 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /python-yara-3.7.0.tar.gz /python-yara-3.8.1.tar.gz /python-yara-3.9.0.tar.gz +/python-yara-3.11.0.tar.gz diff --git a/python-yara.spec b/python-yara.spec index c63c01d..2d6f5c7 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -1,6 +1,6 @@ Name: python-yara -Version: 3.9.0 -%global rel 2 +Version: 3.11.0 +%global rel 1 Summary: Python binding for the YARA pattern matching tool License: ASL 2.0 URL: http://github.com/VirusTotal/yara-python/ @@ -14,11 +14,29 @@ URL: http://github.com/VirusTotal/yara-python/ %global gitdate 20190222 %global shortcommit %(c=%{commit}; echo ${c:0:7}) -# Build also the python3 package + +%global common_description %{expand: +Python binding for the YARA pattern matching tool. +YARA is a tool aimed at (but not limited to) helping malware researchers to +identify and classify malware samples. With YARA you can create descriptions +of malware families (or whatever you want to describe) based on textual or +binary patterns. Each description, a.k.a rule, consists of a set of strings +and a Boolean expression which determine its logic.} + +# Do the check during build %if 0%{?fedora} || ( 0%{?rhel} && 0%{?rhel} >= 7 ) %global with_check 1 %endif +%if ( 0%{?fedora} && 0%{?fedora} >= 30 ) || ( 0%{?rhel} && 0%{?rhel} >= 8 ) + # by default build without the python2 support on systems f30+ or rhel8+ +%bcond_with python2 +%else + # build with the python2 support on system up to f29 and/or rhel7 +%bcond_without python2 +%endif + + # Build source is github release=1 or git commit=0 %global build_release 1 @@ -33,8 +51,7 @@ Source0: https://github.com/%{gituser}/%{gitname}/archive/%{commit}/%{nam BuildRequires: gcc BuildRequires: pkgconfig(yara) BuildRequires: libtool -BuildRequires: yara-devel -BuildRequires: python2 +BuildRequires: yara-devel >= %{version} # html doc generation BuildRequires: /usr/bin/sphinx-build @@ -43,14 +60,15 @@ BuildRequires: python%{python3_pkgversion}-nose BuildRequires: python%{python3_pkgversion}-setuptools +%if 0%{?with_python2} > 0 +BuildRequires: python2 +BuildRequires: python2-devel +BuildRequires: python2-setuptools +%endif + %description -Python binding for the YARA pattern matching tool. -YARA is a tool aimed at (but not limited to) helping malware researchers to -identify and classify malware samples. With YARA you can create descriptions -of malware families (or whatever you want to describe) based on textual or -binary patterns. Each description, a.k.a rule, consists of a set of strings -and a Boolean expression which determine its logic. +%{common_description} @@ -62,9 +80,17 @@ Summary: Python3 binding for the YARA pattern matching tool %description -n python%{python3_pkgversion}-%{srcname} -YARA for Python3 - This is a Python extension that gives access to YARA's -powerful features from Python scripts. +%{common_description} +%if 0%{?with_python2} > 0 +%package -n python2-%{srcname} +Summary: Python2 binding for the YARA pattern matching tool +%{?python_provide:%python_provide python2-%{srcname}} + + +%description -n python2-%{srcname} +%{common_description} +%endif #==================================================================== %prep @@ -81,12 +107,20 @@ powerful features from Python scripts. #==================================================================== %build +%if 0%{?with_python2} > 0 +%py2_build "--dynamic-linking" +%endif + %py3_build "--dynamic-linking" #==================================================================== %install +%if 0%{?with_python2} > 0 +%py2_install +%endif + %py3_install @@ -138,10 +172,18 @@ PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v ./tests.py:TestYar %doc README.rst %{python3_sitearch}/%{srcname}* - +%if 0%{?with_python2} > 0 +%files -n python2-%{srcname} +%license LICENSE +%doc README.rst +%{python2_sitearch}/%{srcname}* +%endif #==================================================================== %changelog +* Mon Oct 14 2019 Michal Ambroz - 3.11.0-1 +- bump to 3.11.0, omit py2 for f30+ and epel8+ + * Fri Mar 22 2019 Michal Ambroz - 3.9.0-2 - change dependency to sphinx based on the /usr/bin/sphinx-build diff --git a/sources b/sources index e9be353..2647b91 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (python-yara-3.9.0.tar.gz) = 3871cb457f29b3149ed4656abfb1cef40a42bbce09f0480b24dbe0fddde17560037303702f3ae74fed39773470859dfdd0e69cd9f8e4dc8a1e54a4dde9239bae +SHA512 (python-yara-3.11.0.tar.gz) = 0c8e6cbe51aa858c6d56b95c88bd450016924008b57b4910ed8edfb7bba4d7bfc18736844817978f74e72bed6765c484f275de4e7a53ec85048fb01713b6e959 From a8a00a4e06513f49d57b5094d87bfedc480af0ef Mon Sep 17 00:00:00 2001 From: rpmbuild Date: Mon, 14 Oct 2019 14:28:34 +0000 Subject: [PATCH 34/93] cosmetics - remove mixedspaces --- python-yara.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-yara.spec b/python-yara.spec index 7bbb0af..511c4c1 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -142,7 +142,7 @@ EXCLUDE='--exclude=^nothing$' # 3.6.3 - testCompileFile started failing - https://kojipkgs.fedoraproject.org//work/tasks/9619/20589619/build.log # https://github.com/VirusTotal/yara-python/issues/54 # seems to be fixed in 3.9.0 -%ifarch s390 s390x %{power64} +%ifarch s390 s390x %{power64} # EXCLUDE='--exclude=^testCompare$|^testModuleData$|^testEntrypoint$|^testIn$|^testIntegerFunctions$|^testCompileFile$' EXCLUDE='--exclude=^nothing$' %endif From 9d2e23c15e5b27ef86e2fef31bffa306e32b5196 Mon Sep 17 00:00:00 2001 From: rpmbuild Date: Mon, 14 Oct 2019 17:23:05 +0000 Subject: [PATCH 35/93] fix the release version --- python-yara.spec | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/python-yara.spec b/python-yara.spec index 511c4c1..4834969 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -1,6 +1,6 @@ Name: python-yara Version: 3.11.0 -%global rel 1 +%global baserelease 1 Summary: Python binding for the YARA pattern matching tool License: ASL 2.0 URL: http://github.com/VirusTotal/yara-python/ @@ -37,14 +37,14 @@ and a Boolean expression which determine its logic.} %endif -# Build source is github release=1 or git commit=0 +# Build source is versioned github release=1 or unversioned git commit=0 %global build_release 1 %if 0%{?build_release} > 0 -Release: %{rel}%{?dist}.2 +Release: %{baserelease}%{?dist} Source0: https://github.com/%{gituser}/%{gitname}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz %else -Release: %{rel}.%{gitdate}git%{shortcommit}%{?dist}.2 +Release: %{baserelease}.%{gitdate}git%{shortcommit}%{?dist} Source0: https://github.com/%{gituser}/%{gitname}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz %endif #Build_release @@ -181,6 +181,9 @@ PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v ./tests.py:TestYar #==================================================================== %changelog +* Mon Oct 14 2019 Michal Ambroz - 3.11.0-2 +- fix the release number + * Mon Oct 14 2019 Michal Ambroz - 3.11.0-1 - bump to 3.11.0, omit py2 for f30+ and epel8+ From 32993e661264711bf3fd20a3239007e159b5e4fc Mon Sep 17 00:00:00 2001 From: rpmbuild Date: Mon, 14 Oct 2019 17:33:04 +0000 Subject: [PATCH 36/93] fix release --- python-yara.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-yara.spec b/python-yara.spec index 4834969..78b85e1 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -1,6 +1,6 @@ Name: python-yara Version: 3.11.0 -%global baserelease 1 +%global baserelease 2 Summary: Python binding for the YARA pattern matching tool License: ASL 2.0 URL: http://github.com/VirusTotal/yara-python/ From 72b1474c0efd1565db98f6cb4f6633c90aa482db Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 30 Jan 2020 16:20:26 +0000 Subject: [PATCH 37/93] - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-yara.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-yara.spec b/python-yara.spec index 78b85e1..d241fc5 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -1,6 +1,6 @@ Name: python-yara Version: 3.11.0 -%global baserelease 2 +%global baserelease 3 Summary: Python binding for the YARA pattern matching tool License: ASL 2.0 URL: http://github.com/VirusTotal/yara-python/ @@ -181,6 +181,9 @@ PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v ./tests.py:TestYar #==================================================================== %changelog +* Thu Jan 30 2020 Fedora Release Engineering - 3.11.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + * Mon Oct 14 2019 Michal Ambroz - 3.11.0-2 - fix the release number From 17939ba16e9345da74779c7561f834932b63f56a Mon Sep 17 00:00:00 2001 From: rpmbuild Date: Tue, 12 May 2020 13:31:57 +0000 Subject: [PATCH 38/93] bump to version 4.0.0 --- .gitignore | 1 + python-yara.spec | 14 +++++++++----- sources | 2 +- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 2eb7876..f50ab1a 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /python-yara-3.8.1.tar.gz /python-yara-3.9.0.tar.gz /python-yara-3.11.0.tar.gz +/python-yara-4.0.0.tar.gz diff --git a/python-yara.spec b/python-yara.spec index d241fc5..5b10d3b 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -1,6 +1,6 @@ Name: python-yara -Version: 3.11.0 -%global baserelease 3 +Version: 4.0.0 +%global baserelease 1 Summary: Python binding for the YARA pattern matching tool License: ASL 2.0 URL: http://github.com/VirusTotal/yara-python/ @@ -46,7 +46,7 @@ Source0: https://github.com/%{gituser}/%{gitname}/archive/v%{version}.tar %else Release: %{baserelease}.%{gitdate}git%{shortcommit}%{?dist} Source0: https://github.com/%{gituser}/%{gitname}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz -%endif #Build_release +%endif BuildRequires: gcc BuildRequires: pkgconfig(yara) @@ -101,7 +101,7 @@ Summary: Python2 binding for the YARA pattern matching tool %else # Build from git commit %autosetup -n %{gitname}-%{commit} -%endif #build_release +%endif @@ -163,7 +163,8 @@ PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v ./tests.py:TestYar ./tests.py:TestYara.testIn ./tests.py:TestYara.testIntegerFunctions \ ./tests.py:TestYara.testCompileFile || true -%endif # with_check +# with_check +%endif #==================================================================== @@ -181,6 +182,9 @@ PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v ./tests.py:TestYar #==================================================================== %changelog +* Tue May 12 2020 Michal Ambroz - 4.0.0-1 +- bump to version 4.0.0 + * Thu Jan 30 2020 Fedora Release Engineering - 3.11.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild diff --git a/sources b/sources index 2647b91..438d1fd 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (python-yara-3.11.0.tar.gz) = 0c8e6cbe51aa858c6d56b95c88bd450016924008b57b4910ed8edfb7bba4d7bfc18736844817978f74e72bed6765c484f275de4e7a53ec85048fb01713b6e959 +SHA512 (python-yara-4.0.0.tar.gz) = 9210793d305e34313494e3d867fc3a729814401208206a0f6f7fd2bfdcb6482a8e19e64788c35c149cd5a65cdc5357d8fa1e020fae6ac8c2704fa55e6c2cb989 From 63f4bc6240160a3eaa754b103928e23534d56ac1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Tue, 26 May 2020 03:47:10 +0200 Subject: [PATCH 39/93] Rebuilt for Python 3.9 --- python-yara.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-yara.spec b/python-yara.spec index 5b10d3b..71fbf9b 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -1,6 +1,6 @@ Name: python-yara Version: 4.0.0 -%global baserelease 1 +%global baserelease 2 Summary: Python binding for the YARA pattern matching tool License: ASL 2.0 URL: http://github.com/VirusTotal/yara-python/ @@ -182,6 +182,9 @@ PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v ./tests.py:TestYar #==================================================================== %changelog +* Tue May 26 2020 Miro Hrončok - 4.0.0-2 +- Rebuilt for Python 3.9 + * Tue May 12 2020 Michal Ambroz - 4.0.0-1 - bump to version 4.0.0 From e7a73a502cdb9ad7ca5c9ed0687fdd16e1ed9987 Mon Sep 17 00:00:00 2001 From: rpmbuild Date: Fri, 5 Jun 2020 23:02:48 +0000 Subject: [PATCH 40/93] bump to bugfix release 4.0.1 --- .gitignore | 1 + python-yara.spec | 5 ++++- sources | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index f50ab1a..c8dcd6e 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ /python-yara-3.9.0.tar.gz /python-yara-3.11.0.tar.gz /python-yara-4.0.0.tar.gz +/python-yara-4.0.1.tar.gz diff --git a/python-yara.spec b/python-yara.spec index 5b10d3b..6533396 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -1,5 +1,5 @@ Name: python-yara -Version: 4.0.0 +Version: 4.0.1 %global baserelease 1 Summary: Python binding for the YARA pattern matching tool License: ASL 2.0 @@ -182,6 +182,9 @@ PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v ./tests.py:TestYar #==================================================================== %changelog +* Fri Jun 06 2020 Michal Ambroz - 4.0.1-1 +- bump to version 4.0.1 + * Tue May 12 2020 Michal Ambroz - 4.0.0-1 - bump to version 4.0.0 diff --git a/sources b/sources index 438d1fd..c24b7ce 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (python-yara-4.0.0.tar.gz) = 9210793d305e34313494e3d867fc3a729814401208206a0f6f7fd2bfdcb6482a8e19e64788c35c149cd5a65cdc5357d8fa1e020fae6ac8c2704fa55e6c2cb989 +SHA512 (python-yara-4.0.1.tar.gz) = 8bd4ba51dbec38cb6b9c18b4d8b9325d5bfc413af1462682497398ab86ab67e4cd19355bdaacf1d075098e281ad0d5e9bf748eb5b7fbe404dcf0955cb688e2aa From 39445326bf06575daad933115927bd9be9967a46 Mon Sep 17 00:00:00 2001 From: rpmbuild Date: Thu, 16 Jul 2020 11:37:16 +0000 Subject: [PATCH 41/93] bump to bugfix release 4.0.2 --- .gitignore | 1 + python-yara.spec | 5 ++++- sources | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index c8dcd6e..b7dfb33 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ /python-yara-3.11.0.tar.gz /python-yara-4.0.0.tar.gz /python-yara-4.0.1.tar.gz +/python-yara-4.0.2.tar.gz diff --git a/python-yara.spec b/python-yara.spec index 5eddb55..9ef4ebe 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -1,5 +1,5 @@ Name: python-yara -Version: 4.0.1 +Version: 4.0.2 %global baserelease 1 Summary: Python binding for the YARA pattern matching tool License: ASL 2.0 @@ -182,6 +182,9 @@ PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v ./tests.py:TestYar #==================================================================== %changelog +* Thu Jul 16 2020 Michal Ambroz - 4.0.2-1 +- bump to version 4.0.2 + * Fri Jun 06 2020 Michal Ambroz - 4.0.1-1 - bump to version 4.0.1 diff --git a/sources b/sources index c24b7ce..d669b92 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (python-yara-4.0.1.tar.gz) = 8bd4ba51dbec38cb6b9c18b4d8b9325d5bfc413af1462682497398ab86ab67e4cd19355bdaacf1d075098e281ad0d5e9bf748eb5b7fbe404dcf0955cb688e2aa +SHA512 (python-yara-4.0.2.tar.gz) = 0c599f529d11a1ecc006f2db958efbbe6b43669f0721b941f4a46d68d75a1e15418075dccb229c498dd39f651f58392d7c7c4b5c62ef694cbddbf05c609301d3 From d392bbcfd86179d3d878a1c34591072e98d2c0dd Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 29 Jul 2020 04:45:26 +0000 Subject: [PATCH 42/93] - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-yara.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-yara.spec b/python-yara.spec index 9ef4ebe..f11a354 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -1,6 +1,6 @@ Name: python-yara Version: 4.0.2 -%global baserelease 1 +%global baserelease 2 Summary: Python binding for the YARA pattern matching tool License: ASL 2.0 URL: http://github.com/VirusTotal/yara-python/ @@ -182,6 +182,9 @@ PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v ./tests.py:TestYar #==================================================================== %changelog +* Wed Jul 29 2020 Fedora Release Engineering - 4.0.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + * Thu Jul 16 2020 Michal Ambroz - 4.0.2-1 - bump to version 4.0.2 From 2d0a004d78e8fa30db8af0a76fc5d25223961584 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 27 Jan 2021 14:19:10 +0000 Subject: [PATCH 43/93] - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-yara.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-yara.spec b/python-yara.spec index f11a354..f0f5812 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -1,6 +1,6 @@ Name: python-yara Version: 4.0.2 -%global baserelease 2 +%global baserelease 3 Summary: Python binding for the YARA pattern matching tool License: ASL 2.0 URL: http://github.com/VirusTotal/yara-python/ @@ -182,6 +182,9 @@ PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v ./tests.py:TestYar #==================================================================== %changelog +* Wed Jan 27 2021 Fedora Release Engineering - 4.0.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + * Wed Jul 29 2020 Fedora Release Engineering - 4.0.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild From 28dc29bffcf7693ef406d5661e8b84841d49c1dc Mon Sep 17 00:00:00 2001 From: Michal Ambroz Date: Thu, 4 Feb 2021 01:30:29 +0000 Subject: [PATCH 44/93] bump to version 4.0.3 --- .gitignore | 1 + python-yara.spec | 7 +++++-- sources | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index b7dfb33..90448d2 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ /python-yara-4.0.0.tar.gz /python-yara-4.0.1.tar.gz /python-yara-4.0.2.tar.gz +/python-yara-4.0.3.tar.gz diff --git a/python-yara.spec b/python-yara.spec index f0f5812..21c83bb 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -1,6 +1,6 @@ Name: python-yara -Version: 4.0.2 -%global baserelease 3 +Version: 4.0.3 +%global baserelease 1 Summary: Python binding for the YARA pattern matching tool License: ASL 2.0 URL: http://github.com/VirusTotal/yara-python/ @@ -182,6 +182,9 @@ PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v ./tests.py:TestYar #==================================================================== %changelog +* Thu Feb 04 2021 Michal Ambroz - 4.0.3-1 +- bump to version 4.0.3 + * Wed Jan 27 2021 Fedora Release Engineering - 4.0.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild diff --git a/sources b/sources index d669b92..07da1b3 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (python-yara-4.0.2.tar.gz) = 0c599f529d11a1ecc006f2db958efbbe6b43669f0721b941f4a46d68d75a1e15418075dccb229c498dd39f651f58392d7c7c4b5c62ef694cbddbf05c609301d3 +SHA512 (python-yara-4.0.3.tar.gz) = 4100b4664a4fc02d0398e086a1f1203f91c43e692ed5644a88dfac563e0b1b98fde2f6d1f7a69650e297dde253b5f369ca24e3aa18c0160708639cdfce9de140 From 6bc48265406fa0b5816212272bb2203e53134857 Mon Sep 17 00:00:00 2001 From: Michal Ambroz Date: Thu, 4 Feb 2021 01:32:41 +0000 Subject: [PATCH 45/93] fix bogus week day in 4.0.1 update --- python-yara.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-yara.spec b/python-yara.spec index 21c83bb..f9e98d7 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -194,7 +194,7 @@ PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v ./tests.py:TestYar * Thu Jul 16 2020 Michal Ambroz - 4.0.2-1 - bump to version 4.0.2 -* Fri Jun 06 2020 Michal Ambroz - 4.0.1-1 +* Sat Jun 06 2020 Michal Ambroz - 4.0.1-1 - bump to version 4.0.1 * Tue May 26 2020 Miro Hrončok - 4.0.0-2 From 8e18fa99f69243bdf519e4dc9a4a3ab19d0f6144 Mon Sep 17 00:00:00 2001 From: Michal Ambroz Date: Wed, 10 Feb 2021 22:29:00 +0000 Subject: [PATCH 46/93] bump to version 4.0.4 --- .gitignore | 1 + python-yara.spec | 5 ++++- sources | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 90448d2..daecb3f 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ /python-yara-4.0.1.tar.gz /python-yara-4.0.2.tar.gz /python-yara-4.0.3.tar.gz +/python-yara-4.0.4.tar.gz diff --git a/python-yara.spec b/python-yara.spec index f9e98d7..df9295c 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -1,5 +1,5 @@ Name: python-yara -Version: 4.0.3 +Version: 4.0.4 %global baserelease 1 Summary: Python binding for the YARA pattern matching tool License: ASL 2.0 @@ -182,6 +182,9 @@ PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v ./tests.py:TestYar #==================================================================== %changelog +* Wed Feb 10 2021 Michal Ambroz - 4.0.4-1 +- bump to version 4.0.4 + * Thu Feb 04 2021 Michal Ambroz - 4.0.3-1 - bump to version 4.0.3 diff --git a/sources b/sources index 07da1b3..507959e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (python-yara-4.0.3.tar.gz) = 4100b4664a4fc02d0398e086a1f1203f91c43e692ed5644a88dfac563e0b1b98fde2f6d1f7a69650e297dde253b5f369ca24e3aa18c0160708639cdfce9de140 +SHA512 (python-yara-4.0.4.tar.gz) = a45bbdc964ea1b8b9fe598e625481a85e8b99b449b0af0e8cebb941d7ad94e1312e8f0f95651443889051be40267a8d8315efeeaeaebc081b128c33bb8455663 From 167d7d1be33dddc3e2843c54e60b9f3743a68f49 Mon Sep 17 00:00:00 2001 From: Michal Ambroz Date: Sat, 13 Mar 2021 22:03:07 +0100 Subject: [PATCH 47/93] bump to 4.0.5 --- .gitignore | 1 + python-yara.spec | 9 ++++++--- sources | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index daecb3f..26f7890 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ /python-yara-4.0.2.tar.gz /python-yara-4.0.3.tar.gz /python-yara-4.0.4.tar.gz +/python-yara-4.0.5.tar.gz diff --git a/python-yara.spec b/python-yara.spec index df9295c..4fab316 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -1,5 +1,5 @@ Name: python-yara -Version: 4.0.4 +Version: 4.0.5 %global baserelease 1 Summary: Python binding for the YARA pattern matching tool License: ASL 2.0 @@ -10,8 +10,8 @@ URL: http://github.com/VirusTotal/yara-python/ %global srcname yara %global gituser VirusTotal %global gitname %{srcname}-python -%global commit 63ac2417a918692be6d5bd659fbfd39564396ec3 -%global gitdate 20190222 +%global commit 83c005eda9b3dbe08581515e8db570ad7dcfee18 +%global gitdate 20210223 %global shortcommit %(c=%{commit}; echo ${c:0:7}) @@ -182,6 +182,9 @@ PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v ./tests.py:TestYar #==================================================================== %changelog +* Sat Mar 13 2021 Michal Ambroz - 4.0.5-1 +- bump to version 4.0.5 + * Wed Feb 10 2021 Michal Ambroz - 4.0.4-1 - bump to version 4.0.4 diff --git a/sources b/sources index 507959e..a337abd 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (python-yara-4.0.4.tar.gz) = a45bbdc964ea1b8b9fe598e625481a85e8b99b449b0af0e8cebb941d7ad94e1312e8f0f95651443889051be40267a8d8315efeeaeaebc081b128c33bb8455663 +SHA512 (python-yara-4.0.5.tar.gz) = 1c4663516e6ee908192145a6b53312bd529d704407b1c1057aa4b4dfaa2f561630e86f47fac60b5a6724ad502d8df0e674eb36bad7a282b5ed5c0782833eead4 From 810d01ab74b4197db109336998f83e0d5813bce2 Mon Sep 17 00:00:00 2001 From: Michal Ambroz Date: Sun, 25 Apr 2021 14:10:02 +0200 Subject: [PATCH 48/93] rebuild for epel --- python-yara.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-yara.spec b/python-yara.spec index 4fab316..a71ded1 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -1,6 +1,6 @@ Name: python-yara Version: 4.0.5 -%global baserelease 1 +%global baserelease 2 Summary: Python binding for the YARA pattern matching tool License: ASL 2.0 URL: http://github.com/VirusTotal/yara-python/ @@ -182,6 +182,9 @@ PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v ./tests.py:TestYar #==================================================================== %changelog +* Sun Apr 25 2021 Michal Ambroz - 4.0.5-2 +- rebuild for epel + * Sat Mar 13 2021 Michal Ambroz - 4.0.5-1 - bump to version 4.0.5 From 0d9f7c250d194b23df3fd86dab165691b51425d0 Mon Sep 17 00:00:00 2001 From: Michal Ambroz Date: Tue, 27 Apr 2021 10:54:53 +0200 Subject: [PATCH 49/93] rebuild for 4.1.0 --- python-yara.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-yara.spec b/python-yara.spec index a71ded1..d604609 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -1,6 +1,6 @@ Name: python-yara Version: 4.0.5 -%global baserelease 2 +%global baserelease 3 Summary: Python binding for the YARA pattern matching tool License: ASL 2.0 URL: http://github.com/VirusTotal/yara-python/ @@ -182,6 +182,9 @@ PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v ./tests.py:TestYar #==================================================================== %changelog +* Tue Apr 27 2021 Michal Ambroz - 4.0.5-3 +- rebuild for new version of yara 4.1.0 + * Sun Apr 25 2021 Michal Ambroz - 4.0.5-2 - rebuild for epel From f49a31e565b7d7e8fb19d9b40f20a261d23a9019 Mon Sep 17 00:00:00 2001 From: Michal Ambroz Date: Tue, 27 Apr 2021 14:02:46 +0200 Subject: [PATCH 50/93] bump to 4.1.0 --- .gitignore | 1 + python-yara.spec | 27 +++++++++++++++++---------- sources | 2 +- 3 files changed, 19 insertions(+), 11 deletions(-) diff --git a/.gitignore b/.gitignore index 26f7890..6d19a45 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ /python-yara-4.0.3.tar.gz /python-yara-4.0.4.tar.gz /python-yara-4.0.5.tar.gz +/python-yara-4.1.0.tar.gz diff --git a/python-yara.spec b/python-yara.spec index d604609..f4086f9 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -1,17 +1,23 @@ Name: python-yara -Version: 4.0.5 -%global baserelease 3 +Version: 4.1.0 +%global baserelease 1 Summary: Python binding for the YARA pattern matching tool License: ASL 2.0 URL: http://github.com/VirusTotal/yara-python/ +VCS: http://github.com/VirusTotal/yara-python/ # http://VirusTotal.github.io/yara/ # https://github.com/VirusTotal/yara-python/releases +# By default build from a release tarball. +# If you want to rebuild from a unversioned commit from git do that with +# rpmbuild --rebuild python-yara.src.dpm --without release +%bcond_without release + %global srcname yara %global gituser VirusTotal %global gitname %{srcname}-python -%global commit 83c005eda9b3dbe08581515e8db570ad7dcfee18 -%global gitdate 20210223 +%global commit dc838e211e45442d219012099aaa63efa812c4be +%global gitdate 20210427 %global shortcommit %(c=%{commit}; echo ${c:0:7}) @@ -30,17 +36,15 @@ and a Boolean expression which determine its logic.} %if ( 0%{?fedora} && 0%{?fedora} >= 30 ) || ( 0%{?rhel} && 0%{?rhel} >= 8 ) # by default build without the python2 support on systems f30+ or rhel8+ -%bcond_with python2 +%bcond_with python2 %else # build with the python2 support on system up to f29 and/or rhel7 -%bcond_without python2 +%bcond_without python2 %endif -# Build source is versioned github release=1 or unversioned git commit=0 -%global build_release 1 -%if 0%{?build_release} > 0 +%if 0%{?with_release} Release: %{baserelease}%{?dist} Source0: https://github.com/%{gituser}/%{gitname}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz %else @@ -94,7 +98,7 @@ Summary: Python2 binding for the YARA pattern matching tool #==================================================================== %prep -%if 0%{?build_release} > 0 +%if 0%{?with_release} # Build from git release version %autosetup -n %{gitname}-%{version} @@ -182,6 +186,9 @@ PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v ./tests.py:TestYar #==================================================================== %changelog +* Tue Apr 27 2021 Michal Ambroz - 4.1.0-1 +- bump the python-yara as well to 4.1.0 + * Tue Apr 27 2021 Michal Ambroz - 4.0.5-3 - rebuild for new version of yara 4.1.0 diff --git a/sources b/sources index a337abd..fa8eb92 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (python-yara-4.0.5.tar.gz) = 1c4663516e6ee908192145a6b53312bd529d704407b1c1057aa4b4dfaa2f561630e86f47fac60b5a6724ad502d8df0e674eb36bad7a282b5ed5c0782833eead4 +SHA512 (python-yara-4.1.0.tar.gz) = 8b9ce780b6639ab2ee5222adec888c7e0fb6be81c7c64a8b33b033de3f261f9707aa208b7a3a86749f6e86a83fe6d73941c816857faf6eb714399d1f50239b51 From 4f177f8a0974060cee17ac5b2ff3a3e10a6f32b2 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Fri, 4 Jun 2021 21:11:25 +0200 Subject: [PATCH 51/93] Rebuilt for Python 3.10 --- python-yara.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-yara.spec b/python-yara.spec index f4086f9..3263dcd 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -1,6 +1,6 @@ Name: python-yara Version: 4.1.0 -%global baserelease 1 +%global baserelease 2 Summary: Python binding for the YARA pattern matching tool License: ASL 2.0 URL: http://github.com/VirusTotal/yara-python/ @@ -186,6 +186,9 @@ PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v ./tests.py:TestYar #==================================================================== %changelog +* Fri Jun 04 2021 Python Maint - 4.1.0-2 +- Rebuilt for Python 3.10 + * Tue Apr 27 2021 Michal Ambroz - 4.1.0-1 - bump the python-yara as well to 4.1.0 From 0a0ef76f34b20b238eaaff3466bd8d480179df80 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 23 Jul 2021 10:22:03 +0000 Subject: [PATCH 52/93] - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-yara.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-yara.spec b/python-yara.spec index 3263dcd..33278b5 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -1,6 +1,6 @@ Name: python-yara Version: 4.1.0 -%global baserelease 2 +%global baserelease 3 Summary: Python binding for the YARA pattern matching tool License: ASL 2.0 URL: http://github.com/VirusTotal/yara-python/ @@ -186,6 +186,9 @@ PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v ./tests.py:TestYar #==================================================================== %changelog +* Fri Jul 23 2021 Fedora Release Engineering - 4.1.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + * Fri Jun 04 2021 Python Maint - 4.1.0-2 - Rebuilt for Python 3.10 From 1d719ef1764cd860f52c100c4476e0adaf889e48 Mon Sep 17 00:00:00 2001 From: Michal Ambroz Date: Wed, 10 Nov 2021 15:39:59 +0000 Subject: [PATCH 53/93] bump to 4.1.3 --- .gitignore | 1 + python-yara.spec | 7 +++++-- sources | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 6d19a45..251f12e 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,4 @@ /python-yara-4.0.4.tar.gz /python-yara-4.0.5.tar.gz /python-yara-4.1.0.tar.gz +/python-yara-4.1.3.tar.gz diff --git a/python-yara.spec b/python-yara.spec index 33278b5..59632b1 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -1,6 +1,6 @@ Name: python-yara -Version: 4.1.0 -%global baserelease 3 +Version: 4.1.3 +%global baserelease 1 Summary: Python binding for the YARA pattern matching tool License: ASL 2.0 URL: http://github.com/VirusTotal/yara-python/ @@ -186,6 +186,9 @@ PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v ./tests.py:TestYar #==================================================================== %changelog +* Wed Nov 10 2021 Michal Ambroz - 4.1.3-1 +- bump the python-yara as well to 4.1.3 + * Fri Jul 23 2021 Fedora Release Engineering - 4.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild diff --git a/sources b/sources index fa8eb92..80e0b4b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (python-yara-4.1.0.tar.gz) = 8b9ce780b6639ab2ee5222adec888c7e0fb6be81c7c64a8b33b033de3f261f9707aa208b7a3a86749f6e86a83fe6d73941c816857faf6eb714399d1f50239b51 +SHA512 (python-yara-4.1.3.tar.gz) = 9c96ae78df7694dd55b8bdde4fad49043f120b94477fa9d7090610665072626eba4fa410cd9292205e0b18bb9f384f07288c0340232e163294b91051b84dcab2 From e2acea4688f11ef0da5feae1f87de29e6806c332 Mon Sep 17 00:00:00 2001 From: Michal Ambroz Date: Thu, 11 Nov 2021 00:16:41 +0000 Subject: [PATCH 54/93] rebuild --- python-yara.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-yara.spec b/python-yara.spec index 59632b1..c2d3d98 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -1,6 +1,6 @@ Name: python-yara Version: 4.1.3 -%global baserelease 1 +%global baserelease 2 Summary: Python binding for the YARA pattern matching tool License: ASL 2.0 URL: http://github.com/VirusTotal/yara-python/ @@ -186,6 +186,9 @@ PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v ./tests.py:TestYar #==================================================================== %changelog +* Wed Nov 10 2021 Michal Ambroz - 4.1.3-2 +- rebuild due to koji hickup + * Wed Nov 10 2021 Michal Ambroz - 4.1.3-1 - bump the python-yara as well to 4.1.3 From 6cc5652a9a659e5d223db651f0e8562eb2440f04 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 21 Jan 2022 16:38:42 +0000 Subject: [PATCH 55/93] - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-yara.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-yara.spec b/python-yara.spec index c2d3d98..81ecedd 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -1,6 +1,6 @@ Name: python-yara Version: 4.1.3 -%global baserelease 2 +%global baserelease 3 Summary: Python binding for the YARA pattern matching tool License: ASL 2.0 URL: http://github.com/VirusTotal/yara-python/ @@ -186,6 +186,9 @@ PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v ./tests.py:TestYar #==================================================================== %changelog +* Fri Jan 21 2022 Fedora Release Engineering - 4.1.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + * Wed Nov 10 2021 Michal Ambroz - 4.1.3-2 - rebuild due to koji hickup From 1d6aaa24f20243c83b1613604045807f2ac132a9 Mon Sep 17 00:00:00 2001 From: Troy Dawson Date: Mon, 31 Jan 2022 16:38:02 -0800 Subject: [PATCH 56/93] epel8-playground decommissioned : https://pagure.io/epel/issue/136 --- .gitignore | 0 dead.package | 1 + sources | 0 3 files changed, 1 insertion(+) delete mode 100644 .gitignore create mode 100644 dead.package delete mode 100644 sources diff --git a/.gitignore b/.gitignore deleted file mode 100644 index e69de29..0000000 diff --git a/dead.package b/dead.package new file mode 100644 index 0000000..a72aec0 --- /dev/null +++ b/dead.package @@ -0,0 +1 @@ +epel8-playground decommissioned : https://pagure.io/epel/issue/136 diff --git a/sources b/sources deleted file mode 100644 index e69de29..0000000 From fc26ff268896fa8e66902cf53f979496851758dd Mon Sep 17 00:00:00 2001 From: Charalampos Stratakis Date: Fri, 10 Dec 2021 18:23:54 +0100 Subject: [PATCH 57/93] Use pytest instead of the deprecated nose test runner --- python-yara.spec | 33 +++------------------------------ 1 file changed, 3 insertions(+), 30 deletions(-) diff --git a/python-yara.spec b/python-yara.spec index 81ecedd..72116ed 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -60,7 +60,7 @@ BuildRequires: yara-devel >= %{version} BuildRequires: /usr/bin/sphinx-build BuildRequires: python%{python3_pkgversion}-devel -BuildRequires: python%{python3_pkgversion}-nose +BuildRequires: python%{python3_pkgversion}-pytest BuildRequires: python%{python3_pkgversion}-setuptools @@ -132,40 +132,13 @@ Summary: Python2 binding for the YARA pattern matching tool %check %if 0%{?with_check} # ============================================================================== -# Tests for python3 used to always fail on testModuleData testcase -# Tests for python3 used to randomly fail on testCompare testcase -# reported to upstream - https://github.com/VirusTotal/yara-python/issues/21 -# temporarily run the failing tests but ignore the results for those 2 -# EXCLUDE='--exclude=^testCompare$|^testModuleData$' -# seems to be fixed in 3.9.0 -EXCLUDE='--exclude=^nothing$' - -# Yara is not prepared to run on s390 - more tests failing on s390 -# http://s390.koji.fedoraproject.org/kojifiles/work/tasks/9135/2399135/build.log -# https://github.com/VirusTotal/yara-python/issues/25 -# 3.6.3 - testCompileFile started failing - https://kojipkgs.fedoraproject.org//work/tasks/9619/20589619/build.log -# https://github.com/VirusTotal/yara-python/issues/54 -# seems to be fixed in 3.9.0 -%ifarch s390 s390x %{power64} -# EXCLUDE='--exclude=^testCompare$|^testModuleData$|^testEntrypoint$|^testIn$|^testIntegerFunctions$|^testCompileFile$' -EXCLUDE='--exclude=^nothing$' -%endif # 3.9.0 - testModuleData is always failing for architecture armv7hl %ifarch armv7hl -EXCLUDE='--exclude=^testModuleData$' +EXCLUDE='not testModuleData' %endif - -# Find the NOSETEST binary or use false if not present -NOSETESTS3=`ls /usr/bin/nosetests-3.* || which false ` -PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v "$EXCLUDE" - -# Run potentially ignored tests separately so we can at least see the results -PYTHONPATH=%{buildroot}/%{python3_sitearch}/ "$NOSETESTS3" -v ./tests.py:TestYara.testCompare \ - ./tests.py:TestYara.testModuleData ./tests.py:TestYara.testEntrypoint \ - ./tests.py:TestYara.testIn ./tests.py:TestYara.testIntegerFunctions \ - ./tests.py:TestYara.testCompileFile || true +%pytest -k "$EXCLUDE" tests.py -v # with_check %endif From 0feb574bcc46b7ac93ede6839df77ac1f5c7b28c Mon Sep 17 00:00:00 2001 From: Mikel Olasagasti Uranga Date: Sat, 28 May 2022 15:37:17 +0200 Subject: [PATCH 58/93] Update to 4.2.0 --- .gitignore | 1 + python-yara.spec | 76 +++++++++++++++++------------------------------- sources | 2 +- 3 files changed, 28 insertions(+), 51 deletions(-) diff --git a/.gitignore b/.gitignore index 251f12e..9c8d924 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ /python-yara-4.0.5.tar.gz /python-yara-4.1.0.tar.gz /python-yara-4.1.3.tar.gz +/python-yara-4.2.0.tar.gz diff --git a/python-yara.spec b/python-yara.spec index 72116ed..4cf0501 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -1,21 +1,15 @@ Name: python-yara -Version: 4.1.3 -%global baserelease 3 +Version: 4.2.0 +%global baserelease 1 Summary: Python binding for the YARA pattern matching tool License: ASL 2.0 -URL: http://github.com/VirusTotal/yara-python/ -VCS: http://github.com/VirusTotal/yara-python/ -# http://VirusTotal.github.io/yara/ -# https://github.com/VirusTotal/yara-python/releases +URL: https://github.com/VirusTotal/yara-python/ # By default build from a release tarball. # If you want to rebuild from a unversioned commit from git do that with # rpmbuild --rebuild python-yara.src.dpm --without release %bcond_without release -%global srcname yara -%global gituser VirusTotal -%global gitname %{srcname}-python %global commit dc838e211e45442d219012099aaa63efa812c4be %global gitdate 20210427 %global shortcommit %(c=%{commit}; echo ${c:0:7}) @@ -29,27 +23,17 @@ of malware families (or whatever you want to describe) based on textual or binary patterns. Each description, a.k.a rule, consists of a set of strings and a Boolean expression which determine its logic.} -# Do the check during build -%if 0%{?fedora} || ( 0%{?rhel} && 0%{?rhel} >= 7 ) -%global with_check 1 +# Build with python2 support for RHEL7 +%if ( 0%{?rhel} && 0%{?rhel} < 8 ) +%bcond_without python2 %endif -%if ( 0%{?fedora} && 0%{?fedora} >= 30 ) || ( 0%{?rhel} && 0%{?rhel} >= 8 ) - # by default build without the python2 support on systems f30+ or rhel8+ -%bcond_with python2 -%else - # build with the python2 support on system up to f29 and/or rhel7 -%bcond_without python2 -%endif - - - %if 0%{?with_release} Release: %{baserelease}%{?dist} -Source0: https://github.com/%{gituser}/%{gitname}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +Source0: https://github.com/VirusTotal/yara-python/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz %else Release: %{baserelease}.%{gitdate}git%{shortcommit}%{?dist} -Source0: https://github.com/%{gituser}/%{gitname}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz +Source0: https://github.com/VirusTotal/yara-python/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz %endif BuildRequires: gcc @@ -75,24 +59,23 @@ BuildRequires: python2-setuptools %{common_description} - #==================================================================== -%package -n python%{python3_pkgversion}-%{srcname} +%package -n python%{python3_pkgversion}-yara Summary: Python3 binding for the YARA pattern matching tool -%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}} +%{?python_provide:%python_provide python%{python3_pkgversion}-yara} -%description -n python%{python3_pkgversion}-%{srcname} +%description -n python%{python3_pkgversion}-yara %{common_description} %if 0%{?with_python2} > 0 -%package -n python2-%{srcname} +%package -n python2-yara Summary: Python2 binding for the YARA pattern matching tool -%{?python_provide:%python_provide python2-%{srcname}} +%{?python_provide:%python_provide python2-yara} -%description -n python2-%{srcname} +%description -n python2-yara %{common_description} %endif @@ -100,11 +83,11 @@ Summary: Python2 binding for the YARA pattern matching tool %prep %if 0%{?with_release} # Build from git release version -%autosetup -n %{gitname}-%{version} +%autosetup -n yara-python-%{version} %else # Build from git commit -%autosetup -n %{gitname}-%{commit} +%autosetup -n yara-python-%{commit} %endif @@ -130,35 +113,28 @@ Summary: Python2 binding for the YARA pattern matching tool #==================================================================== %check -%if 0%{?with_check} -# ============================================================================== - -# 3.9.0 - testModuleData is always failing for architecture armv7hl -%ifarch armv7hl -EXCLUDE='not testModuleData' -%endif - -%pytest -k "$EXCLUDE" tests.py -v - -# with_check -%endif - +%pytest tests.py -v #==================================================================== -%files -n python%{python3_pkgversion}-%{srcname} +%files -n python%{python3_pkgversion}-yara %license LICENSE %doc README.rst -%{python3_sitearch}/%{srcname}* +%{python3_sitearch}/yara* %if 0%{?with_python2} > 0 -%files -n python2-%{srcname} +%files -n python2-yara %license LICENSE %doc README.rst -%{python2_sitearch}/%{srcname}* +%{python2_sitearch}/yara* %endif #==================================================================== %changelog +* Fri May 27 2022 Mikel Olasagasti Uranga - 4.2.0-1 +- Bump to 4.2.0 rhbz#2063287 fixes FTBFS rhbz#2064646 +- Minor changes to spec, like using https for URL +- Simplify some of checks for different builds + * Fri Jan 21 2022 Fedora Release Engineering - 4.1.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild diff --git a/sources b/sources index 80e0b4b..d90e2ad 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (python-yara-4.1.3.tar.gz) = 9c96ae78df7694dd55b8bdde4fad49043f120b94477fa9d7090610665072626eba4fa410cd9292205e0b18bb9f384f07288c0340232e163294b91051b84dcab2 +SHA512 (python-yara-4.2.0.tar.gz) = ba08d709fc51679ec9fe36165e0864b79fc241f85c681bf59823fe7bb0e34e928cded050ff296147eb5bcb837485f39949aa93425a0eb9ca8b3730e60fac93f4 From 0a7853c6fb34171b9820217ae17e6801e4f8239b Mon Sep 17 00:00:00 2001 From: Python Maint Date: Mon, 13 Jun 2022 18:23:12 +0200 Subject: [PATCH 59/93] Rebuilt for Python 3.11 --- python-yara.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-yara.spec b/python-yara.spec index 4cf0501..c151aab 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -1,6 +1,6 @@ Name: python-yara Version: 4.2.0 -%global baserelease 1 +%global baserelease 2 Summary: Python binding for the YARA pattern matching tool License: ASL 2.0 URL: https://github.com/VirusTotal/yara-python/ @@ -130,6 +130,9 @@ Summary: Python2 binding for the YARA pattern matching tool #==================================================================== %changelog +* Mon Jun 13 2022 Python Maint - 4.2.0-2 +- Rebuilt for Python 3.11 + * Fri May 27 2022 Mikel Olasagasti Uranga - 4.2.0-1 - Bump to 4.2.0 rhbz#2063287 fixes FTBFS rhbz#2064646 - Minor changes to spec, like using https for URL From 4ef1161449358ef43baf12ebd7960c591258c1c9 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 22 Jul 2022 23:36:12 +0000 Subject: [PATCH 60/93] Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-yara.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-yara.spec b/python-yara.spec index c151aab..7de139d 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -1,6 +1,6 @@ Name: python-yara Version: 4.2.0 -%global baserelease 2 +%global baserelease 3 Summary: Python binding for the YARA pattern matching tool License: ASL 2.0 URL: https://github.com/VirusTotal/yara-python/ @@ -130,6 +130,9 @@ Summary: Python2 binding for the YARA pattern matching tool #==================================================================== %changelog +* Fri Jul 22 2022 Fedora Release Engineering - 4.2.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + * Mon Jun 13 2022 Python Maint - 4.2.0-2 - Rebuilt for Python 3.11 From 5e3e36a2b06b6a3987e230814e70a514b8d82592 Mon Sep 17 00:00:00 2001 From: Mikel Olasagasti Uranga Date: Mon, 8 Aug 2022 10:49:45 +0200 Subject: [PATCH 61/93] Skip testModuleData again for F36 --- python-yara.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/python-yara.spec b/python-yara.spec index 7de139d..e4fbcec 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -113,7 +113,13 @@ Summary: Python2 binding for the YARA pattern matching tool #==================================================================== %check -%pytest tests.py -v +# testModuleData is always failing for architecture armv7hl +# Remove once Fedora 36 is EOL +%ifarch armv7hl +EXCLUDE='not testModuleData' +%endif + +%pytest -k "$EXCLUDE" tests.py -v #==================================================================== %files -n python%{python3_pkgversion}-yara From 2bd7b63f3fe9c2e5f83ca79373843e6d5938804b Mon Sep 17 00:00:00 2001 From: Mikel Olasagasti Uranga Date: Mon, 8 Aug 2022 10:51:51 +0200 Subject: [PATCH 62/93] Fix baserelease and add changelog --- python-yara.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-yara.spec b/python-yara.spec index e4fbcec..04dec94 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -1,6 +1,6 @@ Name: python-yara Version: 4.2.0 -%global baserelease 3 +%global baserelease 4 Summary: Python binding for the YARA pattern matching tool License: ASL 2.0 URL: https://github.com/VirusTotal/yara-python/ @@ -136,6 +136,9 @@ EXCLUDE='not testModuleData' #==================================================================== %changelog +* Fri May 27 2022 Mikel Olasagasti Uranga - 4.2.0-4 +- Skip testModuleData again for F36, fixes rhbz#2116289 + * Fri Jul 22 2022 Fedora Release Engineering - 4.2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild From 401521419d8a2759bbdfc91527815f32161145e5 Mon Sep 17 00:00:00 2001 From: Mikel Olasagasti Uranga Date: Tue, 9 Aug 2022 11:51:37 +0200 Subject: [PATCH 63/93] Rebuilt for yara-4.2.3 --- python-yara.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/python-yara.spec b/python-yara.spec index 04dec94..7991442 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -1,6 +1,6 @@ Name: python-yara Version: 4.2.0 -%global baserelease 4 +%global baserelease 5 Summary: Python binding for the YARA pattern matching tool License: ASL 2.0 URL: https://github.com/VirusTotal/yara-python/ @@ -136,7 +136,10 @@ EXCLUDE='not testModuleData' #==================================================================== %changelog -* Fri May 27 2022 Mikel Olasagasti Uranga - 4.2.0-4 +* Tue Aug 09 2022 Mikel Olasagasti Uranga - 4.2.0-5 +- Rebuilt for yara-4.2.3 + +* Mon Aug 08 2022 Mikel Olasagasti Uranga - 4.2.0-4 - Skip testModuleData again for F36, fixes rhbz#2116289 * Fri Jul 22 2022 Fedora Release Engineering - 4.2.0-3 From 5f9aff5b8c94524a90ae29f90b5620cc29035c07 Mon Sep 17 00:00:00 2001 From: Michal Ambroz Date: Tue, 1 Nov 2022 15:57:17 +0100 Subject: [PATCH 64/93] bump to 4.2.3 --- .gitignore | 1 + python-yara.spec | 11 +++++++---- sources | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 9c8d924..9900f72 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,4 @@ /python-yara-4.1.0.tar.gz /python-yara-4.1.3.tar.gz /python-yara-4.2.0.tar.gz +/python-yara-4.2.3.tar.gz diff --git a/python-yara.spec b/python-yara.spec index 7991442..4d3a80e 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -1,6 +1,6 @@ Name: python-yara -Version: 4.2.0 -%global baserelease 5 +Version: 4.2.3 +%global baserelease 1 Summary: Python binding for the YARA pattern matching tool License: ASL 2.0 URL: https://github.com/VirusTotal/yara-python/ @@ -10,8 +10,8 @@ URL: https://github.com/VirusTotal/yara-python/ # rpmbuild --rebuild python-yara.src.dpm --without release %bcond_without release -%global commit dc838e211e45442d219012099aaa63efa812c4be -%global gitdate 20210427 +%global commit 8106b84fa967bcd2fff4f5a40e558c36bb8d54e8 +%global gitdate 20220809 %global shortcommit %(c=%{commit}; echo ${c:0:7}) @@ -136,6 +136,9 @@ EXCLUDE='not testModuleData' #==================================================================== %changelog +* Tue Nov 01 2022 Michal Ambroz - 4.2.3-1 +- Rebuilt for yara-4.2.3 - second service :) + * Tue Aug 09 2022 Mikel Olasagasti Uranga - 4.2.0-5 - Rebuilt for yara-4.2.3 diff --git a/sources b/sources index d90e2ad..0e1be0c 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (python-yara-4.2.0.tar.gz) = ba08d709fc51679ec9fe36165e0864b79fc241f85c681bf59823fe7bb0e34e928cded050ff296147eb5bcb837485f39949aa93425a0eb9ca8b3730e60fac93f4 +SHA512 (python-yara-4.2.3.tar.gz) = 588875d820f4e1b2aa5c6bbe83814ba2756f5ed301ba652efd280d5ca9745f7388f1f9eaa3875d11de5644ce9c41dcb76eebbee86269f8d6723c7d16ffa134be From 7d6b7c647e66b94ffdaab54c608bd68648d19bf5 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 20 Jan 2023 18:34:26 +0000 Subject: [PATCH 65/93] Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-yara.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-yara.spec b/python-yara.spec index 4d3a80e..f512a88 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -1,6 +1,6 @@ Name: python-yara Version: 4.2.3 -%global baserelease 1 +%global baserelease 2 Summary: Python binding for the YARA pattern matching tool License: ASL 2.0 URL: https://github.com/VirusTotal/yara-python/ @@ -136,6 +136,9 @@ EXCLUDE='not testModuleData' #==================================================================== %changelog +* Fri Jan 20 2023 Fedora Release Engineering - 4.2.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + * Tue Nov 01 2022 Michal Ambroz - 4.2.3-1 - Rebuilt for yara-4.2.3 - second service :) From 35e9517eb744cee220f11f94aafc50ce85c5faf4 Mon Sep 17 00:00:00 2001 From: Michal Ambroz Date: Wed, 25 Jan 2023 14:18:27 +0100 Subject: [PATCH 66/93] fix %check / %pytest for EPEL7 --- python-yara.spec | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/python-yara.spec b/python-yara.spec index f512a88..dbc3f4d 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -24,7 +24,7 @@ binary patterns. Each description, a.k.a rule, consists of a set of strings and a Boolean expression which determine its logic.} # Build with python2 support for RHEL7 -%if ( 0%{?rhel} && 0%{?rhel} < 8 ) +%if ( 0%{?rhel} && 0%{?rhel} <= 7 ) %bcond_without python2 %endif @@ -119,7 +119,17 @@ Summary: Python2 binding for the YARA pattern matching tool EXCLUDE='not testModuleData' %endif -%pytest -k "$EXCLUDE" tests.py -v +%if ( 0%{?rhel} && 0%{?rhel} <= 7 ) +export CFLAGS="${CFLAGS:-${RPM_OPT_FLAGS}}" LDFLAGS="${LDFLAGS:-${RPM_LD_FLAGS}}" +export PATH="%{buildroot}%{_bindir}:$PATH" +export PYTHONPATH="${PYTHONPATH:-%{buildroot}%{python3_sitearch}:%{buildroot}%{python3_sitelib}}" +export PYTHONDONTWRITEBYTECODE=1 +export PYTEST_XDIST_AUTO_NUM_WORKERS=%{_smp_build_ncpus}} +pytest-3 -k "$EXCLUDE" tests.py -v +%else +%pytest3 -k "$EXCLUDE" tests.py -v +%endif + #==================================================================== %files -n python%{python3_pkgversion}-yara From 566e24e283c9ff72ce3794aac28755873f96cf8b Mon Sep 17 00:00:00 2001 From: Michal Ambroz Date: Thu, 26 Jan 2023 03:19:03 +0100 Subject: [PATCH 67/93] fix rhel7 build --- python-yara.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-yara.spec b/python-yara.spec index dbc3f4d..3efe361 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -127,7 +127,7 @@ export PYTHONDONTWRITEBYTECODE=1 export PYTEST_XDIST_AUTO_NUM_WORKERS=%{_smp_build_ncpus}} pytest-3 -k "$EXCLUDE" tests.py -v %else -%pytest3 -k "$EXCLUDE" tests.py -v +%pytest -k "$EXCLUDE" tests.py -v %endif From 73ff085bf49738dadb302d0fbcf60260d1794393 Mon Sep 17 00:00:00 2001 From: Michal Ambroz Date: Fri, 31 Mar 2023 03:15:09 +0200 Subject: [PATCH 68/93] bump to 4.3.0 --- python-yara.spec | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/python-yara.spec b/python-yara.spec index 3efe361..7a547af 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -1,15 +1,19 @@ Name: python-yara -Version: 4.2.3 -%global baserelease 2 +Version: 4.3.0 +%global baserelease 1 Summary: Python binding for the YARA pattern matching tool -License: ASL 2.0 +License: Apache-2.0 URL: https://github.com/VirusTotal/yara-python/ +VCS: https://github.com/VirusTotal/yara-python/ +# https://github.com/VirusTotal/yara-python/releases/ # By default build from a release tarball. # If you want to rebuild from a unversioned commit from git do that with # rpmbuild --rebuild python-yara.src.dpm --without release %bcond_without release +%global gituser VirusTotal +%global gitname yara-python %global commit 8106b84fa967bcd2fff4f5a40e558c36bb8d54e8 %global gitdate 20220809 %global shortcommit %(c=%{commit}; echo ${c:0:7}) @@ -30,10 +34,10 @@ and a Boolean expression which determine its logic.} %if 0%{?with_release} Release: %{baserelease}%{?dist} -Source0: https://github.com/VirusTotal/yara-python/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +Source0: https://github.com/%{gituser}/%{gitname}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz %else Release: %{baserelease}.%{gitdate}git%{shortcommit}%{?dist} -Source0: https://github.com/VirusTotal/yara-python/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz +Source0: https://github.com/%{gituser}/%{gitname}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz#/%{name}-%{version}-git%{gitdate}-%{shortcommit}.tar.gz %endif BuildRequires: gcc @@ -146,6 +150,9 @@ pytest-3 -k "$EXCLUDE" tests.py -v #==================================================================== %changelog +* Thu Mar 30 2023 Michal Ambroz - 4.3.0-1 +- bump to 4.3.0 + * Fri Jan 20 2023 Fedora Release Engineering - 4.2.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild From 79dfb519755b5441cbd4b27353997701f3d89bd0 Mon Sep 17 00:00:00 2001 From: Michal Ambroz Date: Fri, 31 Mar 2023 03:17:37 +0200 Subject: [PATCH 69/93] python-yara ... bump to 4.3.0 From 28a5b6b6b715f7dfe4093370f1d5f3ca9863ffa0 Mon Sep 17 00:00:00 2001 From: Michal Ambroz Date: Fri, 31 Mar 2023 03:19:33 +0200 Subject: [PATCH 70/93] yara cleanup --- .gitignore | 17 +---------------- sources | 2 +- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/.gitignore b/.gitignore index 9900f72..14b9a7b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,16 +1 @@ -/python-yara-3.5.0-9fd9fd2.tar.gz -/python-yara-3.6.3.tar.gz -/python-yara-3.7.0.tar.gz -/python-yara-3.8.1.tar.gz -/python-yara-3.9.0.tar.gz -/python-yara-3.11.0.tar.gz -/python-yara-4.0.0.tar.gz -/python-yara-4.0.1.tar.gz -/python-yara-4.0.2.tar.gz -/python-yara-4.0.3.tar.gz -/python-yara-4.0.4.tar.gz -/python-yara-4.0.5.tar.gz -/python-yara-4.1.0.tar.gz -/python-yara-4.1.3.tar.gz -/python-yara-4.2.0.tar.gz -/python-yara-4.2.3.tar.gz +/python-yara-*.tar.gz diff --git a/sources b/sources index 0e1be0c..7a3cdd0 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (python-yara-4.2.3.tar.gz) = 588875d820f4e1b2aa5c6bbe83814ba2756f5ed301ba652efd280d5ca9745f7388f1f9eaa3875d11de5644ce9c41dcb76eebbee86269f8d6723c7d16ffa134be +SHA512 (python-yara-4.3.0.tar.gz) = c45bb57179b4191e6fb5577f42abb280dad91832720ad1712de8a2ea42adc5e3604079b2d8d0020ba86ece4043e7488889a54677e10cd2bc172a1480e57f1fef From 2fc27fb829e931c008521fe055131b0e71c85c6a Mon Sep 17 00:00:00 2001 From: Michal Ambroz Date: Wed, 26 Apr 2023 02:41:53 +0200 Subject: [PATCH 71/93] bump to 4.3.1 --- python-yara.spec | 9 ++++++--- sources | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/python-yara.spec b/python-yara.spec index 7a547af..08c78b0 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -1,5 +1,5 @@ Name: python-yara -Version: 4.3.0 +Version: 4.3.1 %global baserelease 1 Summary: Python binding for the YARA pattern matching tool License: Apache-2.0 @@ -14,8 +14,8 @@ VCS: https://github.com/VirusTotal/yara-python/ %global gituser VirusTotal %global gitname yara-python -%global commit 8106b84fa967bcd2fff4f5a40e558c36bb8d54e8 -%global gitdate 20220809 +%global commit 37dcb76cd5a07c62e6ed2646968c496e22e70729 +%global gitdate 20230421 %global shortcommit %(c=%{commit}; echo ${c:0:7}) @@ -150,6 +150,9 @@ pytest-3 -k "$EXCLUDE" tests.py -v #==================================================================== %changelog +* Wed Apr 26 2023 Michal Ambroz - 4.3.1-1 +- bump to 4.3.1 + * Thu Mar 30 2023 Michal Ambroz - 4.3.0-1 - bump to 4.3.0 diff --git a/sources b/sources index 7a3cdd0..ef82b4d 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (python-yara-4.3.0.tar.gz) = c45bb57179b4191e6fb5577f42abb280dad91832720ad1712de8a2ea42adc5e3604079b2d8d0020ba86ece4043e7488889a54677e10cd2bc172a1480e57f1fef +SHA512 (python-yara-4.3.1.tar.gz) = 78cd53f756967ef79cc742acffaeea53631ee475c07efd1506eba7e0630b2e570ba03686da1fa3247c9339faa67daf6c372913731b73233626661c0a9f575e41 From 93c6a6ffcf1575b8a7c8d7225a7a16f46c32525d Mon Sep 17 00:00:00 2001 From: Python Maint Date: Wed, 14 Jun 2023 06:18:15 +0200 Subject: [PATCH 72/93] Rebuilt for Python 3.12 --- python-yara.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-yara.spec b/python-yara.spec index 08c78b0..c793afd 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -1,6 +1,6 @@ Name: python-yara Version: 4.3.1 -%global baserelease 1 +%global baserelease 2 Summary: Python binding for the YARA pattern matching tool License: Apache-2.0 URL: https://github.com/VirusTotal/yara-python/ @@ -150,6 +150,9 @@ pytest-3 -k "$EXCLUDE" tests.py -v #==================================================================== %changelog +* Wed Jun 14 2023 Python Maint - 4.3.1-2 +- Rebuilt for Python 3.12 + * Wed Apr 26 2023 Michal Ambroz - 4.3.1-1 - bump to 4.3.1 From 74610fcbd432d4c719971c2125fe8a38783323f5 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 21 Jul 2023 15:29:57 +0000 Subject: [PATCH 73/93] Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-yara.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-yara.spec b/python-yara.spec index c793afd..64e1955 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -1,6 +1,6 @@ Name: python-yara Version: 4.3.1 -%global baserelease 2 +%global baserelease 3 Summary: Python binding for the YARA pattern matching tool License: Apache-2.0 URL: https://github.com/VirusTotal/yara-python/ @@ -150,6 +150,9 @@ pytest-3 -k "$EXCLUDE" tests.py -v #==================================================================== %changelog +* Fri Jul 21 2023 Fedora Release Engineering - 4.3.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + * Wed Jun 14 2023 Python Maint - 4.3.1-2 - Rebuilt for Python 3.12 From 8e66c543d213597ffe90b1304db0df0d23ad512d Mon Sep 17 00:00:00 2001 From: Mikel Olasagasti Uranga Date: Fri, 25 Aug 2023 11:36:39 +0200 Subject: [PATCH 74/93] Include fix for python-3.12 - Closes rhbz#2226378 rhbz#2220571 --- 238.patch | 75 ++++++++++++++++++++++++++++++++++++++++++++++++ python-yara.spec | 8 +++++- 2 files changed, 82 insertions(+), 1 deletion(-) create mode 100644 238.patch diff --git a/238.patch b/238.patch new file mode 100644 index 0000000..2fb1979 --- /dev/null +++ b/238.patch @@ -0,0 +1,75 @@ +From a7b3035175488cd26791cd7f935eb1ed03de304a Mon Sep 17 00:00:00 2001 +From: "Victor M. Alvarez" +Date: Wed, 2 Aug 2023 14:42:32 +0200 +Subject: [PATCH] Fix segfault in Python 3.12b4 + +In `flo_read` and `flo_write` there were calls to `Py_DECREF` after releasing the GIL. + +Closes #237 +--- + yara-python.c | 34 ++++++++++++++++------------------ + 1 file changed, 16 insertions(+), 18 deletions(-) + +diff --git a/yara-python.c b/yara-python.c +index 1d851b9..714317c 100644 +--- a/yara-python.c ++++ b/yara-python.c +@@ -1394,29 +1394,28 @@ static size_t flo_read( + PyObject* bytes = PyObject_CallMethod( + (PyObject*) user_data, "read", "n", (Py_ssize_t) size); + +- PyGILState_Release(gil_state); +- +- if (bytes != NULL) ++ if (bytes == NULL) + { +- Py_ssize_t len; +- char* buffer; +- +- int result = PyBytes_AsStringAndSize(bytes, &buffer, &len); ++ PyGILState_Release(gil_state); ++ return i; ++ } + +- if (result == -1 || (size_t) len < size) +- { +- Py_DECREF(bytes); +- return i; +- } ++ Py_ssize_t len; ++ char* buffer; + +- memcpy((char*) ptr + i * size, buffer, size); ++ int result = PyBytes_AsStringAndSize(bytes, &buffer, &len); + +- Py_DECREF(bytes); +- } +- else ++ if (result == -1 || (size_t) len < size) + { ++ Py_DECREF(bytes); ++ PyGILState_Release(gil_state); + return i; + } ++ ++ memcpy((char*) ptr + i * size, buffer, size); ++ ++ Py_DECREF(bytes); ++ PyGILState_Release(gil_state); + } + + return count; +@@ -1444,12 +1443,11 @@ static size_t flo_write( + (PyObject*) user_data, "write", "s#", (char*) ptr + i * size, size); + #endif + ++ Py_XDECREF(result); + PyGILState_Release(gil_state); + + if (result == NULL) + return i; +- +- Py_DECREF(result); + } + + return count; diff --git a/python-yara.spec b/python-yara.spec index 64e1955..47d9575 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -1,6 +1,6 @@ Name: python-yara Version: 4.3.1 -%global baserelease 3 +%global baserelease 4 Summary: Python binding for the YARA pattern matching tool License: Apache-2.0 URL: https://github.com/VirusTotal/yara-python/ @@ -40,6 +40,9 @@ Release: %{baserelease}.%{gitdate}git%{shortcommit}%{?dist} Source0: https://github.com/%{gituser}/%{gitname}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz#/%{name}-%{version}-git%{gitdate}-%{shortcommit}.tar.gz %endif +# https://github.com/VirusTotal/yara-python/pull/238 +Patch0: 238.patch + BuildRequires: gcc BuildRequires: pkgconfig(yara) BuildRequires: libtool @@ -150,6 +153,9 @@ pytest-3 -k "$EXCLUDE" tests.py -v #==================================================================== %changelog +* Fri Aug 25 2023 Mikel Olasagasti Uranga - 4.3.1-4 +- Fix rhbz#2226378 rhbz#2220571 + * Fri Jul 21 2023 Fedora Release Engineering - 4.3.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild From 74b0957ee05b394542508ffa923142cfd8ca1774 Mon Sep 17 00:00:00 2001 From: Mikel Olasagasti Uranga Date: Sun, 17 Sep 2023 11:26:41 +0200 Subject: [PATCH 75/93] Update to 4.4.0 - Closes rhbz#2239307 --- 238.patch | 75 ------------------------------------------------ python-yara.spec | 14 ++++----- sources | 2 +- 3 files changed, 8 insertions(+), 83 deletions(-) delete mode 100644 238.patch diff --git a/238.patch b/238.patch deleted file mode 100644 index 2fb1979..0000000 --- a/238.patch +++ /dev/null @@ -1,75 +0,0 @@ -From a7b3035175488cd26791cd7f935eb1ed03de304a Mon Sep 17 00:00:00 2001 -From: "Victor M. Alvarez" -Date: Wed, 2 Aug 2023 14:42:32 +0200 -Subject: [PATCH] Fix segfault in Python 3.12b4 - -In `flo_read` and `flo_write` there were calls to `Py_DECREF` after releasing the GIL. - -Closes #237 ---- - yara-python.c | 34 ++++++++++++++++------------------ - 1 file changed, 16 insertions(+), 18 deletions(-) - -diff --git a/yara-python.c b/yara-python.c -index 1d851b9..714317c 100644 ---- a/yara-python.c -+++ b/yara-python.c -@@ -1394,29 +1394,28 @@ static size_t flo_read( - PyObject* bytes = PyObject_CallMethod( - (PyObject*) user_data, "read", "n", (Py_ssize_t) size); - -- PyGILState_Release(gil_state); -- -- if (bytes != NULL) -+ if (bytes == NULL) - { -- Py_ssize_t len; -- char* buffer; -- -- int result = PyBytes_AsStringAndSize(bytes, &buffer, &len); -+ PyGILState_Release(gil_state); -+ return i; -+ } - -- if (result == -1 || (size_t) len < size) -- { -- Py_DECREF(bytes); -- return i; -- } -+ Py_ssize_t len; -+ char* buffer; - -- memcpy((char*) ptr + i * size, buffer, size); -+ int result = PyBytes_AsStringAndSize(bytes, &buffer, &len); - -- Py_DECREF(bytes); -- } -- else -+ if (result == -1 || (size_t) len < size) - { -+ Py_DECREF(bytes); -+ PyGILState_Release(gil_state); - return i; - } -+ -+ memcpy((char*) ptr + i * size, buffer, size); -+ -+ Py_DECREF(bytes); -+ PyGILState_Release(gil_state); - } - - return count; -@@ -1444,12 +1443,11 @@ static size_t flo_write( - (PyObject*) user_data, "write", "s#", (char*) ptr + i * size, size); - #endif - -+ Py_XDECREF(result); - PyGILState_Release(gil_state); - - if (result == NULL) - return i; -- -- Py_DECREF(result); - } - - return count; diff --git a/python-yara.spec b/python-yara.spec index 47d9575..eca03d9 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -1,6 +1,6 @@ Name: python-yara -Version: 4.3.1 -%global baserelease 4 +Version: 4.4.0 +%global baserelease 1 Summary: Python binding for the YARA pattern matching tool License: Apache-2.0 URL: https://github.com/VirusTotal/yara-python/ @@ -14,8 +14,8 @@ VCS: https://github.com/VirusTotal/yara-python/ %global gituser VirusTotal %global gitname yara-python -%global commit 37dcb76cd5a07c62e6ed2646968c496e22e70729 -%global gitdate 20230421 +%global commit 0dd0ed3fc513cbe1a22b7ca57c2469f37c502771 +%global gitdate 20230917 %global shortcommit %(c=%{commit}; echo ${c:0:7}) @@ -40,9 +40,6 @@ Release: %{baserelease}.%{gitdate}git%{shortcommit}%{?dist} Source0: https://github.com/%{gituser}/%{gitname}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz#/%{name}-%{version}-git%{gitdate}-%{shortcommit}.tar.gz %endif -# https://github.com/VirusTotal/yara-python/pull/238 -Patch0: 238.patch - BuildRequires: gcc BuildRequires: pkgconfig(yara) BuildRequires: libtool @@ -153,6 +150,9 @@ pytest-3 -k "$EXCLUDE" tests.py -v #==================================================================== %changelog +* Sun Sep 17 2023 Mikel Olasagasti Uranga - 4.4.0-1 +- bump to 4.4.0 + * Fri Aug 25 2023 Mikel Olasagasti Uranga - 4.3.1-4 - Fix rhbz#2226378 rhbz#2220571 diff --git a/sources b/sources index ef82b4d..fbfd6ac 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (python-yara-4.3.1.tar.gz) = 78cd53f756967ef79cc742acffaeea53631ee475c07efd1506eba7e0630b2e570ba03686da1fa3247c9339faa67daf6c372913731b73233626661c0a9f575e41 +SHA512 (python-yara-4.4.0.tar.gz) = bc72c2f65e3fe3d7f94728565143b787df6cc63313a3e8b9f159a5cfc3c947f5233674a1213fd2c6454f6165b676da366319794f9fa7c695c43e5523c29a1432 From 5cecbcfd463ba5c561f145f3a01a2d9d2828bb21 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Mon, 22 Jan 2024 09:11:17 +0000 Subject: [PATCH 76/93] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- python-yara.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-yara.spec b/python-yara.spec index eca03d9..802708b 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -1,6 +1,6 @@ Name: python-yara Version: 4.4.0 -%global baserelease 1 +%global baserelease 2 Summary: Python binding for the YARA pattern matching tool License: Apache-2.0 URL: https://github.com/VirusTotal/yara-python/ @@ -150,6 +150,9 @@ pytest-3 -k "$EXCLUDE" tests.py -v #==================================================================== %changelog +* Mon Jan 22 2024 Fedora Release Engineering - 4.4.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Sun Sep 17 2023 Mikel Olasagasti Uranga - 4.4.0-1 - bump to 4.4.0 From 5185254a8522228c6362e1ce865cd75630573d51 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 26 Jan 2024 13:17:08 +0000 Subject: [PATCH 77/93] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- python-yara.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-yara.spec b/python-yara.spec index 802708b..4b50747 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -1,6 +1,6 @@ Name: python-yara Version: 4.4.0 -%global baserelease 2 +%global baserelease 3 Summary: Python binding for the YARA pattern matching tool License: Apache-2.0 URL: https://github.com/VirusTotal/yara-python/ @@ -150,6 +150,9 @@ pytest-3 -k "$EXCLUDE" tests.py -v #==================================================================== %changelog +* Fri Jan 26 2024 Fedora Release Engineering - 4.4.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Mon Jan 22 2024 Fedora Release Engineering - 4.4.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From 017cf9ee2391fde1bf065e1d3f3ab93b05bc687c Mon Sep 17 00:00:00 2001 From: Michal Ambroz Date: Wed, 14 Feb 2024 15:21:13 +0100 Subject: [PATCH 78/93] bump to 4.5.0 --- python-yara.spec | 14 +++++++++----- sources | 2 +- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/python-yara.spec b/python-yara.spec index 4b50747..878c4d0 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -1,21 +1,22 @@ Name: python-yara -Version: 4.4.0 -%global baserelease 3 +Version: 4.5.0 +%global baserelease 1 Summary: Python binding for the YARA pattern matching tool License: Apache-2.0 URL: https://github.com/VirusTotal/yara-python/ VCS: https://github.com/VirusTotal/yara-python/ +# https://github.com/VirusTotal/yara-python/tags # https://github.com/VirusTotal/yara-python/releases/ # By default build from a release tarball. -# If you want to rebuild from a unversioned commit from git do that with +# If you want to rebuild from a unversioned commit from git do that with # rpmbuild --rebuild python-yara.src.dpm --without release %bcond_without release %global gituser VirusTotal %global gitname yara-python -%global commit 0dd0ed3fc513cbe1a22b7ca57c2469f37c502771 -%global gitdate 20230917 +%global gitdate 20240214 +%global commit 3d5674a30808b26b44fc896dd059e94e704e4d63 %global shortcommit %(c=%{commit}; echo ${c:0:7}) @@ -150,6 +151,9 @@ pytest-3 -k "$EXCLUDE" tests.py -v #==================================================================== %changelog +* Wed Fed 14 2024 Michal Ambroz - 4.5.0-1 +- bump to 4.5.0 + * Fri Jan 26 2024 Fedora Release Engineering - 4.4.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild diff --git a/sources b/sources index fbfd6ac..30a9ccb 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (python-yara-4.4.0.tar.gz) = bc72c2f65e3fe3d7f94728565143b787df6cc63313a3e8b9f159a5cfc3c947f5233674a1213fd2c6454f6165b676da366319794f9fa7c695c43e5523c29a1432 +SHA512 (python-yara-4.5.0.tar.gz) = b4f091bff7fd3bcd63e7f9f0a765aac7bdb3f17a1bc4b163687ae9ca21048194d90cf2bf1165998edb9953b83e022939179c51de59862a456676f099de69778d From 77435b87c5ff0390e2817069050910957b72ef44 Mon Sep 17 00:00:00 2001 From: Michal Ambroz Date: Wed, 14 Feb 2024 18:41:48 +0100 Subject: [PATCH 79/93] bump to 4.5.0 --- python-yara.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-yara.spec b/python-yara.spec index 878c4d0..b938899 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -151,7 +151,7 @@ pytest-3 -k "$EXCLUDE" tests.py -v #==================================================================== %changelog -* Wed Fed 14 2024 Michal Ambroz - 4.5.0-1 +* Wed Feb 14 2024 Michal Ambroz - 4.5.0-1 - bump to 4.5.0 * Fri Jan 26 2024 Fedora Release Engineering - 4.4.0-3 From db196c05fffe86e9257057c7ad2a8fb249fbca64 Mon Sep 17 00:00:00 2001 From: Michal Ambroz Date: Thu, 30 May 2024 02:36:21 +0200 Subject: [PATCH 80/93] bump to 4.5.1 --- python-yara.spec | 75 +++++++++++++++++++++++++----------------------- sources | 2 +- 2 files changed, 40 insertions(+), 37 deletions(-) diff --git a/python-yara.spec b/python-yara.spec index b938899..41c6c4f 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -1,5 +1,5 @@ Name: python-yara -Version: 4.5.0 +Version: 4.5.1 %global baserelease 1 Summary: Python binding for the YARA pattern matching tool License: Apache-2.0 @@ -15,8 +15,8 @@ VCS: https://github.com/VirusTotal/yara-python/ %global gituser VirusTotal %global gitname yara-python -%global gitdate 20240214 -%global commit 3d5674a30808b26b44fc896dd059e94e704e4d63 +%global gitdate 20240525 +%global commit 2880de0358e1ec871093759d74309f4dc080d726 %global shortcommit %(c=%{commit}; echo ${c:0:7}) @@ -151,7 +151,10 @@ pytest-3 -k "$EXCLUDE" tests.py -v #==================================================================== %changelog -* Wed Feb 14 2024 Michal Ambroz - 4.5.0-1 +* Wed May 29 2024 Michal Ambroz - 4.5.1-1 +- bump to 4.5.1 + +* Wed Feb 14 2024 Michal Ambroz - 4.5.0-1 - bump to 4.5.0 * Fri Jan 26 2024 Fedora Release Engineering - 4.4.0-3 @@ -172,16 +175,16 @@ pytest-3 -k "$EXCLUDE" tests.py -v * Wed Jun 14 2023 Python Maint - 4.3.1-2 - Rebuilt for Python 3.12 -* Wed Apr 26 2023 Michal Ambroz - 4.3.1-1 +* Wed Apr 26 2023 Michal Ambroz - 4.3.1-1 - bump to 4.3.1 -* Thu Mar 30 2023 Michal Ambroz - 4.3.0-1 +* Thu Mar 30 2023 Michal Ambroz - 4.3.0-1 - bump to 4.3.0 * Fri Jan 20 2023 Fedora Release Engineering - 4.2.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild -* Tue Nov 01 2022 Michal Ambroz - 4.2.3-1 +* Tue Nov 01 2022 Michal Ambroz - 4.2.3-1 - Rebuilt for yara-4.2.3 - second service :) * Tue Aug 09 2022 Mikel Olasagasti Uranga - 4.2.0-5 @@ -204,10 +207,10 @@ pytest-3 -k "$EXCLUDE" tests.py -v * Fri Jan 21 2022 Fedora Release Engineering - 4.1.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild -* Wed Nov 10 2021 Michal Ambroz - 4.1.3-2 +* Wed Nov 10 2021 Michal Ambroz - 4.1.3-2 - rebuild due to koji hickup -* Wed Nov 10 2021 Michal Ambroz - 4.1.3-1 +* Wed Nov 10 2021 Michal Ambroz - 4.1.3-1 - bump the python-yara as well to 4.1.3 * Fri Jul 23 2021 Fedora Release Engineering - 4.1.0-3 @@ -216,22 +219,22 @@ pytest-3 -k "$EXCLUDE" tests.py -v * Fri Jun 04 2021 Python Maint - 4.1.0-2 - Rebuilt for Python 3.10 -* Tue Apr 27 2021 Michal Ambroz - 4.1.0-1 +* Tue Apr 27 2021 Michal Ambroz - 4.1.0-1 - bump the python-yara as well to 4.1.0 -* Tue Apr 27 2021 Michal Ambroz - 4.0.5-3 +* Tue Apr 27 2021 Michal Ambroz - 4.0.5-3 - rebuild for new version of yara 4.1.0 -* Sun Apr 25 2021 Michal Ambroz - 4.0.5-2 +* Sun Apr 25 2021 Michal Ambroz - 4.0.5-2 - rebuild for epel -* Sat Mar 13 2021 Michal Ambroz - 4.0.5-1 +* Sat Mar 13 2021 Michal Ambroz - 4.0.5-1 - bump to version 4.0.5 -* Wed Feb 10 2021 Michal Ambroz - 4.0.4-1 +* Wed Feb 10 2021 Michal Ambroz - 4.0.4-1 - bump to version 4.0.4 -* Thu Feb 04 2021 Michal Ambroz - 4.0.3-1 +* Thu Feb 04 2021 Michal Ambroz - 4.0.3-1 - bump to version 4.0.3 * Wed Jan 27 2021 Fedora Release Engineering - 4.0.2-3 @@ -240,25 +243,25 @@ pytest-3 -k "$EXCLUDE" tests.py -v * Wed Jul 29 2020 Fedora Release Engineering - 4.0.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild -* Thu Jul 16 2020 Michal Ambroz - 4.0.2-1 +* Thu Jul 16 2020 Michal Ambroz - 4.0.2-1 - bump to version 4.0.2 -* Sat Jun 06 2020 Michal Ambroz - 4.0.1-1 +* Sat Jun 06 2020 Michal Ambroz - 4.0.1-1 - bump to version 4.0.1 * Tue May 26 2020 Miro Hrončok - 4.0.0-2 - Rebuilt for Python 3.9 -* Tue May 12 2020 Michal Ambroz - 4.0.0-1 +* Tue May 12 2020 Michal Ambroz - 4.0.0-1 - bump to version 4.0.0 * Thu Jan 30 2020 Fedora Release Engineering - 3.11.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild -* Mon Oct 14 2019 Michal Ambroz - 3.11.0-2 +* Mon Oct 14 2019 Michal Ambroz - 3.11.0-2 - fix the release number -* Mon Oct 14 2019 Michal Ambroz - 3.11.0-1 +* Mon Oct 14 2019 Michal Ambroz - 3.11.0-1 - bump to 3.11.0, omit py2 for f30+ and epel8+ * Mon Aug 19 2019 Miro Hrončok - 3.9.0-2.2 @@ -267,10 +270,10 @@ pytest-3 -k "$EXCLUDE" tests.py -v * Fri Jul 26 2019 Fedora Release Engineering - 3.9.0-2.1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild -* Fri Mar 22 2019 Michal Ambroz - 3.9.0-2 +* Fri Mar 22 2019 Michal Ambroz - 3.9.0-2 - change dependency to sphinx based on the /usr/bin/sphinx-build -* Mon Mar 18 2019 Michal Ambroz - 3.9.0-1 +* Mon Mar 18 2019 Michal Ambroz - 3.9.0-1 - bump to 3.9.0 * Sat Feb 02 2019 Fedora Release Engineering - 3.8.1-3.2 @@ -280,10 +283,10 @@ pytest-3 -k "$EXCLUDE" tests.py -v - Python2 binary package has been removed See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal -* Mon Aug 27 2018 Michal Ambroz - 3.8.1-2 +* Mon Aug 27 2018 Michal Ambroz - 3.8.1-2 - rebuild with yara 3.8.1 override -* Mon Aug 27 2018 Michal Ambroz - 3.8.1-1 +* Mon Aug 27 2018 Michal Ambroz - 3.8.1-1 - bump to 3.8.1 * Sat Jul 14 2018 Fedora Release Engineering - 3.7.0-7 @@ -292,10 +295,10 @@ pytest-3 -k "$EXCLUDE" tests.py -v * Tue Jun 19 2018 Miro Hrončok - 3.7.0-6 - Rebuilt for Python 3.7 -* Fri Mar 16 2018 Michal Ambroz - 3.7.0-5 +* Fri Mar 16 2018 Michal Ambroz - 3.7.0-5 - fix dependencies for building the epel7/epel6 packages -* Thu Mar 15 2018 Michal Ambroz - 3.7.0-4 +* Thu Mar 15 2018 Michal Ambroz - 3.7.0-4 - rebuild with yara 3.7.1 for supported platforms - fix dependencies for building the epel packages @@ -306,7 +309,7 @@ pytest-3 -k "$EXCLUDE" tests.py -v * Fri Feb 09 2018 Fedora Release Engineering - 3.7.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild -* Wed Nov 15 2017 Michal Ambroz - 3.7.0-1 +* Wed Nov 15 2017 Michal Ambroz - 3.7.0-1 - bump to yara 3.7.0 release version (#1511921) * Thu Aug 03 2017 Fedora Release Engineering - 3.6.3-4 @@ -315,11 +318,11 @@ pytest-3 -k "$EXCLUDE" tests.py -v * Thu Jul 27 2017 Fedora Release Engineering - 3.6.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild -* Mon Jul 17 2017 Michal Ambroz - 3.6.3-2 +* Mon Jul 17 2017 Michal Ambroz - 3.6.3-2 - fix bogus dates in the changelog - omit failing testCompileFile test for s390/ppc64 -* Mon Jul 17 2017 Michal Ambroz - 3.6.3-1 +* Mon Jul 17 2017 Michal Ambroz - 3.6.3-1 - bump to upstream 3.6.3 release version * Sat Feb 11 2017 Fedora Release Engineering - 3.5.0-10 @@ -331,26 +334,26 @@ pytest-3 -k "$EXCLUDE" tests.py -v * Wed Nov 23 2016 Dan Horák - 3.5.0-8 - fix the arch lists -* Tue Aug 16 2016 Michal Ambroz - 3.5.0-7 +* Tue Aug 16 2016 Michal Ambroz - 3.5.0-7 - adding test exclusions also for armv7hl and ppc64le -* Tue Aug 16 2016 Michal Ambroz - 3.5.0-6 +* Tue Aug 16 2016 Michal Ambroz - 3.5.0-6 - additionally testEntrypoint testIn testIntegerFunctions failing on s390/ppc64 - exclude those tests for build of s390/ppc64 -* Tue Aug 16 2016 Michal Ambroz - 3.5.0-5 +* Tue Aug 16 2016 Michal Ambroz - 3.5.0-5 - testModuleData is failing on arm platform even for python 2.7 - exclude this test for build of arm -* Fri Aug 12 2016 Michal Ambroz - 3.5.0-4 +* Fri Aug 12 2016 Michal Ambroz - 3.5.0-4 - remove unnecessary ldconfig - count with the python3 test values except the 2 known for failing -* Thu Aug 11 2016 Michal Ambroz - 3.5.0-3 +* Thu Aug 11 2016 Michal Ambroz - 3.5.0-3 - change python3 naming to allow epel7 python34 packages -* Thu Aug 04 2016 Michal Ambroz - 3.5.0-2 +* Thu Aug 04 2016 Michal Ambroz - 3.5.0-2 - cosmetics -* Thu Aug 04 2016 Michal Ambroz - 3.5.0-1 +* Thu Aug 04 2016 Michal Ambroz - 3.5.0-1 - with yara 3.5.0 the python yara binding is separate library diff --git a/sources b/sources index 30a9ccb..a5201eb 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (python-yara-4.5.0.tar.gz) = b4f091bff7fd3bcd63e7f9f0a765aac7bdb3f17a1bc4b163687ae9ca21048194d90cf2bf1165998edb9953b83e022939179c51de59862a456676f099de69778d +SHA512 (python-yara-4.5.1.tar.gz) = fb3d78cea58a5dcb21287d5211805ef7097c07b9117e4fe78a7e56b40f2520950f0e8d6f1eb3c4253a454e10ca782c3826c19613bd17677bef491ae91f9f9d2a From adbaf1d38999fe4393dab40748864663384af0b5 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Fri, 7 Jun 2024 14:12:31 +0200 Subject: [PATCH 81/93] Rebuilt for Python 3.13 --- python-yara.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-yara.spec b/python-yara.spec index 41c6c4f..2349a4d 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -1,6 +1,6 @@ Name: python-yara Version: 4.5.1 -%global baserelease 1 +%global baserelease 2 Summary: Python binding for the YARA pattern matching tool License: Apache-2.0 URL: https://github.com/VirusTotal/yara-python/ @@ -151,6 +151,9 @@ pytest-3 -k "$EXCLUDE" tests.py -v #==================================================================== %changelog +* Fri Jun 07 2024 Python Maint - 4.5.1-2 +- Rebuilt for Python 3.13 + * Wed May 29 2024 Michal Ambroz - 4.5.1-1 - bump to 4.5.1 From bbfc4b5140e4baab08b1d25f81ec441dd38c6733 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 19 Jul 2024 17:15:21 +0000 Subject: [PATCH 82/93] Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild --- python-yara.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-yara.spec b/python-yara.spec index 2349a4d..1f86f0a 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -1,6 +1,6 @@ Name: python-yara Version: 4.5.1 -%global baserelease 2 +%global baserelease 3 Summary: Python binding for the YARA pattern matching tool License: Apache-2.0 URL: https://github.com/VirusTotal/yara-python/ @@ -151,6 +151,9 @@ pytest-3 -k "$EXCLUDE" tests.py -v #==================================================================== %changelog +* Fri Jul 19 2024 Fedora Release Engineering - 4.5.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + * Fri Jun 07 2024 Python Maint - 4.5.1-2 - Rebuilt for Python 3.13 From 3825991841068ad6215becaf029d6373d300eb3a Mon Sep 17 00:00:00 2001 From: Michal Ambroz Date: Sat, 28 Sep 2024 19:09:46 +0200 Subject: [PATCH 83/93] rebuild with yara 4.5.2 --- changelog | 215 ++++++++++++++++++++++++++++++++++++++++++++++ python-yara.spec | 219 +---------------------------------------------- 2 files changed, 219 insertions(+), 215 deletions(-) create mode 100644 changelog diff --git a/changelog b/changelog new file mode 100644 index 0000000..da0f233 --- /dev/null +++ b/changelog @@ -0,0 +1,215 @@ +* Sat Sep 28 2024 Michal Ambroz - 4.5.1-4 +- rebuild with yara 4.5.2 + +* Fri Jul 19 2024 Fedora Release Engineering - 4.5.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Fri Jun 07 2024 Python Maint - 4.5.1-2 +- Rebuilt for Python 3.13 + +* Wed May 29 2024 Michal Ambroz - 4.5.1-1 +- bump to 4.5.1 + +* Wed Feb 14 2024 Michal Ambroz - 4.5.0-1 +- bump to 4.5.0 + +* Fri Jan 26 2024 Fedora Release Engineering - 4.4.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jan 22 2024 Fedora Release Engineering - 4.4.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Sep 17 2023 Mikel Olasagasti Uranga - 4.4.0-1 +- bump to 4.4.0 + +* Fri Aug 25 2023 Mikel Olasagasti Uranga - 4.3.1-4 +- Fix rhbz#2226378 rhbz#2220571 + +* Fri Jul 21 2023 Fedora Release Engineering - 4.3.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Wed Jun 14 2023 Python Maint - 4.3.1-2 +- Rebuilt for Python 3.12 + +* Wed Apr 26 2023 Michal Ambroz - 4.3.1-1 +- bump to 4.3.1 + +* Thu Mar 30 2023 Michal Ambroz - 4.3.0-1 +- bump to 4.3.0 + +* Fri Jan 20 2023 Fedora Release Engineering - 4.2.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Tue Nov 01 2022 Michal Ambroz - 4.2.3-1 +- Rebuilt for yara-4.2.3 - second service :) + +* Tue Aug 09 2022 Mikel Olasagasti Uranga - 4.2.0-5 +- Rebuilt for yara-4.2.3 + +* Mon Aug 08 2022 Mikel Olasagasti Uranga - 4.2.0-4 +- Skip testModuleData again for F36, fixes rhbz#2116289 + +* Fri Jul 22 2022 Fedora Release Engineering - 4.2.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon Jun 13 2022 Python Maint - 4.2.0-2 +- Rebuilt for Python 3.11 + +* Fri May 27 2022 Mikel Olasagasti Uranga - 4.2.0-1 +- Bump to 4.2.0 rhbz#2063287 fixes FTBFS rhbz#2064646 +- Minor changes to spec, like using https for URL +- Simplify some of checks for different builds + +* Fri Jan 21 2022 Fedora Release Engineering - 4.1.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Wed Nov 10 2021 Michal Ambroz - 4.1.3-2 +- rebuild due to koji hickup + +* Wed Nov 10 2021 Michal Ambroz - 4.1.3-1 +- bump the python-yara as well to 4.1.3 + +* Fri Jul 23 2021 Fedora Release Engineering - 4.1.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri Jun 04 2021 Python Maint - 4.1.0-2 +- Rebuilt for Python 3.10 + +* Tue Apr 27 2021 Michal Ambroz - 4.1.0-1 +- bump the python-yara as well to 4.1.0 + +* Tue Apr 27 2021 Michal Ambroz - 4.0.5-3 +- rebuild for new version of yara 4.1.0 + +* Sun Apr 25 2021 Michal Ambroz - 4.0.5-2 +- rebuild for epel + +* Sat Mar 13 2021 Michal Ambroz - 4.0.5-1 +- bump to version 4.0.5 + +* Wed Feb 10 2021 Michal Ambroz - 4.0.4-1 +- bump to version 4.0.4 + +* Thu Feb 04 2021 Michal Ambroz - 4.0.3-1 +- bump to version 4.0.3 + +* Wed Jan 27 2021 Fedora Release Engineering - 4.0.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 4.0.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Thu Jul 16 2020 Michal Ambroz - 4.0.2-1 +- bump to version 4.0.2 + +* Sat Jun 06 2020 Michal Ambroz - 4.0.1-1 +- bump to version 4.0.1 + +* Tue May 26 2020 Miro Hrončok - 4.0.0-2 +- Rebuilt for Python 3.9 + +* Tue May 12 2020 Michal Ambroz - 4.0.0-1 +- bump to version 4.0.0 + +* Thu Jan 30 2020 Fedora Release Engineering - 3.11.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Mon Oct 14 2019 Michal Ambroz - 3.11.0-2 +- fix the release number + +* Mon Oct 14 2019 Michal Ambroz - 3.11.0-1 +- bump to 3.11.0, omit py2 for f30+ and epel8+ + +* Mon Aug 19 2019 Miro Hrončok - 3.9.0-2.2 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 3.9.0-2.1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Fri Mar 22 2019 Michal Ambroz - 3.9.0-2 +- change dependency to sphinx based on the /usr/bin/sphinx-build + +* Mon Mar 18 2019 Michal Ambroz - 3.9.0-1 +- bump to 3.9.0 + +* Sat Feb 02 2019 Fedora Release Engineering - 3.8.1-3.2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Oct 12 2018 Zbigniew Jędrzejewski-Szmek - 3.8.1-3 +- Python2 binary package has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + +* Mon Aug 27 2018 Michal Ambroz - 3.8.1-2 +- rebuild with yara 3.8.1 override + +* Mon Aug 27 2018 Michal Ambroz - 3.8.1-1 +- bump to 3.8.1 + +* Sat Jul 14 2018 Fedora Release Engineering - 3.7.0-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jun 19 2018 Miro Hrončok - 3.7.0-6 +- Rebuilt for Python 3.7 + +* Fri Mar 16 2018 Michal Ambroz - 3.7.0-5 +- fix dependencies for building the epel7/epel6 packages + +* Thu Mar 15 2018 Michal Ambroz - 3.7.0-4 +- rebuild with yara 3.7.1 for supported platforms +- fix dependencies for building the epel packages + +* Wed Feb 28 2018 Iryna Shcherbina - 3.7.0-3 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) + +* Fri Feb 09 2018 Fedora Release Engineering - 3.7.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Nov 15 2017 Michal Ambroz - 3.7.0-1 +- bump to yara 3.7.0 release version (#1511921) + +* Thu Aug 03 2017 Fedora Release Engineering - 3.6.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 3.6.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Mon Jul 17 2017 Michal Ambroz - 3.6.3-2 +- fix bogus dates in the changelog +- omit failing testCompileFile test for s390/ppc64 + +* Mon Jul 17 2017 Michal Ambroz - 3.6.3-1 +- bump to upstream 3.6.3 release version + +* Sat Feb 11 2017 Fedora Release Engineering - 3.5.0-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Mon Dec 19 2016 Miro Hrončok - 3.5.0-9 +- Rebuild for Python 3.6 + +* Wed Nov 23 2016 Dan Horák - 3.5.0-8 +- fix the arch lists + +* Tue Aug 16 2016 Michal Ambroz - 3.5.0-7 +- adding test exclusions also for armv7hl and ppc64le + +* Tue Aug 16 2016 Michal Ambroz - 3.5.0-6 +- additionally testEntrypoint testIn testIntegerFunctions failing on s390/ppc64 +- exclude those tests for build of s390/ppc64 + +* Tue Aug 16 2016 Michal Ambroz - 3.5.0-5 +- testModuleData is failing on arm platform even for python 2.7 +- exclude this test for build of arm + +* Fri Aug 12 2016 Michal Ambroz - 3.5.0-4 +- remove unnecessary ldconfig +- count with the python3 test values except the 2 known for failing + +* Thu Aug 11 2016 Michal Ambroz - 3.5.0-3 +- change python3 naming to allow epel7 python34 packages + +* Thu Aug 04 2016 Michal Ambroz - 3.5.0-2 +- cosmetics + +* Thu Aug 04 2016 Michal Ambroz - 3.5.0-1 +- with yara 3.5.0 the python yara binding is separate library diff --git a/python-yara.spec b/python-yara.spec index 1f86f0a..d0e0e78 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -1,8 +1,8 @@ Name: python-yara Version: 4.5.1 -%global baserelease 3 Summary: Python binding for the YARA pattern matching tool License: Apache-2.0 +%global baserelease 4 URL: https://github.com/VirusTotal/yara-python/ VCS: https://github.com/VirusTotal/yara-python/ # https://github.com/VirusTotal/yara-python/tags @@ -34,10 +34,10 @@ and a Boolean expression which determine its logic.} %endif %if 0%{?with_release} -Release: %{baserelease}%{?dist} +Release: %autorelease -b %baserelease Source0: https://github.com/%{gituser}/%{gitname}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz %else -Release: %{baserelease}.%{gitdate}git%{shortcommit}%{?dist} +Release: %autorelease -b %baserelease -s %{gitdate}git%{shortcommit} Source0: https://github.com/%{gituser}/%{gitname}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz#/%{name}-%{version}-git%{gitdate}-%{shortcommit}.tar.gz %endif @@ -151,215 +151,4 @@ pytest-3 -k "$EXCLUDE" tests.py -v #==================================================================== %changelog -* Fri Jul 19 2024 Fedora Release Engineering - 4.5.1-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild - -* Fri Jun 07 2024 Python Maint - 4.5.1-2 -- Rebuilt for Python 3.13 - -* Wed May 29 2024 Michal Ambroz - 4.5.1-1 -- bump to 4.5.1 - -* Wed Feb 14 2024 Michal Ambroz - 4.5.0-1 -- bump to 4.5.0 - -* Fri Jan 26 2024 Fedora Release Engineering - 4.4.0-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - -* Mon Jan 22 2024 Fedora Release Engineering - 4.4.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - -* Sun Sep 17 2023 Mikel Olasagasti Uranga - 4.4.0-1 -- bump to 4.4.0 - -* Fri Aug 25 2023 Mikel Olasagasti Uranga - 4.3.1-4 -- Fix rhbz#2226378 rhbz#2220571 - -* Fri Jul 21 2023 Fedora Release Engineering - 4.3.1-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild - -* Wed Jun 14 2023 Python Maint - 4.3.1-2 -- Rebuilt for Python 3.12 - -* Wed Apr 26 2023 Michal Ambroz - 4.3.1-1 -- bump to 4.3.1 - -* Thu Mar 30 2023 Michal Ambroz - 4.3.0-1 -- bump to 4.3.0 - -* Fri Jan 20 2023 Fedora Release Engineering - 4.2.3-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild - -* Tue Nov 01 2022 Michal Ambroz - 4.2.3-1 -- Rebuilt for yara-4.2.3 - second service :) - -* Tue Aug 09 2022 Mikel Olasagasti Uranga - 4.2.0-5 -- Rebuilt for yara-4.2.3 - -* Mon Aug 08 2022 Mikel Olasagasti Uranga - 4.2.0-4 -- Skip testModuleData again for F36, fixes rhbz#2116289 - -* Fri Jul 22 2022 Fedora Release Engineering - 4.2.0-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild - -* Mon Jun 13 2022 Python Maint - 4.2.0-2 -- Rebuilt for Python 3.11 - -* Fri May 27 2022 Mikel Olasagasti Uranga - 4.2.0-1 -- Bump to 4.2.0 rhbz#2063287 fixes FTBFS rhbz#2064646 -- Minor changes to spec, like using https for URL -- Simplify some of checks for different builds - -* Fri Jan 21 2022 Fedora Release Engineering - 4.1.3-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild - -* Wed Nov 10 2021 Michal Ambroz - 4.1.3-2 -- rebuild due to koji hickup - -* Wed Nov 10 2021 Michal Ambroz - 4.1.3-1 -- bump the python-yara as well to 4.1.3 - -* Fri Jul 23 2021 Fedora Release Engineering - 4.1.0-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild - -* Fri Jun 04 2021 Python Maint - 4.1.0-2 -- Rebuilt for Python 3.10 - -* Tue Apr 27 2021 Michal Ambroz - 4.1.0-1 -- bump the python-yara as well to 4.1.0 - -* Tue Apr 27 2021 Michal Ambroz - 4.0.5-3 -- rebuild for new version of yara 4.1.0 - -* Sun Apr 25 2021 Michal Ambroz - 4.0.5-2 -- rebuild for epel - -* Sat Mar 13 2021 Michal Ambroz - 4.0.5-1 -- bump to version 4.0.5 - -* Wed Feb 10 2021 Michal Ambroz - 4.0.4-1 -- bump to version 4.0.4 - -* Thu Feb 04 2021 Michal Ambroz - 4.0.3-1 -- bump to version 4.0.3 - -* Wed Jan 27 2021 Fedora Release Engineering - 4.0.2-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - -* Wed Jul 29 2020 Fedora Release Engineering - 4.0.2-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - -* Thu Jul 16 2020 Michal Ambroz - 4.0.2-1 -- bump to version 4.0.2 - -* Sat Jun 06 2020 Michal Ambroz - 4.0.1-1 -- bump to version 4.0.1 - -* Tue May 26 2020 Miro Hrončok - 4.0.0-2 -- Rebuilt for Python 3.9 - -* Tue May 12 2020 Michal Ambroz - 4.0.0-1 -- bump to version 4.0.0 - -* Thu Jan 30 2020 Fedora Release Engineering - 3.11.0-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - -* Mon Oct 14 2019 Michal Ambroz - 3.11.0-2 -- fix the release number - -* Mon Oct 14 2019 Michal Ambroz - 3.11.0-1 -- bump to 3.11.0, omit py2 for f30+ and epel8+ - -* Mon Aug 19 2019 Miro Hrončok - 3.9.0-2.2 -- Rebuilt for Python 3.8 - -* Fri Jul 26 2019 Fedora Release Engineering - 3.9.0-2.1 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - -* Fri Mar 22 2019 Michal Ambroz - 3.9.0-2 -- change dependency to sphinx based on the /usr/bin/sphinx-build - -* Mon Mar 18 2019 Michal Ambroz - 3.9.0-1 -- bump to 3.9.0 - -* Sat Feb 02 2019 Fedora Release Engineering - 3.8.1-3.2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - -* Fri Oct 12 2018 Zbigniew Jędrzejewski-Szmek - 3.8.1-3 -- Python2 binary package has been removed - See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal - -* Mon Aug 27 2018 Michal Ambroz - 3.8.1-2 -- rebuild with yara 3.8.1 override - -* Mon Aug 27 2018 Michal Ambroz - 3.8.1-1 -- bump to 3.8.1 - -* Sat Jul 14 2018 Fedora Release Engineering - 3.7.0-7 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - -* Tue Jun 19 2018 Miro Hrončok - 3.7.0-6 -- Rebuilt for Python 3.7 - -* Fri Mar 16 2018 Michal Ambroz - 3.7.0-5 -- fix dependencies for building the epel7/epel6 packages - -* Thu Mar 15 2018 Michal Ambroz - 3.7.0-4 -- rebuild with yara 3.7.1 for supported platforms -- fix dependencies for building the epel packages - -* Wed Feb 28 2018 Iryna Shcherbina - 3.7.0-3 -- Update Python 2 dependency declarations to new packaging standards - (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) - -* Fri Feb 09 2018 Fedora Release Engineering - 3.7.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - -* Wed Nov 15 2017 Michal Ambroz - 3.7.0-1 -- bump to yara 3.7.0 release version (#1511921) - -* Thu Aug 03 2017 Fedora Release Engineering - 3.6.3-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild - -* Thu Jul 27 2017 Fedora Release Engineering - 3.6.3-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - -* Mon Jul 17 2017 Michal Ambroz - 3.6.3-2 -- fix bogus dates in the changelog -- omit failing testCompileFile test for s390/ppc64 - -* Mon Jul 17 2017 Michal Ambroz - 3.6.3-1 -- bump to upstream 3.6.3 release version - -* Sat Feb 11 2017 Fedora Release Engineering - 3.5.0-10 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild - -* Mon Dec 19 2016 Miro Hrončok - 3.5.0-9 -- Rebuild for Python 3.6 - -* Wed Nov 23 2016 Dan Horák - 3.5.0-8 -- fix the arch lists - -* Tue Aug 16 2016 Michal Ambroz - 3.5.0-7 -- adding test exclusions also for armv7hl and ppc64le - -* Tue Aug 16 2016 Michal Ambroz - 3.5.0-6 -- additionally testEntrypoint testIn testIntegerFunctions failing on s390/ppc64 -- exclude those tests for build of s390/ppc64 - -* Tue Aug 16 2016 Michal Ambroz - 3.5.0-5 -- testModuleData is failing on arm platform even for python 2.7 -- exclude this test for build of arm - -* Fri Aug 12 2016 Michal Ambroz - 3.5.0-4 -- remove unnecessary ldconfig -- count with the python3 test values except the 2 known for failing - -* Thu Aug 11 2016 Michal Ambroz - 3.5.0-3 -- change python3 naming to allow epel7 python34 packages - -* Thu Aug 04 2016 Michal Ambroz - 3.5.0-2 -- cosmetics - -* Thu Aug 04 2016 Michal Ambroz - 3.5.0-1 -- with yara 3.5.0 the python yara binding is separate library +%autochangelog From d7e7621ac9380c770718fa655c32e060b932e5cc Mon Sep 17 00:00:00 2001 From: Michal Ambroz Date: Sat, 28 Sep 2024 19:27:41 +0200 Subject: [PATCH 84/93] rebuild with yara 4.5.2 --- changelog | 2 +- python-yara.spec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/changelog b/changelog index da0f233..3ee846c 100644 --- a/changelog +++ b/changelog @@ -1,4 +1,4 @@ -* Sat Sep 28 2024 Michal Ambroz - 4.5.1-4 +* Sat Sep 28 2024 Michal Ambroz - 4.5.1-8 - rebuild with yara 4.5.2 * Fri Jul 19 2024 Fedora Release Engineering - 4.5.1-3 diff --git a/python-yara.spec b/python-yara.spec index d0e0e78..3b75db3 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -2,7 +2,7 @@ Name: python-yara Version: 4.5.1 Summary: Python binding for the YARA pattern matching tool License: Apache-2.0 -%global baserelease 4 +%global baserelease 8 URL: https://github.com/VirusTotal/yara-python/ VCS: https://github.com/VirusTotal/yara-python/ # https://github.com/VirusTotal/yara-python/tags From c606b96f2cd551f4c429842bf29bff57e8d263b8 Mon Sep 17 00:00:00 2001 From: Michal Ambroz Date: Sat, 28 Sep 2024 19:31:55 +0200 Subject: [PATCH 85/93] rebuild with yara 4.5.2 --- changelog | 2 +- python-yara.spec | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/changelog b/changelog index 3ee846c..e3f37e2 100644 --- a/changelog +++ b/changelog @@ -1,4 +1,4 @@ -* Sat Sep 28 2024 Michal Ambroz - 4.5.1-8 +* Sat Sep 28 2024 Michal Ambroz - 4.5.1-13 - rebuild with yara 4.5.2 * Fri Jul 19 2024 Fedora Release Engineering - 4.5.1-3 diff --git a/python-yara.spec b/python-yara.spec index 3b75db3..fa63e5f 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -2,7 +2,6 @@ Name: python-yara Version: 4.5.1 Summary: Python binding for the YARA pattern matching tool License: Apache-2.0 -%global baserelease 8 URL: https://github.com/VirusTotal/yara-python/ VCS: https://github.com/VirusTotal/yara-python/ # https://github.com/VirusTotal/yara-python/tags @@ -34,10 +33,10 @@ and a Boolean expression which determine its logic.} %endif %if 0%{?with_release} -Release: %autorelease -b %baserelease +Release: %autorelease Source0: https://github.com/%{gituser}/%{gitname}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz %else -Release: %autorelease -b %baserelease -s %{gitdate}git%{shortcommit} +Release: %autorelease -s %{gitdate}git%{shortcommit} Source0: https://github.com/%{gituser}/%{gitname}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz#/%{name}-%{version}-git%{gitdate}-%{shortcommit}.tar.gz %endif From 4fa4d357d846807cc2e969ec9b29749813eccbb5 Mon Sep 17 00:00:00 2001 From: Michal Ambroz Date: Sat, 28 Sep 2024 19:51:15 +0200 Subject: [PATCH 86/93] rebuild with yara 4.5.2 --- changelog | 2 +- python-yara.spec | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/changelog b/changelog index e3f37e2..ca16de6 100644 --- a/changelog +++ b/changelog @@ -1,4 +1,4 @@ -* Sat Sep 28 2024 Michal Ambroz - 4.5.1-13 +* Sat Sep 28 2024 Michal Ambroz - 4.5.1-14 - rebuild with yara 4.5.2 * Fri Jul 19 2024 Fedora Release Engineering - 4.5.1-3 diff --git a/python-yara.spec b/python-yara.spec index fa63e5f..7906228 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -2,6 +2,8 @@ Name: python-yara Version: 4.5.1 Summary: Python binding for the YARA pattern matching tool License: Apache-2.0 +# TODO: return to 1 with each next release +%global baserelease 8 URL: https://github.com/VirusTotal/yara-python/ VCS: https://github.com/VirusTotal/yara-python/ # https://github.com/VirusTotal/yara-python/tags From 3810f230e43507f2b9b407b1bf93155ec3116f54 Mon Sep 17 00:00:00 2001 From: Michal Ambroz Date: Sat, 28 Sep 2024 19:57:21 +0200 Subject: [PATCH 87/93] rebuild with yara 4.5.2 --- changelog | 2 +- python-yara.spec | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/changelog b/changelog index ca16de6..e3f37e2 100644 --- a/changelog +++ b/changelog @@ -1,4 +1,4 @@ -* Sat Sep 28 2024 Michal Ambroz - 4.5.1-14 +* Sat Sep 28 2024 Michal Ambroz - 4.5.1-13 - rebuild with yara 4.5.2 * Fri Jul 19 2024 Fedora Release Engineering - 4.5.1-3 diff --git a/python-yara.spec b/python-yara.spec index 7906228..1f8a8f0 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -3,7 +3,7 @@ Version: 4.5.1 Summary: Python binding for the YARA pattern matching tool License: Apache-2.0 # TODO: return to 1 with each next release -%global baserelease 8 +%global baserelease 6 URL: https://github.com/VirusTotal/yara-python/ VCS: https://github.com/VirusTotal/yara-python/ # https://github.com/VirusTotal/yara-python/tags @@ -35,10 +35,10 @@ and a Boolean expression which determine its logic.} %endif %if 0%{?with_release} -Release: %autorelease +Release: %autorelease -b %baserelease Source0: https://github.com/%{gituser}/%{gitname}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz %else -Release: %autorelease -s %{gitdate}git%{shortcommit} +Release: %autorelease -b %baserelease -s %{gitdate}git%{shortcommit} Source0: https://github.com/%{gituser}/%{gitname}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz#/%{name}-%{version}-git%{gitdate}-%{shortcommit}.tar.gz %endif From 89aacbc3bdfd5c4cb84973b00d9889d1ef64a7f3 Mon Sep 17 00:00:00 2001 From: Michal Ambroz Date: Sat, 28 Sep 2024 20:41:18 +0200 Subject: [PATCH 88/93] rebuild with yara 4.5.2 (this time with override) From 81d37d401801939fb109f76202983ace84d3d831 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 18 Jan 2025 20:57:04 +0000 Subject: [PATCH 89/93] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild From f271b385efee7262f9943b61931b32d02ffd9a82 Mon Sep 17 00:00:00 2001 From: Michal Ambroz Date: Fri, 23 May 2025 19:12:16 +0200 Subject: [PATCH 90/93] bump to 4.5.3 --- python-yara.spec | 12 +++++------- sources | 2 +- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/python-yara.spec b/python-yara.spec index 1f8a8f0..26f0212 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -1,9 +1,7 @@ Name: python-yara -Version: 4.5.1 +Version: 4.5.3 Summary: Python binding for the YARA pattern matching tool License: Apache-2.0 -# TODO: return to 1 with each next release -%global baserelease 6 URL: https://github.com/VirusTotal/yara-python/ VCS: https://github.com/VirusTotal/yara-python/ # https://github.com/VirusTotal/yara-python/tags @@ -16,8 +14,8 @@ VCS: https://github.com/VirusTotal/yara-python/ %global gituser VirusTotal %global gitname yara-python -%global gitdate 20240525 -%global commit 2880de0358e1ec871093759d74309f4dc080d726 +%global gitdate 20250523 +%global commit 5caac1ea81f7e700dc7969abd9706dd0cd1580ec %global shortcommit %(c=%{commit}; echo ${c:0:7}) @@ -35,10 +33,10 @@ and a Boolean expression which determine its logic.} %endif %if 0%{?with_release} -Release: %autorelease -b %baserelease +Release: %autorelease Source0: https://github.com/%{gituser}/%{gitname}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz %else -Release: %autorelease -b %baserelease -s %{gitdate}git%{shortcommit} +Release: %autorelease -s %{gitdate}git%{shortcommit} Source0: https://github.com/%{gituser}/%{gitname}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz#/%{name}-%{version}-git%{gitdate}-%{shortcommit}.tar.gz %endif diff --git a/sources b/sources index a5201eb..2eada90 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (python-yara-4.5.1.tar.gz) = fb3d78cea58a5dcb21287d5211805ef7097c07b9117e4fe78a7e56b40f2520950f0e8d6f1eb3c4253a454e10ca782c3826c19613bd17677bef491ae91f9f9d2a +SHA512 (python-yara-4.5.3.tar.gz) = f7e6860c479e70efe5f56b2fea4f2b5d4878ec6a19778e59465f9983c7af493215925d753218fce1fd0e906634582bf5c67095e398864f706d36bbe4a43a5537 From e1a61698a15f66105fbb3faa29ecc4ccc283ed62 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Tue, 3 Jun 2025 11:05:16 +0200 Subject: [PATCH 91/93] Rebuilt for Python 3.14 From 37cd4df74203c5891e630e43ffc0b74972bc0cf5 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 25 Jul 2025 11:13:31 +0000 Subject: [PATCH 92/93] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild From e49fd644c75a36010fd879d628dca2d0322f4f6c Mon Sep 17 00:00:00 2001 From: Michal Ambroz Date: Wed, 19 Nov 2025 11:15:53 +0100 Subject: [PATCH 93/93] bump to 4.5.4 --- python-yara.spec | 8 ++++---- sources | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/python-yara.spec b/python-yara.spec index 26f0212..9a00228 100644 --- a/python-yara.spec +++ b/python-yara.spec @@ -1,9 +1,9 @@ Name: python-yara -Version: 4.5.3 +Version: 4.5.4 Summary: Python binding for the YARA pattern matching tool License: Apache-2.0 URL: https://github.com/VirusTotal/yara-python/ -VCS: https://github.com/VirusTotal/yara-python/ +VCS: git:https://github.com/VirusTotal/yara-python/ # https://github.com/VirusTotal/yara-python/tags # https://github.com/VirusTotal/yara-python/releases/ @@ -14,8 +14,8 @@ VCS: https://github.com/VirusTotal/yara-python/ %global gituser VirusTotal %global gitname yara-python -%global gitdate 20250523 -%global commit 5caac1ea81f7e700dc7969abd9706dd0cd1580ec +%global gitdate 20250527 +%global commit 74920b6da9a70a162b3bdc41b30e4af02e5c7dff %global shortcommit %(c=%{commit}; echo ${c:0:7}) diff --git a/sources b/sources index 2eada90..d7f98ac 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (python-yara-4.5.3.tar.gz) = f7e6860c479e70efe5f56b2fea4f2b5d4878ec6a19778e59465f9983c7af493215925d753218fce1fd0e906634582bf5c67095e398864f706d36bbe4a43a5537 +SHA512 (python-yara-4.5.4.tar.gz) = fee87a2127284a2287c60b14bcd36facf061542da1321ccaa26dbe23c7e8534253434a78c8a65a0c2915bb1331acbdee78b12d02b748ec7d95a106913172a1a2