forked from hime-ime/hime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hime-fedora.spec.in
477 lines (346 loc) · 14 KB
/
hime-fedora.spec.in
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
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
Name: hime
Version: __hime_version__
Release: %{?dist}
Summary: Input method for Traditional Chinese
Group: System Environment/Libraries
License: LGPLv2
#URL: TODO
##Got a request to get new hime source from the following link
##original source url is not opening since last few months.
#Source0: %{name}-%{version}.tar.xz
Source1: hime.conf
BuildRequires: qt-devel, gtk3-devel, gtk2-devel, desktop-file-utils
BuildRequires: libXtst-devel
BuildRequires: anthy-devel
Requires: im-chooser, imsettings
Requires(post): %{_sbindir}/alternatives
Requires(preun): %{_sbindir}/alternatives
%description
Hime is an input method for Traditional Chinese with a GTK user interface.
%package gtk2
Summary: Gtk2 support for hime
Group: Applications/System
Requires: gtk2
Requires: %{name} = %{version}-%{release}
%description gtk2
gtk2 support for hime.
%package gtk3
Summary: Gtk3 support for hime
Group: Applications/System
Requires: gtk3
Requires: %{name} = %{version}-%{release}
%description gtk3
gtk3 support for hime.
%package qt4
Summary: Qt support for hime
Group: Applications/System
Requires: qt4
Requires: %{name} = %{version}-%{release}
%description qt4
qt4 support for hime.
%prep
%setup -q
sed -i.strip -e 's|install[ \t][ \t]*-s|install|' Makefile
%build
%configure
perl -pi -e "s/^(OPTFLAGS.*=)/\1 %{optflags} /" config.mak
# fixme: explain how %%{?_smp_mflags} breaks build?
make
%install
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/X11/xinit/xinput.d
install -m 644 -p %{SOURCE1} $RPM_BUILD_ROOT/%{_sysconfdir}/X11/xinit/xinput.d/hime.conf
# devel files {
rm -f $RPM_BUILD_ROOT/%{_includedir}/hime-im-client.h
rm -f $RPM_BUILD_ROOT/%{_libdir}/libhime-im-client.so
# }
rm -f $RPM_BUILD_ROOT/%{_docdir}/hime-%{version}/Changelog
rm -f $RPM_BUILD_ROOT/%{_docdir}/hime-%{version}/README
desktop-file-install \
--delete-original \
--vendor fedora \
--dir ${RPM_BUILD_ROOT}/%{_datadir}/applications \
--add-category X-Fedora \
${RPM_BUILD_ROOT}/%{_datadir}/applications/hime-setup.desktop
%post
/sbin/ldconfig
update-desktop-database %{_datadir}/applications >/dev/null 2>&1 || :
%{_sbindir}/alternatives --install %{_sysconfdir}/X11/xinit/xinputrc xinputrc %{_sysconfdir}/X11/xinit/xinput.d/hime.conf 40
%post gtk2
if [ $1 -eq 1 ] ; then
# For upgrades, the cache will be regenerated by the new package's %%postun
gtk-query-immodules-2.0-%{__isa_bits} > /etc/gtk-2.0/%{_arch}-redhat-linux-gnu/gtk.immodules || :
fi
%post gtk3
if [ $1 -eq 1 ] ; then
# For upgrades, the cache will be regenerated by the new package's %%postun
gtk-query-immodules-3.0-%{__isa_bits} --update-cache &> /dev/null || :
fi
%postun
/sbin/ldconfig
update-desktop-database %{_datadir}/applications >/dev/null 2>&1 || :
%postun gtk2
gtk-query-immodules-2.0-%{__isa_bits} > /etc/gtk-2.0/%{_arch}-redhat-linux-gnu/gtk.immodules || :
%postun gtk3
gtk-query-immodules-3.0-%{__isa_bits} --update-cache &> /dev/null || :
%preun
if [ $1 -eq 0 ]; then
%{_sbindir}/alternatives --remove xinputrc %{_sysconfdir}/X11/xinit/xinput.d/hime.conf >/dev/null 2>&1 || :
fi
%files
%doc AUTHORS gpl-2.0.txt lgpl-2.1.txt Changelog.html README.html
%config %{_sysconfdir}/X11/xinit/xinput.d/hime.conf
%{_bindir}/hime*
%{_bindir}/gtab*
%{_bindir}/hime-juyin-learn
%{_bindir}/pho*
%{_bindir}/hime-sim2trad
%{_bindir}/hime-trad2sim
%{_bindir}/ts*
%{_datadir}/applications/fedora-hime-setup.desktop
%{_datadir}/hime/
%{_datadir}/icons/hime/
%{_datadir}/icons/hime*.png
%{_mandir}/*/*
%{_libdir}/hime/*
%files gtk2
%{_libdir}/gtk-2.0/immodules/im-hime.so
%files gtk3
%{_libdir}/gtk-3.0/immodules/im-hime.so
%files qt4
%{_libdir}/qt4/plugins/inputmethods/im-hime.so
%changelog
* Tue Dec 10 2011 caleb - 0.9~rc1
* Tue Dec 12 2011 Edward Liu - 2.5.1
* Tue Dec 06 2011 Adam Jackson <[email protected]> - 1.6.1-2
- Rebuild for new libpng
* Tue May 03 2011 Parag Nemade <paragn AT fedoraproject.org> - 1.6.1-1
- update to latest stable release 1.6.1
* Tue Feb 08 2011 Fedora Release Engineering <[email protected]> - 1.5.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Thu Dec 09 2010 Parag Nemade <paragn AT fedoraproject.org> - 1.5.5-4
- Resolves:rh#660992-FTBFS gcin-1.5.5-3.fc15
* Tue Sep 07 2010 Parag Nemade <paragn AT fedoraproject.org> - 1.5.5-3
- update to latest stable release 1.5.5
- Fix gtk-im module Makefile issue
* Tue Jun 29 2010 Chung-Yen Chang <[email protected]> - 1.5.5.pre3-2
- update to 1.5.5.pre3
* Wed Jun 23 2010 Chung-Yen Chang <[email protected]> - 1.5.1-1
- update to 1.5.1
* Wed Jun 23 2010 Chung-Yen Chang <[email protected]> - 1.5.0-2
- update to 1.5.0
* Wed Jun 23 2010 Chung-Yen Chang <[email protected]> - 1.5.0-1
- update to 1.5.0
* Wed May 05 2010 Chung-Yen Chang <[email protected]> - 1.4.6-2
- patch to add -lm to LDFLAGS
- patch to stop using GTK+ deprecated AP
* Tue Jan 05 2010 Chung-Yen Chang <[email protected]> - 1.4.6-1
- update to 1.4.6
* Fri Nov 27 2009 Chung-Yen Chang <[email protected]> - 1.4.5-6
- fix No icon for im-chooser (#468829)
* Tue Nov 24 2009 Chung-Yen Chang <[email protected]> - 1.4.5-5
- fix No icon for im-chooser (#468829)
* Mon Nov 16 2009 Chung-Yen Chang <[email protected]> - 1.4.5-4
- Rebuild
* Fri Jul 24 2009 Fedora Release Engineering <[email protected]> - 1.4.5-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Thu May 07 2009 Chung-Yen Chang <[email protected]> - 1.4.5-2
- remove gtk_bug_fix.so and rebuild
* Thu May 07 2009 Chung-Yen Chang <[email protected]> - 1.4.5-1
- update to 1.4.5
* Tue Mar 31 2009 Michael Schwendt <[email protected]> - 1.4.4-5
- fix unowned directory (#473616)
* Tue Feb 24 2009 Fedora Release Engineering <[email protected]> - 1.4.4-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Wed Feb 04 2009 Chung-Yen Chang <[email protected]> - 1.4.4-3
- rename Changelog to Changelog.html
* Wed Feb 04 2009 Chung-Yen Chang <[email protected]> - 1.4.4-2
- rename README to README.html
* Wed Feb 04 2009 Chung-Yen Chang <[email protected]> - 1.4.4-1
- update to 1.4.4
* Tue Oct 21 2008 Jens Petersen <[email protected]> - 1.4.2-4
- add gcin-1.4.2-gtk-immodules-lang.patch to not enable gcin gtk immodule for all
langs (#453093)
- spec file cleanup
- update xinput conf file to set icon and setup program (#456512)
* Mon Sep 29 2008 Jens Petersen <[email protected]> - 1.4.2-3
- update im-client.patch to fix patch fuzz
* Fri Jun 27 2008 Chung-Yen Chang <[email protected]> - 1.4.2-2
- update gcin.conf (change gcin to /usr/bin/gcin)
- add imsettings to Requires
- fix bug #453085
* Thu Jun 26 2008 Chung-Yen Chang <[email protected]> - 1.4.2-1
- update to 1.4.2
* Fri Jun 20 2008 Chung-Yen Chang <[email protected]> - 1.4.1-1
- update to 1.4.1
* Wed May 21 2008 Chung-Yen Chang <[email protected]> - 1.4.0-1
- update to 1.4.0
* Sat May 17 2008 Chung-Yen Chang <[email protected]> - 1.3.9-3
- add /bin/sh /bin/bash to requires
* Mon Feb 18 2008 Fedora Release Engineering <[email protected]> - 1.3.9-2
- Autorebuild for GCC 4.3
* Wed Jan 30 2008 Chung-Yen Chang <[email protected]> - 1.3.9-1
- update to 1.3.9
* Wed Jan 23 2008 Chung-Yen Chang <[email protected]> - 1.3.8-1
- update to 1.3.8
* Tue Nov 27 2007 Chung-Yen Chang <[email protected]> - 1.3.7.1-1
- update to 1.3.7.1
* Mon Oct 15 2007 Chung-Yen Chang <[email protected]> - 1.3.5-2
- update im-client.patch and newcj3.patch
* Sun Oct 14 2007 Chung-Yen Chang <[email protected]> - 1.3.5-1
- update to 1.3.5
* Thu Sep 20 2007 Chung-Yen Chang <[email protected]> - 1.3.4-3
- update license field to LGPLv2
- add im-chooser to require
* Tue Apr 17 2007 Chung-Yen Chang <[email protected]> - 1.3.4-2
- disable i18n and do not make po
* Tue Apr 17 2007 Chung-Yen Chang <[email protected]> - 1.3.4-1
- update to 1.3.4
* Tue Jan 30 2007 Chung-Yen Chang <[email protected]> - 1.3.3-1
- update to 1.3.3
* Mon Jan 01 2007 Chung-Yen Chang <[email protected]> - 1.3.2-1
- update to 1.3.2
* Sun Dec 03 2006 Chung-Yen Chang <[email protected]> - 1.3.1-1
- update to 1.3.1
* Thu Nov 23 2006 Chung-Yen Chang <[email protected]> - 1.3.0.1-2
- rebuild
* Thu Nov 23 2006 Chung-Yen Chang <[email protected]> - 1.3.0.1-1
- update to 1.3.0.1
* Fri Nov 17 2006 Chung-Yen Chang <[email protected]> - 1.2.9-3
- add gcin129update.patch
* Fri Nov 17 2006 Chung-Yen Chang <[email protected]> - 1.2.9-2
- update NewCJ3.cin
* Wed Nov 15 2006 Chung-Yen Chang <[email protected]> - 1.2.9-1
- update to 1.2.9
- add NewCJ3.cin
* Fri Oct 20 2006 Chung-Yen Chang <[email protected]> - 1.2.8-1
- update to 1.2.8
* Mon Oct 09 2006 Chung-Yen Chang <[email protected]> - 1.2.7-1
- update to 1.2.7
* Thu Oct 05 2006 Christian Iseli <[email protected]> 1.2.6-2
- rebuilt for unwind info generation, broken in gcc-4.1.1-21
* Tue Sep 26 2006 Chung-Yen Chang <[email protected]> - 1.2.6-1
- update to 1.2.6
* Fri Sep 15 2006 Chung-Yen Chang <[email protected]> - 1.2.5-2
- rebuild
* Fri Sep 08 2006 Chung-Yen Chang <[email protected]> - 1.2.5-1
- update to 1.2.5
- add icons
* Tue Sep 05 2006 Chung-Yen Chang <[email protected]> - 1.2.4-1
- update to 1.2.4
* Fri Sep 01 2006 Chung-Yen Chang <[email protected]> - 1.2.3-3
- make tag and make build again
* Fri Sep 01 2006 Chung-Yen Chang <[email protected]> - 1.2.3-2
- make new-sources to upload new source tarball
* Fri Sep 01 2006 Chung-Yen Chang <[email protected]> - 1.2.3-1
- update to 1.2.3
* Tue Aug 29 2006 Chung-Yen Chang <[email protected]> - 1.2.2-13
- typo fix
* Thu Aug 24 2006 Chung-Yen Chang <[email protected]> - 1.2.2-12
- modify spec file only for fc5 and later (branch the spec file)
* Thu Aug 24 2006 Chung-Yen Chang <[email protected]> - 1.2.2-11
- fix to handle fedora tag correctly
* Thu Aug 24 2006 Chung-Yen Chang <[email protected]> - 1.2.2-10
- Remove patch5 (not necessary)
* Wed Aug 23 2006 Chung-Yen Chang <[email protected]> - 1.2.2-9
- Fix patch5 for fc3 only bug
* Sun Aug 20 2006 Chung-Yen Chang <[email protected]> - 1.2.2-8
- Fix changelog
* Sun Aug 20 2006 Chung-Yen Chang <[email protected]> - 1.2.2-7
- Remove -devel subpackage
- install desktop file
* Sat Aug 19 2006 Chung-Yen Chang <[email protected]> - 1.2.2-6
- a few more fixes from Jens Petersen
* Sat Aug 19 2006 Chung-Yen Chang <[email protected]> - 1.2.2-5
- improvements from Jens Petersen:
- don't use configure macro
- add .conf suffix to xinput.d file and update install scripts for fc6
- move lib to libdir and drop ld.so.conf.d file
- other minor cleanup
* Sat Aug 19 2006 Chung-Yen Chang <[email protected]> - 1.2.2-4
- rebuild 1.2.2-4
* Fri Aug 18 2006 Chung-Yen Chang <[email protected]> - 1.2.2-3
- Add COPYING Changelog to doc
- Use Dist Tag
* Fri Aug 18 2006 Chung-Yen Chang <[email protected]> - 1.2.2-2
- fix x86_64 problems
* Tue Aug 17 2006 Chung-Yen Chang <[email protected]> - 1.2.2-1
- rebuild 1.2.2-1
* Tue Aug 17 2006 Chung-Yen Chang <[email protected]> - 1.2.1-7
- rebuild 1.2.1-7
* Wed Aug 16 2006 Chung-Yen Chang <[email protected]> - 1.2.1-4
- rebuild 1.2.1-4
* Thu Jul 13 2006 Chung-Yen Chang <[email protected]> - 1.2.1-1
- update to 1.2.1
* Mon May 08 2006 Chung-Yen Chang <[email protected]>
- update to 1.2.0
* Mon May 01 2006 Chung-Yen Chang <[email protected]>
- update to 1.1.9
* Mon Apr 03 2006 Chung-Yen Chang <[email protected]>
- update to 1.1.8
* Wed Mar 29 2006 Chung-Yen Chang <[email protected]>
- rebuild for FC5
* Wed Feb 22 2006 Chung-Yen Chang <[email protected]>
- update to 1.1.7
* Thu Feb 02 2006 Chung-Yen Chang <[email protected]>
- update to 1.1.6
* Sat Jan 07 2006 Chung-Yen Chang <[email protected]>
- update to 1.1.5
* Mon Dec 19 2005 Chung-Yen Chang <[email protected]>
- update to 1.1.4-2
* Mon Dec 12 2005 Chung-Yen Chang <[email protected]>
- update to 1.1.4
* Mon Nov 21 2005 Chung-Yen Chang <[email protected]>
- update to 1.1.3
* Tue Nov 08 2005 Chung-Yen Chang <[email protected]>
- update to 1.1.2
* Sun Oct 30 2005 Chung-Yen Chang <[email protected]>
- update to 1.1.1
* Mon Oct 24 2005 Chung-Yen Chang <[email protected]>
- update to 1.1.0
* Mon Oct 03 2005 Chung-Yen Chang <[email protected]>
- update to 1.0.9
* Mon Sep 26 2005 Chung-Yen Chang <[email protected]>
- update to 1.0.8
* Mon Sep 19 2005 Chung-Yen Chang <[email protected]>
- update to 1.0.7
* Mon Sep 05 2005 Chung-Yen Chang <[email protected]>
- update to 1.0.4
* Mon Aug 22 2005 Chung-Yen Chang <[email protected]>
- update to 1.0.3
* Wed Aug 10 2005 Chung-Yen Chang <[email protected]>
- update to 1.0.2
* Fri Jul 08 2005 Chung-Yen Chang <[email protected]>
- update to 1.0.1
* Mon Jun 27 2005 Chung-Yen Chang <[email protected]>
- update to 1.0.0
* Thu Jun 23 2005 Chung-Yen Chang <[email protected]>
- update to 0.9.9
* Thu Jun 16 2005 Chung-Yen Chang <[email protected]>
- rebuild for fc4
* Tue May 31 2005 Chung-Yen Chang <[email protected]>
- update to 0.9.7
* Tue May 19 2005 Chung-Yen Chang <[email protected]>
- update to 0.9.6
* Tue May 12 2005 Chung-Yen Chang <[email protected]>
- update to 0.9.5
* Wed May 04 2005 Chung-Yen Chang <[email protected]>
- update to 0.9.3
* Mon Apr 25 2005 Chung-Yen Chang <[email protected]>
- fix alternatives
* Fri Apr 22 2005 Chung-Yen Chang <[email protected]>
- update to 0.9.2
* Sat Apr 16 2005 Chung-Yen Chang <[email protected]>
- update to 0.9.1
* Tue Apr 05 2005 Chung-Yen Chang <[email protected]>
- update to 0.9.0
* Tue Mar 22 2005 Chung-Yen Chang <[email protected]>
- update to 0.8.9
* Sat Mar 14 2005 Chung-Yen Chang <[email protected]>
- update to 0.8.8
* Sat Mar 08 2005 Chung-Yen Chang <[email protected]>
- update to 0.8.7
* Sat Mar 05 2005 Chung-Yen Chang <[email protected]>
- update to 0.8.6
* Mon Aug 23 2004 Chung-Yen Chang <[email protected]>
- frist build for Fedora Core 2