ibus-qt-vl.spec 2.0 KB

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