From 35d34ca3684c81af89884c5dfefa8c42493243ea Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: Tue, 22 Mar 2022 11:05:06 +0530 Subject: [PATCH] Add conditional for new hunspell dir path and update to Requires: hunspell-filesystem --- hunspell-eo.spec | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/hunspell-eo.spec b/hunspell-eo.spec index b19275d..46e3198 100644 --- a/hunspell-eo.spec +++ b/hunspell-eo.spec @@ -1,15 +1,21 @@ +%if 0%{?fedora} >= 36 || 0%{?rhel} > 9 +%global dict_dirname hunspell +%else +%global dict_dirname myspell +%endif + Name: hunspell-eo Summary: Esperanto hunspell dictionaries %global upstreamid 20100218 Version: 0.%{upstreamid} Epoch: 1 -Release: 8%{?dist} +Release: 9%{?dist} Source: http://www.esperantilo.org/literumilo-fontoj.tar.gz URL: http://www.esperantilo.org License: GPLv2+ BuildArch: noarch -Requires: hunspell +Requires: hunspell-filesystem Supplements: (hunspell and langpacks-eo) %description @@ -27,16 +33,20 @@ for i in LEGUMIN.txt; do done %install -mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell -cp -p eo_morf.dic $RPM_BUILD_ROOT/%{_datadir}/myspell/eo.dic -cp -p eo_morf.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/eo.aff +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} +cp -p eo_morf.dic $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/eo.dic +cp -p eo_morf.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/eo.aff %files %doc LEGUMIN.txt -%{_datadir}/myspell/* +%{_datadir}/%{dict_dirname}/* %changelog +* Tue Mar 22 2022 Parag Nemade - 1:0.20100218-9 +- Add conditional for new hunspell dir path and update to Requires: + hunspell-filesystem + * Thu Jan 20 2022 Fedora Release Engineering - 1:0.20100218-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild