Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package tomoe for openSUSE:Factory checked 
in at 2021-01-19 16:02:07
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/tomoe (Old)
 and      /work/SRC/openSUSE:Factory/.tomoe.new.28504 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "tomoe"

Tue Jan 19 16:02:07 2021 rev:19 rq:864082 version:0.6.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/tomoe/tomoe.changes      2012-02-16 
15:02:38.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.tomoe.new.28504/tomoe.changes   2021-01-19 
16:02:37.399418868 +0100
@@ -1,0 +2,8 @@
+Thu Jan 14 19:24:00 UTC 2021 - Bj??rn Lie <[email protected]>
+
+- Add tomoe-0.6.0-fixes-set-parse-error.patch and
+  tomoe-0.6.0-strerror.patch: Fix build in current Factory.
+- Run spec-cleaner and modernize spec, drop conditional for ancient
+  version of openSUSE.
+
+-------------------------------------------------------------------

New:
----
  tomoe-0.6.0-fixes-set-parse-error.patch
  tomoe-0.6.0-strerror.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ tomoe.spec ++++++
--- /var/tmp/diff_new_pack.2iEyJI/_old  2021-01-19 16:02:38.483420506 +0100
+++ /var/tmp/diff_new_pack.2iEyJI/_new  2021-01-19 16:02:38.483420506 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package tomoe
 #
-# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,53 +12,43 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 Name:           tomoe
+Version:        0.6.0
+Release:        0
+Summary:        Japanese handwriting recognition engine
+License:        LGPL-2.1-or-later
+Group:          System/I18n/Japanese
+URL:            https://sourceforge.net/projects/tomoe/
+Source:         
http://dfn.dl.sourceforge.net/sourceforge/tomoe/tomoe-0.6.0.tar.bz2
+
+Patch0:         glib-include-fixes.diff
+Patch1:         tomoe-0.6.0-fixes-set-parse-error.patch
+Patch2:         tomoe-0.6.0-strerror.patch
+
 BuildRequires:  glib2-devel
 BuildRequires:  gtk-doc
 BuildRequires:  intltool
 BuildRequires:  libtool
 BuildRequires:  python
 BuildRequires:  ruby-devel
-Version:        0.6.0
-Release:        0
-Url:            http://sourceforge.net/projects/tomoe/
-Source:         
http://dfn.dl.sourceforge.net/sourceforge/tomoe/tomoe-0.6.0.tar.bz2
-Patch0:         glib-include-fixes.diff
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-Summary:        Japanese handwriting recognition engine
-License:        LGPL-2.1+
-Group:          System/I18n/Japanese
 
 %description
 Japanese handwriting recognition engine (Tegaki Online MOji-ninshiki
 Engine)
 
-
-
-Authors:
---------
-    Hiroyuki Komatsu <[email protected]>
-    Hiroaki Nakamura <[email protected]>
-
 %package devel
 Summary:        Include Files and Libraries mandatory for Development
 Group:          System/I18n/Japanese
-Requires:       %{name} = %{version} glib2-devel
+Requires:       %{name} = %{version}
+Requires:       glib2-devel
 
 %description devel
 Include Files and Libraries mandatory for Development
 
-
-
-Authors:
---------
-    Hiroyuki Komatsu <[email protected]>
-    Hiroaki Nakamura <[email protected]>
-
 %package doc
 Summary:        Japanese handwriting recognition engine
 Group:          System/I18n/Japanese
@@ -68,42 +58,29 @@
 Japanese handwriting recognition engine (Tegaki Online MOji-ninshiki
 Engine)
 
-
-
-Authors:
---------
-    Hiroyuki Komatsu <[email protected]>
-    Hiroaki Nakamura <[email protected]>
-
 %prep
-%setup -q
-%patch0 -p1
+%autosetup -p1
 
 %build
 touch INSTALL README ; autoreconf --force --install
-%if %suse_version > 1030
-export CFLAGS="$RPM_OPT_FLAGS"
-%else
-export CFLAGS="$RPM_OPT_FLAGS -O0"
-%endif
-%configure --disable-static --with-pic
-make %{?jobs:-j%jobs}
+export CFLAGS="%{optflags}"
+%configure \
+       --disable-static \
+       --with-pic \
+       %{nil}
+%make_build
 
 %install
-%makeinstall
+%make_install
 %find_lang tomoe
-find %{buildroot} -name "*.la" -delete -print
-
-%clean
-rm -rf $RPM_BUILD_ROOT 
+find %{buildroot} -type f -name "*.la" -delete -print
 
 %post -p /sbin/ldconfig
-
 %postun -p /sbin/ldconfig
 
 %files -f tomoe.lang
-%defattr(-,root,root)
-%doc AUTHORS COPYING ChangeLog NEWS TODO
+%license COPYING
+%doc AUTHORS ChangeLog NEWS TODO
 %{_datadir}/tomoe
 %{_libdir}/*.so
 %{_libdir}/*.so.*
@@ -116,12 +93,10 @@
 %{_sysconfdir}/tomoe
 
 %files devel
-%defattr(-,root,root)
 %{_includedir}/tomoe
 %{_libdir}/pkgconfig/tomoe.pc
 
 %files doc
-%defattr(-,root,root)
 %{_datadir}/gtk-doc/html/tomoe
 
 %changelog

++++++ tomoe-0.6.0-fixes-set-parse-error.patch ++++++
Index: tomoe-0.6.0/lib/tomoe-xml-parser.c
===================================================================
--- tomoe-0.6.0.orig/lib/tomoe-xml-parser.c
+++ tomoe-0.6.0/lib/tomoe-xml-parser.c
@@ -80,9 +80,9 @@ set_parse_error (GMarkupParseContext *co
                 "Invalid content at line %d char %d of %s.",
                 line, chr, data->filename);
 
-    *error = g_error_new (G_MARKUP_ERROR,
-                          G_MARKUP_ERROR_INVALID_CONTENT,
-                          buf);
+    *error = g_error_new_literal (G_MARKUP_ERROR,
+                                  G_MARKUP_ERROR_INVALID_CONTENT,
+                                  buf);
 }
 
 static void

++++++ tomoe-0.6.0-strerror.patch ++++++
diff --git a/lib/tomoe-xml-parser.c b/lib/tomoe-xml-parser.c
index a9e458b..fe50485 100644
--- a/lib/tomoe-xml-parser.c
+++ b/lib/tomoe-xml-parser.c
@@ -441,7 +441,7 @@ tomoe_xml_parser_parse_dictionary_file (const gchar 
*filename,
     f = fopen (filename, "rb");
     if (!f) {
         g_warning ("failed to open dictionary file %s: %s", filename,
-                   sys_errlist[errno]);
+                   strerror(errno));
     }
     g_return_val_if_fail (f, FALSE);
 

Reply via email to