File rustdesk.spec of Package rustdesk

#
# spec file for package rustdesk
#
# Copyright (c) 2025 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:           rustdesk
Version:        1.3.8
Release:        0
Summary:        Client for the RustDesk open-source remote desktop application
License:        AGPL-3.0-only
URL:            https://github.com/rustdesk/rustdesk
Source0:        %{name}-%{version}.tar.gz
Source1:        vendor.tar.zst
BuildRequires:  cargo-packaging
BuildRequires:  pkgconfig
BuildRequires:  rust >= 1.70
BuildRequires:  gcc
BuildRequires:  gcc-c++
BuildRequires:  git-core
BuildRequires:  nasm
BuildRequires:  yasm
BuildRequires:  gtk3-devel
BuildRequires:  clang
BuildRequires:  pkgconfig(opus)
BuildRequires:  clang-devel
BuildRequires:  libxcb-devel
BuildRequires:  libXfixes-devel
BuildRequires:  cmake
BuildRequires:  alsa-lib-devel
BuildRequires:  gstreamer-devel
BuildRequires:  gstreamer-plugins-base-devel
BuildRequires:  xdotool-devel
BuildRequires:  pam-devel
BuildRequires:  libvpx-devel
BuildRequires:  libyuv-devel
BuildRequires:  libaom-devel

%description
An open-source remote desktop application designed for self-hosting, as an
alternative to TeamViewer.

Yet another remote desktop software, written in Rust. Works out of the box, no
configuration required. You have full control of your data, with no concerns
about security. You can use our rendezvous/relay server, set up your own, or
write your own rendezvous/relay server.

%prep
%autosetup -a1

%build
%{cargo_build}

%install
%{cargo_install} --frozen
mkdir -p %{buildroot}/var/lib/%{name}

%files
%license LICENSE
%doc README.md
%{_bindir}/rustdesk

%changelog
openSUSE Build Service is sponsored by