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