From 22faf86d1afd374a6839a21fe055fbf786fdaeb358d587976ab4008534e5d48e Mon Sep 17 00:00:00 2001 From: Adam Majer Date: Fri, 17 Apr 2020 09:39:48 +0000 Subject: [PATCH] Accepting request 794799 from home:scarabeus_iv:branches:devel:libraries:c_c++ - Fix build without python2 available by generating the py2 depending packages only when needed OBS-URL: https://build.opensuse.org/request/show/794799 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/boost-defaults?expand=0&rev=6 --- boost-defaults.changes | 6 ++++++ boost-defaults.spec | 13 +++++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/boost-defaults.changes b/boost-defaults.changes index cf0e88d..c6737c5 100644 --- a/boost-defaults.changes +++ b/boost-defaults.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Apr 17 07:58:34 UTC 2020 - Tomáš Chvátal + +- Fix build without python2 available by generating the py2 + depending packages only when needed + ------------------------------------------------------------------- Mon Aug 5 16:14:10 UTC 2019 - Adam Majer diff --git a/boost-defaults.spec b/boost-defaults.spec index 53aa108..d9b8b3f 100644 --- a/boost-defaults.spec +++ b/boost-defaults.spec @@ -1,7 +1,7 @@ # # spec file for package boost-defaults # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,6 +16,7 @@ # +%bcond_without python2 Name: boost-defaults Version: 1.71.0 Release: 0 @@ -23,7 +24,7 @@ Release: 0 Summary: Default Boost C++ Libraries License: MIT Group: Development/Libraries/C and C++ -Url: http://www.boost.org +URL: http://www.boost.org Source1: README BuildArch: noarch @@ -513,11 +514,15 @@ cp %{SOURCE1} . %files -n libboost_graph_parallel-devel %doc README +%if %{with python2} %files -n libboost_mpi_python-devel %doc README +%endif +%if %{with python2} %files -n python-boost_parallel_mpi %doc README +%endif %files -n libboost_mpi_python3-devel %doc README @@ -531,11 +536,15 @@ cp %{SOURCE1} . %files -n libboost_program_options-devel %doc README +%if %{with python2} %files -n libboost_python-devel %doc README +%endif +%if %{with python2} %files -n libboost_numpy-devel %doc README +%endif %files -n libboost_python3-devel %doc README