2019-10-06 13:53:57 +02:00
|
|
|
#
|
|
|
|
# spec file for package brickv
|
|
|
|
#
|
2020-01-06 22:45:53 +01:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2019-10-06 13:53:57 +02:00
|
|
|
# Copyright (c) 2019 Frank Kunz
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2020-01-06 22:45:53 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2019-10-06 13:53:57 +02:00
|
|
|
|
|
|
|
Name: brickv
|
2020-03-25 20:00:04 +01:00
|
|
|
Version: 2.4.12
|
2019-10-06 13:53:57 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Tinkerforge Brick Viewer
|
|
|
|
License: GPL-2.0-only
|
|
|
|
Group: Development/Tools/Debuggers
|
2020-01-06 22:45:53 +01:00
|
|
|
URL: http://www.tinkerforge.com
|
2019-10-14 19:21:35 +02:00
|
|
|
Source0: https://github.com/Tinkerforge/brickv/archive/v%{version}.tar.gz
|
2019-10-06 13:53:57 +02:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: iso-codes
|
2020-01-06 22:45:53 +01:00
|
|
|
BuildRequires: mobile-broadband-provider-info
|
|
|
|
BuildRequires: python3-qt5
|
|
|
|
BuildRequires: python3-rpm-macros
|
|
|
|
BuildRequires: python3-setuptools
|
2019-10-06 13:53:57 +02:00
|
|
|
BuildRequires: update-desktop-files
|
2020-01-06 22:45:53 +01:00
|
|
|
Requires: python3-pytz
|
2019-10-06 13:53:57 +02:00
|
|
|
Requires: python3-qt5
|
|
|
|
Requires: python3-serial
|
|
|
|
Requires: python3-tzlocal
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
Small Qt GUI to control and test all Bricks and Bricklets from Tinkerforge.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
export SERVICEPROVIDERS_XML_PATH=/usr/share/mobile-broadband-provider-info/serviceproviders.xml
|
|
|
|
export ISOCODES_JSON_PATH=/usr/share/iso-codes/json/iso_3166-1.json
|
|
|
|
# force UTF-8 for build scripts
|
|
|
|
export LANG=C.UTF-8
|
|
|
|
pushd src
|
|
|
|
python3 build_src.py
|
|
|
|
# remove no more needed build scripts
|
|
|
|
rm -f build_src.py brickv/plugin_system/plugins/red/build_extra.py brickv/plugin_system/plugins/red/build_scripts.py
|
|
|
|
popd
|
|
|
|
|
|
|
|
%install
|
|
|
|
pushd src
|
|
|
|
python3 setup.py install --root=%{buildroot} --prefix=/usr
|
2020-08-20 09:45:21 +02:00
|
|
|
install -m 644 -D -t %{buildroot}%{_udevrulesdir} build_data/linux/%{name}/lib/udev/rules.d/99-tinkerforge-brickv.rules
|
2019-10-06 13:53:57 +02:00
|
|
|
install -m 644 -D -t %{buildroot}/usr/share/pixmaps build_data/linux/%{name}/usr/share/pixmaps/brickv-icon.png
|
|
|
|
install -m 644 -D -t %{buildroot}/usr/share/applications build_data/linux/%{name}/usr/share/applications/%{name}.desktop
|
|
|
|
popd
|
|
|
|
%fdupes -s %{buildroot}%{python3_sitelib}/brickv/
|
|
|
|
%suse_update_desktop_file -r %{name} Development Debugger
|
|
|
|
|
|
|
|
%files -n %{name}
|
|
|
|
%doc src/changelog README.rst
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{python3_sitelib}/brickv*
|
2020-08-20 09:45:21 +02:00
|
|
|
%{_udevrulesdir}/*.rules
|
2019-10-06 13:53:57 +02:00
|
|
|
/usr/share/pixmaps/*
|
|
|
|
/usr/share/applications/*
|
|
|
|
|
|
|
|
%changelog
|