Sophie

Sophie

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

hunspell-lt-1.2.1-11.mga3.src.rpm

%define languageenglazy Lithuanian
%define languagecode    lt
%define lc_ctype        lt_LT

Name:           hunspell-%{languagecode}
Version:        1.2.1
Release:        %mkrel 11
Summary:        %{languageenglazy} hunspell dictionaries
License:        BSD
Group:          System/Internationalization
URL:            ftp://ftp.akl.lt/ispell-lt/
Source0:        ftp://ftp.akl.lt/ispell-lt/lt_LT-%{version}.zip

BuildArch:      noarch

Suggests:       hunspell

Requires:       locales-lt
#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
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 -n lt_LT-%{version}

%build
chmod -x *
for i in INSTRUKCIJOS.txt; do
  tr -d '\r' < $i > $i.new
  touch -r $i $i.new
  mv -f $i.new $i
done

%install
install -D -m 0644 -p *.dic %{buildroot}%{_datadir}/hunspell/%{lc_ctype}.dic
install -D -m 0644 -p *.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 README.EN INSTRUKCIJOS.txt
%{_datadir}/hunspell/*
%{_datadir}/myspell/*


%changelog

* Sat Jan 12 2013 umeabot <umeabot> 1.2.1-11.mga3
+ Revision: 353543
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Sun Dec 02 2012 kamil <kamil> 1.2.1-10.mga3
+ Revision: 325590
- rebuild for Mga3 Beta1

* Tue Mar 20 2012 kamil <kamil> 1.2.1-9.mga2
+ Revision: 224732
- add requirement on locales (mga#4632)

* Tue Feb 14 2012 kamil <kamil> 1.2.1-8.mga2
+ Revision: 208522
- use better obsoleting of myspell
- adapt .spec to the current policies

* Sat Mar 12 2011 dmorgan <dmorgan> 1.2.1-6.mga1
+ Revision: 68919
- imported package hunspell-lt