/[packages]/cauldron/aspell-eo/current/SPECS/aspell-eo.spec
ViewVC logotype

Contents of /cauldron/aspell-eo/current/SPECS/aspell-eo.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 16845 - (show annotations) (download)
Fri Jan 14 01:16:42 2011 UTC (10 years, 8 months ago) by ahmad
File size: 2098 byte(s)
imported package aspell-eo
1 %define _enable_debug_packages %{nil}
2 %define debug_package %{nil}
3
4 # NOTE: as of version 0.50-2, the wordlist isn't using accents;
5 # so we fix that with a small script in %setup section; that should
6 # be removed once an accented wordlist is included
7
8 %define src_ver 2.1.20000225a-2
9 %define fname aspell6-%{languagecode}
10 %define aspell_ver 0.60
11 %define languagelocal esperanto
12 %define languageeng esperanto
13 %define languageenglazy Esperanto
14 %define languagecode eo
15 %define lc_ctype eo_XX
16
17 Summary: %{languageenglazy} files for aspell
18 Name: aspell-%{languagecode}
19 Version: 2.1.20000225a.2
20 Release: %mkrel 3
21 Group: System/Internationalization
22 Source: http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/%{fname}-%{src_ver}.tar.bz2
23 URL: http://aspell.sourceforge.net/
24 License: GPL
25 BuildRoot: %{_tmppath}/%{name}-%{version}-root
26 Provides: spell-eo
27
28
29 BuildRequires: aspell
30 Requires: aspell
31
32 # Mandriva Stuff
33 Requires: locales-%{languagecode}
34 # aspell = 1, myspell = 2, lang-specific = 3
35 Provides: enchant-dictionary = 1
36 Provides: aspell-dictionary
37
38 # RedHat Stuff. is this right:
39 #Obsoletes: ispell-eo, ispell-esperanto
40
41 Autoreqprov: no
42
43 %description
44 A %{languageenglazy} dictionary for use with aspell, a spelling checker.
45
46 %prep
47 %setup -q -n %{fname}-%{src_ver}
48
49 %build
50 ./configure
51 #%make
52
53 # the word list doesn't use accents; fixing that
54 cat << EOF > fixaccents.sh
55 #!/bin/bash
56 cat - | \
57 sed 's/C[Xx]/ĉ/g' | sed 's/cx/ĉ/g' | \
58 sed 's/G[Xx]/Ĝ/g' | sed 's/gx/ĝ/g' | \
59 sed 's/H[Xx]/Ĥ/g' | sed 's/hx/ĥ/g' | \
60 sed 's/J[Xx]/Ĵ/g' | sed 's/jx/ĵ/g' | \
61 sed 's/S[Xx]/Ŝ/g' | sed 's/sx/ŝ/g' | \
62 sed 's/U[Xx]/Ŭ/g' | sed 's/ux/ŭ/g' | \
63 iconv -f utf-8 -t iso-8859-3
64 EOF
65 preunzip -c eo.cwl | sh ./fixaccents.sh | (LC_ALL=C sort) > eo.wl
66 aspell --lang=eo create master ./eo.rws < eo.wl
67
68 %install
69 rm -fr $RPM_BUILD_ROOT
70 make DESTDIR=$RPM_BUILD_ROOT install
71
72 # fix doc perms
73 chmod 644 README
74
75 %clean
76 rm -fr $RPM_BUILD_ROOT
77
78 %files
79 %defattr(-,root,root)
80 %doc README
81 %{_libdir}/aspell-%{aspell_ver}/*
82
83
84
85

  ViewVC Help
Powered by ViewVC 1.1.28