Add conditional for new hunspell dir path and update to Requires: hunspell-filesystem
This commit is contained in:
parent
fb7e255a38
commit
f39088257e
@ -1,13 +1,19 @@
|
||||
%if 0%{?fedora} >= 36 || 0%{?rhel} > 9
|
||||
%global dict_dirname hunspell
|
||||
%else
|
||||
%global dict_dirname myspell
|
||||
%endif
|
||||
|
||||
Name: hunspell-uk
|
||||
Summary: Ukrainian hunspell dictionaries
|
||||
Version: 1.8.0
|
||||
Release: 9%{?dist}
|
||||
Release: 10%{?dist}
|
||||
Source: https://downloads.sourceforge.net/project/ispell-uk/spell-uk/%{version}/dict-uk_UA-%{version}.oxt
|
||||
URL: http://sourceforge.net/projects/ispell-uk
|
||||
License: GPLv2+ or LGPLv2+ or MPLv1.1
|
||||
BuildArch: noarch
|
||||
|
||||
Requires: hunspell
|
||||
Requires: hunspell-filesystem
|
||||
Supplements: (hunspell and langpacks-uk)
|
||||
|
||||
%description
|
||||
@ -19,16 +25,20 @@ Ukrainian hunspell dictionaries.
|
||||
%build
|
||||
|
||||
%install
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
|
||||
cp -p uk_UA/uk_UA.aff $RPM_BUILD_ROOT/%{_datadir}/myspell
|
||||
cp -p uk_UA/uk_UA.dic $RPM_BUILD_ROOT/%{_datadir}/myspell
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
|
||||
cp -p uk_UA/uk_UA.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
|
||||
cp -p uk_UA/uk_UA.dic $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
|
||||
|
||||
|
||||
%files
|
||||
%doc uk_UA/README_uk_UA.txt
|
||||
%{_datadir}/myspell/*
|
||||
%{_datadir}/%{dict_dirname}/*
|
||||
|
||||
%changelog
|
||||
* Tue Mar 22 2022 Parag Nemade <pnemade AT redhat DOT com> - 1.8.0-10
|
||||
- Add conditional for new hunspell dir path and update to Requires:
|
||||
hunspell-filesystem
|
||||
|
||||
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.0-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user