diff --git a/.hunspell-no.metadata b/.hunspell-no.metadata index 975bd25..19f6e9f 100644 --- a/.hunspell-no.metadata +++ b/.hunspell-no.metadata @@ -1 +1 @@ -02431d9cd908923bf532957e2db52c576864f7d8 SOURCES/no_NO-pack2-2.0.10.zip +02431d9cd908923bf532957e2db52c576864f7d8 SOURCES/no_NO-pack2-2.0.10.zip diff --git a/SPECS/hunspell-no.spec b/SPECS/hunspell-no.spec index 459d1ad..cbbe690 100644 --- a/SPECS/hunspell-no.spec +++ b/SPECS/hunspell-no.spec @@ -1,12 +1,23 @@ +%if 0%{?rhel} && 0%{?rhel} > 9 +%bcond_with mythes +%else +%bcond_without mythes +%endif + +%if 0%{?fedora} > 35 +%global dict_dirname hunspell +%else +%global dict_dirname myspell +%endif Name: hunspell-no Summary: Norwegian hunspell dictionaries Epoch: 1 Version: 2.0.10 -Release: 15%{?dist} +Release: 24%{?dist} 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/ -License: GPL+ +License: GPL-1.0-or-later BuildArch: noarch Patch1: rhbz959989.badsfxrules.patch @@ -46,6 +57,7 @@ Supplements: (hyphen and langpacks-nn) %description -n hyphen-nn Nynorsk hyphenation rules +%if %{with mythes} %package -n mythes-nb Summary: Bokmaal thesaurus Requires: mythes @@ -61,6 +73,7 @@ Supplements: (mythes and langpacks-nn) %description -n mythes-nn Nynorsk thesaurus. +%endif %prep %setup -q -c @@ -70,7 +83,7 @@ unzip -q hyph_nb_NO.zip unzip -q hyph_nn_NO.zip unzip -q th_nb_NO_v2.zip unzip -q th_nn_NO_v2.zip -%patch1 -p0 -b .rhbz959989 +%patch -P 1 -b .rhbz959989 %build for i in README_nb_NO.txt README_nn_NO.txt README_hyph_nb_NO.txt \ @@ -86,21 +99,22 @@ for i in README_nb_NO.txt README_nn_NO.txt README_hyph_nb_NO.txt \ done %install -mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell -cp -p nn_NO.aff nn_NO.dic nb_NO.aff nb_NO.dic $RPM_BUILD_ROOT/%{_datadir}/myspell +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} mkdir -p $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 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 %doc README_nb_NO.txt -%{_datadir}/myspell/nb_NO.* +%{_datadir}/%{dict_dirname}/nb_NO.* %files -n hunspell-nn %doc README_nn_NO.txt -%{_datadir}/myspell/nn_NO.* +%{_datadir}/%{dict_dirname}/nn_NO.* %files -n hyphen-nb %doc README_hyph_nb_NO.txt @@ -110,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 %{_datadir}/hyphen/hyph_nn_NO.* +%if %{with mythes} %files -n mythes-nb %doc README_th_nb_NO_v2.txt %{_datadir}/mythes/th_nb_NO_v2.* @@ -117,14 +132,44 @@ 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 %doc README_th_nb_NO_v2.txt %{_datadir}/mythes/th_nn_NO_v2.* - +%endif %changelog -* Mon Aug 09 2021 Mohan Boddu - 1:2.0.10-15 -- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags - Related: rhbz#1991688 +* Mon Jan 06 2025 Arkady L. Shane - 2.0.10-24 +- Rebuilt for MSVSphere 10 + +* Thu Jul 18 2024 Fedora Release Engineering - 1:2.0.10-24 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Mon Apr 15 2024 Parag Nemade - 1:2.0.10-23 +- The mythes package is not present in RHEL10 + +* Wed Jan 24 2024 Fedora Release Engineering - 1:2.0.10-22 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sat Jan 20 2024 Fedora Release Engineering - 1:2.0.10-21 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Thu Jul 20 2023 Fedora Release Engineering - 1:2.0.10-20 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Wed Feb 22 2023 Caolán McNamara - 1:2.0.10-19 +- migrated to SPDX license + +* Thu Jan 19 2023 Fedora Release Engineering - 1:2.0.10-18 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Thu Jul 21 2022 Fedora Release Engineering - 1:2.0.10-17 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Fri Feb 11 2022 Vishal Vijayraghavan - 1:2.0.10-16 +- rename install directory name from myspell to hunspell +- https://fedoraproject.org/wiki/Changes/Hunspell_dictionary_dir_change + +* Thu Jan 20 2022 Fedora Release Engineering - 1:2.0.10-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild -* Fri Apr 16 2021 Mohan Boddu - 1:2.0.10-14 -- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937 +* Thu Jul 22 2021 Fedora Release Engineering - 1:2.0.10-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 1:2.0.10-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild