From ed4b78918a944fe3b3a1e05ac553e89d5f1fa411 Mon Sep 17 00:00:00 2001 From: David Adam Date: Sun, 6 Mar 2016 19:24:02 +0800 Subject: [PATCH] fish.spec: dependency on net-tools/hostname depending on platform Closes #2190. [ci skip] --- fish.spec.in | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/fish.spec.in b/fish.spec.in index fda42790b..04006037d 100644 --- a/fish.spec.in +++ b/fish.spec.in @@ -14,10 +14,16 @@ BuildRequires: ncurses-devel gettext gcc-c++ autoconf BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: bc -Requires: python +Requires: python Requires: which Requires: man +%if 0%{?rhel_version} >= 700 || 0%{?centos_version} >= 700 || 0%{?fedora} +Requires: hostname +%else +Requires: net-tools +%endif + %description fish is a shell geared towards interactive use. Its features are