tomoe-gtk-vl.spec 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. %define _tomoe_ver 0.6.0
  2. %bcond_with python
  3. Summary: Gtk library for tomoe for Japanese and Chinese handwritten input
  4. Summary(ja): tomoe の GTK ライブラリ
  5. Name: tomoe-gtk
  6. Version: 0.6.0
  7. Release: 3%{?_dist_release}
  8. License: LGPL
  9. Group: System Environment/Libraries
  10. URL: http://tomoe.sourceforge.jp/
  11. Source0: tomoe-gtk-%{version}.tar.gz
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. BuildRequires: gtk-doc >= 1.4
  14. BuildRequires: gtk2-devel >= 2.4.0
  15. # does not currently build with gucharmap-2
  16. #BuildRequires: gucharmap-devel
  17. BuildRequires: tomoe-devel >= %{_tomoe_ver}
  18. Requires: tomoe >= %{_tomoe_ver}
  19. Requires: gtk2 >= 2.4.0
  20. Obsoletes: libtomoe-gtk < 0.6.0
  21. %description
  22. Gtk library for tomoe Japanese handwritten input.
  23. This package is used by scim-tomoe or uim-tomoe.
  24. %description -l ja
  25. 手書き文字認識エンジン tomoe の gtk ライブラリです。
  26. scim-tomoe または uim-tomoe に用いられます。
  27. %package devel
  28. Summary: Header files for developing tomoe-gtk applications
  29. Summary(ja): tomoe-gtk アプリケーション開発用ヘッダファイル
  30. Group: Development/Libraries
  31. Requires: %{name} = %{version}-%{release}
  32. Requires: tomoe-devel >= %{_tomoe_ver}
  33. #Requires: gucharmap-devel >= 1.4.0
  34. Requires: pkgconfig
  35. Obsoletes: libtomoe-gtk-devel < 0.6.0
  36. %description devel
  37. The tomoe-gtk-devel package includes the header files for the tomoe-gtk
  38. package.
  39. %description -l ja devel
  40. tomoe-gtk-devel パッケージには、tomoe-gtk を使うアプリケーションを開発するためのヘッダファイルが含まれています。
  41. %if %{with python}
  42. %package -n python-tomoe-gtk
  43. Summary: tomoe-gtk library for Python binding
  44. Summary(ja): Python から tomoe-gtk を使うためのライブラリ
  45. Group: System Environment/Libraries
  46. Requires: %{name} = %{version}-%{release}
  47. Requires: python
  48. BuildRequires: python-devel
  49. BuildRequires: pygobject-devel
  50. %description -n python-tomoe-gtk
  51. Python extension library to use tomoe-gtk
  52. %description -l ja -n python-tomoe-gtk
  53. Python から tomoe-gtk を使うための拡張ライブラリです。
  54. %endif
  55. %prep
  56. %setup -q
  57. %build
  58. %configure \
  59. --disable-static \
  60. %{!?with_python: --without-python } \
  61. --without-gucharmap
  62. %__make %{?_smp_mflags}
  63. %install
  64. %__rm -rf $RPM_BUILD_ROOT
  65. %makeinstall
  66. ## remove unuse files
  67. find ${RPM_BUILD_ROOT} -name '*.la' | xargs rm
  68. %find_lang %{name}
  69. %clean
  70. %__rm -rf %{buildroot}
  71. %post -p %{_syssbindir}/ldconfig
  72. %postun -p %{_syssbindir}/ldconfig
  73. %files -f %{name}.lang
  74. %defattr(-,root,root,-)
  75. %doc AUTHORS COPYING ChangeLog INSTALL
  76. %{_libdir}/*.so.*
  77. %{_datadir}/tomoe-gtk
  78. %files devel
  79. %defattr(-,root,root,-)
  80. %{_includedir}/tomoe/gtk/*.h
  81. %{_libdir}/pkgconfig/*.pc
  82. %{_libdir}/*.so
  83. %{_datadir}/gtk-doc/html/libtomoe-gtk
  84. %if %{with python}
  85. %files -n python-tomoe-gtk
  86. %defattr(-,root,root,-)
  87. %{_libdir}/python?.?/site-packages/gtk-?.?/tomoegtk.so
  88. %endif
  89. %changelog
  90. * Sun Dec 14 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.6.0-3
  91. - rebuilt on current VineSeed
  92. * Sun Oct 03 2010 Shu KONNO <owa@bg.wakwak.com> 0.6.0-2
  93. - rebuilt with rpm-4.8.1 for pkg-config
  94. * Sun May 31 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.6.0-1
  95. - new upstream release
  96. - added %%configure:
  97. - --disable-static
  98. - --without-gucharmap
  99. * Mon Sep 29 2008 Shu KONNO <owa@bg.wakwak.com> 0.5.1-1vl5
  100. - applied new versioning policy, spec in utf-8
  101. - removed *.la
  102. * Sun Mar 11 2007 KAZUKI SHIMURA <kazuki@ma.ccna.ne.jp> 0.5.1-0vl1
  103. - new upstream release
  104. - drop obsolete test-fix.patch (patch0)
  105. * Mon Jan 08 2007 KAZUKI SHIMURA <kazuki@ma.ccna.ne.jp> 0.5.0-0vl2
  106. - add Requires: gucharmap-devel to -devel package
  107. * Mon Dec 31 2006 KAZUKI SHIMURA <kazuki@ma.ccna.ne.jp> 0.5.0-0vl1
  108. - new upstream release
  109. - update required version of tomoe
  110. - add test-fix.patch (patch0)
  111. - add Requires: tomoe-devel to -devel package
  112. - add BuildRequires: gtk-doc >= 1.4, gucharmap-devel >= 1.4.0
  113. * Fri Nov 24 2006 KAZUKI SHIMURA <kazuki@ma.ccna.ne.jp> 0.3.0-0vl1
  114. - new upstream release
  115. - update required-version of tomoe
  116. - add Requires: pkgconfig to -devel package
  117. - update %%files
  118. * Mon Nov 07 2005 KAZUKI SHIMURA <kazuki@ma.ccna.ne.jp> 0.1.0-0vl1
  119. - initial release for Vine Linux