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