Blame SPECS/hunspell-no.spec

a94147
Name: hunspell-no
a94147
Summary: Norwegian hunspell dictionaries
a94147
Epoch: 1
a94147
Version: 2.0.10
a94147
Release: 1%{?dist}
a94147
Source: https://alioth.debian.org/frs/download.php/file/2357/no_NO-pack2-2.0.10.zip
a94147
Group: Applications/Text
a94147
URL: http://spell-norwegian.alioth.debian.org
a94147
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
a94147
License: GPL+
a94147
BuildArch: noarch
a94147
a94147
Patch1:  rhbz959989.badsfxrules.patch
a94147
a94147
%description
a94147
Norwegian hunspell dictionaries.
a94147
a94147
%package -n hunspell-nb
a94147
Summary: Bokmaal hunspell dictionaries
a94147
Group: Applications/Text
a94147
Requires: hunspell
a94147
a94147
%description -n hunspell-nb
a94147
Bokmaal hunspell dictionaries.
a94147
a94147
%package -n hunspell-nn
a94147
Summary: Nynorsk hunspell dictionaries
a94147
Group: Applications/Text
a94147
Requires: hunspell
a94147
a94147
%description -n hunspell-nn
a94147
Nynorsk hunspell dictionaries.
a94147
a94147
%package -n hyphen-nb
a94147
Summary: Bokmaal hyphenation rules
a94147
Group: Applications/Text
a94147
Requires: hyphen
a94147
a94147
%description -n hyphen-nb
a94147
Bokmaal hyphenation rules.
a94147
a94147
%package -n hyphen-nn
a94147
Summary: Nynorsk hyphenation rules
a94147
Group: Applications/Text
a94147
Requires: hyphen
a94147
a94147
%description -n hyphen-nn
a94147
Nynorsk hyphenation rules
a94147
a94147
%package -n mythes-nb
a94147
Summary: Bokmaal thesaurus
a94147
Group: Applications/Text
a94147
Requires: mythes
a94147
a94147
%description -n mythes-nb
a94147
Bokmaal thesaurus.
a94147
a94147
%package -n mythes-nn
a94147
Summary: Nynorsk thesaurus 
a94147
Group: Applications/Text
a94147
Requires: mythes
a94147
a94147
%description -n mythes-nn
a94147
Nynorsk thesaurus.
a94147
a94147
%prep
a94147
%setup -q -c
a94147
unzip -q nb_NO.zip
a94147
unzip -q nn_NO.zip
a94147
unzip -q hyph_nb_NO.zip
a94147
unzip -q hyph_nn_NO.zip
a94147
unzip -q th_nb_NO_v2.zip
a94147
unzip -q th_nn_NO_v2.zip
a94147
%patch1 -p0 -b .rhbz959989
a94147
a94147
%build
a94147
for i in README_nb_NO.txt README_nn_NO.txt README_hyph_nb_NO.txt \
a94147
  README_hyph_nn_NO.txt README_th_nb_NO_v2.txt README_th_nn_NO_v2.txt; do
a94147
  if ! iconv -f utf-8 -t utf-8 -o /dev/null $i > /dev/null 2>&1; then
a94147
    iconv -f ISO-8859-1 -t UTF-8 $i > $i.new
a94147
    touch -r $i $i.new
a94147
    mv -f $i.new $i
a94147
  fi
a94147
  tr -d '\r' < $i > $i.new
a94147
  touch -r $i $i.new
a94147
  mv -f $i.new $i
a94147
done
a94147
a94147
%install
a94147
rm -rf $RPM_BUILD_ROOT
a94147
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
a94147
cp -p nn_NO.aff nn_NO.dic nb_NO.aff nb_NO.dic $RPM_BUILD_ROOT/%{_datadir}/myspell
a94147
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/hyphen
a94147
cp -p hyph_nn_NO.dic hyph_nb_NO.dic $RPM_BUILD_ROOT/%{_datadir}/hyphen
a94147
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/mythes
a94147
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
a94147
a94147
%clean
a94147
rm -rf $RPM_BUILD_ROOT
a94147
a94147
%files -n hunspell-nb
a94147
%defattr(-,root,root,-)
a94147
%doc README_nb_NO.txt
a94147
%{_datadir}/myspell/nb_NO.*
a94147
a94147
%files -n hunspell-nn
a94147
%defattr(-,root,root,-)
a94147
%doc README_nn_NO.txt
a94147
%{_datadir}/myspell/nn_NO.*
a94147
a94147
%files -n hyphen-nb
a94147
%defattr(-,root,root,-)
a94147
%doc README_hyph_nb_NO.txt
a94147
%{_datadir}/hyphen/hyph_nb_NO.*
a94147
a94147
%files -n hyphen-nn
a94147
%defattr(-,root,root,-)
a94147
%doc README_hyph_nn_NO.txt
a94147
%{_datadir}/hyphen/hyph_nn_NO.*
a94147
a94147
%files -n mythes-nb
a94147
%defattr(-,root,root,-)
a94147
%doc README_th_nb_NO_v2.txt
a94147
%{_datadir}/mythes/th_nb_NO_v2.*
a94147
a94147
%files -n mythes-nn
a94147
%defattr(-,root,root,-)
a94147
%doc README_th_nb_NO_v2.txt
a94147
%{_datadir}/mythes/th_nn_NO_v2.*
a94147
a94147
%changelog
a94147
* Tue Mar 01 2016 Caolán McNamara <caolanm@redhat.com> - 1:2.0.10
a94147
- Resolves: rhbz#1245420 return to 2.0.10 by popular demand
a94147
a94147
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2.1-3
a94147
- Mass rebuild 2013-12-27
a94147
a94147
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-2
a94147
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
a94147
a94147
* Mon Oct 01 2012 Caolán McNamara <caolanm@redhat.com> - 2.1-1
a94147
- latest -version
a94147
a94147
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.10-11
a94147
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
a94147
a94147
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.10-10
a94147
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
a94147
a94147
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.10-9
a94147
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
a94147
a94147
* Fri Nov 05 2010 Caolán McNamara <caolanm@redhat.com> - 2.0.10-8
a94147
- Resolves: rhbz#648740 revert this, and silence hunspell instead
a94147
a94147
* Tue Nov 02 2010 Caolán McNamara <caolanm@redhat.com> - 2.0.10-7
a94147
- Resolves: rhbz#648740 thousands of trailing empty rules spew
a94147
a94147
* Sun Apr 04 2010 Caolán McNamara <caolanm@redhat.com> - 2.0.10-6
a94147
- mythes now owns /usr/share/mythes
a94147
a94147
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.10-5
a94147
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
a94147
a94147
* Sat Jul 11 2009 Caolán McNamara <caolanm@redhat.com> - 2.0.10-4
a94147
- tidy spec
a94147
a94147
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.10-3
a94147
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
a94147
a94147
* Thu Nov 27 2008 Caolán McNamara <caolanm@redhat.com> - 2.0.10-2
a94147
- silly require
a94147
a94147
* Thu Nov 20 2008 Caolán McNamara <caolanm@redhat.com> - 2.0.10-1
a94147
- initial version