Hello community,
here is the log from the commit of package python-Morfessor for
openSUSE:Factory checked in at 2020-05-26 17:23:50
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-Morfessor (Old)
and /work/SRC/openSUSE:Factory/.python-Morfessor.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-Morfessor"
Tue May 26 17:23:50 2020 rev:3 rq:808673 version:2.0.6
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-Morfessor/python-Morfessor.changes
2019-08-19 21:38:16.644351037 +0200
+++
/work/SRC/openSUSE:Factory/.python-Morfessor.new.2738/python-Morfessor.changes
2020-05-26 17:23:50.404557807 +0200
@@ -1,0 +2,5 @@
+Mon May 25 06:50:51 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-Morfessor.spec ++++++
--- /var/tmp/diff_new_pack.waI8lq/_old 2020-05-26 17:23:50.960559002 +0200
+++ /var/tmp/diff_new_pack.waI8lq/_new 2020-05-26 17:23:50.964559011 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-Morfessor
#
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -28,6 +28,8 @@
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
BuildArch: noarch
%python_subpackages
@@ -44,6 +46,10 @@
%install
%python_install
+%python_clone -a %{buildroot}%{_bindir}/morfessor-train
+%python_clone -a %{buildroot}%{_bindir}/morfessor-segment
+%python_clone -a %{buildroot}%{_bindir}/morfessor-evaluate
+%python_clone -a %{buildroot}%{_bindir}/morfessor
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@@ -51,13 +57,25 @@
$python morfessor/test/evaluation.py
}
+%post
+%python_install_alternative morfessor-train
+%python_install_alternative morfessor-segment
+%python_install_alternative morfessor-evaluate
+%python_install_alternative morfessor
+
+%postun
+%python_uninstall_alternative morfessor-train
+%python_uninstall_alternative morfessor-segment
+%python_uninstall_alternative morfessor-evaluate
+%python_uninstall_alternative morfessor
+
%files %{python_files}
%doc README
%license LICENSE
-%python3_only %{_bindir}/morfessor
-%python3_only %{_bindir}/morfessor-evaluate
-%python3_only %{_bindir}/morfessor-segment
-%python3_only %{_bindir}/morfessor-train
+%python_alternative %{_bindir}/morfessor
+%python_alternative %{_bindir}/morfessor-evaluate
+%python_alternative %{_bindir}/morfessor-segment
+%python_alternative %{_bindir}/morfessor-train
%{python_sitelib}/*
%changelog