Hello community, here is the log from the commit of package python-limnoria for openSUSE:Factory checked in at 2018-09-03 10:34:22 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-limnoria (Old) and /work/SRC/openSUSE:Factory/.python-limnoria.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-limnoria" Mon Sep 3 10:34:22 2018 rev:5 rq:632453 version:2018.06.25.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-limnoria/python-limnoria.changes 2018-08-18 00:06:30.443507196 +0200 +++ /work/SRC/openSUSE:Factory/.python-limnoria.new/python-limnoria.changes 2018-09-03 10:34:24.048560809 +0200 @@ -1,0 +2,6 @@ +Tue Aug 28 09:15:35 UTC 2018 - barendartc...@suse.com + +- enable Python 2 binaries with update-alternatives: they are + needed for running legacy plugins + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-limnoria.spec ++++++ --- /var/tmp/diff_new_pack.fNTOQu/_old 2018-09-03 10:34:24.736562582 +0200 +++ /var/tmp/diff_new_pack.fNTOQu/_new 2018-09-03 10:34:24.736562582 +0200 @@ -47,6 +47,8 @@ Requires: python-python-dateutil Requires: python-python-gnupg Requires: python-pytz +Requires(post): update-alternatives +Requires(postun): update-alternatives Provides: Supybot = %{version} Obsoletes: Supybot < 1.0 BuildArch: noarch @@ -66,8 +68,21 @@ %install %python_install - %python_expand %fdupes %{buildroot}%{$python_sitelib}/supybot/ +%python_clone -a %{buildroot}%{_mandir}/man1/supybot.1 +%python_clone -a %{buildroot}%{_mandir}/man1/supybot-adduser.1 +%python_clone -a %{buildroot}%{_mandir}/man1/supybot-botchk.1 +%python_clone -a %{buildroot}%{_mandir}/man1/supybot-plugin-create.1 +%python_clone -a %{buildroot}%{_mandir}/man1/supybot-plugin-doc.1 +%python_clone -a %{buildroot}%{_mandir}/man1/supybot-test.1 +%python_clone -a %{buildroot}%{_mandir}/man1/supybot-wizard.1 +%python_clone -a %{buildroot}%{_bindir}/supybot +%python_clone -a %{buildroot}%{_bindir}/supybot-adduser +%python_clone -a %{buildroot}%{_bindir}/supybot-botchk +%python_clone -a %{buildroot}%{_bindir}/supybot-plugin-create +%python_clone -a %{buildroot}%{_bindir}/supybot-plugin-doc +%python_clone -a %{buildroot}%{_bindir}/supybot-test +%python_clone -a %{buildroot}%{_bindir}/supybot-wizard %check %{python_expand export PYTHONDONTWRITEBYTECODE=1 @@ -75,12 +90,34 @@ %python_exec test/test.py } +%post +%{python_install_alternative supybot supybot-adduser supybot-botchk + supybot-plugin-create supybot-plugin-doc supybot-test supybot-wizard + supybot.1 supybot-adduser.1 supybot-botchk.1 supybot-plugin-create.1 + supybot-plugin-doc.1 supybot-test.1 supybot-wizard.1 +} + +%postun +%{python_uninstall_alternative supybot} + %files %{python_files} %doc README.md CONTRIBUTING.md %license LICENSE.md -%python3_only %{_bindir}/supybot -%python3_only %{_bindir}/supybot-* -%{python_sitelib}/* -%python3_only %{_mandir}/man1/supybot*%{ext_man} +%python_alternative %{_bindir}/supybot +%python_alternative %{_bindir}/supybot-adduser +%python_alternative %{_bindir}/supybot-botchk +%python_alternative %{_bindir}/supybot-plugin-create +%python_alternative %{_bindir}/supybot-plugin-doc +%python_alternative %{_bindir}/supybot-test +%python_alternative %{_bindir}/supybot-wizard +%{python_sitelib}/supybot/ +%{python_sitelib}/limnoria-*.egg-info +%python_alternative %{_mandir}/man1/supybot.1 +%python_alternative %{_mandir}/man1/supybot-adduser.1 +%python_alternative %{_mandir}/man1/supybot-botchk.1 +%python_alternative %{_mandir}/man1/supybot-plugin-create.1 +%python_alternative %{_mandir}/man1/supybot-plugin-doc.1 +%python_alternative %{_mandir}/man1/supybot-test.1 +%python_alternative %{_mandir}/man1/supybot-wizard.1 %changelog