diff --git a/hunspell-oc.spec b/hunspell-oc.spec index 33a0756..c9cf3b9 100644 --- a/hunspell-oc.spec +++ b/hunspell-oc.spec @@ -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 - 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 - 0.6.2-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild