Hello community, here is the log from the commit of package python-pdd for openSUSE:Leap:15.2 checked in at 2020-05-28 20:10:37 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Leap:15.2/python-pdd (Old) and /work/SRC/openSUSE:Leap:15.2/.python-pdd.new.3606 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pdd" Thu May 28 20:10:37 2020 rev:2 rq:809500 version:1.4 Changes: -------- --- /work/SRC/openSUSE:Leap:15.2/python-pdd/python-pdd.changes 2020-02-22 17:50:02.205479797 +0100 +++ /work/SRC/openSUSE:Leap:15.2/.python-pdd.new.3606/python-pdd.changes 2020-05-28 20:10:37.883083872 +0200 @@ -1,0 +2,5 @@ +Wed May 20 07:26:09 UTC 2020 - Petr Gajdos <[email protected]> + +- %python3_only -> %python_alternative + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pdd.spec ++++++ --- /var/tmp/diff_new_pack.mUaPUV/_old 2020-05-28 20:10:38.195084800 +0200 +++ /var/tmp/diff_new_pack.mUaPUV/_new 2020-05-28 20:10:38.195084800 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-pdd # -# 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 @@ -18,7 +18,6 @@ # pdd is not available for Python 2 %define skip_python2 1 - %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pdd Version: 1.4 @@ -26,20 +25,21 @@ Summary: Tiny date, time diff calculator with timers License: GPL-3.0-only Group: Development/Languages/Python -Url: https://github.com/jarun/pdd +URL: https://github.com/jarun/pdd Source: https://files.pythonhosted.org/packages/source/p/pdd/pdd-%{version}.tar.gz BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} +BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: python-python-dateutil +Requires: python-setuptools +Requires(post): update-alternatives +Requires(postun): update-alternatives +BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module pytest} BuildRequires: %{python_module python-dateutil} # /SECTION -BuildRequires: fdupes -Requires: python-python-dateutil -Requires: python-setuptools -BuildArch: noarch - %python_subpackages %description @@ -56,16 +56,23 @@ %install %python_install +%python_clone -a %{buildroot}%{_bindir}/pdd %python_expand %fdupes %{buildroot}%{$python_sitelib} %check chmod 755 pdd %pytest test.py +%post +%python_install_alternative pdd + +%postun +%python_uninstall_alternative pdd + %files %{python_files} %doc README.md CHANGELOG %license LICENSE -%python3_only %{_bindir}/pdd +%python_alternative %{_bindir}/pdd %{python_sitelib}/* %changelog
