Add conditional for new hunspell dir path and update to Requires: hunspell-filesystem
This commit is contained in:
parent
3470b096aa
commit
18179ead15
@ -1,13 +1,19 @@
|
||||
%if 0%{?fedora} >= 36 || 0%{?rhel} > 9
|
||||
%global dict_dirname hunspell
|
||||
%else
|
||||
%global dict_dirname myspell
|
||||
%endif
|
||||
|
||||
Name: hunspell-ca
|
||||
Summary: Catalan hunspell dictionaries
|
||||
Version: 2.3
|
||||
Release: 19%{?dist}
|
||||
Release: 20%{?dist}
|
||||
Source: http://www.softcatala.org/diccionaris/actualitzacions/OOo/catalan.oxt
|
||||
URL: http://www.softcatala.org/wiki/Projectes/Corrector_ortogràfic
|
||||
License: GPLv2+
|
||||
BuildArch: noarch
|
||||
|
||||
Requires: hunspell
|
||||
Requires: hunspell-filesystem
|
||||
Supplements: (hunspell and langpacks-ca)
|
||||
|
||||
%description
|
||||
@ -23,9 +29,9 @@ tr -d '\r' < dictionaries/catalan.dic > ca_ES.dic
|
||||
touch -r dictionaries/catalan.dic ca_ES.dic
|
||||
|
||||
%install
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
|
||||
cp -p ca_ES.dic ca_ES.aff $RPM_BUILD_ROOT/%{_datadir}/myspell
|
||||
pushd $RPM_BUILD_ROOT/%{_datadir}/myspell/
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
|
||||
cp -p ca_ES.dic ca_ES.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
|
||||
pushd $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/
|
||||
ca_ES_aliases="ca_AD ca_FR ca_IT"
|
||||
for lang in $ca_ES_aliases; do
|
||||
ln -s ca_ES.aff $lang.aff
|
||||
@ -36,9 +42,13 @@ popd
|
||||
|
||||
%files
|
||||
%doc LICENSES-en.txt LLICENCIES-ca.txt
|
||||
%{_datadir}/myspell/*
|
||||
%{_datadir}/%{dict_dirname}/*
|
||||
|
||||
%changelog
|
||||
* Tue Mar 22 2022 Parag Nemade <pnemade AT redhat DOT com> - 2.3-20
|
||||
- Add conditional for new hunspell dir path and update to Requires:
|
||||
hunspell-filesystem
|
||||
|
||||
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.3-19
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user