Compare commits

..

15 commits

Author SHA1 Message Date
Python Maint
f94139457a Rebuilt for Python 3.15.0b4 ABI change 2026-07-22 10:51:18 +02:00
Fedora Release Engineering
4036edcecc Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild 2026-07-17 06:24:08 +00:00
Python Maint
ec017dfedb Rebuilt for Python 3.15 2026-06-03 21:19:22 +02:00
Peter Robinson
752bec4ca1 Update to 0.2.1
- Fixes CVE-2026-1260 (rhbz#2432139 rhbz#2432139)
- Minor package updates for new rev
2026-05-19 22:07:41 +01:00
Fedora Release Engineering
5bbfd2962f Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-17 17:53:43 +00:00
Python Maint
82dfde3895 Rebuilt for Python 3.14.0rc3 bytecode 2025-09-19 14:55:45 +02:00
Python Maint
aaeebb1abb Rebuilt for Python 3.14.0rc2 bytecode 2025-08-15 15:17:21 +02:00
Fedora Release Engineering
50d78919b3 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 18:09:06 +00:00
Tom Rix
81d9066f41 Use pyproject macros
Signed-off-by: Tom Rix <Tom.Rix@amd.com>
2025-07-15 05:14:52 -07:00
Python Maint
1a390692e9 Rebuilt for Python 3.14 2025-06-02 22:54:08 +02:00
Tom Rix
b8104b1561 Cmake version changed
Signed-off-by: Tom Rix <Tom.Rix@amd.com>
2025-03-01 07:55:04 -08:00
Tom Rix
e0b8e6d973 gcc 15 include cstdint
Signed-off-by: Tom Rix <Tom.Rix@amd.com>
2025-01-18 04:35:06 -08:00
Tom Rix
9456ec7a89 Update to 0.2.0
Signed-off-by: Tom Rix <Tom.Rix@amd.com>
2025-01-02 08:24:37 -08:00
Fedora Release Engineering
611d006606 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-20 05:15:21 +00:00
Python Maint
dff559dca0 Rebuilt for Python 3.13 2024-06-07 10:32:53 +02:00
3 changed files with 20 additions and 10 deletions

2
.gitignore vendored
View file

@ -2,3 +2,5 @@
/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
/sentencepiece-0.2.1.tar.gz

View file

@ -1,5 +1,5 @@
Name: sentencepiece
Version: 0.1.99
Version: 0.2.1
Release: %autorelease
Summary: An unsupervised text tokenizer for Neural Network-based text generation
@ -15,8 +15,10 @@ BuildRequires: cmake
BuildRequires: ninja-build
BuildRequires: gperftools-devel
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
@ -52,6 +54,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,25 +63,33 @@ 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 \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_LIBDIR=%{_libdir} \
%{nil}
%cmake_build
pushd python
CFLAGS="-I../src" LDFLAGS="-L../%{_vpath_builddir}/src -lsentencepiece" PKG_CONFIG_PATH="../%{_vpath_builddir}" %py3_build
%pyproject_wheel
popd
%install
%cmake_install
pushd python
%py3_install
%pyproject_install
%pyproject_save_files sentencepiece
popd
rm %{buildroot}%{_libdir}/libsentencepiece*.a
find %{buildroot} -name '*.a' -delete
%files libs
%doc README.md
@ -87,16 +98,13 @@ rm %{buildroot}%{_libdir}/libsentencepiece*.a
%files devel
%{_includedir}/sentencepiece*.h
%{_libdir}/*.so
%{_libdir}/libsentencepiece*.so
%{_libdir}/pkgconfig/sentencepiece*.pc
%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

View file

@ -1 +1 @@
SHA512 (sentencepiece-0.1.99.tar.gz) = 31dc4dc3f2ff4a7effc1ed2d6ad219bcd5d28c0bac89fdeae0336f23e93f954c597313788529e692a0d694d5fa7c3c285a485dfb84a96921efc4b49bcd465358
SHA512 (sentencepiece-0.2.1.tar.gz) = 012850b63b2323e16acc5dacc0a494ad3f6375425ee86274f0946032e47c088a3b307758b99d752fcf54acf76c82d7d13d0c14bbf07aa9b612c4f1fbd30cf1cf