use fedora ">= 36" for the hunspell/ dir conditionals

This commit is contained in:
Jens Petersen 2022-02-10 16:09:23 +08:00
parent 80770886a5
commit 07fa42d0d1

View File

@ -92,7 +92,7 @@ rm -rf $RPM_BUILD_ROOT
%make_install %make_install
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.a rm -f $RPM_BUILD_ROOT/%{_libdir}/*.a
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
%if 0%{?fedora} > 35 %if 0%{?fedora} >= 36
mkdir $RPM_BUILD_ROOT/%{_datadir}/hunspell mkdir $RPM_BUILD_ROOT/%{_datadir}/hunspell
%else %else
mkdir $RPM_BUILD_ROOT/%{_datadir}/myspell mkdir $RPM_BUILD_ROOT/%{_datadir}/myspell
@ -101,7 +101,7 @@ mkdir $RPM_BUILD_ROOT/%{_datadir}/myspell
%ldconfig_scriptlets %ldconfig_scriptlets
%if 0%{?fedora} > 35 %if 0%{?fedora} >= 36
%pretrans filesystem -p <lua> %pretrans filesystem -p <lua>
-- Rename dir from myspell to hunspell -- Rename dir from myspell to hunspell
-- DO NOT add a trailing slash at the end. -- DO NOT add a trailing slash at the end.
@ -147,7 +147,7 @@ end
%{_mandir}/man5/hunspell.5.gz %{_mandir}/man5/hunspell.5.gz
%files filesystem %files filesystem
%if 0%{?fedora} > 35 %if 0%{?fedora} >= 36
%ghost %{_datadir}/myspell %ghost %{_datadir}/myspell
%{_datadir}/hunspell %{_datadir}/hunspell
%else %else