Hello community,
here is the log from the commit of package python-panflute for openSUSE:Factory
checked in at 2020-05-26 17:16:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-panflute (Old)
and /work/SRC/openSUSE:Factory/.python-panflute.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-panflute"
Tue May 26 17:16:29 2020 rev:5 rq:807644 version:1.12.5
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-panflute/python-panflute.changes
2020-04-21 13:10:28.444789164 +0200
+++
/work/SRC/openSUSE:Factory/.python-panflute.new.2738/python-panflute.changes
2020-05-26 17:17:33.451747114 +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.kUqpyH/_old 2020-05-26 17:17:34.955750375 +0200
+++ /var/tmp/diff_new_pack.kUqpyH/_new 2020-05-26 17:17:34.959750383 +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