Add conditional for new hunspell dir path and update to Requires: hunspell-filesystem
This commit is contained in:
parent
23e22a6df3
commit
959476de83
@ -1,7 +1,13 @@
|
|||||||
|
%if 0%{?fedora} >= 36 || 0%{?rhel} > 9
|
||||||
|
%global dict_dirname hunspell
|
||||||
|
%else
|
||||||
|
%global dict_dirname myspell
|
||||||
|
%endif
|
||||||
|
|
||||||
Name: hunspell-ga
|
Name: hunspell-ga
|
||||||
Summary: Irish hunspell dictionaries
|
Summary: Irish hunspell dictionaries
|
||||||
Version: 5.0
|
Version: 5.0
|
||||||
Release: 10%{?dist}
|
Release: 11%{?dist}
|
||||||
Source0: https://github.com/kscanne/gaelspell/releases/download/v%{version}/ispell-gaeilge-%{version}.tar.gz
|
Source0: https://github.com/kscanne/gaelspell/releases/download/v%{version}/ispell-gaeilge-%{version}.tar.gz
|
||||||
Source1: myspell-header
|
Source1: myspell-header
|
||||||
Source2: hunspell-header
|
Source2: hunspell-header
|
||||||
@ -9,10 +15,10 @@ URL: http://borel.slu.edu/ispell/index.html
|
|||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: hunspell-devel
|
BuildRequires: hunspell-filesystem-devel
|
||||||
Patch1: ispell-gaeilge-5.0-buildhunspell.patch
|
Patch1: ispell-gaeilge-5.0-buildhunspell.patch
|
||||||
|
|
||||||
Requires: hunspell
|
Requires: hunspell-filesystem
|
||||||
Supplements: (hunspell and langpacks-ga)
|
Supplements: (hunspell and langpacks-ga)
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -29,16 +35,20 @@ iconv -f utf-8 -t iso-8859-1 < gaeilge.aff > gaeilge.aff.iso-8859-1
|
|||||||
ispellaff2myspell gaeilge.aff.iso-8859-1 --myheader header | sed -e "s/\"\"/0/g" | sed -e "s/\"//g" > ga_IE.aff
|
ispellaff2myspell gaeilge.aff.iso-8859-1 --myheader header | sed -e "s/\"\"/0/g" | sed -e "s/\"//g" > ga_IE.aff
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
|
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
|
||||||
cp -p ga_IE.dic ga_IE.aff $RPM_BUILD_ROOT/%{_datadir}/myspell
|
cp -p ga_IE.dic ga_IE.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc README ChangeLog
|
%doc README ChangeLog
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%{_datadir}/myspell/*
|
%{_datadir}/%{dict_dirname}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Mar 22 2022 Parag Nemade <pnemade AT redhat DOT com> - 5.0-11
|
||||||
|
- Add conditional for new hunspell dir path and update to Requires:
|
||||||
|
hunspell-filesystem
|
||||||
|
|
||||||
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.0-10
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.0-10
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user