Add conditional for new hunspell dir path and update to Requires: hunspell-filesystem

This commit is contained in:
Parag Nemade 2022-03-22 10:35:48 +05:30
parent 56e6b9acb3
commit 54d1622ea9
No known key found for this signature in database
GPG Key ID: 71932951EB71E972

View File

@ -1,14 +1,20 @@
%if 0%{?fedora} >= 36 || 0%{?rhel} > 9
%global dict_dirname hunspell
%else
%global dict_dirname myspell
%endif
Name: hunspell-bn Name: hunspell-bn
Summary: Bengali hunspell dictionaries Summary: Bengali hunspell dictionaries
Version: 1.0.0 Version: 1.0.0
Release: 17%{?dist} Release: 18%{?dist}
Epoch: 1 Epoch: 1
Source: http://anishpatil.fedorapeople.org/bn_in.%{version}.tar.gz Source: http://anishpatil.fedorapeople.org/bn_in.%{version}.tar.gz
URL: https://gitorious.org/hunspell_dictionaries/hunspell_dictionaries.git URL: https://gitorious.org/hunspell_dictionaries/hunspell_dictionaries.git
License: GPLv2+ License: GPLv2+
BuildArch: noarch BuildArch: noarch
Requires: hunspell Requires: hunspell-filesystem
Supplements: (hunspell and langpacks-bn) Supplements: (hunspell and langpacks-bn)
%description %description
@ -22,16 +28,20 @@ chmod 644 bn_IN/*
%build %build
%install %install
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
cp -p bn_IN/*.dic bn_IN/*.aff $RPM_BUILD_ROOT/%{_datadir}/myspell cp -p bn_IN/*.dic bn_IN/*.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
%files %files
%doc bn_IN/README %doc bn_IN/README
%license bn_IN/COPYING bn_IN/Copyright %license bn_IN/COPYING bn_IN/Copyright
%{_datadir}/myspell/* %{_datadir}/%{dict_dirname}/*
%changelog %changelog
* Tue Mar 22 2022 Parag Nemade <pnemade AT redhat DOT com> - 1:1.0.0-18
- Add conditional for new hunspell dir path and update to Requires:
hunspell-filesystem
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.0.0-17 * Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.0.0-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild