Resolves: RHEL-32832 - The mythes package is not present in RHEL10
This commit is contained in:
parent
c0ae9d72e7
commit
3cf6d5bc9d
@ -1,3 +1,9 @@
|
|||||||
|
%if 0%{?rhel} && 0%{?rhel} > 9
|
||||||
|
%bcond_with mythes
|
||||||
|
%else
|
||||||
|
%bcond_without mythes
|
||||||
|
%endif
|
||||||
|
|
||||||
%if 0%{?fedora} > 35
|
%if 0%{?fedora} > 35
|
||||||
%global dict_dirname hunspell
|
%global dict_dirname hunspell
|
||||||
%else
|
%else
|
||||||
@ -7,7 +13,7 @@ Name: hunspell-no
|
|||||||
Summary: Norwegian hunspell dictionaries
|
Summary: Norwegian hunspell dictionaries
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Version: 2.0.10
|
Version: 2.0.10
|
||||||
Release: 22%{?dist}
|
Release: 23%{?dist}
|
||||||
|
|
||||||
Source: https://alioth-archive.debian.org/releases/spell-norwegian/spell-norwegian/%{version}/no_NO-pack2-%{version}.zip
|
Source: https://alioth-archive.debian.org/releases/spell-norwegian/spell-norwegian/%{version}/no_NO-pack2-%{version}.zip
|
||||||
URL: https://alioth-archive.debian.org/releases/spell-norwegian/spell-norwegian/
|
URL: https://alioth-archive.debian.org/releases/spell-norwegian/spell-norwegian/
|
||||||
@ -51,6 +57,7 @@ Supplements: (hyphen and langpacks-nn)
|
|||||||
%description -n hyphen-nn
|
%description -n hyphen-nn
|
||||||
Nynorsk hyphenation rules
|
Nynorsk hyphenation rules
|
||||||
|
|
||||||
|
%if %{with mythes}
|
||||||
%package -n mythes-nb
|
%package -n mythes-nb
|
||||||
Summary: Bokmaal thesaurus
|
Summary: Bokmaal thesaurus
|
||||||
Requires: mythes
|
Requires: mythes
|
||||||
@ -66,6 +73,7 @@ Supplements: (mythes and langpacks-nn)
|
|||||||
|
|
||||||
%description -n mythes-nn
|
%description -n mythes-nn
|
||||||
Nynorsk thesaurus.
|
Nynorsk thesaurus.
|
||||||
|
%endif
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -c
|
%setup -q -c
|
||||||
@ -75,7 +83,7 @@ unzip -q hyph_nb_NO.zip
|
|||||||
unzip -q hyph_nn_NO.zip
|
unzip -q hyph_nn_NO.zip
|
||||||
unzip -q th_nb_NO_v2.zip
|
unzip -q th_nb_NO_v2.zip
|
||||||
unzip -q th_nn_NO_v2.zip
|
unzip -q th_nn_NO_v2.zip
|
||||||
%patch1 -p0 -b .rhbz959989
|
%patch -P 1 -b .rhbz959989
|
||||||
|
|
||||||
%build
|
%build
|
||||||
for i in README_nb_NO.txt README_nn_NO.txt README_hyph_nb_NO.txt \
|
for i in README_nb_NO.txt README_nn_NO.txt README_hyph_nb_NO.txt \
|
||||||
@ -95,9 +103,10 @@ mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
|
|||||||
cp -p nn_NO.aff nn_NO.dic nb_NO.aff nb_NO.dic $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
|
cp -p nn_NO.aff nn_NO.dic nb_NO.aff nb_NO.dic $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/hyphen
|
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/hyphen
|
||||||
cp -p hyph_nn_NO.dic hyph_nb_NO.dic $RPM_BUILD_ROOT/%{_datadir}/hyphen
|
cp -p hyph_nn_NO.dic hyph_nb_NO.dic $RPM_BUILD_ROOT/%{_datadir}/hyphen
|
||||||
|
%if %{with mythes}
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/mythes
|
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/mythes
|
||||||
cp -p th_nb_NO_v2.dat th_nb_NO_v2.idx th_nn_NO_v2.dat th_nn_NO_v2.idx $RPM_BUILD_ROOT/%{_datadir}/mythes
|
cp -p th_nb_NO_v2.dat th_nb_NO_v2.idx th_nn_NO_v2.dat th_nn_NO_v2.idx $RPM_BUILD_ROOT/%{_datadir}/mythes
|
||||||
|
%endif
|
||||||
|
|
||||||
%files -n hunspell-nb
|
%files -n hunspell-nb
|
||||||
%doc README_nb_NO.txt
|
%doc README_nb_NO.txt
|
||||||
@ -115,6 +124,7 @@ cp -p th_nb_NO_v2.dat th_nb_NO_v2.idx th_nn_NO_v2.dat th_nn_NO_v2.idx $RPM_BUILD
|
|||||||
%doc README_hyph_nn_NO.txt
|
%doc README_hyph_nn_NO.txt
|
||||||
%{_datadir}/hyphen/hyph_nn_NO.*
|
%{_datadir}/hyphen/hyph_nn_NO.*
|
||||||
|
|
||||||
|
%if %{with mythes}
|
||||||
%files -n mythes-nb
|
%files -n mythes-nb
|
||||||
%doc README_th_nb_NO_v2.txt
|
%doc README_th_nb_NO_v2.txt
|
||||||
%{_datadir}/mythes/th_nb_NO_v2.*
|
%{_datadir}/mythes/th_nb_NO_v2.*
|
||||||
@ -122,8 +132,11 @@ cp -p th_nb_NO_v2.dat th_nb_NO_v2.idx th_nn_NO_v2.dat th_nn_NO_v2.idx $RPM_BUILD
|
|||||||
%files -n mythes-nn
|
%files -n mythes-nn
|
||||||
%doc README_th_nb_NO_v2.txt
|
%doc README_th_nb_NO_v2.txt
|
||||||
%{_datadir}/mythes/th_nn_NO_v2.*
|
%{_datadir}/mythes/th_nn_NO_v2.*
|
||||||
|
%endif
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Apr 15 2024 Parag Nemade <pnemade AT redhat DOT com> - 1:2.0.10-23
|
||||||
|
- Resolves: RHEL-32832 - The mythes package is not present in RHEL10
|
||||||
|
|
||||||
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.0.10-22
|
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.0.10-22
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user