Compare commits

1 Commits
main ... 1.1

5 changed files with 30 additions and 49 deletions

BIN
OpenCC-ver.1.1.6.tar.gz LFS Normal file

Binary file not shown.

Binary file not shown.

13
fix-soversion.patch Normal file
View File

@@ -0,0 +1,13 @@
Index: OpenCC-ver.1.1.6/CMakeLists.txt
===================================================================
--- OpenCC-ver.1.1.6.orig/CMakeLists.txt
+++ OpenCC-ver.1.1.6/CMakeLists.txt
@@ -42,7 +42,7 @@ set (PACKAGE_URL https://github.com/BYVo
set (PACKAGE_BUGREPORT https://github.com/BYVoid/Opencc/issues)
set (OPENCC_VERSION_MAJOR 1)
set (OPENCC_VERSION_MINOR 1)
-set (OPENCC_VERSION_REVISION 5)
+set (OPENCC_VERSION_REVISION 6)
if (CMAKE_BUILD_TYPE MATCHES Debug)
set (version_suffix .Debug)

View File

@@ -1,34 +1,3 @@
-------------------------------------------------------------------
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
-------------------------------------------------------------------
Sat Nov 25 22:37:51 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 1.1.7:
* Added python package rebuild on commit to verify package
generation (#822).
* Support Python 3.12 and Node 20, remove builds for Python 3.7
and Node 16 (#820).
* Add support of CMake config modules (#763).
* Several other minor fixes.
- drop fix-soversion.patch (obsolete)
-------------------------------------------------------------------
Sun Dec 11 19:01:24 UTC 2022 - Dirk Müller <dmueller@suse.com>
@@ -45,7 +14,7 @@ Mon Aug 1 22:04:39 UTC 2022 - Dirk Müller <dmueller@suse.com>
- update to 1.1.4:
* Add python 3.10 support
* remove support for python < 3.7 and node 10.x
* small bugfixes
* small bugfixes
- add fix-soversion.patch for fixing the leftover .so version tag
-------------------------------------------------------------------
@@ -57,7 +26,7 @@ Mon Feb 14 21:28:26 UTC 2022 - Dirk Müller <dmueller@suse.com>
* Support Node.js 16 (#597).
* Support Python 3.9 (#603).
* Fixed conversion errors.
* Several other small fixes.
* Several other small fixes.
-------------------------------------------------------------------
Fri Mar 12 21:26:02 UTC 2021 - Dirk Müller <dmueller@suse.com>
@@ -65,14 +34,14 @@ Fri Mar 12 21:26:02 UTC 2021 - Dirk Müller <dmueller@suse.com>
- update to 1.1.2:
* Added Hong Kong Traditional Chinese conversion.
* Fix the compilation compatibility problem, including parallel compilation.
* Fixed the serious performance degradation problem introduced since 1.1.0.
* Fixed the serious performance degradation problem introduced since 1.1.0.
- drop opencc-1.1.1-missing-builtin-types.patch: upstream
-------------------------------------------------------------------
Mon Sep 28 05:07:44 UTC 2020 - Marguerite Su <i@marguerite.su>
- add opencc-1.1.1-missing-builtin-types.patch
* SimpleConverter.hpp missed "#include <string>" that breaks pyzy
* SimpleConverter.hpp missed "#include <string>" that breaks pyzy
-------------------------------------------------------------------
Sat Sep 12 19:49:53 UTC 2020 - Dirk Mueller <dmueller@suse.com>
@@ -110,7 +79,7 @@ Thu Oct 5 13:28:26 UTC 2017 - hillwood@opensuse.org
- Update to 1.0.5
* Fix link error for mingw
* Try fix error nodejs_version=4; Platform: x86
* Add support for node stable && remove v0.12
* Add support for node stable && remove v0.12
* Update artifacts
* Artifacts for appveyor
@@ -128,7 +97,7 @@ Wed Aug 12 00:16:09 UTC 2015 - i@marguerite.su
Sun Feb 15 03:59:02 UTC 2015 - hillwood@linuxfans.org
- Update to 1.0.2
* Update dictionary
* Update dictionary
* Fix scripts compatibility for Python3
* Fix compatibility with Python3
* Add non-allocation interface
@@ -166,5 +135,5 @@ Thu Feb 16 15:37:21 UTC 2012 - coolo@suse.com
-------------------------------------------------------------------
Mon Jan 23 12:40:44 UTC 2012 - i@marguerite.su
- initial package 0.3.0
- initial package 0.3.0

View File

@@ -1,7 +1,7 @@
#
# spec file for package opencc
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,17 +17,17 @@
Name: opencc
Version: 1.1.9
Version: 1.1.6
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
Patch1: fix-soversion.patch
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: rapidjson-devel
# needed to generate some docu files
BuildRequires: python3-base
@@ -74,6 +74,7 @@ This package provides development headers for OpenCC.
%prep
%setup -q -n OpenCC-ver.%{version}
%patch1 -p1
# call python3 with path
sed -i \
-e 's:BIN python:BIN /usr/bin/python3:g' \
@@ -81,8 +82,7 @@ sed -i \
%build
%cmake \
-DCMAKE_SKIP_RPATH=OFF \
-DUSE_SYSTEM_RAPIDJSON=ON
-DCMAKE_SKIP_RPATH=OFF
%make_jobs
%install
@@ -93,11 +93,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}/
@@ -109,7 +109,6 @@ find %{buildroot} -name "*.a" -delete -print
%files devel
%{_includedir}/%{name}/
%{_libdir}/libopencc.so
%{_libdir}/cmake/opencc
%{_libdir}/pkgconfig/opencc.pc
%changelog