From dff559dca0d5c898cc0e01b572792aa44637e67c Mon Sep 17 00:00:00 2001 From: Python Maint Date: Fri, 7 Jun 2024 10:32:53 +0200 Subject: [PATCH 01/15] Rebuilt for Python 3.13 From 611d0066067835ad84ab964cc0cd947a493b911d Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 20 Jul 2024 05:15:21 +0000 Subject: [PATCH 02/15] Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild From 9456ec7a89c54a04e35689ae7d75bb046d311b86 Mon Sep 17 00:00:00 2001 From: Tom Rix Date: Thu, 2 Jan 2025 08:24:37 -0800 Subject: [PATCH 03/15] Update to 0.2.0 Signed-off-by: Tom Rix --- .gitignore | 1 + sentencepiece.spec | 10 ++++++++-- sources | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 3ede48a..b36ef6b 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /sentencepiece-0.1.84-Source.tar.xz /sentencepiece-0.1.92-Source.tar.xz /sentencepiece-0.1.99.tar.gz +/sentencepiece-0.2.0.tar.gz diff --git a/sentencepiece.spec b/sentencepiece.spec index 8214bbe..feebfe4 100644 --- a/sentencepiece.spec +++ b/sentencepiece.spec @@ -1,5 +1,5 @@ Name: sentencepiece -Version: 0.1.99 +Version: 0.2.0 Release: %autorelease Summary: An unsupervised text tokenizer for Neural Network-based text generation @@ -15,6 +15,7 @@ BuildRequires: cmake BuildRequires: ninja-build BuildRequires: gperftools-devel BuildRequires: pkgconfig +BuildRequires: protobuf-lite-devel BuildRequires: python3-devel BuildRequires: python3-setuptools @@ -52,6 +53,7 @@ This package contains header files to develop a software using SentencePiece. %package -n python3-%{name} Summary: Python module for SentencePiece Requires: %{name}-libs%{?_isa} = %{version}-%{release} +Requires: python3dist(protobuf) %{?python_provide:%python_provide python3-%{name}} %description -n python3-%{name} @@ -60,6 +62,9 @@ This package contains Python3 module file for SentencePiece. %prep %autosetup +# Need some help finding the src dir now +sed -i -e "s@'std=c++17',@'std=c++17','-I../src',@" python/setup.py + %build %cmake \ -GNinja \ @@ -68,7 +73,8 @@ This package contains Python3 module file for SentencePiece. %cmake_build pushd python -CFLAGS="-I../src" LDFLAGS="-L../%{_vpath_builddir}/src -lsentencepiece" PKG_CONFIG_PATH="../%{_vpath_builddir}" %py3_build +%py3_build + popd %install diff --git a/sources b/sources index 05e1abe..b43c0d7 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (sentencepiece-0.1.99.tar.gz) = 31dc4dc3f2ff4a7effc1ed2d6ad219bcd5d28c0bac89fdeae0336f23e93f954c597313788529e692a0d694d5fa7c3c285a485dfb84a96921efc4b49bcd465358 +SHA512 (sentencepiece-0.2.0.tar.gz) = b4214f5bfbe2a0757794c792e87e7c53fda7e65b2511b37fc757f280bf9287ba59b5d630801e17de6058f8292a3c6433211917324cb3446a212a51735402e614 From e0b8e6d973444f5b0e90715ce033f91b18202465 Mon Sep 17 00:00:00 2001 From: Tom Rix Date: Sat, 18 Jan 2025 04:35:06 -0800 Subject: [PATCH 04/15] gcc 15 include cstdint Signed-off-by: Tom Rix --- sentencepiece.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sentencepiece.spec b/sentencepiece.spec index feebfe4..c2909a7 100644 --- a/sentencepiece.spec +++ b/sentencepiece.spec @@ -65,6 +65,9 @@ This package contains Python3 module file for SentencePiece. # Need some help finding the src dir now sed -i -e "s@'std=c++17',@'std=c++17','-I../src',@" python/setup.py +# gcc 15 include cstdint +sed -i '/#include .*/a#include ' src/sentencepiece_processor.h + %build %cmake \ -GNinja \ From b8104b1561834350ca424ebb73ff990fa8b1bbdc Mon Sep 17 00:00:00 2001 From: Tom Rix Date: Sat, 1 Mar 2025 07:55:04 -0800 Subject: [PATCH 05/15] Cmake version changed Signed-off-by: Tom Rix --- sentencepiece.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sentencepiece.spec b/sentencepiece.spec index c2909a7..ed6a67c 100644 --- a/sentencepiece.spec +++ b/sentencepiece.spec @@ -68,6 +68,9 @@ sed -i -e "s@'std=c++17',@'std=c++17','-I../src',@" python/setup.py # gcc 15 include cstdint sed -i '/#include .*/a#include ' src/sentencepiece_processor.h +# cmake version +sed -i -e 's@cmake_minimum_required(VERSION 3.1 FATAL_ERROR)@cmake_minimum_required(VERSION 3.5 FATAL_ERROR)@' CMakeLists.txt + %build %cmake \ -GNinja \ From 1a390692e9160e5e151c20cbcd02b23d54deee1b Mon Sep 17 00:00:00 2001 From: Python Maint Date: Mon, 2 Jun 2025 22:54:08 +0200 Subject: [PATCH 06/15] Rebuilt for Python 3.14 From 81d9066f41c77f73fadd8ba4ac20809074035cd0 Mon Sep 17 00:00:00 2001 From: Tom Rix Date: Tue, 15 Jul 2025 05:14:52 -0700 Subject: [PATCH 07/15] Use pyproject macros Signed-off-by: Tom Rix --- sentencepiece.spec | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sentencepiece.spec b/sentencepiece.spec index ed6a67c..85fde82 100644 --- a/sentencepiece.spec +++ b/sentencepiece.spec @@ -18,6 +18,7 @@ BuildRequires: pkgconfig BuildRequires: protobuf-lite-devel BuildRequires: python3-devel BuildRequires: python3-setuptools +BuildRequires: python3dist(pip) %description The SentencePiece is an unsupervised text tokenizer for Neural Network-based @@ -79,7 +80,7 @@ sed -i -e 's@cmake_minimum_required(VERSION 3.1 FATAL_ERROR)@cmake_minimum_requi %cmake_build pushd python -%py3_build +%pyproject_wheel popd @@ -87,7 +88,9 @@ popd %cmake_install pushd python -%py3_install +%pyproject_install +%pyproject_save_files sentencepiece + popd rm %{buildroot}%{_libdir}/libsentencepiece*.a @@ -105,10 +108,7 @@ rm %{buildroot}%{_libdir}/libsentencepiece*.a %files tools %{_bindir}/spm* -%files -n python3-%{name} -%{python3_sitearch}/%{name}/ -%{python3_sitearch}/%{name}-*.egg-info/ - +%files -n python3-%{name} -f %{pyproject_files} %changelog %autochangelog From 50d78919b3c1aa477cb2468cf4aeb9f94232b5a3 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 25 Jul 2025 18:09:06 +0000 Subject: [PATCH 08/15] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild From aaeebb1abbce906661c2423b4f0e25b244d74646 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Fri, 15 Aug 2025 15:17:21 +0200 Subject: [PATCH 09/15] Rebuilt for Python 3.14.0rc2 bytecode From 82dfde38955e9d1dd1bc3ebbddf3fafde9104b36 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Fri, 19 Sep 2025 14:55:45 +0200 Subject: [PATCH 10/15] Rebuilt for Python 3.14.0rc3 bytecode From 5bbfd2962fe5783518c12407e2c9428dd522cb53 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 17 Jan 2026 17:53:43 +0000 Subject: [PATCH 11/15] Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild From 752bec4ca199809293b44f1f63045353185bf77c Mon Sep 17 00:00:00 2001 From: Peter Robinson Date: Tue, 19 May 2026 22:07:41 +0100 Subject: [PATCH 12/15] Update to 0.2.1 - Fixes CVE-2026-1260 (rhbz#2432139 rhbz#2432139) - Minor package updates for new rev --- .gitignore | 1 + sentencepiece.spec | 14 +++++--------- sources | 2 +- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index b36ef6b..0d76080 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /sentencepiece-0.1.92-Source.tar.xz /sentencepiece-0.1.99.tar.gz /sentencepiece-0.2.0.tar.gz +/sentencepiece-0.2.1.tar.gz diff --git a/sentencepiece.spec b/sentencepiece.spec index 85fde82..7d68fd7 100644 --- a/sentencepiece.spec +++ b/sentencepiece.spec @@ -1,5 +1,5 @@ Name: sentencepiece -Version: 0.2.0 +Version: 0.2.1 Release: %autorelease Summary: An unsupervised text tokenizer for Neural Network-based text generation @@ -66,16 +66,12 @@ This package contains Python3 module file for SentencePiece. # Need some help finding the src dir now sed -i -e "s@'std=c++17',@'std=c++17','-I../src',@" python/setup.py -# gcc 15 include cstdint -sed -i '/#include .*/a#include ' src/sentencepiece_processor.h - -# cmake version -sed -i -e 's@cmake_minimum_required(VERSION 3.1 FATAL_ERROR)@cmake_minimum_required(VERSION 3.5 FATAL_ERROR)@' CMakeLists.txt - %build %cmake \ -GNinja \ -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_LIBDIR=%{_libdir} \ + %{nil} %cmake_build @@ -93,7 +89,7 @@ pushd python popd -rm %{buildroot}%{_libdir}/libsentencepiece*.a +find %{buildroot} -name '*.a' -delete %files libs %doc README.md @@ -102,7 +98,7 @@ rm %{buildroot}%{_libdir}/libsentencepiece*.a %files devel %{_includedir}/sentencepiece*.h -%{_libdir}/*.so +%{_libdir}/libsentencepiece*.so %{_libdir}/pkgconfig/sentencepiece*.pc %files tools diff --git a/sources b/sources index b43c0d7..59db35d 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (sentencepiece-0.2.0.tar.gz) = b4214f5bfbe2a0757794c792e87e7c53fda7e65b2511b37fc757f280bf9287ba59b5d630801e17de6058f8292a3c6433211917324cb3446a212a51735402e614 +SHA512 (sentencepiece-0.2.1.tar.gz) = 012850b63b2323e16acc5dacc0a494ad3f6375425ee86274f0946032e47c088a3b307758b99d752fcf54acf76c82d7d13d0c14bbf07aa9b612c4f1fbd30cf1cf From ec017dfedb40b9abd9af5d6ab68e517cc60bb317 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Wed, 3 Jun 2026 21:19:22 +0200 Subject: [PATCH 13/15] Rebuilt for Python 3.15 From 4036edcecc9ebe80ed188e1f06ea8f1a9d118097 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 17 Jul 2026 06:24:08 +0000 Subject: [PATCH 14/15] Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild From f94139457a6aa335e736f69bf6a3099603260579 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Wed, 22 Jul 2026 10:51:18 +0200 Subject: [PATCH 15/15] Rebuilt for Python 3.15.0b4 ABI change