From 9a88d4f280b4256d533e773e68054fdc7b175012 Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: Tue, 22 Mar 2022 10:45:49 +0530 Subject: [PATCH] Add conditional for new hunspell dir path and update to Requires: hunspell-filesystem --- hunspell-csb.spec | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/hunspell-csb.spec b/hunspell-csb.spec index 0177b0f..f0fc60c 100644 --- a/hunspell-csb.spec +++ b/hunspell-csb.spec @@ -1,15 +1,21 @@ +%if 0%{?fedora} >= 36 || 0%{?rhel} > 9 +%global dict_dirname hunspell +%else +%global dict_dirname myspell +%endif + Name: hunspell-csb Summary: Kashubian hunspell dictionaries %global upstreamid 20050311 Version: 0.%{upstreamid} -Release: 25%{?dist} +Release: 26%{?dist} Source: http://ftp.gnu.org/gnu/aspell/dict/csb/aspell6-csb-0.02-0.tar.bz2 URL: http://borel.slu.edu/crubadan/apps.html License: GPLv2+ BuildArch: noarch BuildRequires: aspell, hunspell-devel -Requires: hunspell +Requires: hunspell-filesystem Supplements: (hunspell and langpacks-csb) %description @@ -34,15 +40,19 @@ for i in Copyright doc/Crawler.txt; do done %install -mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell -cp -p *.dic *.aff $RPM_BUILD_ROOT/%{_datadir}/myspell +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} +cp -p *.dic *.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} %files %doc COPYING Copyright README doc/Crawler.txt -%{_datadir}/myspell/* +%{_datadir}/%{dict_dirname}/* %changelog +* Tue Mar 22 2022 Parag Nemade - 0.20050311-26 +- Add conditional for new hunspell dir path and update to Requires: + hunspell-filesystem + * Thu Jan 20 2022 Fedora Release Engineering - 0.20050311-25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild