%if 0%{?fedora} >= 36 || 0%{?rhel} > 9 %global dict_dirname hunspell %else %global dict_dirname myspell %endif Name: hunspell-bm Summary: Bambara hunspell dictionaries %global upstreamid 2.6 Version: %{upstreamid} %global git_tag v%{upstreamid} Release: 1%{?dist} Source0: https://addons.mozilla.org/firefox/downloads/file/4028460/bambarabamanakan-%{upstreamid}.xpi Source1: https://gitlab.com/ci-dict/hunspell-bm/-/archive/%{git_tag}/hunspell-bm-%{upstreamid}.tar.gz URL: http://extensions.services.openoffice.org/project/dict-bm License: BSD-3 BuildArch: noarch BuildRequires: zip Requires: hunspell-filesystem Supplements: (hunspell and langpacks-bm) %description Bambara hunspell dictionaries. %prep # Unpack the first source (Mozilla .xpi) %autosetup -T -D -a 0 -c -n hunspell-bm tar xzf %{SOURCE1} --strip-components=1 %build %install mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} cp -p dictionaries/bm-ML.dic $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/bm-ML.dic cp -p dictionaries/bm-ML.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/bm-ML.aff %files %doc README.adoc %license LICENSE.txt %{_datadir}/%{dict_dirname}/* %changelog * Wed Sep 24 2025 Boyd Kelly - 026 - hunspell for Bambara - change source to mozilla extension; version 26 * Wed Jul 13 2022 Boyd Kelly - 025 - hunspell for Bambara - change source to mozilla extension; version 25 Add conditional for hunspell dir path and requires update: hunspell-filesystem * Wed Apr 14 2021 Boyd Kelly - 024 - hunspell for Bambara - initial build 024