rpms/zinnia/devel zinnia-0.06-fixes-ppc-float.patch, NONE, 1.1 zinnia.spec, 1.3, 1.4
Peng Wu
pwu at fedoraproject.org
Fri Jun 4 05:47:58 UTC 2010
Author: pwu
Update of /cvs/pkgs/rpms/zinnia/devel
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv2907
Modified Files:
zinnia.spec
Added Files:
zinnia-0.06-fixes-ppc-float.patch
Log Message:
* Fri Jun 04 2010 Peng Wu <pwu at redhat.com> - 0.06-4
- Add a patch(zinnia-0.06-fixes-ppc-float.patch),
to fixes ppc/ppc64 zinnia tomoe model generating error.
zinnia-0.06-fixes-ppc-float.patch:
feature.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- NEW FILE zinnia-0.06-fixes-ppc-float.patch ---
Index: zinnia-0.06/feature.cpp
===================================================================
--- zinnia-0.06.orig/feature.cpp
+++ zinnia-0.06/feature.cpp
@@ -42,7 +42,7 @@ float minimum_distance(const Node *first
const float a = last->x - first->x;
const float b = last->y - first->y;
- const float c = last->y * first->x - last->x * first->y;
+ const float c = (double)last->y * first->x - (double)last->x * first->y;
float max = -1.0;
for (const Node *n = first; n != last; ++n) {
Index: zinnia.spec
===================================================================
RCS file: /cvs/pkgs/rpms/zinnia/devel/zinnia.spec,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -p -r1.3 -r1.4
--- zinnia.spec 2 Jun 2010 09:53:21 -0000 1.3
+++ zinnia.spec 4 Jun 2010 05:47:58 -0000 1.4
@@ -5,7 +5,7 @@
Name: zinnia
Version: 0.06
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: Online handwriting recognition system with machine learning
Group: System Environment/Libraries
@@ -15,6 +15,7 @@ Source0: http://downloads.sourceforge.ne
Source1: http://zinnia.svn.sourceforge.net/viewvc/zinnia/zinnia/tomoe2s.pl
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, python2-devel
BuildRequires: perl(ExtUtils::MakeMaker)
@@ -90,6 +91,7 @@ This package contains tomoe model files
%prep
%setup -q -n %{name}-%{version}
%patch0 -p1 -b .bindings
+%patch1 -p1 -b .ppc
find . -type f -name ChangeLog -size 0c -exec rm -f {} ';'
find . -type f -name "*.pyc" -exec rm -f {} ';'
cp %{SOURCE1} .
@@ -189,6 +191,10 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/zinnia/model/tomoe/handwriting-zh_CN.model
%changelog
+* Fri Jun 04 2010 Peng Wu <pwu at redhat.com> - 0.06-4
+- Add a patch(zinnia-0.06-fixes-ppc-float.patch),
+ to fixes ppc/ppc64 zinnia tomoe model generating error.
+
* Wed Jun 02 2010 Marcela Maslanova <mmaslano at redhat.com> - 0.06-3
- Mass rebuild with perl-5.12.0
More information about the scm-commits
mailing list