Add conditional for new hunspell dir path and update to Requires: hunspell-filesystem
This commit is contained in:
parent
4f75459743
commit
cfbac2c9cc
@ -1,7 +1,13 @@
|
||||
%if 0%{?fedora} >= 36 || 0%{?rhel} > 9
|
||||
%global dict_dirname hunspell
|
||||
%else
|
||||
%global dict_dirname myspell
|
||||
%endif
|
||||
|
||||
Name: hunspell-ne
|
||||
Summary: Nepali hunspell dictionaries
|
||||
Version: 20080425
|
||||
Release: 25%{?dist}
|
||||
Release: 26%{?dist}
|
||||
# Upstream Source and URL is down now, please don't report FTBFS bugs
|
||||
Source: http://nepalinux.org/downloads/ne_NP_dict.zip
|
||||
URL: http://nepalinux.org/downloads
|
||||
@ -9,7 +15,7 @@ URL: http://nepalinux.org/downloads
|
||||
License: LGPLv2
|
||||
BuildArch: noarch
|
||||
|
||||
Requires: hunspell
|
||||
Requires: hunspell-filesystem
|
||||
Supplements: (hunspell and langpacks-ne)
|
||||
|
||||
%description
|
||||
@ -26,10 +32,10 @@ sed -i 's/\r//;s/[ \t]*$//' ne_NP.dic
|
||||
%build
|
||||
|
||||
%install
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
|
||||
cp -p *.dic *.aff $RPM_BUILD_ROOT/%{_datadir}/myspell
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
|
||||
cp -p *.dic *.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
|
||||
|
||||
pushd $RPM_BUILD_ROOT/%{_datadir}/myspell/
|
||||
pushd $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/
|
||||
ne_NP_aliases="ne_IN"
|
||||
for lang in $ne_NP_aliases; do
|
||||
ln -s ne_NP.aff $lang.aff
|
||||
@ -39,9 +45,13 @@ popd
|
||||
|
||||
%files
|
||||
%doc README_ne_NP.txt
|
||||
%{_datadir}/myspell/*
|
||||
%{_datadir}/%{dict_dirname}/*
|
||||
|
||||
%changelog
|
||||
* Tue Mar 22 2022 Parag Nemade <pnemade AT redhat DOT com> - 20080425-26
|
||||
- Add conditional for new hunspell dir path and update to Requires:
|
||||
hunspell-filesystem
|
||||
|
||||
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 20080425-25
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user