Compare commits

..

No commits in common. "rawhide" and "f43" have entirely different histories.

3 changed files with 10 additions and 7 deletions

1
.gitignore vendored
View file

@ -3,4 +3,3 @@
/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.2.1
Version: 0.2.0
Release: %autorelease
Summary: An unsupervised text tokenizer for Neural Network-based text generation
@ -66,12 +66,16 @@ 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 <utility>.*/a#include <cstdint>' 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
@ -89,7 +93,7 @@ pushd python
popd
find %{buildroot} -name '*.a' -delete
rm %{buildroot}%{_libdir}/libsentencepiece*.a
%files libs
%doc README.md
@ -98,7 +102,7 @@ find %{buildroot} -name '*.a' -delete
%files devel
%{_includedir}/sentencepiece*.h
%{_libdir}/libsentencepiece*.so
%{_libdir}/*.so
%{_libdir}/pkgconfig/sentencepiece*.pc
%files tools

View file

@ -1 +1 @@
SHA512 (sentencepiece-0.2.1.tar.gz) = 012850b63b2323e16acc5dacc0a494ad3f6375425ee86274f0946032e47c088a3b307758b99d752fcf54acf76c82d7d13d0c14bbf07aa9b612c4f1fbd30cf1cf
SHA512 (sentencepiece-0.2.0.tar.gz) = b4214f5bfbe2a0757794c792e87e7c53fda7e65b2511b37fc757f280bf9287ba59b5d630801e17de6058f8292a3c6433211917324cb3446a212a51735402e614