Sophie

Sophie

distrib > Mageia > 2 > i586 > by-pkgid > c28edfa5fbb8ce74a5f04d047fd42ca7 > files > 2

hunspell-ht-0.06-4.mga2.src.rpm

%define languageenglazy Haitian Creole
%define languagecode    ht
%define lc_ctype        ht_HT

Name:           hunspell-%{languagecode}
Version:        0.06
Release:        %mkrel 4
Summary:        %{languageenglazy} hunspell dictionaries
License:        GPLv3+
Group:          System/Internationalization
URL:            http://kok.logipam.org/
Source0:        http://extensions.services.openoffice.org/files/3247/3/%{name}-%{version}.oxt

BuildArch:      noarch

Suggests:       hunspell

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

#MySpell is deprecated
# there is nothing to obsolete
#Obsoletes:      myspell-%{languagecode} <= 1.0.2-30
#Provides:       myspell-%{languagecode}
#Obsoletes:      myspell-%{lc_ctype} <= 1.0.2-30
#Provides:       myspell-%{lc_ctype}

AutoReqProv:    no

%description
%{languageenglazy} hunspell dictionaries.


%prep
%setup -q -c

%build

%install
install -D -m 0644 -p dictionaries/ht_*.dic %{buildroot}%{_datadir}/hunspell/%{lc_ctype}.dic
install -D -m 0644 -p dictionaries/ht_*.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/README_ht_HT.txt LICENSES-en.txt
%{_datadir}/hunspell/*
%{_datadir}/myspell/*


%changelog

* Tue Mar 20 2012 kamil <kamil> 0.06-4.mga2
+ Revision: 224681
- add requirement on locales (mga#4632)

* Mon Jan 23 2012 kamil <kamil> 0.06-3.mga2
+ Revision: 200229
- adapt .spec to the current policies

* Sat Mar 12 2011 dmorgan <dmorgan> 0.06-2.mga1
+ Revision: 68839
- imported package hunspell-ht