From fd8364a05398643a369dcb0484ed2e44afec3811 Mon Sep 17 00:00:00 2001 From: vishalvvr Date: Fri, 11 Feb 2022 11:45:32 +0530 Subject: [PATCH] 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 --- hunspell-pa.spec | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/hunspell-pa.spec b/hunspell-pa.spec index 6126745..6cc4727 100644 --- a/hunspell-pa.spec +++ b/hunspell-pa.spec @@ -1,7 +1,12 @@ +%if 0%{?fedora} > 35 +%global dict_dirname hunspell +%else +%global dict_dirname myspell +%endif Name: hunspell-pa Summary: Punjabi hunspell dictionaries Version: 1.0.0 -Release: 17%{?dist} +Release: 18%{?dist} Epoch: 1 Source: http://anishpatil.fedorapeople.org/pa_in.%{version}.tar.gz URL: https://gitorious.org/hunspell_dictionaries/hunspell_dictionaries.git @@ -22,15 +27,19 @@ mv pa_IN/Copyright.utf8 pa_IN/Copyright %build %install -mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell -cp -p pa_IN/*.dic pa_IN/*.aff $RPM_BUILD_ROOT/%{_datadir}/myspell +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} +cp -p pa_IN/*.dic pa_IN/*.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} %files %doc pa_IN/README %license pa_IN/COPYING pa_IN/Copyright -%{_datadir}/myspell/* +%{_datadir}/%{dict_dirname}/* %changelog +* Fri Feb 11 2022 Vishal Vijayraghavan - 1:1.0.0-18 +- rename install directory name from myspell to hunspell +- https://fedoraproject.org/wiki/Changes/Hunspell_dictionary_dir_change + * Thu Jan 20 2022 Fedora Release Engineering - 1:1.0.0-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild