File OpenSCQ30.spec of Package OpenSCQ30
#
# spec file for package OpenSCQ30
#
# Copyright (c) 2026 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: OpenSCQ30
Version: 2.4.0
Release: 0
Summary: Application for controlling settings of Soundcore headphones
License: GPL-3.0
URL: https://github.com/Oppzippy/OpenSCQ30
Source0: %{name}-%{version}.tar.xz
Source1: vendor.tar.xz
BuildRequires: cargo-packaging
%if 0%{?suse_version} <= 1600
BuildRequires: cargo1.90
BuildRequires: rust1.90
%else
BuildRequires: cargo
BuildRequires: rust >= 1.90
%endif
BuildRequires: pkgconfig
BuildRequires: pkgconfig(xkbcommon) >= 0.8.0
BuildRequires: pkgconfig(dbus-1) >= 1.6
BuildRequires: pkgconfig(sqlite3)
#Requires:
%description
Cross platform application for controlling settings of Soundcore headphones. Supports desktop (CLI and GUI) and Android.
%prep
%autosetup -a1 -n %{name}-%{version}
%build
#%%{cargo_build}
#%%{cargo_build} --all
%{cargo_build} -p openscq30-cli
%{cargo_build} -p openscq30-gui
%install
#%%{cargo_install}
%{cargo_install -p cli}
%{cargo_install -p gui}
%check
##%%{cargo_test}
%files
%license LICENSE.txt
%doc README.md
%{_bindir}/openscq30
%{_bindir}/openscq30-gui
%changelog