diff --git a/sentencepiece.spec b/sentencepiece.spec index bda33f3..5f8de81 100644 --- a/sentencepiece.spec +++ b/sentencepiece.spec @@ -1,13 +1,13 @@ Name: sentencepiece Version: 0.1.92 -Release: 1 +Release: 2 Summary: An unsupervised text tokenizer and detokenizer License: Apache-2.0 URL: https://github.com/google/sentencepiece Source0: https://github.com/google/sentencepiece/archive/v%{version}.tar.gz -BuildRequires: gcc-c++ gcc autoconf pkgconfig protobuf-compiler protobuf protobuf-devel +BuildRequires: gcc-c++ gcc autoconf pkgconfig protobuf-compiler protobuf BuildRequires: cmake >= 3.14.0 -Requires: protobuf-devel protobuf protobuf-compiler +Requires: protobuf protobuf-compiler %description SentencePiece is an unsupervised text tokenizer and detokenizer mainly for Neural Network-based text generation @@ -26,11 +26,13 @@ cmake ../../ -DCMAKE_CXX_FLAGS="-D_FORTIFY_SOURCE=2 -O2 -Wno-unused-result -Wno- -DCMAKE_BUILD_TYPE=Release\ -DSPM_USE_BUILTIN_PROTOBUF=ON\ -DSPM_ENABLE_SHARED=OFF\ + -DSPM_BUILD_TEST=ON\ -DCMAKE_INSTALL_LIBDIR=%{buildroot}%{_libdir}\ -DCMAKE_INSTALL_BINDIR=%{buildroot}%{_bindir}\ -DCMAKE_INSTALL_INCDIR=%{buildroot}%{_includedir} make -j24 V=1 +make CTEST_OUTPUT_ON_FAILURE=1 test cd ../../ %install @@ -45,5 +47,7 @@ make install %{_includedir}/sentencepiece_*.h %changelog +* Wed Sep 29 2021 xiefangqi - 0.1.92-2 +- add test cases * Wed Sep 23 2021 xiefangqi - 0.1.92-1 - package init