Add conditional for new hunspell dir path and update to Requires: hunspell-filesystem
This commit is contained in:
parent
5fe49c1597
commit
ac9da22071
@ -1,14 +1,20 @@
|
||||
%if 0%{?fedora} >= 36 || 0%{?rhel} > 9
|
||||
%global dict_dirname hunspell
|
||||
%else
|
||||
%global dict_dirname myspell
|
||||
%endif
|
||||
|
||||
Name: hunspell-ti
|
||||
Summary: Tigrigna hunspell dictionaries
|
||||
%global upstreamid 20090911
|
||||
Version: 0.%{upstreamid}
|
||||
Release: 21%{?dist}
|
||||
Release: 22%{?dist}
|
||||
Source: http://www.cs.ru.nl/~biniam/geez/dict/ti_ER.zip
|
||||
URL: http://www.cs.ru.nl/~biniam/geez/index.php
|
||||
License: GPL+
|
||||
BuildArch: noarch
|
||||
|
||||
Requires: hunspell
|
||||
Requires: hunspell-filesystem
|
||||
Supplements: (hunspell and langpacks-ti)
|
||||
|
||||
%description
|
||||
@ -23,9 +29,9 @@ touch -r README.txt README.txt.new
|
||||
mv -f README.txt.new README.txt
|
||||
|
||||
%install
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
|
||||
cp -p ti_ER.* $RPM_BUILD_ROOT/%{_datadir}/myspell/
|
||||
pushd $RPM_BUILD_ROOT/%{_datadir}/myspell/
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
|
||||
cp -p ti_ER.* $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/
|
||||
pushd $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/
|
||||
ti_ER_aliases="ti_ET"
|
||||
for lang in $ti_ER_aliases; do
|
||||
ln -s ti_ER.aff $lang.aff
|
||||
@ -35,9 +41,13 @@ done
|
||||
|
||||
%files
|
||||
%doc README.txt
|
||||
%{_datadir}/myspell/*
|
||||
%{_datadir}/%{dict_dirname}/*
|
||||
|
||||
%changelog
|
||||
* Tue Mar 22 2022 Parag Nemade <pnemade AT redhat DOT com> - 0.20090911-22
|
||||
- Add conditional for new hunspell dir path and update to Requires:
|
||||
hunspell-filesystem
|
||||
|
||||
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.20090911-21
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user