File: scim-tables.spec.in

package info (click to toggle)
scim-tables 0.5.14-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 16,256 kB
  • sloc: cpp: 7,100; sh: 2,381; makefile: 558
file content (275 lines) | stat: -rw-r--r-- 7,331 bytes parent folder | download | duplicates (2)
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
%define nam             @PACKAGE@
%define ver             @VERSION@
%define skim            @SCIM_TABLES_ENABLE_SKIM_SUPPORT@
%define rel             1

%define scim_version	@SCIM_VERSION@

%define build_scim_setup	@SCIM_BUILD_SETUP@

Summary:	SCIM Generic Table IMEngine and its data files.
Name:		%{nam}
Version:	%{ver}
Release:	%{rel}
License:	GPL
Group:		System Environment/Libraries
URL:		http://sourceforge.net/projects/scim
BuildRoot:	%{_tmppath}/%{name}-%{version}-root
Source0:	%{name}-%{version}.tar.gz

PreReq:		/sbin/ldconfig, /bin/sh

Requires:	scim >= %{scim_version}
BuildRequires:	scim-devel >= %{scim_version}

Requires:	gtk2 >= 2.0.0
BuildRequires:	gtk2-devel >= 2.0.0

%if %{skim}
BuildRequires:	skim-devel >= 1.2.0
%endif

%description
This package includes Generic Table IMEngine for SCIM and many data files for it.

%if %{skim}
%package skim
Summary:        Skim support for Generic Table
Group:          System/I18n
Requires:	%{name} = %{version}
Requires:	skim >= 1.2.0

%description skim
This package includes Skim support for Generic Table IMEngine.
%endif

%package zh
Summary:	Data files for Chinese
Group:		System Environment/Libraries
Requires:	scim-tables >= %{ver}

%description zh
This package includes table IM data files for Chinese.

%package ja
Summary:	Data files for Japanese
Group:		System Environment/Libraries
Requires:	scim-tables >= %{ver}

%description ja
This package includes table IM data files for Japanese.

%package ko
Summary:	Data files for Korean
Group:		System Environment/Libraries
Requires:	scim-tables >= %{ver}

%description ko
This package includes table IM data files for Korean.

%package additional
Summary:	Data files for additional languages.
Group:		System Environment/Libraries
Requires:	scim-tables >= %{ver}

%description additional
This package includes table IM data files for additional languages,
such as Russian etc..

#--------------------------------------------------

%changelog
* Wed Jan 5 2005 James Su <suzhe@tsinghua.org.cn>
- Added Generic Table IMEngine module into this package.

* Sun Jun 20 2004 James Su <suzhe@tsinghua.org.cn>
- Added Amharic table.

* Mon Apr 05 2004 James Su <suzhe@tsinghua.org.cn>
- Updated Nippon table.
- Added Yawerty table for Russian.

* Fri Nov 28 2003 James Su <suzhe@turbolinux.com.cn>
- upgraded CangJie.txt.in, added README-CangJie.txt

* Tue Sep 02 2003 James Su <suzhe@turbolinux.com.cn>
- updated table format according to SCIM 0.8.0
- added icon files.

* Wed Feb 26 2003 James Su <suzhe@turbolinux.com.cn>
- updated table format according to SCIM 0.3.1.

* Mon Nov 04 2002 James Su <suzhe@turbolinux.com.cn>
- Initial release.
#--------------------------------------------------

%prep
rm -rf ${RPM_BUILD_ROOT}

%setup -n %{name}-%{version}

%build
./configure --prefix=%{_prefix} --sysconfdir=%{_sysconfdir} --mandir=%{_mandir}

make 

%install
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT

make DESTDIR=${RPM_BUILD_ROOT} install

rm -f ${RPM_BUILD_ROOT}/%{_libdir}/scim-1.0/*/*.{a,la}

gzip -9nf ${RPM_BUILD_ROOT}/%{_mandir}/man?/*.?

%if %{skim}
rm -f $RPM_BUILD_ROOT/@KDEDIR@/lib/kde*/*.{a,la}
%endif

%clean
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT

%post

%postun

%files
%doc AUTHORS COPYING NEWS README ChangeLog THANKS
%doc %{_mandir}/man*/*
%{_bindir}/scim-make-table
@SCIM_MODULEDIR@/IMEngine/table.so
@SCIM_ICONDIR@/table.png
%if %{build_scim_setup}
@SCIM_MODULEDIR@/SetupUI/table-imengine-setup.so
%endif
%{_datadir}/locale/*/LC_MESSAGES/scim-tables.mo

%files zh
%defattr(-, root, root)
%doc tables/zh/README-Erbi.txt tables/zh/README-CangJie.txt
@SCIM_TABLEDIR@/Array30.bin
@SCIM_TABLEDIR@/CangJie.bin
@SCIM_TABLEDIR@/CangJie3.bin
@SCIM_TABLEDIR@/CangJie5.bin
@SCIM_TABLEDIR@/Cantonese.bin
@SCIM_TABLEDIR@/CantonHK.bin
@SCIM_TABLEDIR@/CNS11643.bin
@SCIM_TABLEDIR@/Dayi3.bin
@SCIM_TABLEDIR@/Erbi.bin
@SCIM_TABLEDIR@/Erbi-QS.bin
@SCIM_TABLEDIR@/EZ-Big.bin
@SCIM_TABLEDIR@/Jyutping.bin
@SCIM_TABLEDIR@/Quick.bin
@SCIM_TABLEDIR@/Simplex.bin
@SCIM_TABLEDIR@/Stroke5.bin
@SCIM_TABLEDIR@/Wu.bin
@SCIM_TABLEDIR@/Wubi.bin
@SCIM_TABLEDIR@/Ziranma.bin
@SCIM_TABLEDIR@/ZhuYin.bin
@SCIM_TABLEDIR@/ZhuYin-Big.bin
@SCIM_ICONDIR@/Array30.png
@SCIM_ICONDIR@/CangJie.png
@SCIM_ICONDIR@/CangJie3.png
@SCIM_ICONDIR@/Cantonese.png
@SCIM_ICONDIR@/CantonHK.png
@SCIM_ICONDIR@/CNS11643.png
@SCIM_ICONDIR@/Dayi.png
@SCIM_ICONDIR@/Erbi.png
@SCIM_ICONDIR@/Erbi-QS.png
@SCIM_ICONDIR@/EZ.png
@SCIM_ICONDIR@/Jyutping.png
@SCIM_ICONDIR@/Quick.png
@SCIM_ICONDIR@/Simplex.png
@SCIM_ICONDIR@/Stroke5.png
@SCIM_ICONDIR@/Wu.png
@SCIM_ICONDIR@/Wubi.png
@SCIM_ICONDIR@/Ziranma.png
@SCIM_ICONDIR@/ZhuYin.png

%files ja
%defattr(-, root, root)
%doc tables/ja/kanjidic_licence.html tables/ja/kanjidic_doc.html tables/ja/kanjidic-permission-to-use-for-scim
@SCIM_TABLEDIR@/HIRAGANA.bin
@SCIM_TABLEDIR@/KATAKANA.bin
@SCIM_TABLEDIR@/Nippon.bin
@SCIM_ICONDIR@/HIRAGANA.png
@SCIM_ICONDIR@/KATAKANA.png
@SCIM_ICONDIR@/Nippon.png

%files ko
%defattr(-, root, root)
@SCIM_TABLEDIR@/Hangul.bin
@SCIM_TABLEDIR@/HangulRomaja.bin
@SCIM_TABLEDIR@/Hanja.bin
@SCIM_ICONDIR@/Hangul.png
@SCIM_ICONDIR@/Hanja.png

%files additional
%defattr(-, root, root)
@SCIM_TABLEDIR@/Amharic.bin
@SCIM_TABLEDIR@/Arabic.bin
@SCIM_TABLEDIR@/Bengali-inscript.bin
@SCIM_TABLEDIR@/Bengali-probhat.bin
@SCIM_TABLEDIR@/Gujarati-inscript.bin
@SCIM_TABLEDIR@/Gujarati-phonetic.bin
@SCIM_TABLEDIR@/HebrewComputer.bin
@SCIM_TABLEDIR@/Hindi-inscript.bin
@SCIM_TABLEDIR@/Hindi-phonetic.bin
@SCIM_TABLEDIR@/IPA-X-SAMPA.bin
@SCIM_TABLEDIR@/Kannada-inscript.bin
@SCIM_TABLEDIR@/Kannada-kgp.bin
@SCIM_TABLEDIR@/LaTeX.bin
@SCIM_TABLEDIR@/Malayalam-inscript.bin
@SCIM_TABLEDIR@/Nepali_Rom.bin
@SCIM_TABLEDIR@/Nepali_Trad.bin
@SCIM_TABLEDIR@/Punjabi-inscript.bin
@SCIM_TABLEDIR@/Punjabi-jhelum.bin
@SCIM_TABLEDIR@/Punjabi-phonetic.bin
@SCIM_TABLEDIR@/RussianTraditional.bin
@SCIM_TABLEDIR@/RussianComputer.bin
@SCIM_TABLEDIR@/Tamil-inscript.bin
@SCIM_TABLEDIR@/Tamil-phonetic.bin
@SCIM_TABLEDIR@/Tamil-remington.bin
@SCIM_TABLEDIR@/Telugu-inscript.bin
@SCIM_TABLEDIR@/Thai.bin
@SCIM_TABLEDIR@/Translit.bin
@SCIM_TABLEDIR@/Viqr.bin
@SCIM_TABLEDIR@/Yawerty.bin

@SCIM_ICONDIR@/Amharic.png
@SCIM_ICONDIR@/Arabic.png
@SCIM_ICONDIR@/Bengali-inscript.png
@SCIM_ICONDIR@/Bengali-probhat.png
@SCIM_ICONDIR@/Gujarati-inscript.png
@SCIM_ICONDIR@/Gujarati-phonetic.png
@SCIM_ICONDIR@/Hindi-inscript.png
@SCIM_ICONDIR@/Hindi-phonetic.png
@SCIM_ICONDIR@/IPA-X-SAMPA.png
@SCIM_ICONDIR@/Kannada-inscript.png
@SCIM_ICONDIR@/Kannada-kgp.png
@SCIM_ICONDIR@/LaTeX.png
@SCIM_ICONDIR@/Malayalam-inscript.png
@SCIM_ICONDIR@/Nepali.png
@SCIM_ICONDIR@/Punjabi-inscript.png
@SCIM_ICONDIR@/Punjabi-jhelum.png
@SCIM_ICONDIR@/Punjabi-phonetic.png
@SCIM_ICONDIR@/RussianTraditional.png
@SCIM_ICONDIR@/RussianComputer.png
@SCIM_ICONDIR@/Tamil-inscript.png
@SCIM_ICONDIR@/Tamil-phonetic.png
@SCIM_ICONDIR@/Tamil-remington.png
@SCIM_ICONDIR@/Telugu-inscript.png
@SCIM_ICONDIR@/Thai.png
@SCIM_ICONDIR@/Viqr.png
@SCIM_ICONDIR@/Yawerty.png


%if %{skim}
%files skim
%defattr(-, root, root)
@KDEDIR@/lib/kde*/*.so
@KDEDIR@/share/apps/skim/pics/scim-tables.png
@KDEDIR@/share/config.kcfg/generictable.kcfg
@KDEDIR@/share/locale/*/LC_MESSAGES/skim-scim-tables.mo
@KDEDIR@/share/services/skimconfiguredialog/skimplugin_scim_table_config.desktop
%endif