1 | %define _qt4_prefix %(pkg-config --variable prefix --silence-errors Qt 2>/dev/null || echo %{_libdir}/qt4) |
---|
2 | %define _qt4_plugindir %(pkg-config --variable plugindir --silence-errors Qt 2>/dev/null || echo %{_qt4_prefix}/plugins) |
---|
3 | |
---|
4 | %define ver 1.3.2 |
---|
5 | %define rel 2 |
---|
6 | |
---|
7 | Summary: Qt IBus library and Qt input method plugin |
---|
8 | Summary(ja): Qt iBus ライブラリと入力メソッドプラグイン |
---|
9 | Name: ibus-qt |
---|
10 | Version: %{ver} |
---|
11 | Release: %{rel}%{?_dist_release} |
---|
12 | License: GPLv2+ |
---|
13 | Group: System Environment/Libraries |
---|
14 | URL: http://code.google.com/p/ibus/ |
---|
15 | Source0: http://ibus.googlecode.com/files/%{name}-%{version}-Source.tar.gz |
---|
16 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
17 | BuildRequires: cmake |
---|
18 | BuildRequires: qt4-devel >= 4.5 |
---|
19 | BuildRequires: dbus-devel >= 1.2 |
---|
20 | BuildRequires: ibus-devel >= 1.3.7 |
---|
21 | BuildRequires: libicu-devel >= 4.0 |
---|
22 | BuildRequires: doxygen >= 1.6 |
---|
23 | Requires: ibus >= 1.3.7 |
---|
24 | |
---|
25 | Vendor: Project Vine |
---|
26 | Distribution: Vine Linux |
---|
27 | Packager: iwaim |
---|
28 | |
---|
29 | %description |
---|
30 | This includes Qt IBus library and Qt input method plugin. |
---|
31 | |
---|
32 | %package devel |
---|
33 | Summary: Development tools for ibus Qt |
---|
34 | Summary(ja): ibus Qt の開発用ファイル |
---|
35 | Group: Development/Libraries |
---|
36 | Requires: %{name} = %{version}-%{release} |
---|
37 | |
---|
38 | %description devel |
---|
39 | The ibus-qt-devel package contains the header files for ibus Qt library. |
---|
40 | |
---|
41 | %prep |
---|
42 | %setup -q -n %{name}-%{version}-Source |
---|
43 | |
---|
44 | %build |
---|
45 | %cmake \ |
---|
46 | -DCMAKE_INSTALL_PREFIX=%{_usr} \ |
---|
47 | -DLIBDIR=%{_libdir} |
---|
48 | |
---|
49 | make \ |
---|
50 | VERBOSE=1 \ |
---|
51 | C_DEFINES="$RPM_OPT_FLAGS" \ |
---|
52 | CXX_DEFINES="$RPM_OPT_FLAGS" \ |
---|
53 | %{?_smp_mflags} |
---|
54 | |
---|
55 | make docs |
---|
56 | |
---|
57 | %install |
---|
58 | %{__rm} -rf %{buildroot} |
---|
59 | make install DESTDIR=%{buildroot} |
---|
60 | |
---|
61 | %clean |
---|
62 | %{__rm} -rf %{buildroot} |
---|
63 | |
---|
64 | %post -p /sbin/ldconfig |
---|
65 | |
---|
66 | %postun -p /sbin/ldconfig |
---|
67 | |
---|
68 | %files |
---|
69 | %defattr(-,root,root,-) |
---|
70 | %doc AUTHORS COPYING README |
---|
71 | %{_libdir}/libibus-qt.so.* |
---|
72 | %{_qt4_plugindir}/inputmethods/libqtim-ibus.so |
---|
73 | |
---|
74 | %files devel |
---|
75 | %defattr(-,root,root,-) |
---|
76 | %doc docs/html |
---|
77 | %dir %{_includedir}/ibus-qt |
---|
78 | %{_includedir}/ibus-qt/*.h |
---|
79 | %{_libdir}/libibus-qt.so |
---|
80 | |
---|
81 | %changelog |
---|
82 | * Sun Nov 16 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.3.2-2 |
---|
83 | - rebuilt with libuci 54.1 |
---|
84 | |
---|
85 | * Tue Nov 4 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.3.2-1 |
---|
86 | - updated to 1.3.2 |
---|
87 | - added BR: ibus-devel |
---|
88 | |
---|
89 | * Sat Jan 7 2012 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.3.0-2 |
---|
90 | - rebuilt with qt-4.8.0 |
---|
91 | |
---|
92 | * Sun Jun 6 2010 IWAI, Masaharu <iwai@alib.jp> 1.3.0-1 |
---|
93 | - Initial build. |
---|
94 | |
---|