From f2fbb7d8ce25688d7c6c8fd2026267e519585152a373dfe4efe368597069867a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Thu, 23 Nov 2017 09:58:45 +0000 Subject: [PATCH] Accepting request 542074 from home:mimi_vx:branches:KDE:Qt5 - fix have_python conditions OBS-URL: https://build.opensuse.org/request/show/542074 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt5/python-sip?expand=0&rev=13 --- python-sip.changes | 5 +++++ python-sip.spec | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/python-sip.changes b/python-sip.changes index 44d456e..8810591 100644 --- a/python-sip.changes +++ b/python-sip.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Nov 15 14:11:50 UTC 2017 - mimi.vx@gmail.com + +- fix have_python conditions + ------------------------------------------------------------------- Mon Aug 28 21:03:01 UTC 2017 - toddrme2178@gmail.com diff --git a/python-sip.spec b/python-sip.spec index 8f7ea91..4320a83 100644 --- a/python-sip.spec +++ b/python-sip.spec @@ -145,14 +145,14 @@ mkdir -p %{buildroot}/%{_sysconfdir}/rpm/ echo "%%python_sip_api_ver %{python_sip_api}" > %{buildroot}/%{_sysconfdir}/rpm/macros.python_all-sip -%if 0%{have_python2} +%if 0%{?have_python2} echo "%%requires_python2_sip_api Requires: %{python2_prefix}-sip(api) = %%python_sip_api_ver" > %{buildroot}/%{_sysconfdir}/rpm/macros.%{python2_prefix}-sip echo "%%requires_python_sip_api Requires: %{python2_prefix}-sip(api) = %%python_sip_api_ver" >> %{buildroot}/%{_sysconfdir}/rpm/macros.%{python2_prefix}-sip %py_compile %{buildroot}%{python2_sitearch} %endif -%if 0%{have_python3} +%if 0%{?have_python3} echo "%%requires_python3_sip_api Requires: %{python3_prefix}-sip(api) = %%python_sip_api_ver" > %{buildroot}/%{_sysconfdir}/rpm/macros.%{python3_prefix}-sip %py3_compile %{buildroot}%{python3_sitearch}