1 |
Name: hunspell-fy |
%define languageenglazy Frisian |
2 |
Summary: Frisian hunspell dictionaries |
%define languagecode fy |
3 |
Version: 2.0.1 |
%define lc_ctype fy_NL |
4 |
Release: %mkrel 2 |
|
5 |
Source: http://releases.mozilla.org/pub/mozilla.org/addons/5679/frysk_wurdboek-2.0.1-fx+tb+sm.xpi |
Name: hunspell-%{languagecode} |
6 |
Group: Text tools |
Version: 2.0.1 |
7 |
URL: http://www.mozilla-nl.org/projecten/frysk |
Release: %mkrel 3 |
8 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
Summary: %{languageenglazy} hunspell dictionaries |
9 |
License: LGPLv2+ |
License: LGPLv2+ |
10 |
BuildArch: noarch |
Group: System/Internationalization |
11 |
|
URL: http://www.mozilla-nl.org/projecten/frysk |
12 |
|
Source0: http://releases.mozilla.org/pub/mozilla.org/addons/5679/frysk_wurdboek-2.0.1-fx+tb+sm.xpi |
13 |
|
|
14 |
|
BuildArch: noarch |
15 |
|
|
16 |
|
Suggests: hunspell |
17 |
|
|
18 |
|
#Mageia values: 1 - aspell, 2 - hunspell, 3 - language specific |
19 |
|
Provides: enchant-dictionary = 2 |
20 |
|
Provides: hunspell-dictionary |
21 |
|
Provides: hunspell-%{lc_ctype} = %{version}-%{release} |
22 |
|
Provides: hunspell-fy_DE = %{version}-%{release} |
23 |
|
#Generic providing - see Mageia values |
24 |
|
Provides: dictionary-%{languagecode} = 2 |
25 |
|
Provides: dictionary-%{lc_ctype} = 2 |
26 |
|
Provides: dictionary-fy_DE = 2 |
27 |
|
|
28 |
|
#MySpell is deprecated |
29 |
|
Obsoletes: myspell-%{languagecode} <= 1.0.2-30 |
30 |
|
Provides: myspell-%{languagecode} |
31 |
|
Obsoletes: myspell-%{lc_ctype} <= 1.0.2-30 |
32 |
|
Provides: myspell-%{lc_ctype} |
33 |
|
|
34 |
Requires: hunspell |
AutoReqProv: no |
35 |
|
|
36 |
%description |
%description |
37 |
Frisian hunspell dictionaries. |
%{languageenglazy} hunspell dictionaries. |
38 |
|
|
39 |
|
|
40 |
%prep |
%prep |
41 |
%setup -q -c -n hunspell-fy |
%setup -q -c |
42 |
|
|
43 |
%build |
%build |
44 |
for i in README-fy.txt; do |
for i in README-fy.txt; do |
50 |
done |
done |
51 |
|
|
52 |
%install |
%install |
53 |
rm -rf $RPM_BUILD_ROOT |
install -D -m 0644 -p dictionaries/fy.dic %{buildroot}%{_datadir}/hunspell/%{lc_ctype}.dic |
54 |
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell |
install -D -m 0644 -p dictionaries/fy.aff %{buildroot}%{_datadir}/hunspell/%{lc_ctype}.aff |
|
cp -p dictionaries/fy.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/fy_NL.aff |
|
|
cp -p dictionaries/fy.dic $RPM_BUILD_ROOT/%{_datadir}/myspell/fy_NL.dic |
|
|
pushd $RPM_BUILD_ROOT/%{_datadir}/myspell/ |
|
|
fy_NL_aliases="fy_DE" |
|
|
for lang in $fy_NL_aliases; do |
|
|
ln -s fy_NL.aff $lang.aff |
|
|
ln -s fy_NL.dic $lang.dic |
|
|
done |
|
|
popd |
|
55 |
|
|
56 |
%clean |
fy_NL_aliases="fy_DE" |
57 |
rm -rf $RPM_BUILD_ROOT |
pushd %{buildroot}%{_datadir}/hunspell |
58 |
|
for lang in $fy_NL_aliases |
59 |
|
do |
60 |
|
ln -s %{lc_ctype}.aff $lang.aff |
61 |
|
ln -s %{lc_ctype}.dic $lang.dic |
62 |
|
done |
63 |
|
popd #%%{buildroot}%%{_datadir}/hunspell |
64 |
|
|
65 |
|
#backward compatibility |
66 |
|
mkdir -p %{buildroot}%{_datadir}/myspell |
67 |
|
pushd %{buildroot}%{_datadir}/myspell |
68 |
|
ln -s ../hunspell/%{lc_ctype}.dic %{lc_ctype}.dic |
69 |
|
ln -s ../hunspell/%{lc_ctype}.aff %{lc_ctype}.aff |
70 |
|
|
71 |
|
for lang in $fy_NL_aliases |
72 |
|
do |
73 |
|
ln -s ../hunspell/$lang.dic $lang.dic |
74 |
|
ln -s ../hunspell/$lang.aff $lang.aff |
75 |
|
done |
76 |
|
popd #%%{buildroot}%%{_datadir}/myspell |
77 |
|
|
78 |
%files |
%files |
|
%defattr(-,root,root,-) |
|
79 |
%doc README-fy.txt |
%doc README-fy.txt |
80 |
|
%{_datadir}/hunspell/* |
81 |
%{_datadir}/myspell/* |
%{_datadir}/myspell/* |
|
|
|