/[packages]/cauldron/hspell/current/SPECS/hspell.spec
ViewVC logotype

Contents of /cauldron/hspell/current/SPECS/hspell.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1513499 - (show annotations) (download)
Thu Feb 13 14:37:49 2020 UTC (23 months, 1 week ago) by umeabot
File size: 4182 byte(s)
Mageia 8 Mass Rebuild
1 %define major 0
2 %define libname %mklibname %{name} %{major}
3 %define develname %mklibname %{name} -d
4
5 Name: hspell
6 Version: 1.4
7 Release: %mkrel 4
8 Summary: Free Hebrew linguistic project
9 Group: Text tools
10 License: AGPLv3+
11 URL: http://hspell.ivrix.org.il/
12 Source0: http://hspell.ivrix.org.il/%{name}-%{version}.tar.gz
13 Patch1: hspell-1.2-perl-5.26.patch
14 BuildRequires: pkgconfig(zlib)
15 BuildRequires: locales-he
16 BuildRequires: hunspell
17 BuildRequires: pkgconfig(hunspell)
18 Requires: %{libname} = %{version}-%{release}
19
20 %description
21 The Hspell project is a free Hebrew linguistic project.
22 Its primary goal is to create a free Hebrew spell-checker.
23 In addition to a spell-checker, the project also produced a Hebrew
24 morphological analyzer, which for every valid Hebrew word lists all of its
25 possible readings (valid combinations of prefix and inflected base word).
26 The secondary goal of the project is to make the algorithms and dictionaries,
27 created initially for the spell-checker, freely available. These could be used
28 in more sophisticated research or applications that require Hebrew word lists
29 or a Hebrew morphology engine.
30 Such potential application areas might include search engines, speech
31 synthesis, and much much more. The availability of a free basis will hopefully
32 encourage free development on top of it, to the benefit of the general
33 Hebrew-speaking population.
34
35 %package -n %{libname}
36 Summary: Shared library files for hspell
37 Group: Text tools
38
39 %description -n %{libname}
40 Shared library files for the hspell package.
41
42 %package -n %{develname}
43 Summary: Development files for hspell
44 Group: Development/Other
45 Requires: %{name} = %{version}-%{release}
46 Requires: %{libname} = %{version}-%{release}
47 Provides: libhspell-devel = %{version}-%{release}
48 Provides: hspell-devel = %{version}-%{release}
49 Obsoletes: %{mklibname hspell 0 -d}
50
51 %description -n %{develname}
52 Development headers, and files for development from the hspell package.
53
54 # (kamil) changed the hunspell-he to be according to general Hunspell policies
55 %package -n hunspell-he
56 %define languageenglazy Hebrew
57 %define languagecode he
58 %define lc_ctype he_IL
59
60 Summary: %{languageenglazy} hunspell dictionaries
61 Group: System/Internationalization
62
63 BuildArch: noarch
64
65 Recommends: hunspell
66
67 Requires: locales-he
68 #Mageia values: 1 - aspell, 2 - hunspell, 3 - language specific
69 Provides: enchant-dictionary = 2
70 Provides: hunspell-dictionary
71 Provides: hunspell-%{lc_ctype} = %{version}-%{release}
72 #Generic providing - see Mageia values
73 Provides: dictionary-%{languagecode} = 2
74 Provides: dictionary-%{lc_ctype} = 2
75
76 #MySpell is deprecated
77 Obsoletes: myspell-%{languagecode} < 1.0.3
78 Provides: myspell-%{languagecode}
79 Obsoletes: myspell-%{lc_ctype} < 1.0.3
80 Provides: myspell-%{lc_ctype}
81
82 %description -n hunspell-he
83 %{languageenglazy} hunspell dictionaries
84
85
86 # (kamil) end hunspell-he
87
88 %prep
89 %autosetup -p1
90
91 %build
92 export CFLAGS="%optflags -fPIC"
93 export PERL5LIB="$PERL5LIB:$PWD"
94 %configure --enable-fatverb --enable-shared --enable-linginfo
95 %__make dmask.c
96 %make_build
97 make hunspell
98 cat >> he.aff << EOF
99 MAP 10
100 MAP ךכח
101 MAP םמ
102 MAP ןנ
103 MAP ףפ
104 MAP ץצ
105 MAP כק
106 MAP אע # for English
107 MAP גה # for Russian
108 MAP צס # for Arabic
109 MAP חכר # for French
110 EOF
111
112 %install
113 %make_install
114
115 rm -f %{buildroot}%{_libdir}/libhspell.a
116
117 # (kamil) hunspell-he installation
118 install -D -m 0644 -p he.dic %{buildroot}%{_datadir}/hunspell/%{lc_ctype}.dic
119 install -D -m 0644 -p he.aff %{buildroot}%{_datadir}/hunspell/%{lc_ctype}.aff
120
121 #backward compatibility
122 mkdir -p %{buildroot}%{_datadir}/myspell
123 pushd %{buildroot}%{_datadir}/myspell
124 ln -s ../hunspell/%{lc_ctype}.dic %{lc_ctype}.dic
125 ln -s ../hunspell/%{lc_ctype}.aff %{lc_ctype}.aff
126 popd #%%{buildroot}%%{_datadir}/myspell
127
128 # (kamil) hunspell-he end
129
130 %files
131 %{_bindir}/hspell
132 %{_bindir}/hspell-i
133 %{_bindir}/multispell
134 %{_mandir}/man?/hspell.*
135 %{_datadir}/hspell/
136
137 %files -n %{libname}
138 %{_libdir}/libhspell.so.0
139
140 %files -n %{develname}
141 %_includedir/hspell.h
142 %{_libdir}/libhspell.so
143 %_includedir/linginfo.h
144
145 %files -n hunspell-he
146 %{_datadir}/myspell/*
147 %{_datadir}/hunspell/*

  ViewVC Help
Powered by ViewVC 1.1.28