Add conditional for new hunspell dir path and update to Requires: hunspell-filesystem
This commit is contained in:
parent
8d69b9e2e4
commit
479031a001
@ -1,13 +1,19 @@
|
||||
%if 0%{?fedora} >= 36 || 0%{?rhel} > 9
|
||||
%global dict_dirname hunspell
|
||||
%else
|
||||
%global dict_dirname myspell
|
||||
%endif
|
||||
|
||||
Name: hunspell-be
|
||||
Summary: Belarusian hunspell dictionaries
|
||||
Version: 1.1
|
||||
Release: 23%{?dist}
|
||||
Release: 24%{?dist}
|
||||
Source: https://downloads.sourceforge.net/project/aoo-extensions/2412/1/dict-be-official.oxt
|
||||
URL: http://extensions.services.openoffice.org/project/dict-be-official
|
||||
License: GPL+ and LGPLv2+
|
||||
BuildArch: noarch
|
||||
|
||||
Requires: hunspell
|
||||
Requires: hunspell-filesystem
|
||||
Supplements: (hunspell and langpacks-be)
|
||||
|
||||
%description
|
||||
@ -29,21 +35,25 @@ sed -i -e "s/microsoft-cp1251/CP1251/g" be-official.aff hyph_be_BY.dic
|
||||
tail -n +3 hyph_be_BY.dic| head -n 3 > README_hyph_be_BY
|
||||
|
||||
%install
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
|
||||
cp -p be-official.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/be_BY.aff
|
||||
cp -p be-official.dic $RPM_BUILD_ROOT/%{_datadir}/myspell/be_BY.dic
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
|
||||
cp -p be-official.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/be_BY.aff
|
||||
cp -p be-official.dic $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/be_BY.dic
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/hyphen
|
||||
cp -p hyph_be_BY.dic $RPM_BUILD_ROOT/%{_datadir}/hyphen/hyph_be_BY.dic
|
||||
|
||||
|
||||
%files
|
||||
%{_datadir}/myspell/*
|
||||
%{_datadir}/%{dict_dirname}/*
|
||||
|
||||
%files -n hyphen-be
|
||||
%doc README_hyph_be_BY
|
||||
%{_datadir}/hyphen/*
|
||||
|
||||
%changelog
|
||||
* Tue Mar 22 2022 Parag Nemade <pnemade AT redhat DOT com> - 1.1-24
|
||||
- Add conditional for new hunspell dir path and update to Requires:
|
||||
hunspell-filesystem
|
||||
|
||||
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-23
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user