File rrcc.spec of Package rrcc
#
# spec file for package rrcc
#
# Copyright (c) 2022 SUSE LLC
#
# 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/
#
Name: rrcc
Version: 0.8.8
Release: 0
Summary: RoboRock Control Center
License: GPL-3.0-only
Group: Productivity/Networking/Other
URL: https://github.com/LazyT/rrcc
Source: %{name}-%{version}.tar.gz
Source1: %{name}.desktop
BuildRequires: chrpath
BuildRequires: libqt5-qtbase-devel >= 5.11
BuildRequires: pkgconfig
BuildRequires: pkgconfig(Qt5WebSockets)
BuildRequires: pkgconfig(libarchive)
BuildRequires: pkgconfig(libssh)
%description
Xiaomi vacuum cleaners are really nice, but need a cloud connection to use all features. You don't like your data in chinese hands? Then try RRCC for free and use it on Windows, Linux and MacOS!
%prep
%setup -q
%build
%qmake5
%make_jobs
%install
install -Dm 755 -s %{name} %{buildroot}%{_bindir}/%{name}
install -Dm 644 -t %{buildroot}%{_datadir}/applications %{SOURCE1}
install -Dm 644 res/ico/app.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
# Delete useless RPATH from binaries (RUNPATH: .)
chrpath -d %{buildroot}%{_bindir}/%{name}
%files
%license LICENSE
%doc README.md
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%changelog