File labelImg.spec of Package labelImg
#
# spec file for package python-zeroconf
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: labelImg
Version: 1.8.1
Release: 0
Summary: Graphical image annotation tool
License: MIT
Group: Productivity/Graphics/Other
Url: https://github.com/tzutalin/labelImg
Source: labelImg-%{version}.tar.xz
Patch1: fix-resource-load.patch
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
BuildRequires: %{python_module lxml}
BuildRequires: %{python_module qt5-devel}
Requires: %{python_module lxml}
Requires: %{python_module qt5}
BuildArch: noarch
%python_subpackages
%description
LabelImg is a graphical image annotation tool and label object bounding boxes in images.
https://youtu.be/p0nR2YsCY_U
%prep
%setup -q -n labelImg-%{version}
%patch1 -p1
%build
export LC_ALL=C.utf-8
%python_build
make qt5py3
%install
export LC_ALL=C.utf-8
%python_install
cp resources.py %buildroot/%{python_sitelib}/labelImg/
%files %python_files
%license LICENSE
%doc README.rst CONTRIBUTING.rst
/usr/bin/labelImg
%{python_sitelib}/*
%changelog