Hello community,

here is the log from the commit of package python-spec for openSUSE:Factory 
checked in at 2020-05-28 09:07:53
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-spec (Old)
 and      /work/SRC/openSUSE:Factory/.python-spec.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-spec"

Thu May 28 09:07:53 2020 rev:3 rq:807166 version:1.4.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-spec/python-spec.changes  2018-12-24 
11:44:20.517295216 +0100
+++ /work/SRC/openSUSE:Factory/.python-spec.new.3606/python-spec.changes        
2020-05-28 09:07:54.559805170 +0200
@@ -1,0 +2,5 @@
+Tue May 19 08:59:17 UTC 2020 - Tomáš Chvátal <[email protected]>
+
+- Switch from python3_only to python_alternative
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-spec.spec ++++++
--- /var/tmp/diff_new_pack.tqAKqR/_old  2020-05-28 09:07:55.051806644 +0200
+++ /var/tmp/diff_new_pack.tqAKqR/_new  2020-05-28 09:07:55.055806657 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-spec
 #
-# Copyright (c) 2018 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
@@ -23,7 +23,7 @@
 Summary:        Specification-style output for nose
 License:        MIT
 Group:          Development/Languages/Python
-Url:            https://github.com/bitprophet/spec
+URL:            https://github.com/bitprophet/spec
 Source:         
https://files.pythonhosted.org/packages/source/s/spec/spec-%{version}.tar.gz
 # license is not included in sdist tarball, upstream fix: 
https://github.com/bitprophet/spec/pull/46
 Source1:        https://github.com/bitprophet/spec/raw/%{version}/LICENSE
@@ -32,9 +32,9 @@
 BuildRequires:  python-rpm-macros
 Requires:       python-nose >= 1.3
 Requires:       python-six < 2.0
-BuildRequires:  fdupes
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 BuildArch:      noarch
-
 %python_subpackages
 
 %description
@@ -49,13 +49,18 @@
 
 %install
 %python_install
-%python_clone %{buildroot}%{_bindir}/spec
+%python_clone -a %{buildroot}%{_bindir}/spec
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
+%post
+%python_install_alternative spec
+
+%postun
+%python_uninstall_alternative spec
+
 %files %{python_files}
 %license LICENSE
-%python3_only %{_bindir}/spec
-%{_bindir}/spec-%{python_bin_suffix}
+%python_alternative %{_bindir}/spec
 %{python_sitelib}/*
 
 %changelog


Reply via email to