Browse Source

2014-11-11 Ryoichi INAGAKI <ryo1@toki.waseda.jp>

	* tomoe: updated
	* zinnia: rebuilt
	


git-svn-id: http://trac.vinelinux.org/repos/projects/specs@9077 ec354946-7b23-47d6-9f5a-488ba84defc7
inagaki 9 years ago
parent
commit
fd670f7280
2 changed files with 93 additions and 81 deletions
  1. 78 68
      t/tomoe/tomoe-vl.spec
  2. 15 13
      z/zinnia/zinnia-vl.spec

+ 78 - 68
t/tomoe/tomoe-vl.spec

@@ -1,29 +1,44 @@
-%define with_python	0
-
-# build ruby extension
-%define with_ruby	%{?_with_ruby:1}%{!?_with_ruby:0}
-
-%define	__libtoolize	/bin/true
+# to activate, add --with [python|ruby] to rpmbuild
+%bcond_with python
+%bcond_with ruby
 
 Summary:	Japanese handwritten input system
 Summary(ja):	日本語手書き文字認識エンジン
 Name:		tomoe
 Version:	0.6.0
-Release:	2%{?_dist_release}
+Release:	3%{?_dist_release}
 Group:		System Environment/Libraries
-License:	LGPL
+License:	LGPLv2
 URL:		http://tomoe.sourceforge.jp/
+
 Source0:	tomoe-%{version}.tar.gz
 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
-BuildRequires:	gtk-doc >= 1.4, libxslt
+BuildRequires:  gettext
 BuildRequires:	glib2-devel >= 2.4.0
-#BuildRequires:	neon-devel
-#BuildRequires:	apr-devel, subversion-devel
-#BUildRequires:	MySQL-devel
-BuildRequires:	unzip
-Requires:	glib2 >= 2.4.0
-Requires:		ldconfig
+BuildRequires:	gtk-doc >= 1.4
+BuildRequires:	intltool
+BuildRequires:	libtool
+BuildRequires:  perl(XML::Parser)
+BuildRequires:  python
+%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
 A program which does Japanese handwriting recognition.
@@ -37,6 +52,10 @@ Summary(ja):	tomoe アプリケーション開発用ヘッダファイル
 Group:		Development/Libraries
 Requires:	%{name} = %{version}-%{release}
 Requires:	pkgconfig
+%if %{with python}
+Requires:       pygobject-devel
+Provides:       python-tomoe-devel = %{version}-%{release}
+%endif
 
 %description devel
 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 を使うアプリケーションを開発するための
 ヘッダファイルが含まれています。
 
-%if %{with_python}
-%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}
+%if %{with ruby}
 %package -n ruby-tomoe
 Summary:	Tomoe library for Ruby
 Summary(ja):	Ruby から巴を使うためのライブラリ
 Group:		System Environment/Libraries
 Requires:	%{name} = %{version}-%{release}
 Requires:	ruby
-BuildRequires:	ruby-devel, ruby-gnome2-devel
 
 %description -n ruby-tomoe
 Ruby extension library to use Tomoe
@@ -98,48 +99,55 @@ ruby-tomoe-devel パッケージには、ruby-tomoe を使うアプリケーシ
 %prep
 %setup -q
 %patch0 -p0 -b .multiarch-conflict
+%patch1 -p0 -b .bz502662
+%patch2 -p1 -b .glib
 
 %build
 autoreconf -vif
 %configure \
-	--disable-static \
+        --disable-static \
+        --enable-silent-rules \
+%if %{without python}
+        --without-python \
+%endif
+%if %{with ruby}
 	--with-ruby-extdir=%{rarchdir} \
-	--with-ruby-libdir=%{rlibdir}
-%__make %{?_smp_mflags}
+	--with-ruby-libdir=%{rlibdir} \
+%else
+	--without-ruby \
+%endif
+	--enable-gtk-doc 
+
+make %{?_smp_mflags}
 
 %install
-%__rm -rf $RPM_BUILD_ROOT
-%__make DESTDIR=%{buildroot} install
+rm -rf $RPM_BUILD_ROOT
+make DESTDIR=$RPM_BUILD_ROOT install
 
-%if !%{with_ruby}
-rm -f $RPM_BUILD_ROOT%{_libdir}/ruby/site_ruby/*/tomoe.rb $RPM_BUILD_ROOT%{_libdir}/ruby/site_ruby/*/*-linux/*
-%endif
+%if %{with ruby}
+#rm -f $RPM_BUILD_ROOT%{_libdir}/ruby/site_ruby/*/tomoe.rb $RPM_BUILD_ROOT%{_libdir}/ruby/site_ruby/*/*-linux/*
 chmod 755 $RPM_BUILD_ROOT%{_datadir}/%{name}/xml2est.rb
+%endif
 
 # remove unneeded files
-%__rm -f %{buildroot}%{_libdir}/tomoe/module/dict/libmysql.*
-%__rm -f %{buildroot}%{_libdir}/tomoe/module/dict/libsvn.*
-find ${RPM_BUILD_ROOT} -name '*.la' | xargs rm
+rm -f $RPM_BUILD_ROOT%{_libdir}/tomoe/module/dict/libmysql.*
+rm -f $RPM_BUILD_ROOT%{_libdir}/tomoe/module/dict/libsvn.*
+find $RPM_BUILD_ROOT -name '*.la' | xargs rm
 
-%if !%{with_python}
-%__rm -f %{buildroot}%{_libdir}/python?.?/site-packages/tomoe.so
-%endif
-
-%if !%{with_ruby}
-%__rm -rf %{buildroot}%{rarchdir}
-%__rm -rf %{buildroot}%{rlibdir}
-%endif
+#%if !%{with ruby}
+#rm -rf %{buildroot}%{rarchdir}
+#rm -rf %{buildroot}%{rlibdir}
+#endif
 
 %find_lang %{name}
 
 %clean
-%__rm -rf %{buildroot}
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
 
-%post
-%{_syssbindir}/ldconfig
+%postun -p /sbin/ldconfig
 
-%postun
-%{_syssbindir}/ldconfig
 
 %files -f %{name}.lang
 %defattr(-,root,root,-)
@@ -147,6 +155,9 @@ find ${RPM_BUILD_ROOT} -name '*.la' | xargs rm
 %dir %{_sysconfdir}/tomoe
 %config(noreplace) %{_sysconfdir}/tomoe/config
 %{_libdir}/*.so.*
+%if %{with python}
+%{_libdir}/python?.?/site-packages/tomoe.so
+%endif
 %dir %{_libdir}/tomoe
 %dir %{_libdir}/tomoe/module
 %dir %{_libdir}/tomoe/module/dict
@@ -155,7 +166,6 @@ find ${RPM_BUILD_ROOT} -name '*.la' | xargs rm
 %{_libdir}/tomoe/module/recognizer/*.so
 %{_datadir}/tomoe
 
-
 %files devel
 %defattr(-,root,root,-)
 %{_includedir}/tomoe
@@ -163,15 +173,7 @@ find ${RPM_BUILD_ROOT} -name '*.la' | xargs rm
 %{_libdir}/*.so
 %{_datadir}/gtk-doc/html/tomoe
 
-
-%if %{with_python}
-%files -n python-tomoe
-%defattr(-,root,root,-)
-%{_libdir}/python?.?/site-packages/tomoe.so
-%endif
-
-
-%if %{with_ruby}
+%if %{with ruby}
 %files -n ruby-tomoe
 %defattr(-,root,root,-)
 %{rarchdir}/*.so.*
@@ -184,6 +186,14 @@ find ${RPM_BUILD_ROOT} -name '*.la' | xargs rm
 %endif
 
 %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
 - rebuilt with rpm-4.8.1 for pkg-config
 

+ 15 - 13
z/zinnia/zinnia-vl.spec

@@ -2,7 +2,7 @@ Summary:	Online handwriting recognition system with machine learning
 Summary:	機械学習ベースのポータブルなオンライン手書き文字認識エンジン
 Name:		zinnia
 Version:	0.06
-Release:	4%{?_dist_release}
+Release:	5%{?_dist_release}
 Group:		System Environment/Libraries
 License:	BSD
 URL:		http://zinnia.sourceforge.net/
@@ -11,9 +11,11 @@ Source1:        http://zinnia.svn.sourceforge.net/viewvc/zinnia/zinnia/tomoe2s.p
 Source2:        Makefile.tomoe
 Patch0:		zinnia-0.05-bindings.patch
 Patch1:		zinnia-0.06-fixes-ppc-float.patch
-BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildRequires:	db4-devel, python-devel
+
+BuildRoot:	%{_tmppath}/%{name}-%{version}-root
+BuildRequires:	libdb-devel
 BuildRequires:	perl(ExtUtils::MakeMaker)
+BuildRequires:  python-devel
 BuildRequires:  tomoe
 
 %description
@@ -29,15 +31,12 @@ highly efficient handwriting recognition models.
 This package contains the shared libraries.
 
 %description -l ja
-Zinniaは機械学習アルゴリズム SVM を用いたポータブルで汎用的なオンライン手書き文字認識
-エンジンです。Zinniaは組み込みの容易さと汎用性を高めるために、文字のレンダリング機能は
-持っていません。Zinniaは文字のストローク情報を座標の連続として受け取り、確からしい順に
-スコア付きでN文字の認識結果を返すだけに機能を限定しています。また、認識エンジンは完全に
-機械学習ベースであるために、文字のみならずユーザの任意のマウス・ペンストロークに対して
-任意の文字列をマッピングするような認識エンジンを小コスト作成することができます。 
+Zinnia は機械学習アルゴリズム SVM を用いたポータブルで汎用的なオンライン手書き文字認識エンジンです。
+Zinniaは組み込みの容易さと汎用性を高めるために、文字のレンダリング機能は持っていません。Zinniaは文字のストローク情報を座標の連続として受け取り、確からしい順にスコア付きでN文字の認識結果を返すだけに機能を限定しています。また、認識エンジンは完全に機械学習ベースであるために、文字のみならずユーザの任意のマウス・ペンストロークに対して任意の文字列をマッピングするような認識エンジンを小コスト作成することができます。 
 
 %package        devel
 Summary:	Development files for %{name}
+Summary(ja):	%{name} の開発用ファイル
 Group:		Development/Libraries
 Requires:	%{name} = %{version}-%{release}
 
@@ -56,7 +55,7 @@ use %{name}.
 
 %package 	doc
 Summary:	Documents for the zinnia library
-Group:		Development/Libraries
+Group:		Documentation
 Requires:	%{name} = %{version}-%{release}
 #BuildArch:	noarch
 
@@ -65,11 +64,11 @@ The %{name}-doc package provide documents for zinnia library that
 use %{name}.
 
 %package  	perl
-Summary:	Perl bindings for %name
+Summary:	Perl bindings for %{name}
 Group:		Development/Libraries
 Requires:	%{name} = %{version}-%{release}
 Requires:	perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
-
+Provides:       perl-zinnia = %{version}-%{release}
 
 %description 	perl
 This package contains perl bindings for %{name}.
@@ -189,7 +188,6 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(-,root,root,-)
 %doc doc/*
 
-
 %files	perl
 %defattr(-,root,root,-)
 %{perl_vendorarch}/auto/%{name}/
@@ -210,7 +208,11 @@ rm -rf $RPM_BUILD_ROOT
 %dir %{_datadir}/zinnia/model/tomoe/
 %{_datadir}/zinnia/model/tomoe/handwriting-zh_CN.model
 
+
 %changelog
+* Mon Nov 10 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.06-5
+- rebuilt with perl 5.16.3
+
 * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.06-4
 - rebuild with python-2.7.2