From 14123e864fb6006db62f1693720630c4d63c5063 Mon Sep 17 00:00:00 2001
From: MargueriteSu <>
Date: Apr 08 2025 19:12:26 +0000
Subject: Update opencc to version 1.1.9 / rev 26 via SR 1267507


https://build.opensuse.org/request/show/1267507
by user MargueriteSu + anag_factory

---

diff --git a/.files b/.files
index 3a58d27..fdb6871 100644
Binary files a/.files and b/.files differ
diff --git a/.rev b/.rev
index 0b566a1..92acc20 100644
--- a/.rev
+++ b/.rev
@@ -213,4 +213,20 @@
     <comment></comment>
     <requestid>1176626</requestid>
   </revision>
+  <revision rev="25" vrev="1">
+    <srcmd5>1838f80bab7b1fb2f2390933f9c9b433</srcmd5>
+    <version>1.1.9</version>
+    <time>1727795481</time>
+    <user>anag+factory</user>
+    <comment></comment>
+    <requestid>1204701</requestid>
+  </revision>
+  <revision rev="26" vrev="2">
+    <srcmd5>b93a740b8c15cfb1150202b8707d1076</srcmd5>
+    <version>1.1.9</version>
+    <time>1744127413</time>
+    <user>anag_factory</user>
+    <comment></comment>
+    <requestid>1267507</requestid>
+  </revision>
 </revisionlist>
diff --git a/OpenCC-ver.1.1.7.tar.gz b/OpenCC-ver.1.1.7.tar.gz
deleted file mode 120000
index 1e2cc30..0000000
--- a/OpenCC-ver.1.1.7.tar.gz
+++ /dev/null
@@ -1 +0,0 @@
-/ipfs/bafybeihmam6tl5xnthjvvzz3bgytgdfe2q6vbcgwvebtjtzlx3lq7rtq5m
\ No newline at end of file
diff --git a/OpenCC-ver.1.1.9.tar.gz b/OpenCC-ver.1.1.9.tar.gz
new file mode 120000
index 0000000..c75a7f1
--- /dev/null
+++ b/OpenCC-ver.1.1.9.tar.gz
@@ -0,0 +1 @@
+/ipfs/bafybeidhocrbgk3x5zubtnhswnwwqmllq5mcjqtqlicawjg34j33rp2wy4
\ No newline at end of file
diff --git a/opencc-gcc15.patch b/opencc-gcc15.patch
new file mode 100644
index 0000000..1581054
--- /dev/null
+++ b/opencc-gcc15.patch
@@ -0,0 +1,29 @@
+
+github.com/BYVoid/OpenCC/pull/934
+github.com/BYVoid/OpenCC/commit/72cae18
+
+
+From 72cae18cfe4272f2b11c9ec1c44d6af7907abcab Mon Sep 17 00:00:00 2001
+From: Peng Wu <alexepico@gmail.com>
+Date: Thu, 13 Feb 2025 00:15:10 +0800
+Subject: [PATCH] Fix build for gcc 15 (#934)
+
+Co-authored-by: Peng Wu <pwu@redhat.com>
+---
+ src/SerializedValues.hpp | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/SerializedValues.hpp b/src/SerializedValues.hpp
+index c17210ba7..f7e5bb264 100644
+--- a/src/SerializedValues.hpp
++++ b/src/SerializedValues.hpp
+@@ -18,6 +18,8 @@
+ 
+ #pragma once
+ 
++#include <cstdint>
++
+ #include "Common.hpp"
+ #include "SerializableDict.hpp"
+ 
+
diff --git a/opencc.changes b/opencc.changes
index ed8be3c..d4c11de 100644
--- a/opencc.changes
+++ b/opencc.changes
@@ -1,4 +1,23 @@
 -------------------------------------------------------------------
+Sat Apr  5 14:42:06 UTC 2025 - Friedrich Haubensak <hsk17@mail.de>
+
+- Add opencc-gcc15.patch to fix gcc15 compile time error
+
+-------------------------------------------------------------------
+Sun Sep 22 11:58:00 UTC 2024 - Cliff Zhao <qzhao@suse.com>
+ 
+- update to 1.1.9:
+  * Change googletest to bazel dev_dependency.
+  * Add Installation details in readme.
+  * Test of Github FUNDING.yml
+  * Fix npmignore.
+  * Apply patch to rapidjson.
+  * Use Python 3.
+  * Add Bazel Python library and test.
+  * Add back Config::NewFromFile with one argument to maintain the
+    ABI compatibility.
+
+-------------------------------------------------------------------
 Fri May 24 04:20:02 UTC 2024 - Marguerite Su <i@marguerite.su>
 
 - switch to system rapidjson, fix boo#1221875
diff --git a/opencc.spec b/opencc.spec
index fc0fc4c..a617e0c 100644
--- a/opencc.spec
+++ b/opencc.spec
@@ -17,13 +17,15 @@
 
 
 Name:           opencc
-Version:        1.1.7
+Version:        1.1.9
 Release:        0
 Summary:        Open Chinese Convert
 License:        Apache-2.0
 Group:          System/I18n/Chinese
 URL:            https://github.com/BYVoid/OpenCC
 Source:         https://github.com/BYVoid/OpenCC/archive/ver.%{version}/OpenCC-ver.%{version}.tar.gz
+# PATCH-FIX-UPSTREAM
+Patch1:         opencc-gcc15.patch
 BuildRequires:  cmake
 BuildRequires:  gcc-c++
 BuildRequires:  pkgconfig
@@ -74,6 +76,8 @@ This package provides development headers for OpenCC.
 
 %prep
 %setup -q -n OpenCC-ver.%{version}
+%autopatch -p1
+
 # call python3 with path
 sed -i \
     -e 's:BIN python:BIN /usr/bin/python3:g' \
@@ -93,11 +97,11 @@ find %{buildroot} -name "*.a" -delete -print
 %postun -n libopencc1_1 -p /sbin/ldconfig
 
 %files
-%license LICENSE
-%doc AUTHORS NEWS.md README.md
 %{_bindir}/%{name}
 %{_bindir}/%{name}_dict
 %{_bindir}/%{name}_phrase_extract
+%doc AUTHORS NEWS.md README.md
+%license LICENSE
 
 %files data
 %{_datadir}/%{name}/