From ee5526833f633fe3d9a9b01696dcbbb27b2e655b Mon Sep 17 00:00:00 2001 From: vishalvvr Date: Fri, 11 Feb 2022 11:29:45 +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-ny.spec | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/hunspell-ny.spec b/hunspell-ny.spec index 2ed97a7..808afc7 100644 --- a/hunspell-ny.spec +++ b/hunspell-ny.spec @@ -1,8 +1,13 @@ +%if 0%{?fedora} > 35 +%global dict_dirname hunspell +%else +%global dict_dirname myspell +%endif Name: hunspell-ny Summary: Chichewa hunspell dictionaries Epoch: 1 Version: 0.01 -Release: 21%{?dist} +Release: 22%{?dist} Source: https://downloads.sourceforge.net/project/aoo-extensions/4052/0/hunspell-chichewa-ny-dict-%{version}.oxt URL: http://extensions.services.openoffice.org/en/project/chicspell License: GPLv3+ @@ -31,16 +36,20 @@ for i in dictionaries/README_ny_MW.txt; do done %install -mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell -cp -p dictionaries/ny_MW.* $RPM_BUILD_ROOT/%{_datadir}/myspell +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} +cp -p dictionaries/ny_MW.* $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} %files %doc dictionaries/README_ny_MW.txt %license LICENSES-en.txt -%{_datadir}/myspell/* +%{_datadir}/%{dict_dirname}/* %changelog +* Fri Feb 11 2022 Vishal Vijayraghavan - 1:0.01-22 +- 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:0.01-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild