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