update default dictionary install location

- rename default install dir name from myspell to hunspell
- F36 onwards will use hunspell dir & previous releases would use myspell dir
- https://fedoraproject.org/wiki/Changes/Hunspell_dictionary_dir_change
This commit is contained in:
vishalvvr 2022-02-11 11:33:35 +05:30
parent bd3ecb041b
commit c81efe0ec5

View File

@ -1,7 +1,12 @@
%if 0%{?fedora} > 35
%global dict_dirname hunspell
%else
%global dict_dirname myspell
%endif
Name: hunspell-oc
Summary: Occitan hunspell dictionaries
Version: 0.6.2
Release: 9%{?dist}
Release: 10%{?dist}
Source: https://addons.mozilla.org/firefox/downloads/file/233710/correcteur_occitan_languedocien-%{version}-tb+sm+fx.xpi
URL: https://addons.mozilla.org/en-US/firefox/addon/8235
License: GPLv3+
@ -22,16 +27,20 @@ rdfproc hunspell-oc parse install.rdf
rdfproc hunspell-oc print | grep install-manifest | grep -v targetApplication | sed -e 's/.*#//' | sed -e 's/], "/: /'| sed -e 's/"}//' > CREDITS
%install
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
cp -p dictionaries/oc-FR.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/oc_FR.aff
cp -p dictionaries/oc-FR.dic $RPM_BUILD_ROOT/%{_datadir}/myspell/oc_FR.dic
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
cp -p dictionaries/oc-FR.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/oc_FR.aff
cp -p dictionaries/oc-FR.dic $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/oc_FR.dic
%files
%doc CREDITS
%{_datadir}/myspell/*
%{_datadir}/%{dict_dirname}/*
%changelog
* Fri Feb 11 2022 Vishal Vijayraghavan <vishalvvr@fedoraproject.org> - 0.6.2-10
- rename install directory name from myspell to hunspell
- https://fedoraproject.org/wiki/Changes/Hunspell_dictionary_dir_change
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild