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
90a814ca04
commit
0a55e25428
@ -1,7 +1,12 @@
|
||||
%if 0%{?fedora} > 35
|
||||
%global dict_dirname hunspell
|
||||
%else
|
||||
%global dict_dirname myspell
|
||||
%endif
|
||||
Name: hunspell-se
|
||||
Summary: Northern Saami hunspell dictionaries
|
||||
Version: 1.0
|
||||
Release: 0.22.beta7%{?dist}
|
||||
Release: 0.23.beta7%{?dist}
|
||||
Source: http://divvun.no/static_files/hunspell-se.tar.gz
|
||||
URL: http://www.divvun.no/index.html
|
||||
License: GPLv3
|
||||
@ -19,11 +24,11 @@ Northern Saami hunspell dictionaries.
|
||||
%build
|
||||
|
||||
%install
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
|
||||
cp -p se.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/se_NO.aff
|
||||
cp -p se.dic $RPM_BUILD_ROOT/%{_datadir}/myspell/se_NO.dic
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
|
||||
cp -p se.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/se_NO.aff
|
||||
cp -p se.dic $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/se_NO.dic
|
||||
|
||||
pushd $RPM_BUILD_ROOT/%{_datadir}/myspell/
|
||||
pushd $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/
|
||||
se_NO_aliases="se_SE se_FI"
|
||||
for lang in $se_NO_aliases; do
|
||||
ln -s se_NO.aff $lang.aff
|
||||
@ -33,9 +38,13 @@ done
|
||||
|
||||
%files
|
||||
%doc Copyright README GPL-3
|
||||
%{_datadir}/myspell/*
|
||||
%{_datadir}/%{dict_dirname}/*
|
||||
|
||||
%changelog
|
||||
* Fri Feb 11 2022 Vishal Vijayraghavan <vishalvvr@fedoraproject.org> - 1.0-0.23.beta7
|
||||
- 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-0.22.beta7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user