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