Hello community,

here is the log from the commit of package python-htmlmin for openSUSE:Factory 
checked in at 2020-05-26 17:49:45
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-htmlmin (Old)
 and      /work/SRC/openSUSE:Factory/.python-htmlmin.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-htmlmin"

Tue May 26 17:49:45 2020 rev:3 rq:808795 version:0.1.12

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-htmlmin/python-htmlmin.changes    
2019-06-06 18:17:26.048684064 +0200
+++ /work/SRC/openSUSE:Factory/.python-htmlmin.new.2738/python-htmlmin.changes  
2020-05-26 17:49:48.583944903 +0200
@@ -1,0 +2,5 @@
+Mon May 25 10:59:19 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-htmlmin.spec ++++++
--- /var/tmp/diff_new_pack.7nGXXl/_old  2020-05-26 17:49:49.619947173 +0200
+++ /var/tmp/diff_new_pack.7nGXXl/_new  2020-05-26 17:49:49.623947182 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-htmlmin
 #
-# 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
@@ -23,7 +23,7 @@
 Summary:        An HTML Minifier
 License:        BSD-3-Clause
 Group:          Development/Languages/Python
-Url:            https://htmlmin.readthedocs.io/en/latest/
+URL:            https://htmlmin.readthedocs.io/en/latest/
 Source0:        
https://files.pythonhosted.org/packages/source/h/htmlmin/htmlmin-%{version}.tar.gz
 # https://github.com/mankyd/htmlmin/issues/51
 Source1:        tests.tar.bz2
@@ -31,11 +31,12 @@
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:       python-setuptools
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
+BuildArch:      noarch
 # SECTION test requirements
 BuildRequires:  %{python_module pytest}
 # /SECTION
-BuildArch:      noarch
-
 %python_subpackages
 
 %description
@@ -45,22 +46,29 @@
 %setup -q -n htmlmin-%{version} -a1
 # command.py is installed without exec permissions (and they're actually not 
needed) so
 # we remove the shebang
-sed -ie "s,#!/usr/bin/env python,##!/usr/bin/python3," htmlmin/command.py
+sed -ie "s,#!%{_bindir}/env python,##!%{_bindir}/python3," htmlmin/command.py
 
 %build
 %python_build
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/htmlmin
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
 %pytest
 
+%post
+%python_install_alternative htmlmin
+
+%postun
+%python_uninstall_alternative htmlmin
+
 %files %{python_files}
 %doc README.rst
 %license LICENSE
-%python3_only %{_bindir}/htmlmin
+%python_alternative %{_bindir}/htmlmin
 %{python_sitelib}/*
 
 %changelog


Reply via email to