|
@@ -1,29 +1,44 @@
|
|
-%define with_python 0
|
|
+# to activate, add --with [python|ruby] to rpmbuild
|
|
-
|
|
+%bcond_with python
|
|
-# build ruby extension
|
|
+%bcond_with ruby
|
|
-%define with_ruby %{?_with_ruby:1}%{!?_with_ruby:0}
|
|
|
|
-
|
|
|
|
-%define __libtoolize /bin/true
|
|
|
|
|
|
|
|
Summary: Japanese handwritten input system
|
|
Summary: Japanese handwritten input system
|
|
Summary(ja): 日本語手書き文字認識エンジン
|
|
Summary(ja): 日本語手書き文字認識エンジン
|
|
Name: tomoe
|
|
Name: tomoe
|
|
Version: 0.6.0
|
|
Version: 0.6.0
|
|
-Release: 2%{?_dist_release}
|
|
+Release: 3%{?_dist_release}
|
|
Group: System Environment/Libraries
|
|
Group: System Environment/Libraries
|
|
-License: LGPL
|
|
+License: LGPLv2
|
|
URL: http://tomoe.sourceforge.jp/
|
|
URL: http://tomoe.sourceforge.jp/
|
|
|
|
+
|
|
Source0: tomoe-%{version}.tar.gz
|
|
Source0: tomoe-%{version}.tar.gz
|
|
Patch0: tomoe-0.6.0-multiarch-conflict.patch
|
|
Patch0: tomoe-0.6.0-multiarch-conflict.patch
|
|
|
|
+Patch1: tomoe-0.6.0-bz502662.patch
|
|
|
|
+Patch2: tomoe-0.6.0-fixes-glib-includes.patch
|
|
|
|
+
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
-BuildRequires: gtk-doc >= 1.4, libxslt
|
|
+BuildRequires: gettext
|
|
BuildRequires: glib2-devel >= 2.4.0
|
|
BuildRequires: glib2-devel >= 2.4.0
|
|
-#BuildRequires: neon-devel
|
|
+BuildRequires: gtk-doc >= 1.4
|
|
-#BuildRequires: apr-devel, subversion-devel
|
|
+BuildRequires: intltool
|
|
-#BUildRequires: MySQL-devel
|
|
+BuildRequires: libtool
|
|
-BuildRequires: unzip
|
|
+BuildRequires: perl(XML::Parser)
|
|
-Requires: glib2 >= 2.4.0
|
|
+BuildRequires: python
|
|
-Requires: ldconfig
|
|
+%if %{with python}
|
|
|
|
+BuildRequires: pygobject-devel
|
|
|
|
+BuildRequires: pygtk2-devel
|
|
|
|
+BuildRequires: python-devel
|
|
|
|
+%endif
|
|
|
|
+%if %{with ruby}
|
|
|
|
+BuildRequires: ruby-gnome2-devel
|
|
|
|
+%endif
|
|
|
|
+## for extra dictionary backends
|
|
|
|
+#BuildRequires: mysql-devel, subversion-devel, hyperestraier-devel
|
|
|
|
+
|
|
|
|
+%if %{with python}
|
|
|
|
+Requires: python
|
|
|
|
+Provides: python-tomoe = %{version}-%{release}
|
|
|
|
+%endif
|
|
|
|
|
|
%description
|
|
%description
|
|
A program which does Japanese handwriting recognition.
|
|
A program which does Japanese handwriting recognition.
|
|
@@ -37,6 +52,10 @@ Summary(ja): tomoe アプリケーション開発用ヘッダファイル
|
|
Group: Development/Libraries
|
|
Group: Development/Libraries
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: pkgconfig
|
|
Requires: pkgconfig
|
|
|
|
+%if %{with python}
|
|
|
|
+Requires: pygobject-devel
|
|
|
|
+Provides: python-tomoe-devel = %{version}-%{release}
|
|
|
|
+%endif
|
|
|
|
|
|
%description devel
|
|
%description devel
|
|
The tomoe-devel package includes the header files for the tomoe package.
|
|
The tomoe-devel package includes the header files for the tomoe package.
|
|
@@ -46,31 +65,13 @@ Install this package if you want to develop programs which use tomoe.
|
|
tomoe-devel パッケージには、tomoe を使うアプリケーションを開発するための
|
|
tomoe-devel パッケージには、tomoe を使うアプリケーションを開発するための
|
|
ヘッダファイルが含まれています。
|
|
ヘッダファイルが含まれています。
|
|
|
|
|
|
-%if %{with_python}
|
|
+%if %{with ruby}
|
|
-%package -n python-tomoe
|
|
|
|
-Summary: Tomoe library for Python
|
|
|
|
-Summary(ja): Python から巴を使うためのライブラリ
|
|
|
|
-Group: System Environment/Libraries
|
|
|
|
-Requires: %{name} = %{version}-%{release}
|
|
|
|
-Requires: python
|
|
|
|
-BuildRequires: python-devel
|
|
|
|
-
|
|
|
|
-%description -n python-tomoe
|
|
|
|
-Python extension library to use Tomoe
|
|
|
|
-
|
|
|
|
-%description -l ja -n python-tomoe
|
|
|
|
-Python から巴を使うための拡張ライブラリです。
|
|
|
|
-%endif
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-%if %{with_ruby}
|
|
|
|
%package -n ruby-tomoe
|
|
%package -n ruby-tomoe
|
|
Summary: Tomoe library for Ruby
|
|
Summary: Tomoe library for Ruby
|
|
Summary(ja): Ruby から巴を使うためのライブラリ
|
|
Summary(ja): Ruby から巴を使うためのライブラリ
|
|
Group: System Environment/Libraries
|
|
Group: System Environment/Libraries
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: ruby
|
|
Requires: ruby
|
|
-BuildRequires: ruby-devel, ruby-gnome2-devel
|
|
|
|
|
|
|
|
%description -n ruby-tomoe
|
|
%description -n ruby-tomoe
|
|
Ruby extension library to use Tomoe
|
|
Ruby extension library to use Tomoe
|
|
@@ -98,48 +99,55 @@ ruby-tomoe-devel パッケージには、ruby-tomoe を使うアプリケーシ
|
|
%prep
|
|
%prep
|
|
%setup -q
|
|
%setup -q
|
|
%patch0 -p0 -b .multiarch-conflict
|
|
%patch0 -p0 -b .multiarch-conflict
|
|
|
|
+%patch1 -p0 -b .bz502662
|
|
|
|
+%patch2 -p1 -b .glib
|
|
|
|
|
|
%build
|
|
%build
|
|
autoreconf -vif
|
|
autoreconf -vif
|
|
%configure \
|
|
%configure \
|
|
- --disable-static \
|
|
+ --disable-static \
|
|
|
|
+ --enable-silent-rules \
|
|
|
|
+%if %{without python}
|
|
|
|
+ --without-python \
|
|
|
|
+%endif
|
|
|
|
+%if %{with ruby}
|
|
--with-ruby-extdir=%{rarchdir} \
|
|
--with-ruby-extdir=%{rarchdir} \
|
|
- --with-ruby-libdir=%{rlibdir}
|
|
+ --with-ruby-libdir=%{rlibdir} \
|
|
-%__make %{?_smp_mflags}
|
|
+%else
|
|
|
|
+ --without-ruby \
|
|
|
|
+%endif
|
|
|
|
+ --enable-gtk-doc
|
|
|
|
+
|
|
|
|
+make %{?_smp_mflags}
|
|
|
|
|
|
%install
|
|
%install
|
|
-%__rm -rf $RPM_BUILD_ROOT
|
|
+rm -rf $RPM_BUILD_ROOT
|
|
-%__make DESTDIR=%{buildroot} install
|
|
+make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
|
|
|
-%if !%{with_ruby}
|
|
+%if %{with ruby}
|
|
-rm -f $RPM_BUILD_ROOT%{_libdir}/ruby/site_ruby/*/tomoe.rb $RPM_BUILD_ROOT%{_libdir}/ruby/site_ruby/*/*-linux/*
|
|
+#rm -f $RPM_BUILD_ROOT%{_libdir}/ruby/site_ruby/*/tomoe.rb $RPM_BUILD_ROOT%{_libdir}/ruby/site_ruby/*/*-linux/*
|
|
-%endif
|
|
|
|
chmod 755 $RPM_BUILD_ROOT%{_datadir}/%{name}/xml2est.rb
|
|
chmod 755 $RPM_BUILD_ROOT%{_datadir}/%{name}/xml2est.rb
|
|
|
|
+%endif
|
|
|
|
|
|
# remove unneeded files
|
|
# remove unneeded files
|
|
-%__rm -f %{buildroot}%{_libdir}/tomoe/module/dict/libmysql.*
|
|
+rm -f $RPM_BUILD_ROOT%{_libdir}/tomoe/module/dict/libmysql.*
|
|
-%__rm -f %{buildroot}%{_libdir}/tomoe/module/dict/libsvn.*
|
|
+rm -f $RPM_BUILD_ROOT%{_libdir}/tomoe/module/dict/libsvn.*
|
|
-find ${RPM_BUILD_ROOT} -name '*.la' | xargs rm
|
|
+find $RPM_BUILD_ROOT -name '*.la' | xargs rm
|
|
|
|
|
|
-%if !%{with_python}
|
|
+#%if !%{with ruby}
|
|
-%__rm -f %{buildroot}%{_libdir}/python?.?/site-packages/tomoe.so
|
|
+#rm -rf %{buildroot}%{rarchdir}
|
|
-%endif
|
|
+#rm -rf %{buildroot}%{rlibdir}
|
|
-
|
|
+#endif
|
|
-%if !%{with_ruby}
|
|
|
|
-%__rm -rf %{buildroot}%{rarchdir}
|
|
|
|
-%__rm -rf %{buildroot}%{rlibdir}
|
|
|
|
-%endif
|
|
|
|
|
|
|
|
%find_lang %{name}
|
|
%find_lang %{name}
|
|
|
|
|
|
%clean
|
|
%clean
|
|
-%__rm -rf %{buildroot}
|
|
+rm -rf $RPM_BUILD_ROOT
|
|
|
|
+
|
|
|
|
+%post -p /sbin/ldconfig
|
|
|
|
|
|
-%post
|
|
+%postun -p /sbin/ldconfig
|
|
-%{_syssbindir}/ldconfig
|
|
|
|
|
|
|
|
-%postun
|
|
|
|
-%{_syssbindir}/ldconfig
|
|
|
|
|
|
|
|
%files -f %{name}.lang
|
|
%files -f %{name}.lang
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
@@ -147,6 +155,9 @@ find ${RPM_BUILD_ROOT} -name '*.la' | xargs rm
|
|
%dir %{_sysconfdir}/tomoe
|
|
%dir %{_sysconfdir}/tomoe
|
|
%config(noreplace) %{_sysconfdir}/tomoe/config
|
|
%config(noreplace) %{_sysconfdir}/tomoe/config
|
|
%{_libdir}/*.so.*
|
|
%{_libdir}/*.so.*
|
|
|
|
+%if %{with python}
|
|
|
|
+%{_libdir}/python?.?/site-packages/tomoe.so
|
|
|
|
+%endif
|
|
%dir %{_libdir}/tomoe
|
|
%dir %{_libdir}/tomoe
|
|
%dir %{_libdir}/tomoe/module
|
|
%dir %{_libdir}/tomoe/module
|
|
%dir %{_libdir}/tomoe/module/dict
|
|
%dir %{_libdir}/tomoe/module/dict
|
|
@@ -155,7 +166,6 @@ find ${RPM_BUILD_ROOT} -name '*.la' | xargs rm
|
|
%{_libdir}/tomoe/module/recognizer/*.so
|
|
%{_libdir}/tomoe/module/recognizer/*.so
|
|
%{_datadir}/tomoe
|
|
%{_datadir}/tomoe
|
|
|
|
|
|
-
|
|
|
|
%files devel
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
%{_includedir}/tomoe
|
|
%{_includedir}/tomoe
|
|
@@ -163,15 +173,7 @@ find ${RPM_BUILD_ROOT} -name '*.la' | xargs rm
|
|
%{_libdir}/*.so
|
|
%{_libdir}/*.so
|
|
%{_datadir}/gtk-doc/html/tomoe
|
|
%{_datadir}/gtk-doc/html/tomoe
|
|
|
|
|
|
-
|
|
+%if %{with ruby}
|
|
-%if %{with_python}
|
|
|
|
-%files -n python-tomoe
|
|
|
|
-%defattr(-,root,root,-)
|
|
|
|
-%{_libdir}/python?.?/site-packages/tomoe.so
|
|
|
|
-%endif
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-%if %{with_ruby}
|
|
|
|
%files -n ruby-tomoe
|
|
%files -n ruby-tomoe
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
%{rarchdir}/*.so.*
|
|
%{rarchdir}/*.so.*
|
|
@@ -184,6 +186,14 @@ find ${RPM_BUILD_ROOT} -name '*.la' | xargs rm
|
|
%endif
|
|
%endif
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Mon Nov 10 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.6.0-3
|
|
|
|
+- rebuilt on current VineSeed
|
|
|
|
+- added Patch1 and 2 from Fedora
|
|
|
|
+ * Tue Jul 24 2012 Peng Wu <pwu@redhat.com> - 0.6.0-22
|
|
|
|
+ - Fixes glib includes
|
|
|
|
+ * Tue Jun 2 2009 Ding-Yi Chen <dchen at redhat.com> - 0.6.0-14
|
|
|
|
+ - [Bug 502662] SCIM-tomoe doesn't load - no error msgs
|
|
|
|
+
|
|
* Sun Oct 03 2010 Shu KONNO <owa@bg.wakwak.com> 0.6.0-2
|
|
* Sun Oct 03 2010 Shu KONNO <owa@bg.wakwak.com> 0.6.0-2
|
|
- rebuilt with rpm-4.8.1 for pkg-config
|
|
- rebuilt with rpm-4.8.1 for pkg-config
|
|
|
|
|