Hello community, here is the log from the commit of package python-pypng for openSUSE:Factory checked in at 2020-05-23 17:27:01 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pypng (Old) and /work/SRC/openSUSE:Factory/.python-pypng.new.2738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pypng" Sat May 23 17:27:01 2020 rev:5 rq:807710 version:0.0.20 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pypng/python-pypng.changes 2019-07-23 22:35:41.014992358 +0200 +++ /work/SRC/openSUSE:Factory/.python-pypng.new.2738/python-pypng.changes 2020-05-23 17:28:15.475514106 +0200 @@ -1,0 +2,5 @@ +Wed May 20 07:26:40 UTC 2020 - Petr Gajdos <[email protected]> + +- %python3_only -> %python_alternative + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pypng.spec ++++++ --- /var/tmp/diff_new_pack.oenFvr/_old 2020-05-23 17:28:15.899515024 +0200 +++ /var/tmp/diff_new_pack.oenFvr/_new 2020-05-23 17:28:15.903515032 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-pypng # -# 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 @@ -16,6 +16,7 @@ # +%define binaries prichunkpng priforgepng prigreypng pripalpng pripamtopng pripnglsch pripngtopam priweavepng %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pypng Version: 0.0.20 @@ -30,6 +31,8 @@ BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch %python_subpackages @@ -45,14 +48,34 @@ %install %python_install +for b in %{binaries}; do + %python_clone -a %{buildroot}%{_bindir}/$b +done %python_expand %fdupes %{buildroot}%{$python_sitelib} %check %python_expand PYTHONPATH=%{buildroot}%{$python_sitelib}:code $python code/test_png.py +%post +for b in %{binaries}; do + %python_install_alternative $b +done + +%postun +for b in %{binaries}; do + %python_uninstall_alternative $b +done + %files %{python_files} %license LICENCE %{python_sitelib}/* -%python3_only %{_bindir}/* +%python_alternative %{_bindir}/prichunkpng +%python_alternative %{_bindir}/priforgepng +%python_alternative %{_bindir}/prigreypng +%python_alternative %{_bindir}/pripalpng +%python_alternative %{_bindir}/pripamtopng +%python_alternative %{_bindir}/pripnglsch +%python_alternative %{_bindir}/pripngtopam +%python_alternative %{_bindir}/priweavepng %changelog
