fish.spec: drop RHEL/CentOS support

Discussed on https://github.com/fish-shell/fish-shell/issues/10453
This commit is contained in:
David Adam 2024-04-27 18:07:00 +08:00
parent 572aece169
commit cc2fb5c07c

View file

@ -25,17 +25,13 @@ BuildRequires: groff-base
%endif
# for tests
%if 0%{?fedora} || ( 0%{?rhel} && 0%{?rhel} > 7 )
%if 0%{?fedora}
# Need the en_US.utf-8 locale at a minimum
BuildRequires: glibc-langpack-en
%endif
BuildRequires: python3 procps
%if 0%{?rhel} && 0%{?rhel} < 8
Requires: python
%else
Requires: python3
%endif
Requires: man
# Although the build scripts mangle the version number to be RPM compatible
@ -59,11 +55,7 @@ is simple but incompatible with other shell languages.
export CARGO_NET_OFFLINE=true
# CMake macros define the wrong sysconfdir arguments
EXTRA_CMAKE_FLAGS="$EXTRA_CMAKE_FLAGS -DCMAKE_INSTALL_SYSCONFDIR=%{_sysconfdir} -DCMAKE_INSTALL_DOCDIR=%{_docdir}/fish"
%if 0%{?rhel} && 0%{?rhel} < 8
%cmake3 $EXTRA_CMAKE_FLAGS
%else
%cmake $EXTRA_CMAKE_FLAGS
%endif
%if 0%{?cmake_build:1}
%cmake_build
%else