[1153] | 1 | %define ver 1.3.0 |
---|
| 2 | %define rel 1 |
---|
| 3 | |
---|
| 4 | Summary: Qt IBus library and Qt input method plugin |
---|
| 5 | Name: ibus-qt |
---|
| 6 | Version: %{ver} |
---|
| 7 | Release: %{rel}%{?_dist_release} |
---|
| 8 | License: GPLv2+ |
---|
| 9 | Group: System Environment/Libraries |
---|
| 10 | URL: http://code.google.com/p/ibus/ |
---|
| 11 | Source0: http://ibus.googlecode.com/files/%{name}-%{version}-Source.tar.gz |
---|
| 12 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
---|
| 13 | BuildRequires: cmake |
---|
| 14 | BuildRequires: qt4-devel >= 4.5 |
---|
| 15 | BuildRequires: dbus-devel >= 1.2 |
---|
| 16 | BuildRequires: libicu-devel >= 4.0 |
---|
| 17 | BuildRequires: doxygen >= 1.6 |
---|
| 18 | #BuildRequires: ibus-devel >= 1.3.0 |
---|
| 19 | Requires: ibus >= 1.3 |
---|
| 20 | |
---|
| 21 | Vendor: Project Vine |
---|
| 22 | Distribution: Vine Linux |
---|
| 23 | Packager: iwaim |
---|
| 24 | |
---|
| 25 | %description |
---|
| 26 | This includes Qt IBus library and Qt input method plugin. |
---|
| 27 | |
---|
| 28 | %package devel |
---|
| 29 | Summary: Development tools for ibus Qt |
---|
| 30 | Group: Development/Libraries |
---|
| 31 | Requires: %{name} = %{version}-%{release} |
---|
| 32 | |
---|
| 33 | %description devel |
---|
| 34 | The ibus-qt-devel package contains the header files for ibus Qt library. |
---|
| 35 | |
---|
| 36 | %prep |
---|
| 37 | %setup -q -n %{name}-%{version}-Source |
---|
| 38 | |
---|
| 39 | %build |
---|
| 40 | %cmake \ |
---|
| 41 | -DCMAKE_INSTALL_PREFIX=%{_usr} \ |
---|
| 42 | -DLIBDIR=%{_libdir} |
---|
| 43 | make \ |
---|
| 44 | VERBOSE=1 \ |
---|
| 45 | C_DEFINES="$RPM_OPT_FLAGS" \ |
---|
| 46 | CXX_DEFINES="$RPM_OPT_FLAGS" \ |
---|
| 47 | %{?_smp_mflags} |
---|
| 48 | make docs |
---|
| 49 | |
---|
| 50 | %install |
---|
| 51 | %{__rm} -rf %{buildroot} |
---|
| 52 | make install DESTDIR=%{buildroot} |
---|
| 53 | |
---|
| 54 | %clean |
---|
| 55 | %{__rm} -rf %{buildroot} |
---|
| 56 | |
---|
| 57 | %post -p /sbin/ldconfig |
---|
| 58 | |
---|
| 59 | %postun -p /sbin/ldconfig |
---|
| 60 | |
---|
| 61 | %files |
---|
| 62 | %defattr(-,root,root,-) |
---|
| 63 | %doc AUTHORS README INSTALL |
---|
| 64 | %{_libdir}/libibus-qt.so.* |
---|
| 65 | %{_libdir}/qt*4*/plugins/inputmethods/libqtim-ibus.so |
---|
| 66 | |
---|
| 67 | %files devel |
---|
| 68 | %defattr(-,root,root,-) |
---|
| 69 | %doc docs/html |
---|
| 70 | %dir %{_includedir}/ibus-qt |
---|
| 71 | %{_includedir}/ibus-qt/*.h |
---|
| 72 | %{_libdir}/libibus-qt.so |
---|
| 73 | |
---|
| 74 | %changelog |
---|
| 75 | * Sun Jun 6 2010 IWAI, Masaharu <iwai@alib.jp> 1.3.0-1 |
---|
| 76 | - Initial build. |
---|
| 77 | |
---|