Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > 8e096e54f24d33bb7dfb376d192f9603 > files > 1

hunspell-ru-0.99g5-2.mga3.src.rpm

%define languageenglazy Russian
%define languagecode    ru
%define lc_ctype        ru_RU

Name:           hunspell-%{languagecode}
Epoch:          1
Version:        0.99g5
Release:        %mkrel 2
Summary:        %{languageenglazy} hunspell dictionaries
License:        BSD
Group:          System/Internationalization
URL:            ftp://scon155.phys.msu.su/pub/russian/ispell/myspell
Source0:        http://releases.mozilla.org/pub/mozilla.org/addons/3703/russian_spellchecking_dictionary-0.4.4-fx+tb+sm.xpi

BuildArch:      noarch

Suggests:       hunspell

Requires:       locales-ru
#Mageia values: 1 - aspell, 2 - hunspell, 3 - language specific
Provides:       enchant-dictionary = 2
Provides:       hunspell-dictionary
Provides:       hunspell-%{lc_ctype} = %{version}-%{release}
Provides:       hunspell-ru_UA = %{version}-%{release}
#Generic providing - see Mageia values
Provides:       dictionary-%{languagecode} = 2 
Provides:       dictionary-%{lc_ctype} = 2
Provides:       dictionary-ru_UA = 2

#MySpell is deprecated
Obsoletes:      myspell-%{languagecode} < 1.0.3
Provides:       myspell-%{languagecode}
Obsoletes:      myspell-%{lc_ctype} < 1.0.3
Provides:       myspell-%{lc_ctype}

AutoReqProv:    no

%description
%{languageenglazy} hunspell dictionaries.


%prep
%setup -q -c

%build
chmod -x *.*

%install
install -D -m 0644 -p dictionaries/ru.dic %{buildroot}%{_datadir}/hunspell/%{lc_ctype}.dic
install -D -m 0644 -p dictionaries/ru.aff %{buildroot}%{_datadir}/hunspell/%{lc_ctype}.aff

#backward compatibility
mkdir -p %{buildroot}%{_datadir}/myspell
pushd %{buildroot}%{_datadir}/myspell
    ln -s ../hunspell/%{lc_ctype}.dic %{lc_ctype}.dic
    ln -s ../hunspell/%{lc_ctype}.aff %{lc_ctype}.aff
popd #%%{buildroot}%%{_datadir}/myspell

%files
%doc dictionaries/Changelog dictionaries/LICENSE dictionaries/README
%{_datadir}/hunspell/*
%{_datadir}/myspell/*


%changelog

* Sat Jan 12 2013 umeabot <umeabot> 1:0.99g5-2.mga3
+ Revision: 353673
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Thu Jan 10 2013 kamil <kamil> 1:0.99g5-1.mga3
+ Revision: 344432
- sync version with Fedora: 0.99g5
- update Source0
- update %%install paths
- stop installing the language aliases
- update %%doc in %%files

* Tue Mar 20 2012 kamil <kamil> 1:0.99f7-8.mga2
+ Revision: 224808
- add requirement on locales (mga#4632)

* Wed Feb 15 2012 kamil <kamil> 1:0.99f7-7.mga2
+ Revision: 209068
- use better obsoleting of myspell

* Wed Feb 08 2012 kamil <kamil> 1:0.99f7-6.mga2
+ Revision: 206321
- adapt .spec to the current policies

* Sat Mar 12 2011 dmorgan <dmorgan> 1:0.99f7-5.mga1
+ Revision: 69054
- imported package hunspell-ru