50fc5e
Name: hunspell-no
50fc5e
Summary: Norwegian hunspell dictionaries
50fc5e
Epoch: 1
50fc5e
Version: 2.0.10
50fc5e
Release: 7%{?dist}
50fc5e
50fc5e
Source: https://alioth-archive.debian.org/releases/spell-norwegian/spell-norwegian/%{version}/no_NO-pack2-%{version}.zip
50fc5e
URL: https://alioth-archive.debian.org/releases/spell-norwegian/spell-norwegian/
50fc5e
License: GPL+
50fc5e
BuildArch: noarch
50fc5e
50fc5e
Patch1:  rhbz959989.badsfxrules.patch
50fc5e
50fc5e
%description
50fc5e
Norwegian hunspell dictionaries.
50fc5e
50fc5e
%package -n hunspell-nb
50fc5e
Summary: Bokmaal hunspell dictionaries
50fc5e
Requires: hunspell
50fc5e
Supplements: (hunspell and langpacks-nb)
50fc5e
50fc5e
%description -n hunspell-nb
50fc5e
Bokmaal hunspell dictionaries.
50fc5e
50fc5e
%package -n hunspell-nn
50fc5e
Summary: Nynorsk hunspell dictionaries
50fc5e
Requires: hunspell
50fc5e
Supplements: (hunspell and langpacks-nn)
50fc5e
50fc5e
%description -n hunspell-nn
50fc5e
Nynorsk hunspell dictionaries.
50fc5e
50fc5e
%package -n hyphen-nb
50fc5e
Summary: Bokmaal hyphenation rules
50fc5e
Requires: hyphen
50fc5e
Supplements: (hyphen and langpacks-nb)
50fc5e
50fc5e
%description -n hyphen-nb
50fc5e
Bokmaal hyphenation rules.
50fc5e
50fc5e
%package -n hyphen-nn
50fc5e
Summary: Nynorsk hyphenation rules
50fc5e
Requires: hyphen
50fc5e
Supplements: (hyphen and langpacks-nn)
50fc5e
50fc5e
%description -n hyphen-nn
50fc5e
Nynorsk hyphenation rules
50fc5e
50fc5e
%package -n mythes-nb
50fc5e
Summary: Bokmaal thesaurus
50fc5e
Requires: mythes
50fc5e
Supplements: (mythes and langpacks-nb)
50fc5e
50fc5e
%description -n mythes-nb
50fc5e
Bokmaal thesaurus.
50fc5e
50fc5e
%package -n mythes-nn
50fc5e
Summary: Nynorsk thesaurus 
50fc5e
Requires: mythes
50fc5e
Supplements: (mythes and langpacks-nn)
50fc5e
50fc5e
%description -n mythes-nn
50fc5e
Nynorsk thesaurus.
50fc5e
50fc5e
%prep
50fc5e
%setup -q -c
50fc5e
unzip -q nb_NO.zip
50fc5e
unzip -q nn_NO.zip
50fc5e
unzip -q hyph_nb_NO.zip
50fc5e
unzip -q hyph_nn_NO.zip
50fc5e
unzip -q th_nb_NO_v2.zip
50fc5e
unzip -q th_nn_NO_v2.zip
50fc5e
%patch1 -p0 -b .rhbz959989
50fc5e
50fc5e
%build
50fc5e
for i in README_nb_NO.txt README_nn_NO.txt README_hyph_nb_NO.txt \
50fc5e
  README_hyph_nn_NO.txt README_th_nb_NO_v2.txt README_th_nn_NO_v2.txt; do
50fc5e
  if ! iconv -f utf-8 -t utf-8 -o /dev/null $i > /dev/null 2>&1; then
50fc5e
    iconv -f ISO-8859-1 -t UTF-8 $i > $i.new
50fc5e
    touch -r $i $i.new
50fc5e
    mv -f $i.new $i
50fc5e
  fi
50fc5e
  tr -d '\r' < $i > $i.new
50fc5e
  touch -r $i $i.new
50fc5e
  mv -f $i.new $i
50fc5e
done
50fc5e
50fc5e
%install
50fc5e
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
50fc5e
cp -p nn_NO.aff nn_NO.dic nb_NO.aff nb_NO.dic $RPM_BUILD_ROOT/%{_datadir}/myspell
50fc5e
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/hyphen
50fc5e
cp -p hyph_nn_NO.dic hyph_nb_NO.dic $RPM_BUILD_ROOT/%{_datadir}/hyphen
50fc5e
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/mythes
50fc5e
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
50fc5e
50fc5e
50fc5e
%files -n hunspell-nb
50fc5e
%doc README_nb_NO.txt
50fc5e
%{_datadir}/myspell/nb_NO.*
50fc5e
50fc5e
%files -n hunspell-nn
50fc5e
%doc README_nn_NO.txt
50fc5e
%{_datadir}/myspell/nn_NO.*
50fc5e
50fc5e
%files -n hyphen-nb
50fc5e
%doc README_hyph_nb_NO.txt
50fc5e
%{_datadir}/hyphen/hyph_nb_NO.*
50fc5e
50fc5e
%files -n hyphen-nn
50fc5e
%doc README_hyph_nn_NO.txt
50fc5e
%{_datadir}/hyphen/hyph_nn_NO.*
50fc5e
50fc5e
%files -n mythes-nb
50fc5e
%doc README_th_nb_NO_v2.txt
50fc5e
%{_datadir}/mythes/th_nb_NO_v2.*
50fc5e
50fc5e
%files -n mythes-nn
50fc5e
%doc README_th_nb_NO_v2.txt
50fc5e
%{_datadir}/mythes/th_nn_NO_v2.*
50fc5e
50fc5e
%changelog
50fc5e
* Sun Jul 08 2018 Parag Nemade <pnemade AT fedoraproject DOT org> - 1:2.0.10-7
50fc5e
- Update Source tag
50fc5e
50fc5e
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.0.10-6
50fc5e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
50fc5e
50fc5e
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.0.10-5
50fc5e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
50fc5e
50fc5e
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.0.10-4
50fc5e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
50fc5e
50fc5e
* Fri Feb 19 2016 Parag Nemade <pnemade AT redhat DOT com> - 1:2.0.10-3
50fc5e
- Add Supplements: tag for langpacks naming guidelines
50fc5e
- Clean the specfile to follow current packaging guidelines
50fc5e
50fc5e
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.0.10-2
50fc5e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
50fc5e
50fc5e
* Wed Jul 15 2015 Caolán McNamara <caolanm@redhat.com> - 1:2.0.10
50fc5e
- Resolves: rhbz#1055112 return to 2.0.10 by popular demand
50fc5e
50fc5e
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-6
50fc5e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
50fc5e
50fc5e
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-5
50fc5e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
50fc5e
50fc5e
* Mon Aug 12 2013 Caolán McNamara <caolanm@redhat.com> - 2.1-4
50fc5e
- Resolves: rhbz#959989 incompatible stripping characters and condition
50fc5e
50fc5e
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-3
50fc5e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
50fc5e
50fc5e
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-2
50fc5e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
50fc5e
50fc5e
* Mon Oct 01 2012 Caolán McNamara <caolanm@redhat.com> - 2.1-1
50fc5e
- latest -version
50fc5e
50fc5e
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.10-11
50fc5e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
50fc5e
50fc5e
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.10-10
50fc5e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
50fc5e
50fc5e
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.10-9
50fc5e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
50fc5e
50fc5e
* Fri Nov 05 2010 Caolán McNamara <caolanm@redhat.com> - 2.0.10-8
50fc5e
- Resolves: rhbz#648740 revert this, and silence hunspell instead
50fc5e
50fc5e
* Tue Nov 02 2010 Caolán McNamara <caolanm@redhat.com> - 2.0.10-7
50fc5e
- Resolves: rhbz#648740 thousands of trailing empty rules spew
50fc5e
50fc5e
* Sun Apr 04 2010 Caolán McNamara <caolanm@redhat.com> - 2.0.10-6
50fc5e
- mythes now owns /usr/share/mythes
50fc5e
50fc5e
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.10-5
50fc5e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
50fc5e
50fc5e
* Sat Jul 11 2009 Caolán McNamara <caolanm@redhat.com> - 2.0.10-4
50fc5e
- tidy spec
50fc5e
50fc5e
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.10-3
50fc5e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
50fc5e
50fc5e
* Thu Nov 27 2008 Caolán McNamara <caolanm@redhat.com> - 2.0.10-2
50fc5e
- silly require
50fc5e
50fc5e
* Thu Nov 20 2008 Caolán McNamara <caolanm@redhat.com> - 2.0.10-1
50fc5e
- initial version