123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159 |
- %define _tomoe_ver 0.6.0
- %bcond_with python
- Summary: Gtk library for tomoe for Japanese and Chinese handwritten input
- Summary(ja): tomoe の GTK ライブラリ
- Name: tomoe-gtk
- Version: 0.6.0
- Release: 3%{?_dist_release}
- License: LGPL
- Group: System Environment/Libraries
- URL: http://tomoe.sourceforge.jp/
- Source0: tomoe-gtk-%{version}.tar.gz
- BuildRoot: %{_tmppath}/%{name}-%{version}-root
- BuildRequires: gtk-doc >= 1.4
- BuildRequires: gtk2-devel >= 2.4.0
- # does not currently build with gucharmap-2
- #BuildRequires: gucharmap-devel
- BuildRequires: tomoe-devel >= %{_tomoe_ver}
- Requires: tomoe >= %{_tomoe_ver}
- Requires: gtk2 >= 2.4.0
- Obsoletes: libtomoe-gtk < 0.6.0
- %description
- Gtk library for tomoe Japanese handwritten input.
- This package is used by scim-tomoe or uim-tomoe.
- %description -l ja
- 手書き文字認識エンジン tomoe の gtk ライブラリです。
- scim-tomoe または uim-tomoe に用いられます。
- %package devel
- Summary: Header files for developing tomoe-gtk applications
- Summary(ja): tomoe-gtk アプリケーション開発用ヘッダファイル
- Group: Development/Libraries
- Requires: %{name} = %{version}-%{release}
- Requires: tomoe-devel >= %{_tomoe_ver}
- #Requires: gucharmap-devel >= 1.4.0
- Requires: pkgconfig
- Obsoletes: libtomoe-gtk-devel < 0.6.0
- %description devel
- The tomoe-gtk-devel package includes the header files for the tomoe-gtk
- package.
- %description -l ja devel
- tomoe-gtk-devel パッケージには、tomoe-gtk を使うアプリケーションを開発するためのヘッダファイルが含まれています。
- %if %{with python}
- %package -n python-tomoe-gtk
- Summary: tomoe-gtk library for Python binding
- Summary(ja): Python から tomoe-gtk を使うためのライブラリ
- Group: System Environment/Libraries
- Requires: %{name} = %{version}-%{release}
- Requires: python
- BuildRequires: python-devel
- BuildRequires: pygobject-devel
- %description -n python-tomoe-gtk
- Python extension library to use tomoe-gtk
- %description -l ja -n python-tomoe-gtk
- Python から tomoe-gtk を使うための拡張ライブラリです。
- %endif
- %prep
- %setup -q
- %build
- %configure \
- --disable-static \
- %{!?with_python: --without-python } \
- --without-gucharmap
- %__make %{?_smp_mflags}
- %install
- %__rm -rf $RPM_BUILD_ROOT
- %makeinstall
- ## remove unuse files
- find ${RPM_BUILD_ROOT} -name '*.la' | xargs rm
- %find_lang %{name}
- %clean
- %__rm -rf %{buildroot}
- %post -p %{_syssbindir}/ldconfig
- %postun -p %{_syssbindir}/ldconfig
- %files -f %{name}.lang
- %defattr(-,root,root,-)
- %doc AUTHORS COPYING ChangeLog INSTALL
- %{_libdir}/*.so.*
- %{_datadir}/tomoe-gtk
- %files devel
- %defattr(-,root,root,-)
- %{_includedir}/tomoe/gtk/*.h
- %{_libdir}/pkgconfig/*.pc
- %{_libdir}/*.so
- %{_datadir}/gtk-doc/html/libtomoe-gtk
- %if %{with python}
- %files -n python-tomoe-gtk
- %defattr(-,root,root,-)
- %{_libdir}/python?.?/site-packages/gtk-?.?/tomoegtk.so
- %endif
- %changelog
- * Sun Dec 14 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.6.0-3
- - rebuilt on current VineSeed
- * Sun Oct 03 2010 Shu KONNO <owa@bg.wakwak.com> 0.6.0-2
- - rebuilt with rpm-4.8.1 for pkg-config
- * Sun May 31 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.6.0-1
- - new upstream release
- - added %%configure:
- - --disable-static
- - --without-gucharmap
- * Mon Sep 29 2008 Shu KONNO <owa@bg.wakwak.com> 0.5.1-1vl5
- - applied new versioning policy, spec in utf-8
- - removed *.la
- * Sun Mar 11 2007 KAZUKI SHIMURA <kazuki@ma.ccna.ne.jp> 0.5.1-0vl1
- - new upstream release
- - drop obsolete test-fix.patch (patch0)
- * Mon Jan 08 2007 KAZUKI SHIMURA <kazuki@ma.ccna.ne.jp> 0.5.0-0vl2
- - add Requires: gucharmap-devel to -devel package
- * Mon Dec 31 2006 KAZUKI SHIMURA <kazuki@ma.ccna.ne.jp> 0.5.0-0vl1
- - new upstream release
- - update required version of tomoe
- - add test-fix.patch (patch0)
- - add Requires: tomoe-devel to -devel package
- - add BuildRequires: gtk-doc >= 1.4, gucharmap-devel >= 1.4.0
- * Fri Nov 24 2006 KAZUKI SHIMURA <kazuki@ma.ccna.ne.jp> 0.3.0-0vl1
- - new upstream release
- - update required-version of tomoe
- - add Requires: pkgconfig to -devel package
- - update %%files
- * Mon Nov 07 2005 KAZUKI SHIMURA <kazuki@ma.ccna.ne.jp> 0.1.0-0vl1
- - initial release for Vine Linux
|