commit sunpinyin for openSUSE:Factory

2018-06-29 Thread root
Hello community,

here is the log from the commit of package sunpinyin for openSUSE:Factory 
checked in at 2018-06-29 22:31:19

Comparing /work/SRC/openSUSE:Factory/sunpinyin (Old)
 and  /work/SRC/openSUSE:Factory/.sunpinyin.new (New)


Package is "sunpinyin"

Fri Jun 29 22:31:19 2018 rev:15 rq:618066 version:2.0.99

Changes:

--- /work/SRC/openSUSE:Factory/sunpinyin/sunpinyin.changes  2017-11-24 
10:57:31.473592579 +0100
+++ /work/SRC/openSUSE:Factory/.sunpinyin.new/sunpinyin.changes 2018-06-29 
22:31:44.378240093 +0200
@@ -1,0 +2,5 @@
+Tue Jun 19 14:16:59 UTC 2018 - sch...@suse.de
+
+- sunpinyin-aarch64.patch: Remove obsolete patch
+
+---

Old:

  sunpinyin-aarch64.patch



Other differences:
--
++ sunpinyin.spec ++
--- /var/tmp/diff_new_pack.FCf9Pl/_old  2018-06-29 22:31:45.414239301 +0200
+++ /var/tmp/diff_new_pack.FCf9Pl/_new  2018-06-29 22:31:45.414239301 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package sunpinyin
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -20,7 +20,7 @@
 Version:2.0.99
 Release:0
 Summary:A Statistical Language Model Based Chinese Input Method
-License:LGPL-2.1+
+License:LGPL-2.1-or-later
 Group:  System/I18n/Chinese
 Url:https://github.com/sunpinyin/sunpinyin
 Source: 
https://github.com/sunpinyin/sunpinyin/archive/v3.0.0-rc1/%{name}-3.0.0-rc1.tar.gz
@@ -28,7 +28,6 @@
 Source1:
http://jaist.dl.sourceforge.net/project/open-gram/lm_sc.3gm.arpa-20140820.tar.bz2
 Source2:
http://jaist.dl.sourceforge.net/project/open-gram/dict.utf8-20131214.tar.bz2
 Source3:sunpinyin-dictgen-local.mk.in
-Patch0: sunpinyin-aarch64.patch
 #PATCH-FIX-UPSTREAM marguer...@opensuse.org do not download online
 Patch1: no-download.patch
 #PATCH-FIX-UPSTREAM bmwiedem...@opensuse.org make build reproducible
@@ -87,7 +86,6 @@
 
 %prep
 %setup -q -n %{name}-3.0.0-rc1
-%patch0 -p1
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1




commit sunpinyin for openSUSE:Factory

2017-11-24 Thread root
Hello community,

here is the log from the commit of package sunpinyin for openSUSE:Factory 
checked in at 2017-11-24 10:57:29

Comparing /work/SRC/openSUSE:Factory/sunpinyin (Old)
 and  /work/SRC/openSUSE:Factory/.sunpinyin.new (New)


Package is "sunpinyin"

Fri Nov 24 10:57:29 2017 rev:14 rq:545055 version:2.0.99

Changes:

--- /work/SRC/openSUSE:Factory/sunpinyin/sunpinyin.changes  2017-09-13 
22:35:18.561591704 +0200
+++ /work/SRC/openSUSE:Factory/.sunpinyin.new/sunpinyin.changes 2017-11-24 
10:57:31.473592579 +0100
@@ -1,0 +2,6 @@
+Thu Nov 23 16:50:07 UTC 2017 - dims...@opensuse.org
+
+- Add sunpinyin-scons-on-py3.patch: Fix build with scons using
+  python3 as interpreter.
+
+---

New:

  sunpinyin-scons-on-py3.patch



Other differences:
--
++ sunpinyin.spec ++
--- /var/tmp/diff_new_pack.YtXxGJ/_old  2017-11-24 10:57:33.189529914 +0100
+++ /var/tmp/diff_new_pack.YtXxGJ/_new  2017-11-24 10:57:33.193529768 +0100
@@ -33,6 +33,8 @@
 Patch1: no-download.patch
 #PATCH-FIX-UPSTREAM bmwiedem...@opensuse.org make build reproducible
 Patch2: reproducible.patch
+# PATCH-FIx-UPSTREAM sunpinyin-scons-on-py3.patch dims...@opensuse.org -- Fix 
build with scons using python3 as interpreter
+Patch3: sunpinyin-scons-on-py3.patch
 BuildRequires:  gcc-c++
 BuildRequires:  pkg-config
 BuildRequires:  scons
@@ -88,6 +90,7 @@
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 cp -r %{SOURCE1} .
 cp -r %{SOURCE2} .
 cp -r %{SOURCE3} src

++ sunpinyin-scons-on-py3.patch ++
Index: sunpinyin-3.0.0-rc1/SConstruct
===
--- sunpinyin-3.0.0-rc1.orig/SConstruct
+++ sunpinyin-3.0.0-rc1/SConstruct
@@ -1,6 +1,7 @@
 import platform
 import os
 import sys
+import functools
 
 
 version = "2.0.4"
@@ -227,7 +228,7 @@ def CreateEnvironment():
 def PassVariables(envvar, env):
 for (x, y) in envvar:
 if x in os.environ:
-print 'Warning: you\'ve set %s in the environmental variable!' % x
+print ('Warning: you\'ve set %s in the environmental variable!' % 
x)
 env[y] = os.environ[x]
 
 env = CreateEnvironment()
@@ -429,7 +430,7 @@ env.Substfile('sunpinyin-2.0.pc.in', SUB
 '@PREFIX@': env['PREFIX'],
 '@LIBDIR@': env['LIBDIR'],
 '@VERSION@': version,
-'@CFLAGS@': reduce(lambda a, b: a + ' ' + b,
+'@CFLAGS@': functools.reduce(lambda a, b: a + ' ' + b,
map(lambda x: '-I$${includedir}' + x[3:],
sorted(allinc(,
 })
Index: sunpinyin-3.0.0-rc1/src/SConscript
===
--- sunpinyin-3.0.0-rc1.orig/src/SConscript
+++ sunpinyin-3.0.0-rc1/src/SConscript
@@ -53,7 +53,7 @@ env.Substfile('sunpinyin-dictgen.mk.in',
 })
 env.Command('sunpinyin-dictgen', 'sunpinyin-dictgen.mk', [
 Copy("$TARGET", "$SOURCE"),
-Chmod("$TARGET", 0755),
+Chmod("$TARGET", 0o755),
 ])
 
 env.Substfile('sunpinyin-dictgen-local.mk.in', SUBST_DICT={
@@ -64,7 +64,7 @@ env.Substfile('sunpinyin-dictgen-local.m
 })
 env.Command('sunpinyin-dictgen-local', 'sunpinyin-dictgen-local.mk', [
 Copy("$TARGET", "$SOURCE"),
-Chmod("$TARGET", 0755),
+Chmod("$TARGET", 0o755),
 ])
 
 # -*- indent-tabs-mode: nil -*- vim:et:ts=4



commit sunpinyin for openSUSE:Factory

2017-09-13 Thread root
Hello community,

here is the log from the commit of package sunpinyin for openSUSE:Factory 
checked in at 2017-09-13 22:33:54

Comparing /work/SRC/openSUSE:Factory/sunpinyin (Old)
 and  /work/SRC/openSUSE:Factory/.sunpinyin.new (New)


Package is "sunpinyin"

Wed Sep 13 22:33:54 2017 rev:13 rq:523487 version:2.0.99

Changes:

--- /work/SRC/openSUSE:Factory/sunpinyin/sunpinyin.changes  2017-05-03 
15:58:28.621325448 +0200
+++ /work/SRC/openSUSE:Factory/.sunpinyin.new/sunpinyin.changes 2017-09-13 
22:35:18.561591704 +0200
@@ -1,0 +2,23 @@
+Tue Sep 12 02:19:43 UTC 2017 - hillw...@opensuse.org
+
+- Update to 3.0.0rc1
+  * fix the pod2man invocations: 63ef4bb
+  * Add support for DESTDIR: 9232a1e
+  * add travis-ci integration: f01c99e
+  * fixed the FTBFS on gcc6: 844ad0f
+  * handle AArch64 architecture: 96b3342
+  * hacks to support ve/ue: cf3fe3d
+  * shuangpin related fixes: 33091ba, 4c1acf5
+  * Support 'ng', 'hm' and 'rua': 3bbbf8f
+  * Use lve/nve instead of lue/nue: 4f9745c
+  * fix invalid 'yai' case: d6e9f34
+  * fixed the userdict saving issue: 7d8b8b1
+  * expose userdict to public, easier to import user dict.: a4bfe22
+  * fix crashes, merge the duplicate sentences: fa7ec5f
+  * optimized the add operation from O(n) to O(log n): 08f5da8
+  * fixed crash in preeditstring when partial commit with empty pinyin: b728af3
+  * add Python plugin support. refact uiobjects: CCandidateList and 
CPreeditString: 57370b8
+- Fix doc filelist.
+- Remove useless %post and %postun.
+
+---

Old:

  _service
  _servicedata
  sunpinyin-2.0.4+git20160225.844ad0f.tar.xz

New:

  sunpinyin-3.0.0-rc1.tar.gz



Other differences:
--
++ sunpinyin.spec ++
--- /var/tmp/diff_new_pack.rf7HMc/_old  2017-09-13 22:35:19.861408691 +0200
+++ /var/tmp/diff_new_pack.rf7HMc/_new  2017-09-13 22:35:19.861408691 +0200
@@ -17,13 +17,13 @@
 
 
 Name:   sunpinyin
-Version:2.0.4+git20160225.844ad0f
+Version:2.0.99
 Release:0
 Summary:A Statistical Language Model Based Chinese Input Method
 License:LGPL-2.1+
 Group:  System/I18n/Chinese
 Url:https://github.com/sunpinyin/sunpinyin
-Source: %{name}-%{version}.tar.xz
+Source: 
https://github.com/sunpinyin/sunpinyin/archive/v3.0.0-rc1/%{name}-3.0.0-rc1.tar.gz
 # https://sourceforge.net/projects/open-gram
 Source1:
http://jaist.dl.sourceforge.net/project/open-gram/lm_sc.3gm.arpa-20140820.tar.bz2
 Source2:
http://jaist.dl.sourceforge.net/project/open-gram/dict.utf8-20131214.tar.bz2
@@ -34,12 +34,11 @@
 #PATCH-FIX-UPSTREAM bmwiedem...@opensuse.org make build reproducible
 Patch2: reproducible.patch
 BuildRequires:  gcc-c++
-BuildRequires:  gtk2-devel
 BuildRequires:  pkg-config
-BuildRequires:  python-devel
 BuildRequires:  scons
-BuildRequires:  sqlite3-devel
-BuildRequires:  xz
+BuildRequires:  pkgconfig(gtk+-2.0)
+BuildRequires:  pkgconfig(python2)
+BuildRequires:  pkgconfig(sqlite3)
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
 %description
@@ -85,7 +84,7 @@
 This package provides development headers for it.
 
 %prep
-%setup -q
+%setup -q -n %{name}-3.0.0-rc1
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
@@ -98,7 +97,10 @@
 scons --prefix=%{_prefix}
 
 %install
-scons --prefix=%{_prefix} --libdir=%{_libdir} --install-sandbox=%{buildroot} 
install
+scons --prefix=%{_prefix} \
+  --libdir=%{_libdir} \
+  --install-sandbox=%{buildroot} \
+  install
 
 # make dicts
 src/sunpinyin-dictgen-local
@@ -113,13 +115,9 @@
 
 %postun -n lib%{name}3 -p /sbin/ldconfig
 
-%post -n %{name}-tools -p /sbin/ldconfig
-
-%postun -n %{name}-tools -p /sbin/ldconfig
-
 %files -n lib%{name}3
 %defattr(-,root,root)
-%doc AUTHORS NEWS LGPL.LICENSE doc/README doc/SLM-inst.mk doc/SLM-train.mk
+%doc AUTHORS NEWS COPYING LGPL.LICENSE OPENSOLARIS.LICENSE README.md TODO
 %{_libdir}/lib%{name}.so.*
 
 %files data




commit sunpinyin for openSUSE:Factory

2017-05-03 Thread root
Hello community,

here is the log from the commit of package sunpinyin for openSUSE:Factory 
checked in at 2017-05-03 15:58:28

Comparing /work/SRC/openSUSE:Factory/sunpinyin (Old)
 and  /work/SRC/openSUSE:Factory/.sunpinyin.new (New)


Package is "sunpinyin"

Wed May  3 15:58:28 2017 rev:12 rq:492528 version:2.0.4+git20160225.844ad0f

Changes:

--- /work/SRC/openSUSE:Factory/sunpinyin/sunpinyin.changes  2016-03-16 
10:36:05.0 +0100
+++ /work/SRC/openSUSE:Factory/.sunpinyin.new/sunpinyin.changes 2017-05-03 
15:58:28.621325448 +0200
@@ -1,0 +2,5 @@
+Tue May  2 13:27:26 UTC 2017 - bwiedem...@suse.com
+
+- Add reproducible.patch to make build fully reproducible
+
+---

New:

  reproducible.patch



Other differences:
--
++ sunpinyin.spec ++
--- /var/tmp/diff_new_pack.Ll0dpu/_old  2017-05-03 15:58:30.117114283 +0200
+++ /var/tmp/diff_new_pack.Ll0dpu/_new  2017-05-03 15:58:30.121113719 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package sunpinyin
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -31,6 +31,8 @@
 Patch0: sunpinyin-aarch64.patch
 #PATCH-FIX-UPSTREAM marguer...@opensuse.org do not download online
 Patch1: no-download.patch
+#PATCH-FIX-UPSTREAM bmwiedem...@opensuse.org make build reproducible
+Patch2: reproducible.patch
 BuildRequires:  gcc-c++
 BuildRequires:  gtk2-devel
 BuildRequires:  pkg-config
@@ -86,6 +88,7 @@
 %setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 cp -r %{SOURCE1} .
 cp -r %{SOURCE2} .
 cp -r %{SOURCE3} src

++ reproducible.patch ++
sort the includes to make sure they are always listed in the same order
to make builds reproducible

Index: sunpinyin-2.0.4+git20160225.844ad0f/SConstruct
===
--- sunpinyin-2.0.4+git20160225.844ad0f.orig/SConstruct
+++ sunpinyin-2.0.4+git20160225.844ad0f/SConstruct
@@ -431,7 +431,7 @@ env.Substfile('sunpinyin-2.0.pc.in', SUB
 '@VERSION@': version,
 '@CFLAGS@': reduce(lambda a, b: a + ' ' + b,
map(lambda x: '-I$${includedir}' + x[3:],
-   allinc())),
+   sorted(allinc(,
 })
 
 libname_default = '%ssunpinyin%s' % (env.subst('${SHLIBPREFIX}'),



commit sunpinyin for openSUSE:Factory

2016-03-16 Thread h_root
Hello community,

here is the log from the commit of package sunpinyin for openSUSE:Factory 
checked in at 2016-03-16 10:35:54

Comparing /work/SRC/openSUSE:Factory/sunpinyin (Old)
 and  /work/SRC/openSUSE:Factory/.sunpinyin.new (New)


Package is "sunpinyin"

Changes:

--- /work/SRC/openSUSE:Factory/sunpinyin/sunpinyin.changes  2015-08-27 
08:57:19.0 +0200
+++ /work/SRC/openSUSE:Factory/.sunpinyin.new/sunpinyin.changes 2016-03-16 
10:36:05.0 +0100
@@ -1,0 +2,11 @@
+Sun Mar 06 05:02:17 UTC 2016 - i...@marguerite.su
+
+- update to version 2.0.4+git20160225.844ad0f:
+  + Fixed SunPinyinLookupTable::cursor_up()
+  + slm/thread: be more tolerant when looking up a float
+  + SLM-train.mk: publish SLM*_TEXT_FILE instead of
+TSLM*_TEXT_FILE.
+- libsunpinyin3 should requires sunpinyin-data, or the
+  input method can't be used
+
+---
@@ -4 +15 @@
-- Update to version 2.0.4+git20150706.cf18102:
+- update to version 2.0.4+git20150706.cf18102:

Old:

  sunpinyin-2.0.4+git20150706.cf18102.tar.xz

New:

  sunpinyin-2.0.4+git20160225.844ad0f.tar.xz



Other differences:
--
++ sunpinyin.spec ++
--- /var/tmp/diff_new_pack.TqNAqt/_old  2016-03-16 10:36:06.0 +0100
+++ /var/tmp/diff_new_pack.TqNAqt/_new  2016-03-16 10:36:06.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package sunpinyin
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,13 +17,14 @@
 
 
 Name:   sunpinyin
-Version:2.0.4+git20150706.cf18102
+Version:2.0.4+git20160225.844ad0f
 Release:0
 Summary:A Statistical Language Model Based Chinese Input Method
 License:LGPL-2.1+
 Group:  System/I18n/Chinese
 Url:https://github.com/sunpinyin/sunpinyin
 Source: %{name}-%{version}.tar.xz
+# https://sourceforge.net/projects/open-gram
 Source1:
http://jaist.dl.sourceforge.net/project/open-gram/lm_sc.3gm.arpa-20140820.tar.bz2
 Source2:
http://jaist.dl.sourceforge.net/project/open-gram/dict.utf8-20131214.tar.bz2
 Source3:sunpinyin-dictgen-local.mk.in
@@ -45,6 +46,7 @@
 %package -n lib%{name}3
 Summary:Libraries for Sunpinyin
 Group:  System/Libraries
+Requires:   %{name}-data >= %{version}
 
 %description -n lib%{name}3
 Sunpinyin is a statistical language model based Chinese input method engine. 
to model the Chinese language, it use a backoff bigram and trigram language 
model.
@@ -69,7 +71,7 @@
 
 %package devel
 Summary:Development Files for Sunpinyin
-Group:  Development/Libraries/Other
+Group:  Development/Libraries/C and C++
 Requires:   lib%{name}3 = %{version}
 Requires:   sunpinyin-tools = %{version}
 Provides:   lib%{name}-devel = %{version}

++ _servicedata ++
--- /var/tmp/diff_new_pack.TqNAqt/_old  2016-03-16 10:36:06.0 +0100
+++ /var/tmp/diff_new_pack.TqNAqt/_new  2016-03-16 10:36:06.0 +0100
@@ -1,4 +1,4 @@
 
 
 https://github.com/sunpinyin/sunpinyin/
-  cf1810220bf3d3f5a8b990b0a9d3e9df21b1942c
\ No newline at end of file
+  844ad0fe49751d6a09fdfe531668769b06c66459
\ No newline at end of file

++ sunpinyin-2.0.4+git20150706.cf18102.tar.xz -> 
sunpinyin-2.0.4+git20160225.844ad0f.tar.xz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sunpinyin-2.0.4+git20150706.cf18102/doc/SLM-train.mk 
new/sunpinyin-2.0.4+git20160225.844ad0f/doc/SLM-train.mk
--- old/sunpinyin-2.0.4+git20150706.cf18102/doc/SLM-train.mk2015-08-23 
17:25:48.0 +0200
+++ new/sunpinyin-2.0.4+git20160225.844ad0f/doc/SLM-train.mk2016-03-06 
06:02:16.0 +0100
@@ -101,10 +101,10 @@
rm -f ${BIGRAM_STAT} ${SLM2_RAW_FILE}
rm -f ${TRIGRAM_STAT} ${SLM3_RAW_FILE}
 
-mmseg_bigram: mmseg_ids tslm2_info
-mmseg_trigram: mmseg_ids tslm3_info
-slm_bigram: slm2_ids tslm2_info
-slm_trigram: slm3_ids tslm3_info
+mmseg_bigram: mmseg_ids slm2_info
+mmseg_trigram: mmseg_ids slm3_info
+slm_bigram: slm2_ids slm2_info
+slm_trigram: slm3_ids slm3_info
 
 bootstrap2:
make mmseg_bigram
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/sunpinyin-2.0.4+git20150706.cf18102/src/slm/thread/slmthread.cpp 
new/sunpinyin-2.0.4+git20160225.844ad0f/src/slm/thread/slmthread.cpp
--- old/sunpinyin-2.0.4+git20150706.cf18102/src/slm/thread/slmthread.cpp
2015-08-23 17:25:48.0 +0200
+++ 

commit sunpinyin for openSUSE:Factory

2015-08-27 Thread h_root
Hello community,

here is the log from the commit of package sunpinyin for openSUSE:Factory 
checked in at 2015-08-27 08:57:16

Comparing /work/SRC/openSUSE:Factory/sunpinyin (Old)
 and  /work/SRC/openSUSE:Factory/.sunpinyin.new (New)


Package is sunpinyin

Changes:

--- /work/SRC/openSUSE:Factory/sunpinyin/sunpinyin.changes  2013-03-26 
07:03:05.0 +0100
+++ /work/SRC/openSUSE:Factory/.sunpinyin.new/sunpinyin.changes 2015-08-27 
08:57:19.0 +0200
@@ -1,0 +2,8 @@
+Sun Aug 23 15:25:49 UTC 2015 - i...@marguerite.su
+
+- Update to version 2.0.4+git20150706.cf18102:
+  + fix pod2man invocations
+- drop sunpinyin-gcc47.patch, forgot to delete the file
+- add patch: no-download.patch, don't download dicts online
+
+---

Old:

  dict.utf8.tar.bz2
  lm_sc.t3g.arpa.tar.bz2
  sunpinyin-2.0.4.tar.bz2
  sunpinyin-gcc47.patch

New:

  _servicedata
  dict.utf8-20131214.tar.bz2
  lm_sc.3gm.arpa-20140820.tar.bz2
  no-download.patch
  sunpinyin-2.0.4+git20150706.cf18102.tar.xz
  sunpinyin-dictgen-local.mk.in



Other differences:
--
++ sunpinyin.spec ++
--- /var/tmp/diff_new_pack.TvEA6L/_old  2015-08-27 08:57:20.0 +0200
+++ /var/tmp/diff_new_pack.TvEA6L/_new  2015-08-27 08:57:20.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package sunpinyin 
 #
-# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,26 +17,26 @@
 
 
 Name:   sunpinyin
-Version:   2.0.4
-Release:   1
-License:   LGPL-2.1+
+Version:2.0.4+git20150706.cf18102
+Release:0
 Summary:   A Statistical Language Model Based Chinese Input Method
-Url:   http://sunpinyin.org
+License:LGPL-2.1+
 Group: System/I18n/Chinese
-Source:%{name}-%{version}.tar.bz2
-Source1:   lm_sc.t3g.arpa.tar.bz2
-Source2:   dict.utf8.tar.bz2
-Patch:  sunpinyin-aarch64.patch
-BuildRequires: scons
-%if 0%{?suse_version}
-BuildRequires: sqlite3-devel
-%else
-BuildRequires:  sqlite-devel
-%endif
+Url:https://github.com/sunpinyin/sunpinyin
+Source: %{name}-%{version}.tar.xz
+Source1:
http://jaist.dl.sourceforge.net/project/open-gram/lm_sc.3gm.arpa-20140820.tar.bz2
+Source2:
http://jaist.dl.sourceforge.net/project/open-gram/dict.utf8-20131214.tar.bz2
+Source3:sunpinyin-dictgen-local.mk.in
+Patch0: sunpinyin-aarch64.patch
+#PATCH-FIX-UPSTREAM marguer...@opensuse.org do not download online
+Patch1: no-download.patch
 BuildRequires: gcc-c++
 BuildRequires: gtk2-devel
-BuildRequires: python-devel
 BuildRequires: pkg-config
+BuildRequires:  python-devel
+BuildRequires:  scons
+BuildRequires:  sqlite3-devel
+BuildRequires:  xz
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
 %description
@@ -45,43 +45,113 @@
 %package -n lib%{name}3
 Summary:   Libraries for Sunpinyin
 Group: System/Libraries
-Provides:  %{name} = %{version}
 
 %description -n lib%{name}3
 Sunpinyin is a statistical language model based Chinese input method engine. 
to model the Chinese language, it use a backoff bigram and trigram language 
model.
 
+%package data
+Summary:Data files for Sunpinyin
+Group:  System/I18n/Chinese
+
+%description data
+Sunpinyin is a statistical language model based Chinese input method engine. 
to model the Chinese language, it use a backoff bigram and trigram language 
model.
+
+This package provides data files needed by it.
+
+%package tools
+Summary:Dictionary tools for Sunpinyin
+Group:  System/I18n/Chinese
+
+%description tools
+Sunpinyin is a statistical language model based Chinese input method engine. 
to model the Chinese language, it use a backoff bigram and trigram language 
model.
+
+This package provides dictionary tools needed by it.
+
 %package devel
 Summary:   Development Files for Sunpinyin
 Group: Development/Libraries/Other
-Requires:  %{name} = %{version}
+Requires:   lib%{name}3 = %{version}
+Requires:   sunpinyin-tools = %{version}
 Provides:  lib%{name}-devel = %{version}
 Obsoletes: lib%{name}-devel  %{version}
 
 %description devel
 Sunpinyin is a statistical language model based Chinese input method engine. 
to model the Chinese language, it use a backoff bigram and trigram language 
model.
 
+This package provides development headers for it.
+
 %prep
 %setup -q
-%patch -p1
+%patch0 -p1
+%patch1 -p1
+cp -r %{SOURCE1} .
+cp -r %{SOURCE2} .
+cp -r %{SOURCE3} src
 
 

commit sunpinyin for openSUSE:Factory

2013-03-26 Thread h_root
Hello community,

here is the log from the commit of package sunpinyin for openSUSE:Factory 
checked in at 2013-03-26 07:03:04

Comparing /work/SRC/openSUSE:Factory/sunpinyin (Old)
 and  /work/SRC/openSUSE:Factory/.sunpinyin.new (New)


Package is sunpinyin, Maintainer is 

Changes:

--- /work/SRC/openSUSE:Factory/sunpinyin/sunpinyin.changes  2012-06-26 
17:38:02.0 +0200
+++ /work/SRC/openSUSE:Factory/.sunpinyin.new/sunpinyin.changes 2013-03-26 
07:03:05.0 +0100
@@ -1,0 +2,5 @@
+Sat Mar 23 22:50:44 UTC 2013 - sch...@suse.de
+
+- sunpinyin-aarch64.patch: get endianess for aarch64
+
+---

New:

  sunpinyin-aarch64.patch



Other differences:
--
++ sunpinyin.spec ++
--- /var/tmp/diff_new_pack.6oGF43/_old  2013-03-26 07:03:08.0 +0100
+++ /var/tmp/diff_new_pack.6oGF43/_new  2013-03-26 07:03:08.0 +0100
@@ -26,6 +26,7 @@
 Source:%{name}-%{version}.tar.bz2
 Source1:   lm_sc.t3g.arpa.tar.bz2
 Source2:   dict.utf8.tar.bz2
+Patch:  sunpinyin-aarch64.patch
 BuildRequires: scons
 %if 0%{?suse_version}
 BuildRequires: sqlite3-devel
@@ -61,6 +62,7 @@
 
 %prep
 %setup -q
+%patch -p1
 
 %build
 %{__cp} -r %{S:1} ./raw/

++ sunpinyin-aarch64.patch ++
Index: sunpinyin-2.0.4/SConstruct
===
--- sunpinyin-2.0.4.orig/SConstruct
+++ sunpinyin-2.0.4/SConstruct
@@ -242,6 +242,7 @@ def AppendEndianCheck(conf):
   || defined(_POWER)   || defined(__powerpc__) \
   || defined(__ppc__)  || defined(__hpux) || defined(__hppa) \
   || defined(_MIPSEB)  || defined(_POWER) \
+  || defined(__AARCH64EB__) \
   || defined(__s390__) || (defined(__sh__)  defined(__BIG_ENDIAN__))
 # define WORDS_BIGENDIAN 1
 
@@ -253,6 +254,7 @@ def AppendEndianCheck(conf):
   || defined(__x86_64)  || defined(__x86_64__) \
   || defined(_M_X64)|| defined(__bfin__) \
   || defined(__alpha__) || defined(__ARMEL__) \
+  || defined(__AARCH64EL__) \
   || defined(_MIPSEL)   || (defined(__sh__)  defined(__LITTLE_ENDIAN__))
 # undef WORDS_BIGENDIAN
 
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit sunpinyin for openSUSE:Factory

2012-06-26 Thread h_root
Hello community,

here is the log from the commit of package sunpinyin for openSUSE:Factory 
checked in at 2012-06-26 17:38:00

Comparing /work/SRC/openSUSE:Factory/sunpinyin (Old)
 and  /work/SRC/openSUSE:Factory/.sunpinyin.new (New)


Package is sunpinyin, Maintainer is 

Changes:

--- /work/SRC/openSUSE:Factory/sunpinyin/sunpinyin.changes  2012-06-05 
15:35:40.0 +0200
+++ /work/SRC/openSUSE:Factory/.sunpinyin.new/sunpinyin.changes 2012-06-26 
17:38:02.0 +0200
@@ -1,0 +2,5 @@
+Sun Jun 24 19:00:52 UTC 2012 - i...@marguerite.su
+
+- fix fedora builds.
+
+---



Other differences:
--
++ sunpinyin.spec ++
--- /var/tmp/diff_new_pack.JoqnFV/_old  2012-06-26 17:38:04.0 +0200
+++ /var/tmp/diff_new_pack.JoqnFV/_new  2012-06-26 17:38:04.0 +0200
@@ -15,7 +15,6 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
-# norootforbuild
 
 Name:   sunpinyin
 Version:   2.0.4
@@ -27,10 +26,12 @@
 Source:%{name}-%{version}.tar.bz2
 Source1:   lm_sc.t3g.arpa.tar.bz2
 Source2:   dict.utf8.tar.bz2
-BuildRequires: fdupes
-BuildRequires: update-desktop-files
 BuildRequires: scons
+%if 0%{?suse_version}
 BuildRequires: sqlite3-devel
+%else
+BuildRequires:  sqlite-devel
+%endif
 BuildRequires: gcc-c++
 BuildRequires: gtk2-devel
 BuildRequires: python-devel

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit sunpinyin for openSUSE:Factory

2012-03-19 Thread h_root
Hello community,

here is the log from the commit of package sunpinyin for openSUSE:Factory 
checked in at 2012-03-20 02:05:27

Comparing /work/SRC/openSUSE:Factory/sunpinyin (Old)
 and  /work/SRC/openSUSE:Factory/.sunpinyin.new (New)


Package is sunpinyin, Maintainer is 

Changes:

--- /work/SRC/openSUSE:Factory/sunpinyin/sunpinyin.changes  2012-02-21 
07:32:40.0 +0100
+++ /work/SRC/openSUSE:Factory/.sunpinyin.new/sunpinyin.changes 2012-03-20 
02:05:28.0 +0100
@@ -1,0 +2,5 @@
+Sat Mar 17 23:29:50 UTC 2012 - zai...@opensuse.org
+
+- Add sunpinyin-gcc47.patch: Fix build with gcc 4.7. 
+
+---

New:

  sunpinyin-gcc47.patch



Other differences:
--
++ sunpinyin.spec ++
--- /var/tmp/diff_new_pack.eu5d2V/_old  2012-03-20 02:05:33.0 +0100
+++ /var/tmp/diff_new_pack.eu5d2V/_new  2012-03-20 02:05:33.0 +0100
@@ -27,6 +27,8 @@
 Source:%{name}-%{version}.tar.bz2
 Source1:   lm_sc.t3g.arpa.tar.bz2
 Source2:   dict.utf8.tar.bz2
+# PATCH-FIX-UPSTREAM sunpinyin-gcc47.patch zai...@opensuse.org -- Fix build 
with gcc 4.7
+Patch0:  sunpinyin-gcc47.patch
 BuildRequires: fdupes
 BuildRequires: update-desktop-files
 BuildRequires: scons
@@ -60,6 +62,7 @@
 
 %prep
 %setup -q
+%patch0
 
 %build
 %{__cp} -r %{S:1} ./raw/

++ sunpinyin-gcc47.patch ++
--- src/lexicon/genPYT.cpp  2012-02-05 17:28:01.0 +0100
+++ src/lexicon/genPYT.cpp  2012-03-17 23:59:12.116605521 +0100
@@ -37,7 +37,7 @@
 
 #include locale.h
 #include stdlib.h
-
+#include unistd.h
 #include pytrie.h
 #include pytrie_gen.h
 #include ../slm/slm.h
 
--- src/ime-core/ic_history.cpp 2012-02-05 17:28:01.0 +0100
+++ src/ime-core/ic_history.cpp 2012-03-18 00:10:24.387297778 +0100
@@ -42,6 +42,7 @@
 #include fcntl.h
 #include stdio.h
 #include stdint.h
+#include unistd.h
 #include cassert
 #include arpa/inet.h
 #include sys/stat.h

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org