Hello community,
here is the log from the commit of package python-cppclean for openSUSE:Factory
checked in at 2020-05-28 09:19:46
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-cppclean (Old)
and /work/SRC/openSUSE:Factory/.python-cppclean.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-cppclean"
Thu May 28 09:19:46 2020 rev:4 rq:809607 version:0.13
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-cppclean/python-cppclean.changes
2019-09-27 14:47:09.816965220 +0200
+++
/work/SRC/openSUSE:Factory/.python-cppclean.new.3606/python-cppclean.changes
2020-05-28 09:19:50.157265594 +0200
@@ -1,0 +2,5 @@
+Wed May 27 09:36:50 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-cppclean.spec ++++++
--- /var/tmp/diff_new_pack.jhnIDC/_old 2020-05-28 09:19:50.705266597 +0200
+++ /var/tmp/diff_new_pack.jhnIDC/_new 2020-05-28 09:19:50.709266604 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-cppclean
#
-# 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
@@ -29,8 +29,9 @@
BuildRequires: bash
BuildRequires: fdupes
BuildRequires: python-rpm-macros
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
BuildArch: noarch
-
%python_subpackages
%description
@@ -48,15 +49,22 @@
%install
%python_install
+%python_clone -a %{buildroot}%{_bindir}/cppclean
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_expand PYTHON=%{__$python} bash test.bash
+%post
+%python_install_alternative cppclean
+
+%postun
+%python_uninstall_alternative cppclean
+
%files %{python_files}
%license COPYING
%doc README.rst
-%python3_only %{_bindir}/cppclean
+%python_alternative %{_bindir}/cppclean
%{python_sitelib}/*
%changelog