Hello community,

here is the log from the commit of package python-sigal for openSUSE:Factory 
checked in at 2020-05-19 14:58:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-sigal (Old)
 and      /work/SRC/openSUSE:Factory/.python-sigal.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-sigal"

Tue May 19 14:58:48 2020 rev:6 rq:807292 version:2.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-sigal/python-sigal.changes        
2019-05-22 15:39:24.222532562 +0200
+++ /work/SRC/openSUSE:Factory/.python-sigal.new.2738/python-sigal.changes      
2020-05-19 14:59:02.109473983 +0200
@@ -1,0 +2,13 @@
+Tue May 19 11:16:12 UTC 2020 - pgaj...@suse.com
+
+- fix testsuite
+- added patches
+  fix 
https://github.com/saimn/sigal/commit/538f535b5ea1cca4ec52bff6cff15da015bdfa64
+  + python-sigal-test_image-gif-dimension.patch
+
+-------------------------------------------------------------------
+Tue May 19 09:28:04 UTC 2020 - Petr Gajdos <pgaj...@suse.com>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

New:
----
  python-sigal-test_image-gif-dimension.patch

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

Other differences:
------------------
++++++ python-sigal.spec ++++++
--- /var/tmp/diff_new_pack.5eu8aI/_old  2020-05-19 14:59:03.821477780 +0200
+++ /var/tmp/diff_new_pack.5eu8aI/_new  2020-05-19 14:59:03.825477789 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-sigal
 #
-# 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
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -25,8 +25,10 @@
 Summary:        Static gallery generator
 License:        MIT
 Group:          Development/Languages/Python
-Url:            https://github.com/saimn/sigal
+URL:            https://github.com/saimn/sigal
 Source:         
https://files.pythonhosted.org/packages/source/s/sigal/sigal-%{version}.tar.gz
+# 
https://github.com/saimn/sigal/commit/538f535b5ea1cca4ec52bff6cff15da015bdfa64
+Patch0:         python-sigal-test_image-gif-dimension.patch
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
@@ -36,6 +38,8 @@
 Requires:       python-blinker
 Requires:       python-click
 Requires:       python-pilkit
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 Suggests:       python-boto
 Suggests:       python-cssmin
 BuildArch:      noarch
@@ -66,21 +70,29 @@
 
 %prep
 %setup -q -n sigal-%{version}
+%patch0 -p1
 
 %build
 %python_build
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/sigal
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
 %pytest tests -k "not (test_generate_video_fit_height or 
test_generate_video_fit_width or test_generate_video_dont_enlarge or 
test_build)"
 
+%post
+%python_install_alternative sigal
+
+%postun
+%python_uninstall_alternative sigal
+
 %files %{python_files}
 %license LICENSE
 %doc AUTHORS README.rst
-%python3_only %{_bindir}/sigal
+%python_alternative %{_bindir}/sigal
 %{python_sitelib}/*
 
 %changelog

++++++ python-sigal-test_image-gif-dimension.patch ++++++
--- a/tests/test_image.py
+++ b/tests/test_image.py
@@ -111,7 +111,7 @@ def test_generate_image_processor(tmpdir):
 @pytest.mark.parametrize(
     ("image", "path", "wide_size", "high_size"),
     [(TEST_IMAGE, SRCFILE, (200, 133), (150, 100)),
-     (TEST_GIF_IMAGE, SRC_GIF_FILE, (134, 150), (150, 167))])
+     (TEST_GIF_IMAGE, SRC_GIF_FILE, (134, 150), (150, 168))])
 def test_generate_thumbnail(tmpdir, image, path, wide_size, high_size):
     "Test the generate_thumbnail function."
 


Reply via email to