fix for el6
This commit is contained in:
parent
27fde41caf
commit
29b5279b1b
1 changed files with 8 additions and 2 deletions
|
|
@ -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 <rebus at, seznam.cz> - 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 <rebus at, seznam.cz> - 3.7.0-4
|
||||
- rebuild with yara 3.7.1 for supported platforms
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue