From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp40.i.mail.ru (smtp40.i.mail.ru [94.100.177.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 7DA6C469711 for ; Tue, 19 May 2020 07:30:46 +0300 (MSK) From: "Alexander V. Tikhonov" Date: Tue, 19 May 2020 07:30:34 +0300 Message-Id: <950e06fc033bb29f0cfacc0329b147868b6fec25.1589861898.git.avtikhon@tarantool.org> In-Reply-To: References: In-Reply-To: References: Subject: [Tarantool-patches] [PATCH v4 1/3] build: fix rpm packages build on Fedora 32 List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Oleg Piskunov , Alexander Turenko Cc: tarantool-patches@dev.tarantool.org Tarantool packages build scenario at rpm/tarantool.spec installs Python packages for Tarantool testing. In some latest OS like Fedora 32 old Python packages based on Python 2 version were deprecated and changed to Python 3. Currently Tarantool testing based on Python 2 which packages stored at local backport repository and it should be used from there calling it as python2-* packages. Issue: ... No matching package to install: 'python-yaml >= 3.0.9' ... Not all dependencies satisfied Error: Some packages could not be found. Needed for #4599 Closes #4965 --- rpm/tarantool.spec | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/rpm/tarantool.spec b/rpm/tarantool.spec index ff95ed646..529c18b38 100644 --- a/rpm/tarantool.spec +++ b/rpm/tarantool.spec @@ -69,18 +69,21 @@ BuildRequires: libunwind-devel %undefine _hardened_build %endif -# For tests -%if (0%{?fedora} >= 22 || 0%{?rhel} == 7) -BuildRequires: python >= 2.7 -BuildRequires: python-six >= 1.9.0 -BuildRequires: python-gevent >= 1.0 -BuildRequires: python-yaml >= 3.0.9 -%endif +# Set dependences for tests. +# Do not install unused Python 3 packages which +# is default since Fedora 31 and CentOS 8. %if (0%{?fedora} >= 31 || 0%{?rhel} >= 8) BuildRequires: python2 >= 2.7 BuildRequires: python2-six >= 1.9.0 BuildRequires: python2-gevent >= 1.0 BuildRequires: python2-yaml >= 3.0.9 +%else +%if (0%{?rhel} != 6) +BuildRequires: python >= 2.7 +BuildRequires: python-six >= 1.9.0 +BuildRequires: python-gevent >= 1.0 +BuildRequires: python-yaml >= 3.0.9 +%endif %endif Name: tarantool -- 2.17.1