bump to yara 3.7.0 release version (#1511921)

This commit is contained in:
Michal Ambroz 2017-11-15 19:57:04 +00:00
commit 2f45b09167
3 changed files with 20 additions and 16 deletions

1
.gitignore vendored
View file

@ -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

View file

@ -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 <rebus at, seznam.cz> - 3.7.0-1
- bump to yara 3.7.0 release version (#1511921)
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.6.3-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild

View file

@ -1 +1 @@
SHA512 (python-yara-3.6.3.tar.gz) = 22d69e1dad6ac709e9d1e1e5161b9afc0f9424f211b77ea615c304193d42be2823916d39bcd43a0189d862ff9af31bd80a0abd8e6336f039d4e1089fa2526e6a
SHA512 (python-yara-3.7.0.tar.gz) = 96d43620787f3369843a3255c3dc6ec7e8dd8afedcb8a5414d964c9a30f4e91277156a2543dd9dc28474fc1cfdbedc90e46ed76c83481673fc2c39dd6dc97f73