Debian Codegraph @

distro/fedora/hime-fedora.spec.in

raw
1 Name: hime
2 Version: __hime_version__
3 Release: 1%{?dist}
4 Summary: Input method for Traditional Chinese
5
6 Group: System Environment/Libraries
7 License: LGPLv2
8 URL: http://hime.luna.com.tw
9 ##Got a request to get new hime source from the following link
10 ##original source url is not opening since last few months.
11 Source0: http://hime.luna.com.tw/%{name}-%{version}.tar.xz
12 #Source0: %{name}-%{version}.tar.xz
13 Source1: hime.conf
14 BuildRoot: %{_builddir}/%{name}-%{version}-%{release}-root
15
16 BuildRequires: qt-devel, gtk3-devel, gtk2-devel, desktop-file-utils
17 BuildRequires: libXtst-devel, anthy-devel, gettext
18 Requires: im-chooser, imsettings
19 Requires(post): %{_sbindir}/alternatives
20 Requires(preun): %{_sbindir}/alternatives
21
22 %description
23 Hime is an input method server
24
25 %package gtk2
26 Summary: Gtk2 support for hime
27 Group: Applications/System
28 Requires: gtk2
29 Requires: %{name} = %{version}-%{release}
30
31 %description gtk2
32 gtk2 support for hime.
33
34 %package gtk3
35 Summary: Gtk3 support for hime
36 Group: Applications/System
37 Requires: gtk3
38 Requires: %{name} = %{version}-%{release}
39
40 %description gtk3
41 gtk3 support for hime.
42
43 %package devel
44 Summary: Development files for HIME
45 Group: Development/Libraries
46 Requires: libX11-devel
47
48 %description devel
49 The %{name}-devel package contains header files necessary for
50 developing programs using HIME client libraries.
51
52 %prep
53 %setup -q
54 sed -i.strip -e 's|install[ \t][ \t]*-s|install|' Makefile
55
56 %build
57 %configure
58 #perl -pi -e "s/^(OPTFLAGS.*=)/\1 %{optflags} /" config.mak
59 # fixme: explain how %%{?_smp_mflags} breaks build?
60 make
61
62 %install
63 make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
64 %find_lang %{name}
65 mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/X11/xinit/xinput.d
66 install -m 644 -p %{SOURCE1} $RPM_BUILD_ROOT/%{_sysconfdir}/X11/xinit/xinput.d/hime.conf
67 rm -f $RPM_BUILD_ROOT/%{_docdir}/hime-%{version}/Changelog
68 rm -f $RPM_BUILD_ROOT/%{_docdir}/hime-%{version}/README
69 desktop-file-install \
70 --delete-original \
71 --vendor fedora \
72 --dir ${RPM_BUILD_ROOT}/%{_datadir}/applications \
73 --add-category X-Fedora \
74 ${RPM_BUILD_ROOT}/%{_datadir}/applications/hime-setup.desktop
75
76
77 %post
78 /sbin/ldconfig
79 update-desktop-database %{_datadir}/applications >/dev/null 2>&1 || :
80 %{_sbindir}/alternatives --install %{_sysconfdir}/X11/xinit/xinputrc xinputrc %{_sysconfdir}/X11/xinit/xinput.d/hime.conf 40
81
82 %post gtk2
83 if [ $1 -eq 1 ] ; then
84 # For upgrades, the cache will be regenerated by the new package's %%postun
85 gtk-query-immodules-2.0-%{__isa_bits} > /etc/gtk-2.0/%{_arch}-redhat-linux-gnu/gtk.immodules || :
86 fi
87
88 %post gtk3
89 if [ $1 -eq 1 ] ; then
90 # For upgrades, the cache will be regenerated by the new package's %%postun
91 gtk-query-immodules-3.0-%{__isa_bits} --update-cache &> /dev/null || :
92 fi
93
94 %postun
95 /sbin/ldconfig
96 update-desktop-database %{_datadir}/applications >/dev/null 2>&1 || :
97
98 %postun gtk2
99 gtk-query-immodules-2.0-%{__isa_bits} > /etc/gtk-2.0/%{_arch}-redhat-linux-gnu/gtk.immodules || :
100
101 %postun gtk3
102 gtk-query-immodules-3.0-%{__isa_bits} --update-cache &> /dev/null || :
103
104 %preun
105 if [ $1 -eq 0 ]; then
106 %{_sbindir}/alternatives --remove xinputrc %{_sysconfdir}/X11/xinit/xinput.d/hime.conf >/dev/null 2>&1 || :
107 fi
108
109 %files -f %{name}.lang
110 %doc AUTHORS gpl-2.0.txt lgpl-2.1.txt fdl-1.2.txt ChangeLog
111 %config %{_sysconfdir}/X11/xinit/xinput.d/hime.conf
112 %{_bindir}/hime
113 %{_bindir}/hime-*
114 %{_datadir}/applications/fedora-hime-setup.desktop
115 %{_datadir}/hime/
116 %{_datadir}/pixmaps/hime/
117 %{_datadir}/pixmaps/hime.png
118 %{_datadir}/doc/hime/
119 %{_mandir}/*/*
120 %{_libdir}/hime/*
121
122 %files gtk2
123 %if "%(test -e %{_libdir}/gtk-2.0/%(pkg-config --variable=gtk_binary_version gtk+-2.0)/immodules/im-hime.so && echo 1 || echo 0)" == "1"
124 %{_libdir}/gtk-2.0/%(pkg-config --variable=gtk_binary_version gtk+-2.0)/immodules/im-hime.so
125 %else
126 %{_libdir}/gtk-2.0/immodules/im-hime.so
127 %endif
128 %files gtk3
129 %if "%(test -e %{_libdir}/gtk-3.0/%(pkg-config --variable=gtk_binary_version gtk+-3.0)/immodules/im-hime.so && echo 1 || echo 0)" == "1"
130 %{_libdir}/gtk-3.0/%(pkg-config --variable=gtk_binary_version gtk+-3.0)/immodules/im-hime.so
131 %else
132 %{_libdir}/gtk-3.0/immodules/im-hime.so
133 %endif
134
135 %files devel
136 %{_includedir}/hime-im-client-attr.h
137 %{_includedir}/hime-im-client.h
138
139 %changelog
140 * Tue Dec 10 2011 HIME - 0.9
141 * Tue Dec 12 2011 Edward Liu - 2.5.1
142 * Tue Dec 06 2011 Adam Jackson <[email protected]> - 1.6.1-2
143 - Rebuild for new libpng
144
145 * Tue May 03 2011 Parag Nemade <paragn AT fedoraproject.org> - 1.6.1-1
146 - update to latest stable release 1.6.1
147
148 * Tue Feb 08 2011 Fedora Release Engineering <[email protected]> - 1.5.6-2
149 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
150
151 * Thu Dec 09 2010 Parag Nemade <paragn AT fedoraproject.org> - 1.5.5-4
152 - Resolves:rh#660992-FTBFS gcin-1.5.5-3.fc15
153
154 * Tue Sep 07 2010 Parag Nemade <paragn AT fedoraproject.org> - 1.5.5-3
155 - update to latest stable release 1.5.5
156 - Fix gtk-im module Makefile issue
157
158 * Tue Jun 29 2010 Chung-Yen Chang <[email protected]> - 1.5.5.pre3-2
159 - update to 1.5.5.pre3
160
161 * Wed Jun 23 2010 Chung-Yen Chang <[email protected]> - 1.5.1-1
162 - update to 1.5.1
163
164 * Wed Jun 23 2010 Chung-Yen Chang <[email protected]> - 1.5.0-2
165 - update to 1.5.0
166
167 * Wed Jun 23 2010 Chung-Yen Chang <[email protected]> - 1.5.0-1
168 - update to 1.5.0
169
170 * Wed May 05 2010 Chung-Yen Chang <[email protected]> - 1.4.6-2
171 - patch to add -lm to LDFLAGS
172 - patch to stop using GTK+ deprecated AP
173
174 * Tue Jan 05 2010 Chung-Yen Chang <[email protected]> - 1.4.6-1
175 - update to 1.4.6
176
177 * Fri Nov 27 2009 Chung-Yen Chang <[email protected]> - 1.4.5-6
178 - fix No icon for im-chooser (#468829)
179
180 * Tue Nov 24 2009 Chung-Yen Chang <[email protected]> - 1.4.5-5
181 - fix No icon for im-chooser (#468829)
182
183 * Mon Nov 16 2009 Chung-Yen Chang <[email protected]> - 1.4.5-4
184 - Rebuild
185
186 * Fri Jul 24 2009 Fedora Release Engineering <[email protected]> - 1.4.5-3
187 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
188
189 * Thu May 07 2009 Chung-Yen Chang <[email protected]> - 1.4.5-2
190 - remove gtk_bug_fix.so and rebuild
191
192 * Thu May 07 2009 Chung-Yen Chang <[email protected]> - 1.4.5-1
193 - update to 1.4.5
194
195 * Tue Mar 31 2009 Michael Schwendt <[email protected]> - 1.4.4-5
196 - fix unowned directory (#473616)
197
198 * Tue Feb 24 2009 Fedora Release Engineering <[email protected]> - 1.4.4-4
199 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
200
201 * Wed Feb 04 2009 Chung-Yen Chang <[email protected]> - 1.4.4-3
202 - rename Changelog to Changelog.html
203
204 * Wed Feb 04 2009 Chung-Yen Chang <[email protected]> - 1.4.4-2
205 - rename README to README.html
206
207 * Wed Feb 04 2009 Chung-Yen Chang <[email protected]> - 1.4.4-1
208 - update to 1.4.4
209
210 * Tue Oct 21 2008 Jens Petersen <[email protected]> - 1.4.2-4
211 - add gcin-1.4.2-gtk-immodules-lang.patch to not enable gcin gtk immodule for all
212 langs (#453093)
213 - spec file cleanup
214 - update xinput conf file to set icon and setup program (#456512)
215
216 * Mon Sep 29 2008 Jens Petersen <[email protected]> - 1.4.2-3
217 - update im-client.patch to fix patch fuzz
218
219 * Fri Jun 27 2008 Chung-Yen Chang <[email protected]> - 1.4.2-2
220 - update gcin.conf (change gcin to /usr/bin/gcin)
221 - add imsettings to Requires
222 - fix bug #453085
223
224 * Thu Jun 26 2008 Chung-Yen Chang <[email protected]> - 1.4.2-1
225 - update to 1.4.2
226
227 * Fri Jun 20 2008 Chung-Yen Chang <[email protected]> - 1.4.1-1
228 - update to 1.4.1
229
230 * Wed May 21 2008 Chung-Yen Chang <[email protected]> - 1.4.0-1
231 - update to 1.4.0
232
233 * Sat May 17 2008 Chung-Yen Chang <[email protected]> - 1.3.9-3
234 - add /bin/sh /bin/bash to requires
235
236 * Mon Feb 18 2008 Fedora Release Engineering <[email protected]> - 1.3.9-2
237 - Autorebuild for GCC 4.3
238
239 * Wed Jan 30 2008 Chung-Yen Chang <[email protected]> - 1.3.9-1
240 - update to 1.3.9
241
242 * Wed Jan 23 2008 Chung-Yen Chang <[email protected]> - 1.3.8-1
243 - update to 1.3.8
244
245 * Tue Nov 27 2007 Chung-Yen Chang <[email protected]> - 1.3.7.1-1
246 - update to 1.3.7.1
247
248 * Mon Oct 15 2007 Chung-Yen Chang <[email protected]> - 1.3.5-2
249 - update im-client.patch and newcj3.patch
250
251 * Sun Oct 14 2007 Chung-Yen Chang <[email protected]> - 1.3.5-1
252 - update to 1.3.5
253
254 * Thu Sep 20 2007 Chung-Yen Chang <[email protected]> - 1.3.4-3
255 - update license field to LGPLv2
256 - add im-chooser to require
257
258 * Tue Apr 17 2007 Chung-Yen Chang <[email protected]> - 1.3.4-2
259 - disable i18n and do not make po
260
261 * Tue Apr 17 2007 Chung-Yen Chang <[email protected]> - 1.3.4-1
262 - update to 1.3.4
263
264 * Tue Jan 30 2007 Chung-Yen Chang <[email protected]> - 1.3.3-1
265 - update to 1.3.3
266
267 * Mon Jan 01 2007 Chung-Yen Chang <[email protected]> - 1.3.2-1
268 - update to 1.3.2
269
270 * Sun Dec 03 2006 Chung-Yen Chang <[email protected]> - 1.3.1-1
271 - update to 1.3.1
272
273 * Thu Nov 23 2006 Chung-Yen Chang <[email protected]> - 1.3.0.1-2
274 - rebuild
275
276 * Thu Nov 23 2006 Chung-Yen Chang <[email protected]> - 1.3.0.1-1
277 - update to 1.3.0.1
278
279 * Fri Nov 17 2006 Chung-Yen Chang <[email protected]> - 1.2.9-3
280 - add gcin129update.patch
281
282 * Fri Nov 17 2006 Chung-Yen Chang <[email protected]> - 1.2.9-2
283 - update NewCJ3.cin
284
285 * Wed Nov 15 2006 Chung-Yen Chang <[email protected]> - 1.2.9-1
286 - update to 1.2.9
287 - add NewCJ3.cin
288
289 * Fri Oct 20 2006 Chung-Yen Chang <[email protected]> - 1.2.8-1
290 - update to 1.2.8
291
292 * Mon Oct 09 2006 Chung-Yen Chang <[email protected]> - 1.2.7-1
293 - update to 1.2.7
294
295 * Thu Oct 05 2006 Christian Iseli <[email protected]> 1.2.6-2
296 - rebuilt for unwind info generation, broken in gcc-4.1.1-21
297
298 * Tue Sep 26 2006 Chung-Yen Chang <[email protected]> - 1.2.6-1
299 - update to 1.2.6
300
301 * Fri Sep 15 2006 Chung-Yen Chang <[email protected]> - 1.2.5-2
302 - rebuild
303
304 * Fri Sep 08 2006 Chung-Yen Chang <[email protected]> - 1.2.5-1
305 - update to 1.2.5
306 - add icons
307
308 * Tue Sep 05 2006 Chung-Yen Chang <[email protected]> - 1.2.4-1
309 - update to 1.2.4
310
311 * Fri Sep 01 2006 Chung-Yen Chang <[email protected]> - 1.2.3-3
312 - make tag and make build again
313
314 * Fri Sep 01 2006 Chung-Yen Chang <[email protected]> - 1.2.3-2
315 - make new-sources to upload new source tarball
316
317 * Fri Sep 01 2006 Chung-Yen Chang <[email protected]> - 1.2.3-1
318 - update to 1.2.3
319
320 * Tue Aug 29 2006 Chung-Yen Chang <[email protected]> - 1.2.2-13
321 - typo fix
322
323 * Thu Aug 24 2006 Chung-Yen Chang <[email protected]> - 1.2.2-12
324 - modify spec file only for fc5 and later (branch the spec file)
325
326 * Thu Aug 24 2006 Chung-Yen Chang <[email protected]> - 1.2.2-11
327 - fix to handle fedora tag correctly
328
329 * Thu Aug 24 2006 Chung-Yen Chang <[email protected]> - 1.2.2-10
330 - Remove patch5 (not necessary)
331
332 * Wed Aug 23 2006 Chung-Yen Chang <[email protected]> - 1.2.2-9
333 - Fix patch5 for fc3 only bug
334
335 * Sun Aug 20 2006 Chung-Yen Chang <[email protected]> - 1.2.2-8
336 - Fix changelog
337
338 * Sun Aug 20 2006 Chung-Yen Chang <[email protected]> - 1.2.2-7
339 - Remove -devel subpackage
340 - install desktop file
341
342 * Sat Aug 19 2006 Chung-Yen Chang <[email protected]> - 1.2.2-6
343 - a few more fixes from Jens Petersen
344
345 * Sat Aug 19 2006 Chung-Yen Chang <[email protected]> - 1.2.2-5
346 - improvements from Jens Petersen:
347 - don't use configure macro
348 - add .conf suffix to xinput.d file and update install scripts for fc6
349 - move lib to libdir and drop ld.so.conf.d file
350 - other minor cleanup
351
352 * Sat Aug 19 2006 Chung-Yen Chang <[email protected]> - 1.2.2-4
353 - rebuild 1.2.2-4
354
355 * Fri Aug 18 2006 Chung-Yen Chang <[email protected]> - 1.2.2-3
356 - Add COPYING Changelog to doc
357 - Use Dist Tag
358
359 * Fri Aug 18 2006 Chung-Yen Chang <[email protected]> - 1.2.2-2
360 - fix x86_64 problems
361
362 * Tue Aug 17 2006 Chung-Yen Chang <[email protected]> - 1.2.2-1
363 - rebuild 1.2.2-1
364
365 * Tue Aug 17 2006 Chung-Yen Chang <[email protected]> - 1.2.1-7
366 - rebuild 1.2.1-7
367
368 * Wed Aug 16 2006 Chung-Yen Chang <[email protected]> - 1.2.1-4
369 - rebuild 1.2.1-4
370
371 * Thu Jul 13 2006 Chung-Yen Chang <[email protected]> - 1.2.1-1
372 - update to 1.2.1
373
374 * Mon May 08 2006 Chung-Yen Chang <[email protected]>
375 - update to 1.2.0
376
377 * Mon May 01 2006 Chung-Yen Chang <[email protected]>
378 - update to 1.1.9
379
380 * Mon Apr 03 2006 Chung-Yen Chang <[email protected]>
381 - update to 1.1.8
382
383 * Wed Mar 29 2006 Chung-Yen Chang <[email protected]>
384 - rebuild for FC5
385
386 * Wed Feb 22 2006 Chung-Yen Chang <[email protected]>
387 - update to 1.1.7
388
389 * Thu Feb 02 2006 Chung-Yen Chang <[email protected]>
390 - update to 1.1.6
391
392 * Sat Jan 07 2006 Chung-Yen Chang <[email protected]>
393 - update to 1.1.5
394
395 * Mon Dec 19 2005 Chung-Yen Chang <[email protected]>
396 - update to 1.1.4-2
397
398 * Mon Dec 12 2005 Chung-Yen Chang <[email protected]>
399 - update to 1.1.4
400
401 * Mon Nov 21 2005 Chung-Yen Chang <[email protected]>
402 - update to 1.1.3
403
404 * Tue Nov 08 2005 Chung-Yen Chang <[email protected]>
405 - update to 1.1.2
406
407 * Sun Oct 30 2005 Chung-Yen Chang <[email protected]>
408 - update to 1.1.1
409
410 * Mon Oct 24 2005 Chung-Yen Chang <[email protected]>
411 - update to 1.1.0
412
413 * Mon Oct 03 2005 Chung-Yen Chang <[email protected]>
414 - update to 1.0.9
415
416 * Mon Sep 26 2005 Chung-Yen Chang <[email protected]>
417 - update to 1.0.8
418
419 * Mon Sep 19 2005 Chung-Yen Chang <[email protected]>
420 - update to 1.0.7
421
422 * Mon Sep 05 2005 Chung-Yen Chang <[email protected]>
423 - update to 1.0.4
424
425 * Mon Aug 22 2005 Chung-Yen Chang <[email protected]>
426 - update to 1.0.3
427
428 * Wed Aug 10 2005 Chung-Yen Chang <[email protected]>
429 - update to 1.0.2
430
431 * Fri Jul 08 2005 Chung-Yen Chang <[email protected]>
432 - update to 1.0.1
433
434 * Mon Jun 27 2005 Chung-Yen Chang <[email protected]>
435 - update to 1.0.0
436
437 * Thu Jun 23 2005 Chung-Yen Chang <[email protected]>
438 - update to 0.9.9
439
440 * Thu Jun 16 2005 Chung-Yen Chang <[email protected]>
441 - rebuild for fc4
442
443 * Tue May 31 2005 Chung-Yen Chang <[email protected]>
444 - update to 0.9.7
445
446 * Tue May 19 2005 Chung-Yen Chang <[email protected]>
447 - update to 0.9.6
448
449 * Tue May 12 2005 Chung-Yen Chang <[email protected]>
450 - update to 0.9.5
451
452 * Wed May 04 2005 Chung-Yen Chang <[email protected]>
453 - update to 0.9.3
454
455 * Mon Apr 25 2005 Chung-Yen Chang <[email protected]>
456 - fix alternatives
457
458 * Fri Apr 22 2005 Chung-Yen Chang <[email protected]>
459 - update to 0.9.2
460
461 * Sat Apr 16 2005 Chung-Yen Chang <[email protected]>
462 - update to 0.9.1
463
464 * Tue Apr 05 2005 Chung-Yen Chang <[email protected]>
465 - update to 0.9.0
466
467 * Tue Mar 22 2005 Chung-Yen Chang <[email protected]>
468 - update to 0.8.9
469
470 * Sat Mar 14 2005 Chung-Yen Chang <[email protected]>
471 - update to 0.8.8
472
473 * Sat Mar 08 2005 Chung-Yen Chang <[email protected]>
474 - update to 0.8.7
475
476 * Sat Mar 05 2005 Chung-Yen Chang <[email protected]>
477 - update to 0.8.6
478
479 * Mon Aug 23 2004 Chung-Yen Chang <[email protected]>
480 - frist build for Fedora Core 2