File brise.spec of Package brise
470
1
#
2
# spec file for package brise
3
#
4
# Copyright (c) 2023 SUSE LLC
5
#
6
# All modifications and additions to the file contributed by third parties
7
# remain the property of their copyright owners, unless otherwise agreed
8
# upon. The license for this file, and modifications and additions to the
9
# file, is the same license as for the pristine package itself (unless the
10
# license for the pristine package is not an Open Source License, in which
11
# case the license is the MIT License). An "Open Source License" is a
12
# license that conforms to the Open Source Definition (Version 1.9)
13
# published by the Open Source Initiative.
14
15
# Please submit bugfixes or comments via https://bugs.opensuse.org/
16
#
17
18
19
Name: brise
20
Version: 20230603+git.5fdd2d6
21
Release: 0
22
Summary: Rime Input Schemas Collection
23
License: GPL-3.0-or-later
24
Group: System/I18n/Chinese
25
URL: https://github.com/rime/brise
26
Source: brise-%{version}.tar.xz
27
Source1: rime-plum-go-%{version}.tar.xz
28
Source99: README
29
BuildRequires: golang(API) >= 1.17
30
31
32
%description
33
Rime is an Traditional Chinese input method engine.
34
Its idea comes from ancient Chinese brush and carving art.
35
Mainly it's about to express your thinking with your keystrokes.
36
37
Brise is the input schemas collection of Rime.
38
39
%package -n rime-plum
40
Summary: Rime's configuration manager
41
Group: System/I18n/Chinese
42
43
%description -n rime-plum
44
Plum is rime's configuration manager.
45
46
%package -n rime-schema-default
47
Summary: Default/Preset collection of rime schemas
48
Group: System/I18n/Chinese
49
Requires: rime-schema-bopomofo
50
Requires: rime-schema-cangjie
51
Requires: rime-schema-custom
52
Requires: rime-schema-essay
53
Requires: rime-schema-luna-pinyin
54
Requires: rime-schema-prelude
55
Requires: rime-schema-stroke
56
Requires: rime-schema-terra-pinyin
57
Obsoletes: brise <= 0.39+git20190120.8d5bc2e
58
BuildArch: noarch
59
60
%description -n rime-schema-default
61
Default/Preset collection of rime schemas.
62
63
%package -n rime-schema-extra
64
Summary: Extra collection of rime schemas
65
Group: System/I18n/Chinese
66
Requires: rime-schema-array
67
Requires: rime-schema-cantonese
68
Requires: rime-schema-combo-pinyin
69
Requires: rime-schema-double-pinyin
70
Requires: rime-schema-emoji
71
Requires: rime-schema-essay-simp
72
Requires: rime-schema-ipa
73
Requires: rime-schema-middle-chinese
74
Requires: rime-schema-pinyin-simp
75
Requires: rime-schema-quick
76
Requires: rime-schema-scj
77
Requires: rime-schema-soutzoe
78
Requires: rime-schema-stenotype
79
Requires: rime-schema-wubi
80
Requires: rime-schema-wugniu
81
Obsoletes: brise <= 0.39+git20190120.8d5bc2e
82
BuildArch: noarch
83
84
%description -n rime-schema-extra
85
Extra collection of rime schemas.
86
87
%package -n rime-schema-all
88
Summary: All rime input schemas
89
Group: System/I18n/Chinese
90
Requires: rime-schema-bopomofo
91
Requires: rime-schema-cangjie
92
Requires: rime-schema-custom
93
Requires: rime-schema-essay
94
Requires: rime-schema-luna-pinyin
95
Requires: rime-schema-prelude
96
Requires: rime-schema-stroke
97
Requires: rime-schema-terra-pinyin
98
Requires: rime-schema-array
99
Requires: rime-schema-cantonese
100
Requires: rime-schema-combo-pinyin
101
Requires: rime-schema-double-pinyin
102
Requires: rime-schema-emoji
103
Requires: rime-schema-essay-simp
104
Requires: rime-schema-ipa
105
Requires: rime-schema-middle-chinese
106
Requires: rime-schema-pinyin-simp
107
Requires: rime-schema-quick
108
Requires: rime-schema-scj
109
Requires: rime-schema-soutzoe
110
Requires: rime-schema-stenotype
111
Requires: rime-schema-wubi
112
Requires: rime-schema-wugniu
113
Provides: brise = %{version}
114
Obsoletes: brise <= 0.39+git20190120.8d5bc2e
115
BuildArch: noarch
116
117
%description -n rime-schema-all
118
All rime input schemas.
119
120
%package -n rime-schema-bopomofo
121
Summary: bopomofo input schema for rime
122
Group: System/I18n/Chinese
123
Obsoletes: brise <= 0.39+git20190120.8d5bc2e
124
BuildArch: noarch
125
126
%description -n rime-schema-bopomofo
127
bopomofo input schema for rime.
128
129
%package -n rime-schema-cangjie
130
Summary: cangjie input schema for rime
131
Group: System/I18n/Chinese
132
Obsoletes: brise <= 0.39+git20190120.8d5bc2e
133
BuildArch: noarch
134
135
%description -n rime-schema-cangjie
136
cangjie input schema for rime.
137
138
%package -n rime-schema-custom
139
Summary: basic schema to customize rime
140
Group: System/I18n/Chinese
141
Obsoletes: brise <= 0.39+git20190120.8d5bc2e
142
BuildArch: noarch
143
144
%description -n rime-schema-custom
145
basic schema to customize rime.
146
147
%package -n rime-schema-essay
148
Summary: essay input schema for rime
149
Group: System/I18n/Chinese
150
Obsoletes: brise <= 0.39+git20190120.8d5bc2e
151
BuildArch: noarch
152
153
%description -n rime-schema-essay
154
essay input schema for rime.
155
156
%package -n rime-schema-essay-simp
157
Summary: simplified essay input schema for rime
158
Group: System/I18n/Chinese
159
Obsoletes: brise <= 0.39+git20190120.8d5bc2e
160
BuildArch: noarch
161
162
%description -n rime-schema-essay-simp
163
simplified essay input schema for rime.
164
165
%package -n rime-schema-luna-pinyin
166
Summary: luna-pinyin input schema for rime
167
Group: System/I18n/Chinese
168
Obsoletes: brise <= 0.39+git20190120.8d5bc2e
169
BuildArch: noarch
170
171
%description -n rime-schema-luna-pinyin
172
luna-pinyin input schema for rime.
173
174
%package -n rime-schema-prelude
175
Summary: prelude input schema for rime
176
Group: System/I18n/Chinese
177
Obsoletes: brise <= 0.39+git20190120.8d5bc2e
178
BuildArch: noarch
179
180
%description -n rime-schema-prelude
181
prelude input schema for rime.
182
183
%package -n rime-schema-stroke
184
Summary: stroke input schema for rime
185
Group: System/I18n/Chinese
186
Obsoletes: brise <= 0.39+git20190120.8d5bc2e
187
BuildArch: noarch
188
189
%description -n rime-schema-stroke
190
stroke input schema for rime.
191
192
%package -n rime-schema-terra-pinyin
193
Summary: terra-pinyin input schema for rime
194
Group: System/I18n/Chinese
195
Obsoletes: brise <= 0.39+git20190120.8d5bc2e
196
BuildArch: noarch
197
198
%description -n rime-schema-terra-pinyin
199
terra-pinyin input schema for rime.
200
201
%package -n rime-schema-array
202
Summary: array input schema for rime
203
Group: System/I18n/Chinese
204
Obsoletes: brise <= 0.39+git20190120.8d5bc2e
205
BuildArch: noarch
206
207
%description -n rime-schema-array
208
array input schema for rime.
209
210
%package -n rime-schema-cantonese
211
Summary: cantonese input schema for rime
212
Group: System/I18n/Chinese
213
BuildArch: noarch
214
Provides: rime-schema-jyutping > 20230528+git.cece251
215
Obsoletes: rime-schema-jyutping <= 20230528+git.cece251
216
Obsoletes: brise <= 0.39+git20190120.8d5bc2e
217
218
%description -n rime-schema-cantonese
219
cantonese(jyutping) input schema for rime.
220
221
%package -n rime-schema-combo-pinyin
222
Summary: combo-pinyin input schema for rime
223
Group: System/I18n/Chinese
224
Obsoletes: brise <= 0.39+git20190120.8d5bc2e
225
BuildArch: noarch
226
227
%description -n rime-schema-combo-pinyin
228
combo-pinyin input schema for rime.
229
230
%package -n rime-schema-double-pinyin
231
Summary: double-pinyin input schema for rime
232
Group: System/I18n/Chinese
233
Obsoletes: brise <= 0.39+git20190120.8d5bc2e
234
BuildArch: noarch
235
236
%description -n rime-schema-double-pinyin
237
double-pinyin input schema for rime.
238
239
%package -n rime-schema-emoji
240
Summary: emoji input schema for rime
241
Group: System/I18n/Chinese
242
Obsoletes: brise <= 0.39+git20190120.8d5bc2e
243
BuildArch: noarch
244
245
%description -n rime-schema-emoji
246
emoji input schema for rime.
247
248
%package -n rime-schema-ipa
249
Summary: ipa input schema for rime
250
Group: System/I18n/Chinese
251
Obsoletes: brise <= 0.39+git20190120.8d5bc2e
252
BuildArch: noarch
253
254
%description -n rime-schema-ipa
255
ipa input schema for rime.
256
257
%package -n rime-schema-middle-chinese
258
Summary: middle-chinese input schema for rime
259
Group: System/I18n/Chinese
260
Obsoletes: brise <= 0.39+git20190120.8d5bc2e
261
BuildArch: noarch
262
263
%description -n rime-schema-middle-chinese
264
middle-chinese input schema for rime.
265
266
%package -n rime-schema-pinyin-simp
267
Summary: pinyin-simp input schema for rime
268
Group: System/I18n/Chinese
269
Obsoletes: brise <= 0.39+git20190120.8d5bc2e
270
BuildArch: noarch
271
272
%description -n rime-schema-pinyin-simp
273
pinyin-simp input schema for rime.
274
275
%package -n rime-schema-quick
276
Summary: quick input schema for rime
277
Group: System/I18n/Chinese
278
Obsoletes: brise <= 0.39+git20190120.8d5bc2e
279
BuildArch: noarch
280
281
%description -n rime-schema-quick
282
quick input schema for rime.
283
284
%package -n rime-schema-scj
285
Summary: scj input schema for rime
286
Group: System/I18n/Chinese
287
Obsoletes: brise <= 0.39+git20190120.8d5bc2e
288
BuildArch: noarch
289
290
%description -n rime-schema-scj
291
scj input schema for rime.
292
293
%package -n rime-schema-soutzoe
294
Summary: soutzoe input schema for rime
295
Group: System/I18n/Chinese
296
Obsoletes: brise <= 0.39+git20190120.8d5bc2e
297
BuildArch: noarch
298
299
%description -n rime-schema-soutzoe
300
soutzoe input schema for rime.
301
302
%package -n rime-schema-stenotype
303
Summary: stenotype input schema for rime
304
Group: System/I18n/Chinese
305
Obsoletes: brise <= 0.39+git20190120.8d5bc2e
306
BuildArch: noarch
307
308
%description -n rime-schema-stenotype
309
stenotype input schema for rime.
310
311
%package -n rime-schema-wubi
312
Summary: wubi input schema for rime
313
Group: System/I18n/Chinese
314
Obsoletes: brise <= 0.39+git20190120.8d5bc2e
315
BuildArch: noarch
316
317
%description -n rime-schema-wubi
318
wubi input schema for rime.
319
320
%package -n rime-schema-wugniu
321
Summary: wugniu input schema for rime
322
Group: System/I18n/Chinese
323
Obsoletes: brise <= 0.39+git20190120.8d5bc2e
324
BuildArch: noarch
325
326
%description -n rime-schema-wugniu
327
wugniu input schema for rime.
328
329
%prep
330
%setup -q
331
echo %{_builddir}
332
mkdir -p %{_builddir}/go/src/github.com/marguerite
333
tar -xf %{SOURCE1} -C %{_builddir}/go/src/github.com/marguerite
334
cp -r %{_builddir}/go/src/github.com/marguerite/rime-plum-go-%{version}/vendor/* %{_builddir}/go/src/
335
336
%build
337
pushd %{_builddir}/go/src/github.com/marguerite/rime-plum-go-%{version}
338
export GOPATH=%{_builddir}/go
339
go build
340
popd
341
342
%install
343
mkdir -p %{buildroot}%{_bindir}
344
install -m 0755 %{_builddir}/go/src/github.com/marguerite/rime-plum-go-%{version}/rime-plum-go %{buildroot}%{_bindir}/rime-plum
345
mkdir -p %{buildroot}%{_datadir}/rime-data
346
cp -r package/rime/custom/*.recipe.yaml %{buildroot}%{_datadir}/rime-data
347
rm -rf package
348
rm -rf config.txt
349
cp -r * %{buildroot}%{_datadir}/rime-data
350
351
%files -n rime-plum
352
%{_bindir}/rime-plum
353
354
%files -n rime-schema-default
355
%dir %{_datadir}/rime-data
356
357
%files -n rime-schema-extra
358
%dir %{_datadir}/rime-data
359
360
%files -n rime-schema-all
361
%dir %{_datadir}/rime-data
362
363
%files -n rime-schema-bopomofo
364
%dir %{_datadir}/rime-data
365
%{_datadir}/rime-data/bopomofo*.yaml
366
%{_datadir}/rime-data/zhuyin.yaml
367
368
%files -n rime-schema-cangjie
369
%dir %{_datadir}/rime-data
370
%{_datadir}/rime-data/cangjie*.yaml
371
372
%files -n rime-schema-custom
373
%dir %{_datadir}/rime-data
374
%{_datadir}/rime-data/add.recipe.yaml
375
%{_datadir}/rime-data/clear_schema_list.recipe.yaml
376
%{_datadir}/rime-data/set.recipe.yaml
377
%{_datadir}/rime-data/use_key_bindings.recipe.yaml
378
%{_datadir}/rime-data/use_switch_key.recipe.yaml
379
%{_datadir}/rime-data/use_symbols.recipe.yaml
380
381
%files -n rime-schema-essay
382
%dir %{_datadir}/rime-data
383
%{_datadir}/rime-data/essay.txt
384
%{_datadir}/rime-data/essay-cantonese.txt
385
386
%files -n rime-schema-essay-simp
387
%dir %{_datadir}/rime-data
388
%{_datadir}/rime-data/essay-zh-hans.txt
389
390
%files -n rime-schema-luna-pinyin
391
%dir %{_datadir}/rime-data
392
%{_datadir}/rime-data/luna_pinyin*.yaml
393
%{_datadir}/rime-data/pinyin.yaml
394
%{_datadir}/rime-data/luna_quanpin*.yaml
395
396
%files -n rime-schema-prelude
397
%dir %{_datadir}/rime-data
398
%{_datadir}/rime-data/default.yaml
399
%{_datadir}/rime-data/key_bindings.yaml
400
%{_datadir}/rime-data/punctuation.yaml
401
%{_datadir}/rime-data/symbols.yaml
402
403
%files -n rime-schema-stroke
404
%dir %{_datadir}/rime-data
405
%{_datadir}/rime-data/stroke*.yaml
406
407
%files -n rime-schema-terra-pinyin
408
%dir %{_datadir}/rime-data
409
%{_datadir}/rime-data/terra_pinyin*.yaml
410
411
%files -n rime-schema-array
412
%dir %{_datadir}/rime-data
413
%{_datadir}/rime-data/array*.yaml
414
415
%files -n rime-schema-cantonese
416
%dir %{_datadir}/rime-data
417
%{_datadir}/rime-data/jyut6ping3*.yaml
418
%{_datadir}/rime-data/symbols_cantonese.yaml
419
420
%files -n rime-schema-combo-pinyin
421
%dir %{_datadir}/rime-data
422
%{_datadir}/rime-data/combo_pinyin*.yaml
423
424
%files -n rime-schema-double-pinyin
425
%dir %{_datadir}/rime-data
426
%{_datadir}/rime-data/double_pinyin*.yaml
427
428
%files -n rime-schema-emoji
429
%dir %{_datadir}/rime-data
430
%{_datadir}/rime-data/emoji*.yaml
431
432
%files -n rime-schema-ipa
433
%dir %{_datadir}/rime-data
434
%{_datadir}/rime-data/ipa*.yaml
435
436
%files -n rime-schema-middle-chinese
437
%dir %{_datadir}/rime-data
438
%{_datadir}/rime-data/sampheng*.yaml
439
%{_datadir}/rime-data/zyenpheng*.yaml
440
441
%files -n rime-schema-pinyin-simp
442
%dir %{_datadir}/rime-data
443
%{_datadir}/rime-data/pinyin_simp*.yaml
444
445
%files -n rime-schema-quick
446
%dir %{_datadir}/rime-data
447
%{_datadir}/rime-data/quick*.yaml
448
449
%files -n rime-schema-scj
450
%dir %{_datadir}/rime-data
451
%{_datadir}/rime-data/scj*.yaml
452
453
%files -n rime-schema-soutzoe
454
%dir %{_datadir}/rime-data
455
%{_datadir}/rime-data/soutzoe*.yaml
456
457
%files -n rime-schema-stenotype
458
%dir %{_datadir}/rime-data
459
%{_datadir}/rime-data/stenotype*.yaml
460
461
%files -n rime-schema-wubi
462
%dir %{_datadir}/rime-data
463
%{_datadir}/rime-data/wubi*.yaml
464
465
%files -n rime-schema-wugniu
466
%dir %{_datadir}/rime-data
467
%{_datadir}/rime-data/wugniu*.yaml
468
469
%changelog
470