From 0e75bcc61f3619c06a692f8a10885e71b6fa8b46 Mon Sep 17 00:00:00 2001 From: David Adam Date: Tue, 28 Jan 2020 16:55:05 +0800 Subject: [PATCH] fish.spec/debian packaging: add build dependency on Python For littlecheck etc. --- debian/control | 2 +- fish.spec.in | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/debian/control b/debian/control index 95ae47843..ef9a72cf0 100644 --- a/debian/control +++ b/debian/control @@ -5,7 +5,7 @@ Maintainer: ridiculous_fish Uploaders: David Adam Build-Depends: debhelper (>= 9.0.0), libncurses5-dev, cmake3 (>= 3.2.0) | cmake (>= 3.2.0), gettext, # Test dependencies - locales-all + locales-all, python3 # When libpcre2-dev is available on all supported Debian versions, add a dependency on that. Standards-Version: 4.1.5 Homepage: https://fishshell.com/ diff --git a/fish.spec.in b/fish.spec.in index 7fd41c0c9..d45fb6775 100644 --- a/fish.spec.in +++ b/fish.spec.in @@ -30,7 +30,9 @@ BuildRequires: gcc48 gcc48-c++ python-argparse # Need the en_US.utf-8 locale at a minimum BuildRequires: glibc-langpack-en %endif -%if 0%{?rhel} && 0%{?rhel} > 7 +%if 0%{?rhel} && 0%{?rhel} < 8 +BuildRequires: python +%else BuildRequires: python3 %endif