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