|
@@ -1,31 +1,37 @@
|
|
-%define with_python 0
|
|
|
|
-
|
|
|
|
%define _tomoe_ver 0.6.0
|
|
%define _tomoe_ver 0.6.0
|
|
|
|
+%bcond_with python
|
|
|
|
|
|
-Summary: A class library for tomoe's GUI parts
|
|
|
|
-Summary(ja): tomoe の GUI パーツのクラスライブラリ
|
|
|
|
|
|
+Summary: Gtk library for tomoe for Japanese and Chinese handwritten input
|
|
|
|
+Summary(ja): tomoe の GTK ライブラリ
|
|
Name: tomoe-gtk
|
|
Name: tomoe-gtk
|
|
Version: 0.6.0
|
|
Version: 0.6.0
|
|
-Release: 2%{?_dist_release}
|
|
|
|
-Group: System Environment/Libraries
|
|
|
|
|
|
+Release: 3%{?_dist_release}
|
|
|
|
+
|
|
License: LGPL
|
|
License: LGPL
|
|
|
|
+Group: System Environment/Libraries
|
|
URL: http://tomoe.sourceforge.jp/
|
|
URL: http://tomoe.sourceforge.jp/
|
|
|
|
+
|
|
Source0: tomoe-gtk-%{version}.tar.gz
|
|
Source0: tomoe-gtk-%{version}.tar.gz
|
|
|
|
+
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
-BuildRequires: tomoe-devel >= %{_tomoe_ver}
|
|
|
|
-BuildRequires: gtk2-devel >= 2.4.0, gtk-doc >= 1.4
|
|
|
|
|
|
+BuildRequires: gtk-doc >= 1.4
|
|
|
|
+BuildRequires: gtk2-devel >= 2.4.0
|
|
# does not currently build with gucharmap-2
|
|
# does not currently build with gucharmap-2
|
|
#BuildRequires: gucharmap-devel
|
|
#BuildRequires: gucharmap-devel
|
|
|
|
+BuildRequires: tomoe-devel >= %{_tomoe_ver}
|
|
|
|
+
|
|
|
|
+
|
|
Requires: tomoe >= %{_tomoe_ver}
|
|
Requires: tomoe >= %{_tomoe_ver}
|
|
Requires: gtk2 >= 2.4.0
|
|
Requires: gtk2 >= 2.4.0
|
|
-Requires(post): ldconfig
|
|
|
|
Obsoletes: libtomoe-gtk < 0.6.0
|
|
Obsoletes: libtomoe-gtk < 0.6.0
|
|
|
|
|
|
%description
|
|
%description
|
|
-The tomoe-gtk is a class library for tomoe's GUI parts.
|
|
|
|
|
|
+Gtk library for tomoe Japanese handwritten input.
|
|
|
|
+This package is used by scim-tomoe or uim-tomoe.
|
|
|
|
|
|
%description -l ja
|
|
%description -l ja
|
|
-tomoe-gtk は tomoe の GUI パーツのクラスライブラリです。
|
|
|
|
|
|
+手書き文字認識エンジン tomoe の gtk ライブラリです。
|
|
|
|
+scim-tomoe または uim-tomoe に用いられます。
|
|
|
|
|
|
%package devel
|
|
%package devel
|
|
Summary: Header files for developing tomoe-gtk applications
|
|
Summary: Header files for developing tomoe-gtk applications
|
|
@@ -33,20 +39,18 @@ Summary(ja): tomoe-gtk アプリケーション開発用ヘッダファイル
|
|
Group: Development/Libraries
|
|
Group: Development/Libraries
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: tomoe-devel >= %{_tomoe_ver}
|
|
Requires: tomoe-devel >= %{_tomoe_ver}
|
|
-Requires: gucharmap-devel >= 1.4.0
|
|
|
|
|
|
+#Requires: gucharmap-devel >= 1.4.0
|
|
Requires: pkgconfig
|
|
Requires: pkgconfig
|
|
Obsoletes: libtomoe-gtk-devel < 0.6.0
|
|
Obsoletes: libtomoe-gtk-devel < 0.6.0
|
|
|
|
|
|
%description devel
|
|
%description devel
|
|
The tomoe-gtk-devel package includes the header files for the tomoe-gtk
|
|
The tomoe-gtk-devel package includes the header files for the tomoe-gtk
|
|
package.
|
|
package.
|
|
-Install this package if you want to develop programs which use tomoe-gtk.
|
|
|
|
|
|
|
|
%description -l ja devel
|
|
%description -l ja devel
|
|
-tomoe-gtk-devel パッケージには、tomoe-gtk を使うアプリケーションを開発
|
|
|
|
-するためのヘッダファイルが含まれています。
|
|
|
|
|
|
+tomoe-gtk-devel パッケージには、tomoe-gtk を使うアプリケーションを開発するためのヘッダファイルが含まれています。
|
|
|
|
|
|
-%if %{with_python}
|
|
|
|
|
|
+%if %{with python}
|
|
%package -n python-tomoe-gtk
|
|
%package -n python-tomoe-gtk
|
|
Summary: tomoe-gtk library for Python binding
|
|
Summary: tomoe-gtk library for Python binding
|
|
Summary(ja): Python から tomoe-gtk を使うためのライブラリ
|
|
Summary(ja): Python から tomoe-gtk を使うためのライブラリ
|
|
@@ -54,11 +58,12 @@ Group: System Environment/Libraries
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: python
|
|
Requires: python
|
|
BuildRequires: python-devel
|
|
BuildRequires: python-devel
|
|
|
|
+BuildRequires: pygobject-devel
|
|
|
|
|
|
-%description -n python-tomoe
|
|
|
|
|
|
+%description -n python-tomoe-gtk
|
|
Python extension library to use tomoe-gtk
|
|
Python extension library to use tomoe-gtk
|
|
|
|
|
|
-%description -l ja -n python-tomoe
|
|
|
|
|
|
+%description -l ja -n python-tomoe-gtk
|
|
Python から tomoe-gtk を使うための拡張ライブラリです。
|
|
Python から tomoe-gtk を使うための拡張ライブラリです。
|
|
%endif
|
|
%endif
|
|
|
|
|
|
@@ -69,6 +74,7 @@ Python から tomoe-gtk を使うための拡張ライブラリです。
|
|
%build
|
|
%build
|
|
%configure \
|
|
%configure \
|
|
--disable-static \
|
|
--disable-static \
|
|
|
|
+ %{!?with_python: --without-python } \
|
|
--without-gucharmap
|
|
--without-gucharmap
|
|
|
|
|
|
%__make %{?_smp_mflags}
|
|
%__make %{?_smp_mflags}
|
|
@@ -81,20 +87,15 @@ Python から tomoe-gtk を使うための拡張ライブラリです。
|
|
## remove unuse files
|
|
## remove unuse files
|
|
find ${RPM_BUILD_ROOT} -name '*.la' | xargs rm
|
|
find ${RPM_BUILD_ROOT} -name '*.la' | xargs rm
|
|
|
|
|
|
-%if !%{with_python}
|
|
|
|
-%__rm -f %{buildroot}%{_libdir}/python?.?/site-packages/gtk-?.?/tomoegtk.so
|
|
|
|
-%endif
|
|
|
|
|
|
|
|
%find_lang %{name}
|
|
%find_lang %{name}
|
|
|
|
|
|
%clean
|
|
%clean
|
|
%__rm -rf %{buildroot}
|
|
%__rm -rf %{buildroot}
|
|
|
|
|
|
-%post
|
|
|
|
-%{_syssbindir}/ldconfig
|
|
|
|
|
|
+%post -p %{_syssbindir}/ldconfig
|
|
|
|
|
|
-%postun
|
|
|
|
-%{_syssbindir}/ldconfig
|
|
|
|
|
|
+%postun -p %{_syssbindir}/ldconfig
|
|
|
|
|
|
|
|
|
|
%files -f %{name}.lang
|
|
%files -f %{name}.lang
|
|
@@ -110,8 +111,17 @@ find ${RPM_BUILD_ROOT} -name '*.la' | xargs rm
|
|
%{_libdir}/*.so
|
|
%{_libdir}/*.so
|
|
%{_datadir}/gtk-doc/html/libtomoe-gtk
|
|
%{_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
|
|
%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
|
|
* 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
|
|
|
|
|