From 147a54e8f3bdcb80d1dc8128909141b551363538948a14221ca8a140d53ae093 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Thu, 12 Nov 2015 12:45:47 +0000 Subject: [PATCH] Accepting request 344030 from home:alarrosa:branches:KDE:Qt5 - Python bindings require a recent python-google-apputils, so build them where it's available (that's anything recent except SLE12) OBS-URL: https://build.opensuse.org/request/show/344030 OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/protobuf?expand=0&rev=40 --- protobuf.changes | 6 ++++++ protobuf.spec | 7 ++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/protobuf.changes b/protobuf.changes index 3bf3854..38c6aaa 100644 --- a/protobuf.changes +++ b/protobuf.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Nov 12 12:30:26 UTC 2015 - alarrosa@suse.com + +- Python bindings require a recent python-google-apputils, so build + them where it's available (that's anything recent except SLE12) + ------------------------------------------------------------------- Thu Nov 12 09:36:46 UTC 2015 - alarrosa@suse.com diff --git a/protobuf.spec b/protobuf.spec index 7af3a8a..6a9e31a 100644 --- a/protobuf.spec +++ b/protobuf.spec @@ -37,10 +37,11 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build %else %bcond_with protobuf_java %endif -%if 0%{?suse_version} > 1210 && 0%{?is_opensuse} -%bcond_without protobuf_python -%else +# Don't build the python bindings in SLE12 or old distros +%if ( 0%{?suse_version} == 1315 && !0%{?is_opensuse} ) || 0%{?suse_version} < 1210 %bcond_with protobuf_python +%else +%bcond_without protobuf_python %endif %if 0%{?suse_version} > 1010 BuildRequires: fdupes