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 11:29:45 +05:30
parent 1584f9a153
commit ee5526833f

View File

@ -1,8 +1,13 @@
%if 0%{?fedora} > 35
%global dict_dirname hunspell
%else
%global dict_dirname myspell
%endif
Name: hunspell-ny
Summary: Chichewa hunspell dictionaries
Epoch: 1
Version: 0.01
Release: 21%{?dist}
Release: 22%{?dist}
Source: https://downloads.sourceforge.net/project/aoo-extensions/4052/0/hunspell-chichewa-ny-dict-%{version}.oxt
URL: http://extensions.services.openoffice.org/en/project/chicspell
License: GPLv3+
@ -31,16 +36,20 @@ for i in dictionaries/README_ny_MW.txt; do
done
%install
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
cp -p dictionaries/ny_MW.* $RPM_BUILD_ROOT/%{_datadir}/myspell
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
cp -p dictionaries/ny_MW.* $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
%files
%doc dictionaries/README_ny_MW.txt
%license LICENSES-en.txt
%{_datadir}/myspell/*
%{_datadir}/%{dict_dirname}/*
%changelog
* Fri Feb 11 2022 Vishal Vijayraghavan <vishalvvr@fedoraproject.org> - 1:0.01-22
- 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> - 1:0.01-21
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild