Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-fasttext for openSUSE:Factory checked in at 2025-08-21 16:52:18 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-fasttext (Old) and /work/SRC/openSUSE:Factory/.python-fasttext.new.29662 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-fasttext" Thu Aug 21 16:52:18 2025 rev:6 rq:1300402 version:0.9.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-fasttext/python-fasttext.changes 2024-10-12 13:24:41.225694312 +0200 +++ /work/SRC/openSUSE:Factory/.python-fasttext.new.29662/python-fasttext.changes 2025-08-21 16:52:54.889875757 +0200 @@ -1,0 +2,5 @@ +Tue Aug 19 13:15:46 UTC 2025 - Markéta Machová <mmach...@suse.com> + +- Convert to libalternatives on SLE-16-based and newer systems + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-fasttext.spec ++++++ --- /var/tmp/diff_new_pack.03WSoa/_old 2025-08-21 16:53:00.110094382 +0200 +++ /var/tmp/diff_new_pack.03WSoa/_new 2025-08-21 16:53:00.114094549 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-fasttext # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -20,6 +20,11 @@ %define sover 0 # Using annotation futures and dataclasses %define skip_python36 1 +%if 0%{?suse_version} > 1500 +%bcond_without libalternatives +%else +%bcond_with libalternatives +%endif %{?sle15_python_module_pythons} Name: python-fasttext Version: 0.9.2 @@ -39,34 +44,33 @@ BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} BuildRequires: cmake +BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: ninja BuildRequires: python-rpm-macros +Requires: fasttext +Requires: python-numpy +Requires: python-pybind11 >= 2.2 +Requires: python-setuptools >= 0.7.0 +Provides: fasttext = %{version} +%if %{with libalternatives} +BuildRequires: alts +Requires: alts +%else +Requires(post): update-alternatives +Requires(postun): update-alternatives +%endif # SECTION test requirements BuildRequires: %{python_module numpy} BuildRequires: %{python_module pybind11 >= 2.2} BuildRequires: %{python_module setuptools >= 0.7.0} # /SECTION -BuildRequires: fdupes -Requires: fasttext -Requires: python-numpy -Requires: python-pybind11 >= 2.2 -Requires: python-setuptools >= 0.7.0 %python_subpackages %description fastText is a library for efficient learning of word representations and sentence classification. -%package -n fasttext -Summary: Fast text representation and classification - -%description -n fasttext -fastText is a library for efficient learning of word -representations and sentence classification. - -This package provides the fasttext binary. - %package -n fasttext-devel Summary: Development files for fasttext Requires: libfasttext%{sover} @@ -106,6 +110,7 @@ %install %cmake_install %pyproject_install +%python_clone -a %{buildroot}%{_bindir}/fasttext %{python_expand : %fdupes %{buildroot}%{$python_sitearch} } @@ -115,16 +120,22 @@ %ldconfig_scriptlets -n libfasttext%{sover} +%pre +%python_libalternatives_reset_alternative fasttext + +%post +%python_install_alternative fasttext + +%postun +%python_uninstall_alternative fasttext + %files %{python_files} +%doc README.md docs/ %license LICENSE %{python_sitearch}/fasttext %{python_sitearch}/fasttext-%{version}*-info %{python_sitearch}/fasttext_pybind.*.so - -%files -n fasttext -%doc README.md docs/ -%license LICENSE -%{_bindir}/fasttext +%python_alternative %{_bindir}/fasttext %files -n fasttext-devel %dir %{_includedir}/fasttext