[521] | 1 | %define with_python 0 |
---|
| 2 | |
---|
| 3 | # build ruby extension |
---|
| 4 | %define with_ruby %{?_with_ruby:1}%{!?_with_ruby:0} |
---|
| 5 | |
---|
| 6 | %define __libtoolize /bin/true |
---|
| 7 | |
---|
| 8 | Summary: Japanese handwritten input system |
---|
| 9 | Summary(ja): 日本語手書き文字認識エンジン |
---|
| 10 | Name: tomoe |
---|
| 11 | Version: 0.6.0 |
---|
| 12 | Release: 1%{?_dist_release} |
---|
| 13 | Group: System Environment/Libraries |
---|
| 14 | License: LGPL |
---|
| 15 | URL: http://tomoe.sourceforge.jp/ |
---|
| 16 | Source0: tomoe-%{version}.tar.gz |
---|
| 17 | Patch0: tomoe-0.6.0-multiarch-conflict.patch |
---|
| 18 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 19 | BuildRequires: gtk-doc >= 1.4, libxslt |
---|
| 20 | BuildRequires: glib2-devel >= 2.4.0 |
---|
| 21 | #BuildRequires: neon-devel |
---|
| 22 | #BuildRequires: apr-devel, subversion-devel |
---|
| 23 | #BUildRequires: MySQL-devel |
---|
| 24 | BuildRequires: unzip |
---|
| 25 | Requires: glib2 >= 2.4.0 |
---|
| 26 | PreReq: ldconfig |
---|
| 27 | |
---|
| 28 | %description |
---|
| 29 | A program which does Japanese handwriting recognition. |
---|
| 30 | |
---|
| 31 | %description -l ja |
---|
| 32 | 日本語の手書き文字を認識するエンジンです。 |
---|
| 33 | |
---|
| 34 | %package devel |
---|
| 35 | Summary: Header files for developing tomoe applications |
---|
| 36 | Summary(ja): tomoe アプリケーション開発用ヘッダファイル |
---|
| 37 | Group: Development/Libraries |
---|
| 38 | Requires: %{name} = %{version}-%{release} |
---|
| 39 | Requires: pkgconfig |
---|
| 40 | |
---|
| 41 | %description devel |
---|
| 42 | The tomoe-devel package includes the header files for the tomoe package. |
---|
| 43 | Install this package if you want to develop programs which use tomoe. |
---|
| 44 | |
---|
| 45 | %description -l ja devel |
---|
| 46 | tomoe-devel パッケージには、tomoe を使うアプリケーションを開発するための |
---|
| 47 | ヘッダファイルが含まれています。 |
---|
| 48 | |
---|
| 49 | %if %{with_python} |
---|
| 50 | %package -n python-tomoe |
---|
| 51 | Summary: Tomoe library for Python |
---|
| 52 | Summary(ja): Python から巴を使うためのライブラリ |
---|
| 53 | Group: System Environment/Libraries |
---|
| 54 | Requires: %{name} = %{version}-%{release} |
---|
| 55 | Requires: python |
---|
| 56 | BuildRequires: python-devel |
---|
| 57 | |
---|
| 58 | %description -n python-tomoe |
---|
| 59 | Python extension library to use Tomoe |
---|
| 60 | |
---|
| 61 | %description -l ja -n python-tomoe |
---|
| 62 | Python から巴を使うための拡張ライブラリです。 |
---|
| 63 | %endif |
---|
| 64 | |
---|
| 65 | |
---|
| 66 | %if %{with_ruby} |
---|
| 67 | %package -n ruby-tomoe |
---|
| 68 | Summary: Tomoe library for Ruby |
---|
| 69 | Summary(ja): Ruby から巴を使うためのライブラリ |
---|
| 70 | Group: System Environment/Libraries |
---|
| 71 | Requires: %{name} = %{version}-%{release} |
---|
| 72 | Requires: ruby |
---|
| 73 | BuildRequires: ruby-devel, ruby-gnome2-devel |
---|
| 74 | |
---|
| 75 | %description -n ruby-tomoe |
---|
| 76 | Ruby extension library to use Tomoe |
---|
| 77 | |
---|
| 78 | %description -l ja -n ruby-tomoe |
---|
| 79 | Ruby から巴を使うための拡張ライブラリです。 |
---|
| 80 | |
---|
| 81 | %package -n ruby-tomoe-devel |
---|
| 82 | Summary: Header files for developing ruby-tomoe applications |
---|
| 83 | Summary(ja): ruby-tomoe アプリケーション開発用ヘッダファイル |
---|
| 84 | Group: Development/Libraries |
---|
| 85 | Requires: ruby-tomoe = %{version}-%{release} |
---|
| 86 | Requires: %{name}-devel = %{version}-%{release} |
---|
| 87 | |
---|
| 88 | %description -n ruby-tomoe-devel |
---|
| 89 | The ruby-tomoe-devel package includes the header files for the ruby-tomoe |
---|
| 90 | package. |
---|
| 91 | Install this package if you want to develop programs which use ruby-tomoe. |
---|
| 92 | |
---|
| 93 | %description -l ja -n ruby-tomoe-devel |
---|
| 94 | ruby-tomoe-devel パッケージには、ruby-tomoe を使うアプリケーションを開発 |
---|
| 95 | するためのヘッダファイルが含まれています。 |
---|
| 96 | %endif |
---|
| 97 | |
---|
| 98 | %prep |
---|
| 99 | %setup -q |
---|
| 100 | %patch0 -p0 -b .multiarch-conflict |
---|
| 101 | |
---|
| 102 | %build |
---|
| 103 | autoreconf -vif |
---|
| 104 | %configure \ |
---|
| 105 | --disable-static \ |
---|
| 106 | --with-ruby-extdir=%{rarchdir} \ |
---|
| 107 | --with-ruby-libdir=%{rlibdir} |
---|
| 108 | %__make %{?_smp_mflags} |
---|
| 109 | |
---|
| 110 | %install |
---|
| 111 | %__rm -rf $RPM_BUILD_ROOT |
---|
| 112 | %__make DESTDIR=%{buildroot} install |
---|
| 113 | |
---|
| 114 | %if !%{with_ruby} |
---|
| 115 | rm -f $RPM_BUILD_ROOT%{_libdir}/ruby/site_ruby/*/tomoe.rb $RPM_BUILD_ROOT%{_libdir}/ruby/site_ruby/*/*-linux/* |
---|
| 116 | %endif |
---|
| 117 | chmod 755 $RPM_BUILD_ROOT%{_datadir}/%{name}/xml2est.rb |
---|
| 118 | |
---|
| 119 | # remove unneeded files |
---|
| 120 | %__rm -f %{buildroot}%{_libdir}/tomoe/module/dict/libmysql.* |
---|
| 121 | %__rm -f %{buildroot}%{_libdir}/tomoe/module/dict/libsvn.* |
---|
| 122 | find ${RPM_BUILD_ROOT} -name '*.la' | xargs rm |
---|
| 123 | |
---|
| 124 | %if !%{with_python} |
---|
| 125 | %__rm -f %{buildroot}%{_libdir}/python?.?/site-packages/tomoe.so |
---|
| 126 | %endif |
---|
| 127 | |
---|
| 128 | %if !%{with_ruby} |
---|
| 129 | %__rm -rf %{buildroot}%{rarchdir} |
---|
| 130 | %__rm -rf %{buildroot}%{rlibdir} |
---|
| 131 | %endif |
---|
| 132 | |
---|
| 133 | %find_lang %{name} |
---|
| 134 | |
---|
| 135 | %clean |
---|
| 136 | %__rm -rf %{buildroot} |
---|
| 137 | |
---|
| 138 | %post |
---|
| 139 | %{_syssbindir}/ldconfig |
---|
| 140 | |
---|
| 141 | %postun |
---|
| 142 | %{_syssbindir}/ldconfig |
---|
| 143 | |
---|
| 144 | %files -f %{name}.lang |
---|
| 145 | %defattr(-,root,root,-) |
---|
| 146 | %doc AUTHORS COPYING ChangeLog NEWS README TODO |
---|
| 147 | %dir %{_sysconfdir}/tomoe |
---|
| 148 | %config(noreplace) %{_sysconfdir}/tomoe/config |
---|
| 149 | %{_libdir}/*.so.* |
---|
| 150 | %dir %{_libdir}/tomoe |
---|
| 151 | %dir %{_libdir}/tomoe/module |
---|
| 152 | %dir %{_libdir}/tomoe/module/dict |
---|
| 153 | %{_libdir}/tomoe/module/dict/*.so |
---|
| 154 | %dir %{_libdir}/tomoe/module/recognizer |
---|
| 155 | %{_libdir}/tomoe/module/recognizer/*.so |
---|
| 156 | %{_datadir}/tomoe |
---|
| 157 | |
---|
| 158 | |
---|
| 159 | %files devel |
---|
| 160 | %defattr(-,root,root,-) |
---|
| 161 | %{_includedir}/tomoe |
---|
| 162 | %{_libdir}/pkgconfig/*.pc |
---|
| 163 | %{_libdir}/*.so |
---|
| 164 | %{_datadir}/gtk-doc/html/tomoe |
---|
| 165 | |
---|
| 166 | |
---|
| 167 | %if %{with_python} |
---|
| 168 | %files -n python-tomoe |
---|
| 169 | %defattr(-,root,root,-) |
---|
| 170 | %{_libdir}/python?.?/site-packages/tomoe.so |
---|
| 171 | %endif |
---|
| 172 | |
---|
| 173 | |
---|
| 174 | %if %{with_ruby} |
---|
| 175 | %files -n ruby-tomoe |
---|
| 176 | %defattr(-,root,root,-) |
---|
| 177 | %{rarchdir}/*.so.* |
---|
| 178 | %{rlibdir}/tomoe.rb |
---|
| 179 | |
---|
| 180 | %files -n ruby-tomoe-devel |
---|
| 181 | %defattr(-,root,root,-) |
---|
| 182 | %{rarchdir}/*.h |
---|
| 183 | %{rarchdir}/*.so |
---|
| 184 | %endif |
---|
| 185 | |
---|
| 186 | %changelog |
---|
| 187 | * Sun May 31 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.6.0-1 |
---|
| 188 | - new upstream release |
---|
| 189 | - added --disable-static in %%configure |
---|
| 190 | - applied tomoe-0.6.0-multiarch-conflict.patch |
---|
| 191 | |
---|
| 192 | * Sun Oct 12 2008 Shu KONNO <owa@bg.wakwak.com> 0.5.1-1vl5 |
---|
| 193 | - applied new versioning policy, spec in utf-8 |
---|
| 194 | - remove *.la |
---|
| 195 | |
---|
| 196 | * Sun Mar 11 2007 KAZUKI SHIMURA <kazuki@ma.ccna.ne.jp> 0.5.1-0vl1 |
---|
| 197 | - new upstream release |
---|
| 198 | |
---|
| 199 | * Sun Jan 07 2007 KAZUKI SHIMURA <kazuki@ma.ccna.ne.jp> 0.5.0-0vl3 |
---|
| 200 | - disable ruby extension by default |
---|
| 201 | |
---|
| 202 | * Fri Jan 05 2007 KAZUKI SHIMURA <kazuki@ma.ccna.ne.jp> 0.5.0-0vl2 |
---|
| 203 | - move from tomoe-devel to tomoe |
---|
| 204 | - %%{_libdir}/tomoe/module/dict/*.so |
---|
| 205 | - %%{_libdir}/tomoe/module/recognizer/*.so |
---|
| 206 | |
---|
| 207 | * Sat Dec 31 2006 KAZUKI SHIMURA <kazuki@ma.ccna.ne.jp> 0.5.0-0vl1 |
---|
| 208 | - new upstream release |
---|
| 209 | - add BuildRequires: unzip |
---|
| 210 | - update %%files section |
---|
| 211 | |
---|
| 212 | * Mon Dec 18 2006 KAZUKI SHIMURA <kazuki@ma.ccna.ne.jp> 0.4.0-0vl1 |
---|
| 213 | - new upstream release |
---|
| 214 | - update dependencies |
---|
| 215 | - drop BuildRequires: libxml2-devel, libxslt-devel, doxygen |
---|
| 216 | - add BuildRequires: |
---|
| 217 | - gtk-doc, libxslt, glib2-devel |
---|
| 218 | - ruby-devel, ruby-gnome2-devel |
---|
| 219 | - drop Requires: libxml2, libxslt |
---|
| 220 | - add Requires: glib2 |
---|
| 221 | - add new sub-package: ruby-tomoe |
---|
| 222 | |
---|
| 223 | * Sat Nov 25 2006 KAZUKI SHIMURA <kazuki@ma.ccna.ne.jp> 0.3.0-0vl2 |
---|
| 224 | - oops, add Requires: libxml2, libxslt instead of *-devel |
---|
| 225 | |
---|
| 226 | * Fri Nov 24 2006 KAZUKI SHIMURA <kazuki@ma.ccna.ne.jp> 0.3.0-0vl1 |
---|
| 227 | - new upstream release |
---|
| 228 | - add BuildRequires: libxml2-devel, libxslt-devel, doxygen |
---|
| 229 | - add Requires: pkgconfig to -devel package |
---|
| 230 | - update %%files |
---|
| 231 | |
---|
| 232 | * Mon Nov 07 2005 KAZUKI SHIMURA <kazuki@ma.ccna.ne.jp> 0.2.1-3vl1 |
---|
| 233 | - initial release for Vine Linux |
---|
| 234 | - disable %%__libtoolize |
---|
| 235 | - add Japanase summary and description |
---|
| 236 | |
---|
| 237 | * Sat Sep 3 2005 Warren Togami <wtogami@redhat.com> - 0.2.1-3 |
---|
| 238 | - some spec cleanup |
---|
| 239 | |
---|
| 240 | * Sat Sep 2 2005 Ryo Dairiki <ryo-dairiki@mbm.nifty.com> - 0.2.1-2 |
---|
| 241 | - Sync with Jens's spec file |
---|
| 242 | |
---|
| 243 | * Wed Aug 31 2005 Ryo Dairiki <ryo-dairiki@mbm.nifty.com> - 0.2.1-1 |
---|
| 244 | - Initial packaging for Extras |
---|
| 245 | |
---|
| 246 | * Fri Jul 1 2005 Ichiro Nakai <ichiro@n.email.ne.jp> |
---|
| 247 | - (0.2.0-1m) |
---|
| 248 | - version 0.2.0 |
---|
| 249 | - add a package tomoe-devel |
---|
| 250 | - add %%post and %%postun sections |
---|
| 251 | |
---|
| 252 | * Wed Mar 2 2005 Ichiro Nakai <ichiro@n.email.ne.jp> |
---|
| 253 | - (0.1.1-1m) |
---|
| 254 | - initial package for Momonga Linux |
---|
| 255 | - import %%description from cooker |
---|