From c5a60c6b9c5239278cf0d601db2af1b7168feb263731e42aaa96fd779bdc35f0 Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Tue, 5 May 2020 05:56:21 +0000 Subject: [PATCH] - Disable python2 bindings OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/protobuf?expand=0&rev=90 --- protobuf.changes | 5 +++++ protobuf.spec | 13 ++++++------- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/protobuf.changes b/protobuf.changes index 633582c..f7e7d4f 100644 --- a/protobuf.changes +++ b/protobuf.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 5 05:56:00 UTC 2020 - Martin Pluskal + +- Disable python2 bindings + ------------------------------------------------------------------- Fri Mar 6 10:05:22 UTC 2020 - Nico Kruber diff --git a/protobuf.spec b/protobuf.spec index 2f58b9f..7fdbd22 100644 --- a/protobuf.spec +++ b/protobuf.spec @@ -22,10 +22,10 @@ %define src_install_dir %{_prefix}/src/%{name} %define extra_java_flags -source 7 -target 7 # requires gmock, which is not yet in the distribution -%bcond_with check -%bcond_without java -%bcond_without python2 -%bcond_without python3 +%bcond_with check +%bcond_without java +%bcond_without python3 +%bcond_with python2 Name: protobuf Version: 3.11.4 Release: 0 @@ -158,8 +158,7 @@ sed -i -e '/env python/d' python/google/protobuf/internal/*.py autoreconf -fvi %configure \ --disable-static - -make %{?_smp_mflags} +%make_build %if %{with java} pushd java @@ -177,7 +176,7 @@ popd %if %{with check} %check -make %{?_smp_mflags} check +%make_build check %endif %install