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:
parent
fb283de174
commit
4417b0bdae
@ -1,7 +1,12 @@
|
||||
%if 0%{?fedora} > 35
|
||||
%global dict_dirname hunspell
|
||||
%else
|
||||
%global dict_dirname myspell
|
||||
%endif
|
||||
Name: hunspell-si
|
||||
Summary: Sinhala hunspell dictionaries
|
||||
Version: 0.2.1
|
||||
Release: 24%{?dist}
|
||||
Release: 25%{?dist}
|
||||
Source: http://www.sandaru1.com/si-LK.tar.gz
|
||||
#Following URL is down since few months informed to upstream
|
||||
URL: http://www.sandaru1.com/2009/08/29/sinhala-spell-checker-for-firefox/
|
||||
@ -20,15 +25,19 @@ Sinhala hunspell dictionaries.
|
||||
#nothing to build
|
||||
|
||||
%install
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
|
||||
cp -p dictionaries/si-LK.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/si_LK.aff
|
||||
cp -p dictionaries/si-LK.dic $RPM_BUILD_ROOT/%{_datadir}/myspell/si_LK.dic
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
|
||||
cp -p dictionaries/si-LK.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/si_LK.aff
|
||||
cp -p dictionaries/si-LK.dic $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/si_LK.dic
|
||||
|
||||
%files
|
||||
%doc LICENSE README
|
||||
%{_datadir}/myspell/*
|
||||
%{_datadir}/%{dict_dirname}/*
|
||||
|
||||
%changelog
|
||||
* Fri Feb 11 2022 Vishal Vijayraghavan <vishalvvr@fedoraproject.org> - 0.2.1-25
|
||||
- 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.2.1-24
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user