The package rpms/sentencepiece.git has added or updated architecture specific content in its spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s): https://src.fedoraproject.org/cgit/rpms/sentencepiece.git/commit/?id=2291202....
Change: +ExcludeArch: s390x
Thanks.
Full change: ============
commit 229120265ae6b1fe4291fba04339728be6f11a06 Author: topazus topazus@outlook.com Date: Sat Dec 23 23:29:19 2023 +0800
update to 0.1.99
diff --git a/.gitignore b/.gitignore index 9eed377..3ede48a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /sentencepiece-0.1.83-Source.tar.xz /sentencepiece-0.1.84-Source.tar.xz /sentencepiece-0.1.92-Source.tar.xz +/sentencepiece-0.1.99.tar.gz diff --git a/packit.yaml b/packit.yaml new file mode 100644 index 0000000..f436bd8 --- /dev/null +++ b/packit.yaml @@ -0,0 +1,26 @@ +upstream_package_name: sentencepiece +upstream_project_url: https://github.com/google/sentencepiece +upstream_tag_template: v{version} + +downstream_package_name: sentencepiece + +specfile_path: sentencepiece.spec + +jobs: + - job: pull_from_upstream + trigger: release + dist_git_branches: + - rawhide + - epel-9 + + - job: koji_build + trigger: commit + dist_git_branches: + - rawhide + - epel-9 + + - job: bodhi_update + trigger: commit + dist_git_branches: + - rawhide + - epel-9 \ No newline at end of file diff --git a/sentencepiece.spec b/sentencepiece.spec index 0411045..8214bbe 100644 --- a/sentencepiece.spec +++ b/sentencepiece.spec @@ -1,23 +1,18 @@ -%define __cmake_in_source_build 1 - -%define _epel %{?epel:%{epel}}%{!?epel:0} - Name: sentencepiece -Version: 0.1.92 +Version: 0.1.99 Release: %autorelease Summary: An unsupervised text tokenizer for Neural Network-based text generation
-License: ASL 2.0 +License: Apache-2.0 URL: https://github.com/google/sentencepiece -Source0: https://github.com/google/sentencepiece/releases/download/v%%7Bversion%7D/%%... +Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz + +# https://github.com/google/sentencepiece/issues/860 +ExcludeArch: s390x
-BuildRequires: make -%if 0%{_epel} >= 7 -BuildRequires: cmake3 -%else -BuildRequires: cmake -%endif BuildRequires: gcc-c++ +BuildRequires: cmake +BuildRequires: ninja-build BuildRequires: gperftools-devel BuildRequires: pkgconfig BuildRequires: python3-devel @@ -26,10 +21,10 @@ BuildRequires: python3-setuptools %description The SentencePiece is an unsupervised text tokenizer for Neural Network-based text generation. -It is an unsupervised text tokenizer and detokenizer mainly for -Neural Network-based text generation systems where the vocabulary size is +It is an unsupervised text tokenizer and detokenizer mainly for +Neural Network-based text generation systems where the vocabulary size is predetermined prior to the neural model training. -SentencePiece implements subword units and unigram language model with the +SentencePiece implements subword units and unigram language model with the extension of direct training from raw sentences. SentencePiece allows us to make a purely end-to-end system that does not depend on language-specific pre/post-processing. @@ -63,27 +58,27 @@ Requires: %{name}-libs%{?_isa} = %{version}-%{release} This package contains Python3 module file for SentencePiece.
%prep -%autosetup -n %{name}-%{version}-Source +%autosetup
%build -%if %{_epel} >= 7 -cmake3 . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DCMAKE_INSTALL_LIBDIR=%{_libdir} -%else -%cmake . -DCMAKE_INSTALL_LIBDIR=%{_libdir} -%endif -%make_build +%cmake \ + -GNinja \ + -DCMAKE_BUILD_TYPE=Release \ + +%cmake_build + pushd python -CFLAGS="-I../src" LDFLAGS="-L../src -lsentencepiece" PKG_CONFIG_PATH=".." %{__python3} setup.py build +CFLAGS="-I../src" LDFLAGS="-L../%{_vpath_builddir}/src -lsentencepiece" PKG_CONFIG_PATH="../%{_vpath_builddir}" %py3_build popd
%install -%make_install +%cmake_install + pushd python -PKG_CONFIG_PATH=".." %py3_install +%py3_install popd -sed -i'' -e "s,%{buildroot},," %{buildroot}%{_libdir}/pkgconfig/sentencepiece.pc -sed -i'' -e "s,${prefix}/lib,%{_libdir}," %{buildroot}%{_libdir}/pkgconfig/sentencepiece.pc -find %{buildroot} -name '*.a' -delete + +rm %{buildroot}%{_libdir}/libsentencepiece*.a
%files libs %doc README.md @@ -99,9 +94,7 @@ find %{buildroot} -name '*.a' -delete %{_bindir}/spm*
%files -n python3-%{name} -%{python3_sitearch}/%{name}.py -%{python3_sitearch}/_%{name}*.so -%{python3_sitearch}/__pycache__/* +%{python3_sitearch}/%{name}/ %{python3_sitearch}/%{name}-*.egg-info/
diff --git a/sources b/sources index c96818f..05e1abe 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (sentencepiece-0.1.92-Source.tar.xz) = 9f9fc6ec9bec4c43f5051903d1461c45fa199f8c331d789d8e6ee9eb315e0c5fdbbd6a9adb76db6cf4ef683e73ffc1691dd530568b920d90b24dcce31291b062 +SHA512 (sentencepiece-0.1.99.tar.gz) = 31dc4dc3f2ff4a7effc1ed2d6ad219bcd5d28c0bac89fdeae0336f23e93f954c597313788529e692a0d694d5fa7c3c285a485dfb84a96921efc4b49bcd465358
commit aa3a52c643dcb1679c8f2a2907a3540070c09c35 Author: topazus topazus@outlook.com Date: Sat Dec 23 22:24:05 2023 +0800
Convert to %autorelease and %autochangelog
[skip changelog]
diff --git a/changelog b/changelog new file mode 100644 index 0000000..6d8510f --- /dev/null +++ b/changelog @@ -0,0 +1,54 @@ +* Sat Jul 22 2023 Fedora Release Engineering releng@fedoraproject.org - 0.1.92-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Tue Jun 13 2023 Python Maint python-maint@redhat.com - 0.1.92-10 +- Rebuilt for Python 3.12 + +* Sat Jan 21 2023 Fedora Release Engineering releng@fedoraproject.org - 0.1.92-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Jul 23 2022 Fedora Release Engineering releng@fedoraproject.org - 0.1.92-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon Jun 13 2022 Python Maint python-maint@redhat.com - 0.1.92-7 +- Rebuilt for Python 3.11 + +* Sat Jan 22 2022 Fedora Release Engineering releng@fedoraproject.org - 0.1.92-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering releng@fedoraproject.org - 0.1.92-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri Jun 04 2021 Python Maint python-maint@redhat.com - 0.1.92-4 +- Rebuilt for Python 3.10 + +* Wed Jan 27 2021 Fedora Release Engineering releng@fedoraproject.org - 0.1.92-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Oct 07 2020 Kentaro Hayashi kenhys@gmail.com - 0.1.92-2 +- Add missing BuildRequires: python3-setuptools + +* Thu Oct 01 2020 Kentaro Hayashi kenhys@gmail.com - 0.1.92-1 +- New upstream release + +* Tue Sep 22 2020 Jeff Law law@redhat.com - 0.1.84-6 +- Use cmake_in_source_build to fix FTBFS due to recent cmake macro changes + +* Sat Aug 01 2020 Fedora Release Engineering releng@fedoraproject.org - 0.1.84-5 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering releng@fedoraproject.org - 0.1.84-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue May 26 2020 Miro Hrončok mhroncok@redhat.com - 0.1.84-3 +- Rebuilt for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering releng@fedoraproject.org - 0.1.84-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Nov 14 2019 Kentaro Hayashi hayashi@clear-code.com - 0.1.84-1 +- New upstream release + +* Mon Oct 07 2019 Kentaro Hayashi hayashi@clear-code.com - 0.1.83-1 +- initial packaging diff --git a/sentencepiece.spec b/sentencepiece.spec index f32110c..0411045 100644 --- a/sentencepiece.spec +++ b/sentencepiece.spec @@ -4,7 +4,7 @@
Name: sentencepiece Version: 0.1.92 -Release: 11%{?dist} +Release: %autorelease Summary: An unsupervised text tokenizer for Neural Network-based text generation
License: ASL 2.0 @@ -106,57 +106,4 @@ find %{buildroot} -name '*.a' -delete
%changelog -* Sat Jul 22 2023 Fedora Release Engineering releng@fedoraproject.org - 0.1.92-11 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild - -* Tue Jun 13 2023 Python Maint python-maint@redhat.com - 0.1.92-10 -- Rebuilt for Python 3.12 - -* Sat Jan 21 2023 Fedora Release Engineering releng@fedoraproject.org - 0.1.92-9 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild - -* Sat Jul 23 2022 Fedora Release Engineering releng@fedoraproject.org - 0.1.92-8 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild - -* Mon Jun 13 2022 Python Maint python-maint@redhat.com - 0.1.92-7 -- Rebuilt for Python 3.11 - -* Sat Jan 22 2022 Fedora Release Engineering releng@fedoraproject.org - 0.1.92-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild - -* Fri Jul 23 2021 Fedora Release Engineering releng@fedoraproject.org - 0.1.92-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild - -* Fri Jun 04 2021 Python Maint python-maint@redhat.com - 0.1.92-4 -- Rebuilt for Python 3.10 - -* Wed Jan 27 2021 Fedora Release Engineering releng@fedoraproject.org - 0.1.92-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - -* Wed Oct 07 2020 Kentaro Hayashi kenhys@gmail.com - 0.1.92-2 -- Add missing BuildRequires: python3-setuptools - -* Thu Oct 01 2020 Kentaro Hayashi kenhys@gmail.com - 0.1.92-1 -- New upstream release - -* Tue Sep 22 2020 Jeff Law law@redhat.com - 0.1.84-6 -- Use cmake_in_source_build to fix FTBFS due to recent cmake macro changes - -* Sat Aug 01 2020 Fedora Release Engineering releng@fedoraproject.org - 0.1.84-5 -- Second attempt - Rebuilt for - https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - -* Wed Jul 29 2020 Fedora Release Engineering releng@fedoraproject.org - 0.1.84-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - -* Tue May 26 2020 Miro Hrončok mhroncok@redhat.com - 0.1.84-3 -- Rebuilt for Python 3.9 - -* Thu Jan 30 2020 Fedora Release Engineering releng@fedoraproject.org - 0.1.84-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - -* Thu Nov 14 2019 Kentaro Hayashi hayashi@clear-code.com - 0.1.84-1 -- New upstream release - -* Mon Oct 07 2019 Kentaro Hayashi hayashi@clear-code.com - 0.1.83-1 -- initial packaging +%autochangelog
commit a3bd3e42b5505840af309b5826bc5b68045d0a9e Author: Fedora Release Engineering releng@fedoraproject.org Date: Sat Jul 22 01:25:02 2023 +0000
Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering releng@fedoraproject.org
diff --git a/sentencepiece.spec b/sentencepiece.spec index 56efb49..f32110c 100644 --- a/sentencepiece.spec +++ b/sentencepiece.spec @@ -4,7 +4,7 @@
Name: sentencepiece Version: 0.1.92 -Release: 10%{?dist} +Release: 11%{?dist} Summary: An unsupervised text tokenizer for Neural Network-based text generation
License: ASL 2.0 @@ -106,6 +106,9 @@ find %{buildroot} -name '*.a' -delete
%changelog +* Sat Jul 22 2023 Fedora Release Engineering releng@fedoraproject.org - 0.1.92-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + * Tue Jun 13 2023 Python Maint python-maint@redhat.com - 0.1.92-10 - Rebuilt for Python 3.12
commit 24f6483c4cc592f541ddeafc03da90beab580ede Author: Python Maint python-maint@redhat.com Date: Tue Jun 13 20:52:33 2023 +0200
Rebuilt for Python 3.12
diff --git a/sentencepiece.spec b/sentencepiece.spec index 0b30d1d..56efb49 100644 --- a/sentencepiece.spec +++ b/sentencepiece.spec @@ -4,7 +4,7 @@
Name: sentencepiece Version: 0.1.92 -Release: 9%{?dist} +Release: 10%{?dist} Summary: An unsupervised text tokenizer for Neural Network-based text generation
License: ASL 2.0 @@ -106,6 +106,9 @@ find %{buildroot} -name '*.a' -delete
%changelog +* Tue Jun 13 2023 Python Maint python-maint@redhat.com - 0.1.92-10 +- Rebuilt for Python 3.12 + * Sat Jan 21 2023 Fedora Release Engineering releng@fedoraproject.org - 0.1.92-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
arch-excludes@lists.fedoraproject.org