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
dea08f34b1
commit
ffe2770e12
@ -1,8 +1,13 @@
|
||||
%if 0%{?fedora} > 35
|
||||
%global dict_dirname hunspell
|
||||
%else
|
||||
%global dict_dirname myspell
|
||||
%endif
|
||||
Name: hunspell-om
|
||||
Summary: Oromo hunspell dictionaries
|
||||
Epoch: 1
|
||||
Version: 0.04
|
||||
Release: 23%{?dist}
|
||||
Release: 24%{?dist}
|
||||
# Following links are dead now
|
||||
# Please don't report any bugs for it
|
||||
Source: http://borel.slu.edu/obair/%{name}-%{version}.oxt
|
||||
@ -21,10 +26,10 @@ Oromo hunspell dictionaries.
|
||||
%build
|
||||
|
||||
%install
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
|
||||
cp -p dictionaries/om_ET.* $RPM_BUILD_ROOT/%{_datadir}/myspell
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
|
||||
cp -p dictionaries/om_ET.* $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
|
||||
|
||||
pushd $RPM_BUILD_ROOT/%{_datadir}/myspell/
|
||||
pushd $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/
|
||||
om_ET_aliases="om_KE"
|
||||
for lang in $om_ET_aliases; do
|
||||
ln -s om_ET.aff $lang.aff
|
||||
@ -35,9 +40,13 @@ done
|
||||
%files
|
||||
%doc dictionaries/README_om_ET.txt
|
||||
%license LICENSES-en.txt
|
||||
%{_datadir}/myspell/*
|
||||
%{_datadir}/%{dict_dirname}/*
|
||||
|
||||
%changelog
|
||||
* Fri Feb 11 2022 Vishal Vijayraghavan <vishalvvr@fedoraproject.org> - 1:0.04-24
|
||||
- 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.04-23
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user