File rustdesk.spec of Package rustdesk

#
# spec file for package rustdesk
#
# Copyright (c) 2025 Boian Berberov
#
# 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.4.0
Release:        0%{?dist}
Summary:        Remote desktop application designed for self-hosting
License:        AGPL-3.0
URL:            https://rustdesk.com/

Source0:        %{name}-%{version}.tar.gz
Source1:        vendor.tar.zst

# Rust 2024 to force devel:languages:rust repo packages
BuildRequires:  cargo >= 1.85.0

%if 0%{?is_opensuse}
BuildRequires:  cargo-packaging
%endif

%if 0%{?fedora} || 9 <= 0%{?rhel} || 0%{?mageia}
BuildRequires:  cargo-rpm-macros >= 24
%endif

BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  nasm
BuildRequires:  pkgconfig
BuildRequires:  yasm

BuildRequires:  gtk3-devel

BuildRequires:  libxcb-devel
BuildRequires:  libXfixes-devel
BuildRequires:  alsa-lib-devel
BuildRequires:  pkgconfig(gstreamer-1.0)
BuildRequires:  pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires:  pkgconfig(libxdo)
BuildRequires:  pam-devel

BuildRequires:  pkgconfig(opus)
BuildRequires:  libvpx-devel
BuildRequires:  libyuv-devel
BuildRequires:  libaom-devel

# Dependencies require
%if 0%{?is_opensuse}
BuildRequires:  libclang13
%else
BuildRequires:  clang-libs
%endif

%description
Remote desktop application designed for self-hosting



%prep
# Run before setup so it does not clobber the vendor tarball
%if 0%{?fedora} || 9 <= 0%{?rhel} || 0%{?mageia}
%cargo_prep
%endif

%setup -q -a 1



%build
%cargo_build



%install
%cargo_install

mkdir -p %{buildroot}%{_sharedstatedir}/%{name}



%files
%license        LICENSE
%dir            %{_sharedstatedir}/%{name}

%{_bindir}/%{name}



%changelog

* Wed Jul 23 2025 Boian Berberov
- Initial package
openSUSE Build Service is sponsored by