From 29b5279b1b3b2606645dfab09bdccb30c87ba015 Mon Sep 17 00:00:00 2001 From: Michal Ambroz Date: Fri, 16 Mar 2018 01:39:37 +0000 Subject: [PATCH] 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