fish.spec: replace tabs with spaces

This commit is contained in:
David Adam 2023-04-07 12:22:34 +08:00
parent a487b1ecf2
commit 8c645186c0

View File

@ -10,7 +10,7 @@ URL: https://fishshell.com/
Source0: %{name}_@VERSION@.orig.tar.xz Source0: %{name}_@VERSION@.orig.tar.xz
BuildRequires: ncurses-devel gettext gcc-c++ xz pcre2-devel BuildRequires: ncurses-devel gettext gcc-c++ xz pcre2-devel
BuildRequires: rust >= 1.67 BuildRequires: rust >= 1.67
%if 0%{?rhel} && 0%{?rhel} < 8 %if 0%{?rhel} && 0%{?rhel} < 8
BuildRequires: cmake3 BuildRequires: cmake3
@ -30,11 +30,11 @@ BuildRequires: glibc-langpack-en
BuildRequires: python3 procps BuildRequires: python3 procps
%if 0%{?rhel} && 0%{?rhel} < 8 %if 0%{?rhel} && 0%{?rhel} < 8
Requires: python Requires: python
%else %else
Requires: python3 Requires: python3
%endif %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
# for continuous builds (transforming the output of `git describe`), Fedora 32+ # for continuous builds (transforming the output of `git describe`), Fedora 32+
@ -96,14 +96,14 @@ rm -rf $RPM_BUILD_ROOT
%post %post
# Add fish to the list of allowed shells in /etc/shells # Add fish to the list of allowed shells in /etc/shells
if ! grep %{_bindir}/fish %{_sysconfdir}/shells >/dev/null; then if ! grep %{_bindir}/fish %{_sysconfdir}/shells >/dev/null; then
echo %{_bindir}/fish >>%{_sysconfdir}/shells echo %{_bindir}/fish >>%{_sysconfdir}/shells
fi fi
%postun %postun
# Remove fish from the list of allowed shells in /etc/shells # Remove fish from the list of allowed shells in /etc/shells
if [ "$1" = 0 ]; then if [ "$1" = 0 ]; then
grep -v %{_bindir}/fish %{_sysconfdir}/shells >%{_sysconfdir}/fish.tmp grep -v %{_bindir}/fish %{_sysconfdir}/shells >%{_sysconfdir}/fish.tmp
mv %{_sysconfdir}/fish.tmp %{_sysconfdir}/shells mv %{_sysconfdir}/fish.tmp %{_sysconfdir}/shells
fi fi
%files -f %{name}.lang %files -f %{name}.lang