From badcbb0167c98289222ec236df6c0006cd1da3604e6fd866cda0dbbb65d95555 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 4 Apr 2017 07:11:51 +0000 Subject: [PATCH] Accepting request 484996 from home:frispete:PyQt5 - Fix requires_python3_sip_api macro Without this fix, installing packages results in: Problem: nothing provides python3-sip(api) = . needed by python3-... OBS-URL: https://build.opensuse.org/request/show/484996 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt/python-sip?expand=0&rev=148 --- python-sip.changes | 5 +++++ python-sip.spec | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) 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