/
aspell-nds.spec
60 lines (48 loc) · 1.44 KB
/
aspell-nds.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
%define _enable_debug_packages %{nil}
%define debug_package %{nil}
%define src_ver 0.01-0
%define fname aspell6-%{languagecode}
%define aspell_ver 0.60
%define languageenglazy Low-Saxon
%define languagecode nds
%define lc_ctype nds_DE
Summary: %{languageenglazy} files for aspell
Name: aspell-%{languagecode}
Version: 0.01.0
Release: 23
Group: System/Internationalization
License: GPLv2
Url: http://aspell.net/
Source0: http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/%{fname}-%{src_ver}.tar.bz2
BuildRequires: aspell >= %{aspell_ver}
Requires: aspell >= %{aspell_ver}
# Mandriva Stuff
Requires: locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides: enchant-dictionary = 1
Provides: aspell-dictionary
Provides: aspell-%{lc_ctype}
Provides: spell-%{languagecode}
Autoreqprov: no
%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.
%prep
%setup -qn %{fname}-%{src_ver}
%build
# don't use configure macro
./configure
%make
%install
%makeinstall_std
chmod 644 Copyright README*
# if there is isn't a qwertz.kbd provided by aspell, create it
if [ ! -r %{buildroot}/%{_libdir}/aspell-%{aspell_ver}/qwertz.kbd \
-a ! -r /%{_libdir}/aspell-%{aspell_ver}/qwertz.kbd ]
then
cat /%{_libdir}/aspell-%{aspell_ver}/standard.kbd | \
sed -e 's/ty/tz/; s/yu/zu/; s/zx/yx/' \
> %{buildroot}/%{_libdir}/aspell-%{aspell_ver}/qwertz.kbd
fi
%files
%doc Copyright README*
%{_libdir}/aspell-%{aspell_ver}/*