Hello community,
here is the log from the commit of package python-panflute for
openSUSE:Leap:15.2 checked in at 2020-05-28 20:10:46
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-panflute (Old)
and /work/SRC/openSUSE:Leap:15.2/.python-panflute.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-panflute"
Thu May 28 20:10:46 2020 rev:4 rq:809517 version:1.12.5
Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/python-panflute/python-panflute.changes
2020-04-25 19:06:47.239815361 +0200
+++
/work/SRC/openSUSE:Leap:15.2/.python-panflute.new.3606/python-panflute.changes
2020-05-28 20:10:48.655115934 +0200
@@ -1,0 +2,5 @@
+Wed May 20 07:26:02 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-panflute.spec ++++++
--- /var/tmp/diff_new_pack.wb5g65/_old 2020-05-28 20:10:48.983116910 +0200
+++ /var/tmp/diff_new_pack.wb5g65/_new 2020-05-28 20:10:48.983116910 +0200
@@ -32,6 +32,8 @@
Requires: python-PyYAML
Requires: python-click
Requires: python-future
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module PyYAML}
@@ -60,14 +62,24 @@
%install
%python_install
+%python_clone -a %{buildroot}%{_bindir}/panfl
+%python_clone -a %{buildroot}%{_bindir}/panflute
%python_expand %fdupes %{buildroot}%{$python_sitelib}
sed -i 's|shutilwhich||'
%{buildroot}%{python3_sitelib}/panflute-*.egg-info/requires.txt
+%post
+%python_install_alternative panfl
+%python_install_alternative panflute
+
+%postun
+%python_uninstall_alternative panfl
+%python_uninstall_alternative panflute
+
%files %{python_files}
%doc README.md
%license LICENSE
-%python3_only %{_bindir}/panflute
-%python3_only %{_bindir}/panfl
+%python_alternative %{_bindir}/panflute
+%python_alternative %{_bindir}/panfl
%{python_sitelib}/*
%changelog