fcitx-configtool-vl.spec 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. %define ver 0.4.8
  2. %define rel 2
  3. Summary: a GTK based configurae tool for Fcitx
  4. Summary(ja): GTKベースのFcitx設定ツール
  5. Name: fcitx-configtool
  6. Version: %{ver}
  7. Release: %{rel}%{?_dist_release}
  8. License: GPLv2
  9. Group: System Environment/Libraries
  10. URL: https://fcitx-im.org
  11. Source0: http://download.fcitx-im.org/fcitx-configtool/%{name}-%{version}.tar.xz
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
  13. BuildRequires: cmake
  14. BuildRequires: fcitx-devel >= 4.2.8
  15. BuildRequires: gtk3-devel >= 3.4
  16. BuildRequires: gtk2-devel >= 2.24
  17. BuildRequires: unique-devel
  18. BuildRequires: iso-codes
  19. Requires: fcitx
  20. Requires: fcitx-configtool-gtk2
  21. Distribution: Vine Linux
  22. Vendor: Project Vine
  23. Packager: iwaim
  24. %description
  25. A GTK based configure tool for fcitx.
  26. %description -l ja
  27. GTKベースのFcitx設定ツール
  28. %package gtk2
  29. Summary: a GTK3 based configurae tool for Fcitx
  30. Summary(ja): GTK2ベースのFcitx設定ツール
  31. Requires: fcitx-configtool = %{version}
  32. %description gtk2
  33. A GTK2 based configure tool for fcitx.
  34. %description -l ja gtk2
  35. GTK2ベースのFcitx設定ツール
  36. %package gtk3
  37. Summary: a GTK3 based configurae tool for Fcitx
  38. Summary(ja): GTK3ベースのFcitx設定ツール
  39. Requires: fcitx-configtool = %{version}
  40. %description gtk3
  41. A GTK3 based configure tool for fcitx.
  42. %description -l ja gtk3
  43. GTK3ベースのFcitx設定ツール
  44. %prep
  45. %setup -q
  46. %build
  47. %__mkdir build
  48. pushd build
  49. %cmake .. \
  50. -DENABLE_GTK2=On \
  51. -DENABLE_GTK3=On
  52. make %{?_smp_mflags}
  53. popd
  54. %install
  55. rm -rf $RPM_BUILD_ROOT
  56. pushd build
  57. make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
  58. popd
  59. %find_lang %{name}
  60. %clean
  61. rm -rf $RPM_BUILD_ROOT
  62. %files -f %{name}.lang
  63. %defattr(-,root,root,-)
  64. %doc README COPYING
  65. %files gtk2
  66. %{_bindir}/fcitx-config-gtk
  67. %files gtk3
  68. %{_bindir}/fcitx-config-gtk3
  69. %changelog
  70. * Wed Jun 04 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 0.4.8-2
  71. - build gtk2 and gtk3 version
  72. - add fcitx-configtool-gtk[23] subpackage.
  73. * Fri Nov 8 2013 IWAI, Masaharu <iwaim.sub@gmail.com> 0.4.8-1
  74. - initial release