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 %endif
# for tests # for tests
%if 0%{?fedora} || ( 0%{?rhel} && 0%{?rhel} > 7 ) %if 0%{?fedora}
# Need the en_US.utf-8 locale at a minimum # Need the en_US.utf-8 locale at a minimum
BuildRequires: glibc-langpack-en BuildRequires: glibc-langpack-en
%endif %endif
BuildRequires: python3 procps BuildRequires: python3 procps
%if 0%{?rhel} && 0%{?rhel} < 8
Requires: python
%else
Requires: python3 Requires: python3
%endif
Requires: man Requires: man
# Although the build scripts mangle the version number to be RPM compatible # 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 export CARGO_NET_OFFLINE=true
# CMake macros define the wrong sysconfdir arguments # CMake macros define the wrong sysconfdir arguments
EXTRA_CMAKE_FLAGS="$EXTRA_CMAKE_FLAGS -DCMAKE_INSTALL_SYSCONFDIR=%{_sysconfdir} -DCMAKE_INSTALL_DOCDIR=%{_docdir}/fish" 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 %cmake $EXTRA_CMAKE_FLAGS
%endif
%if 0%{?cmake_build:1} %if 0%{?cmake_build:1}
%cmake_build %cmake_build
%else %else