diff --git a/python-sip.changes b/python-sip.changes index ac5401c..675016e 100644 --- a/python-sip.changes +++ b/python-sip.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Apr 3 17:22:56 UTC 2017 - hpj@urpla.net + +- Fix requires_python3_sip_api macro + ------------------------------------------------------------------- Wed Mar 29 15:38:33 UTC 2017 - toddrme2178@gmail.com diff --git a/python-sip.spec b/python-sip.spec index 4eb7466..221c399 100644 --- a/python-sip.spec +++ b/python-sip.spec @@ -16,11 +16,12 @@ # +%define python_sip_api 12.1 + %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-sip Version: 4.19.1 Release: 0 -%define python_sip_api 12.1 Summary: SIP tool to use python sip bindings License: GPL-2.0 or GPL-3.0 or SUSE-SIP Group: Development/Libraries/Python @@ -149,7 +150,7 @@ echo "%%requires_python_sip_api Requires: %{python2_prefix}-sip(api) = %{python_ %endif %if 0%{have_python3} -echo "%%requires_python3_sip_api Requires: %{python3_prefix}-sip(api) = $sip_major.$sip_minor" > %{buildroot}/%{_sysconfdir}/rpm/macros.%{python3_prefix}-sip +echo "%%requires_python3_sip_api Requires: %{python3_prefix}-sip(api) = %{python_sip_api}" > %{buildroot}/%{_sysconfdir}/rpm/macros.%{python3_prefix}-sip %py3_compile %{buildroot}%{python3_sitearch} %endif