[5383] | 1 | %define _qt4_version %(pkg-config --modversion --silence-errors Qt 2>/dev/null || echo 4.8.0) |
---|
| 2 | %define _qt4_prefix %(pkg-config --variable prefix --silence-errors Qt 2>/dev/null || echo %{_libdir}/qt4) |
---|
| 3 | %define _qt4_plugindir %(pkg-config --variable plugindir --silence-errors Qt 2>/dev/null || echo %{_qt4_prefix}/plugins) |
---|
| 4 | |
---|
[1153] | 5 | %define ver 1.3.0 |
---|
[5383] | 6 | %define rel 2 |
---|
[1153] | 7 | |
---|
| 8 | Summary: Qt IBus library and Qt input method plugin |
---|
| 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 |
---|
[5383] | 16 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
[1153] | 17 | BuildRequires: cmake |
---|
| 18 | BuildRequires: qt4-devel >= 4.5 |
---|
| 19 | BuildRequires: dbus-devel >= 1.2 |
---|
| 20 | BuildRequires: libicu-devel >= 4.0 |
---|
| 21 | BuildRequires: doxygen >= 1.6 |
---|
| 22 | Requires: ibus >= 1.3 |
---|
| 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 | Group: Development/Libraries |
---|
| 34 | Requires: %{name} = %{version}-%{release} |
---|
| 35 | |
---|
| 36 | %description devel |
---|
| 37 | The ibus-qt-devel package contains the header files for ibus Qt library. |
---|
| 38 | |
---|
| 39 | %prep |
---|
| 40 | %setup -q -n %{name}-%{version}-Source |
---|
| 41 | |
---|
| 42 | %build |
---|
| 43 | %cmake \ |
---|
| 44 | -DCMAKE_INSTALL_PREFIX=%{_usr} \ |
---|
| 45 | -DLIBDIR=%{_libdir} |
---|
| 46 | make \ |
---|
| 47 | VERBOSE=1 \ |
---|
| 48 | C_DEFINES="$RPM_OPT_FLAGS" \ |
---|
| 49 | CXX_DEFINES="$RPM_OPT_FLAGS" \ |
---|
| 50 | %{?_smp_mflags} |
---|
| 51 | make docs |
---|
| 52 | |
---|
| 53 | %install |
---|
| 54 | %{__rm} -rf %{buildroot} |
---|
| 55 | make install DESTDIR=%{buildroot} |
---|
| 56 | |
---|
| 57 | %clean |
---|
| 58 | %{__rm} -rf %{buildroot} |
---|
| 59 | |
---|
| 60 | %post -p /sbin/ldconfig |
---|
| 61 | |
---|
| 62 | %postun -p /sbin/ldconfig |
---|
| 63 | |
---|
| 64 | %files |
---|
| 65 | %defattr(-,root,root,-) |
---|
| 66 | %doc AUTHORS README INSTALL |
---|
| 67 | %{_libdir}/libibus-qt.so.* |
---|
[5383] | 68 | %{_qt4_plugindir}/inputmethods/libqtim-ibus.so |
---|
[1153] | 69 | |
---|
| 70 | %files devel |
---|
| 71 | %defattr(-,root,root,-) |
---|
| 72 | %doc docs/html |
---|
| 73 | %dir %{_includedir}/ibus-qt |
---|
| 74 | %{_includedir}/ibus-qt/*.h |
---|
| 75 | %{_libdir}/libibus-qt.so |
---|
| 76 | |
---|
| 77 | %changelog |
---|
[5383] | 78 | * Sat Jan 7 2012 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.3.0-2 |
---|
| 79 | - rebuilt with qt-4.8.0 |
---|
| 80 | |
---|
[1153] | 81 | * Sun Jun 6 2010 IWAI, Masaharu <iwai@alib.jp> 1.3.0-1 |
---|
| 82 | - Initial build. |
---|
| 83 | |
---|