update default dictionary install location

- rename default install dir name from myspell to hunspell
- F36 onwards will use hunspell dir & previous releases would use myspell dir
- https://fedoraproject.org/wiki/Changes/Hunspell_dictionary_dir_change
This commit is contained in:
vishalvvr 2022-02-11 15:07:25 +05:30
parent c303b11fe3
commit 514cc27d9d

View File

@ -1,8 +1,13 @@
%if 0%{?fedora} > 35
%global dict_dirname hunspell
%else
%global dict_dirname myspell
%endif
Name: hunspell-ss
Summary: Swati hunspell dictionaries
%global upstreamid 20091030
Version: 0.%{upstreamid}
Release: 22%{?dist}
Release: 23%{?dist}
Source: https://downlaods.sourceforge.net/project/aoo-extensions/3137/0/dict-ss_za-2009.10.30.oxt
URL: http://www.translate.org.za/
License: LGPLv2+
@ -30,15 +35,19 @@ for i in README-ss_ZA.txt release-notes-ss_ZA.txt package-description.txt; do
done
%install
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
cp -p *.dic *.aff $RPM_BUILD_ROOT/%{_datadir}/myspell
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
cp -p *.dic *.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
%files
%doc README-ss_ZA.txt release-notes-ss_ZA.txt package-description.txt
%{_datadir}/myspell/*
%{_datadir}/%{dict_dirname}/*
%changelog
* Fri Feb 11 2022 Vishal Vijayraghavan <vishalvvr@fedoraproject.org> - 0.20091030-23
- rename install directory name from myspell to hunspell
- https://fedoraproject.org/wiki/Changes/Hunspell_dictionary_dir_change
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.20091030-22
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild