rpms/zinnia/F-13 zinnia-0.06-fixes-ppc-float.patch, NONE, 1.1 zinnia.spec, 1.2, 1.3
Peng Wu
pwu at fedoraproject.org
Fri Jun 4 06:22:53 UTC 2010
Author: pwu
Update of /cvs/pkgs/rpms/zinnia/F-13
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv5715
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/F-13/zinnia.spec,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -p -r1.2 -r1.3
--- zinnia.spec 20 May 2010 08:47:45 -0000 1.2
+++ zinnia.spec 4 Jun 2010 06:22:52 -0000 1.3
@@ -5,7 +5,7 @@
Name: zinnia
Version: 0.06
-Release: 2%{?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,13 @@ 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
+
* Thu May 20 2010 Peng Wu <pwu at redhat.com> - 0.06-2
- Auto generate zinnia tomoe model files,
and includes all model files in zinnia-tomoe noarch sub-package.
More information about the scm-commits
mailing list