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+