From 63be4d1bb673138d67a7d840a224f4cc43e2925c Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: Tue, 22 Mar 2022 13:00:59 +0530 Subject: [PATCH] Add conditional for new hunspell dir path and update to Requires: hunspell-filesystem --- hunspell-lt.spec | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/hunspell-lt.spec b/hunspell-lt.spec index 40910dc..7138f55 100644 --- a/hunspell-lt.spec +++ b/hunspell-lt.spec @@ -1,7 +1,13 @@ +%if 0%{?fedora} >= 36 || 0%{?rhel} > 9 +%global dict_dirname hunspell +%else +%global dict_dirname myspell +%endif + Name: hunspell-lt Summary: Lithuanian hunspell dictionaries Version: 1.2.1 -Release: 26%{?dist} +Release: 27%{?dist} ## Note that upstream is dead and there is no download link available ## so please don't report FTBFS bugs for this package. Source: ftp://ftp.akl.lt/ispell-lt/lt_LT-%{version}.zip @@ -9,7 +15,7 @@ URL: ftp://ftp.akl.lt/ispell-lt/ License: BSD BuildArch: noarch -Requires: hunspell +Requires: hunspell-filesystem Supplements: (hunspell and langpacks-lt) %description @@ -27,15 +33,19 @@ for i in INSTRUKCIJOS.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 README.EN INSTRUKCIJOS.txt -%{_datadir}/myspell/* +%{_datadir}/%{dict_dirname}/* %changelog +* Tue Mar 22 2022 Parag Nemade - 1.2.1-27 +- Add conditional for new hunspell dir path and update to Requires: + hunspell-filesystem + * Thu Jan 20 2022 Fedora Release Engineering - 1.2.1-26 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild