diff --git a/hunspell-uz.spec b/hunspell-uz.spec index 9693a6f..fb3f7ba 100644 --- a/hunspell-uz.spec +++ b/hunspell-uz.spec @@ -1,7 +1,13 @@ +%if 0%{?fedora} >= 36 || 0%{?rhel} > 9 +%global dict_dirname hunspell +%else +%global dict_dirname myspell +%endif + Name: hunspell-uz Summary: Uzbek hunspell dictionaries Version: 0.6 -Release: 24%{?dist} +Release: 25%{?dist} ## Note that upstream is dead and there is no download link available ## so please don't report FTBFS bugs for this package. Source0: http://www-user.uni-bremen.de/~kmashrab/uzbek-word-list/uzbek-wordlist-%{version}.tar.bz2 @@ -10,7 +16,7 @@ License: GPLv2+ BuildArch: noarch BuildRequires: make -Requires: hunspell +Requires: hunspell-filesystem Supplements: (hunspell and langpacks-uz) %description @@ -26,16 +32,20 @@ cp -p README ../README.hunspell popd %install -mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell -cp -p hunspell/uz_UZ* $RPM_BUILD_ROOT/%{_datadir}/myspell/ +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} +cp -p hunspell/uz_UZ* $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/ %files %doc ChangeLog README README.hunspell TODO %license COPYING Copyright -%{_datadir}/myspell/* +%{_datadir}/%{dict_dirname}/* %changelog +* Tue Mar 22 2022 Parag Nemade - 0.6-25 +- Add conditional for new hunspell dir path and update to Requires: + hunspell-filesystem + * Thu Jan 20 2022 Fedora Release Engineering - 0.6-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild