Hello community, here is the log from the commit of package python-pyfeyn for openSUSE:Factory checked in at 2020-05-20 18:47:45 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pyfeyn (Old) and /work/SRC/openSUSE:Factory/.python-pyfeyn.new.2738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pyfeyn" Wed May 20 18:47:45 2020 rev:4 rq:807660 version:1.0.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pyfeyn/python-pyfeyn.changes 2020-01-09 22:54:45.014834068 +0100 +++ /work/SRC/openSUSE:Factory/.python-pyfeyn.new.2738/python-pyfeyn.changes 2020-05-20 18:47:52.989608631 +0200 @@ -1,0 +2,5 @@ +Wed May 20 07:26:25 UTC 2020 - Petr Gajdos <pgaj...@suse.com> + +- %python3_only -> %python_alternative + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pyfeyn.spec ++++++ --- /var/tmp/diff_new_pack.lJ1y0g/_old 2020-05-20 18:47:53.781610410 +0200 +++ /var/tmp/diff_new_pack.lJ1y0g/_new 2020-05-20 18:47:53.781610410 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-pyfeyn # -# Copyright (c) 2020 SUSE LLC. +# 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 @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -22,18 +22,19 @@ Version: 1.0.0 Release: 0 Summary: A Python library to help draw Feynman diagrams -License: GPL-2.0+ +License: GPL-2.0-or-later Group: Development/Languages/Python -Url: http://projects.hepforge.org/pyfeyn/ +URL: http://projects.hepforge.org/pyfeyn/ Source: https://files.pythonhosted.org/packages/source/p/pyfeyn/pyfeyn-%{version}.tar.gz BuildRequires: %{python_module PyX} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-PyX +Requires(post): update-alternatives +Requires(postun): update-alternatives Recommends: texlive-hepnames BuildArch: noarch - %python_subpackages %description @@ -52,10 +53,17 @@ %install %python_install +%python_clone -a %{buildroot}%{_bindir}/mkfeyndiag %python_expand %fdupes %{buildroot}%{$python_sitelib} +%post +%python_install_alternative mkfeyndiag + +%postun +%python_uninstall_alternative mkfeyndiag + %files %{python_files} -%python3_only %{_bindir}/mkfeyndiag +%python_alternative %{_bindir}/mkfeyndiag %{python_sitelib}/pyfeyn/ %{python_sitelib}/pyfeyn-%{version}-py*.egg-info