SHA256
1
0
forked from pool/python-sip

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
This commit is contained in:
Dirk Mueller 2017-04-04 07:11:51 +00:00 committed by Git OBS Bridge
parent ed87965e14
commit a4b00116f9
2 changed files with 8 additions and 2 deletions

View File

@ -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

View File

@ -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