Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-labelImg for openSUSE:Factory
checked in at 2021-02-18 20:39:58
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-labelImg (Old)
and /work/SRC/openSUSE:Factory/.python-labelImg.new.28504 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-labelImg"
Thu Feb 18 20:39:58 2021 rev:2 rq:868542 version:1.8.4
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-labelImg/python-labelImg.changes
2020-03-07 21:41:05.432387692 +0100
+++
/work/SRC/openSUSE:Factory/.python-labelImg.new.28504/python-labelImg.changes
2021-02-18 20:50:22.691324897 +0100
@@ -1,0 +2,7 @@
+Tue Feb 2 08:24:03 UTC 2021 - Guillaume GARDET <[email protected]>
+
+- Update to 1.8.4:
+ * Various bugfixes
+- Fix packaging for Tumbleweed with multiple python versions
+
+-------------------------------------------------------------------
Old:
----
v1.8.3.tar.gz
New:
----
v1.8.4.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-labelImg.spec ++++++
--- /var/tmp/diff_new_pack.eIFvTR/_old 2021-02-18 20:50:40.671341776 +0100
+++ /var/tmp/diff_new_pack.eIFvTR/_new 2021-02-18 20:50:40.675341780 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-labelImg
#
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -19,7 +19,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-labelImg
-Version: 1.8.3
+Version: 1.8.4
Release: 0
Summary: Graphical image annotation tool
License: MIT
@@ -28,10 +28,12 @@
BuildRequires: %{python_module lxml}
BuildRequires: %{python_module qt5-devel}
BuildRequires: %{python_module setuptools}
+BuildRequires: fdupes
BuildRequires: python-rpm-macros
-BuildRequires: xvfb-run fdupes
+BuildRequires: xvfb-run
Requires: python-lxml
Requires: python-qt5
+Provides: labelImg
BuildArch: noarch
%python_subpackages
@@ -42,6 +44,8 @@
%setup -q -n labelImg-%{version}
%build
+# Fix rpm runtime dependency rpmlint error replace the shebang in all the
scripts with %%{_bindir}/python3
+find . -name "*.py" -exec sed -i 's|#!%{_bindir}/env
python|#!%{_bindir}/python3|' {} ";"
%make_build qt5py3
export LC_ALL=C.utf-8
%python_build
@@ -49,16 +53,25 @@
%install
export LC_ALL=C.utf-8
%python_install
+# Fix permissions
+%python_expand chmod 0755 %{buildroot}%{$python_sitelib}/labelImg/labelImg.py
+%python_clone -a %{buildroot}%{_bindir}/labelImg
%python_expand %fdupes %{buildroot}/%{$python_sitelib}
%check
export LC_ALL=C.utf-8
-%python_expand PYTHONPATH=%{buildroot}/%{$python_sitelib} xvfb-run $python -m
unittest discover tests -v
+%python_expand PYTHONPATH=%{buildroot}/%{$python_sitelib} xvfb-run -a $python
-m unittest discover tests -v
+
+%post
+%python_install_alternative labelImg
+
+%postun
+%python_uninstall_alternative labelImg
%files %{python_files}
%license LICENSE
%doc README.rst CONTRIBUTING.rst
-%{_bindir}/labelImg
+%python_alternative %{_bindir}/labelImg
%{python_sitelib}/*
%changelog
++++++ v1.8.3.tar.gz -> v1.8.4.tar.gz ++++++
/work/SRC/openSUSE:Factory/python-labelImg/v1.8.3.tar.gz
/work/SRC/openSUSE:Factory/.python-labelImg.new.28504/v1.8.4.tar.gz differ:
char 25, line 1