File rustdesk.spec of Package rustdesk

#
# spec file for package rustdesk
#
# 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:           rustdesk
Version:        1.1.9~0
Release:        0
Summary:        Open source virtual remote desktop
License:        AGPL-3.0-only
Group:          Productivity/Networking/Other
URL:            https://rustdesk.com/
Source0:        %{name}-%{version}.tar.xz
Source1:        vendor.tar.xz
Source2:        cargo_config
Source3:        https://raw.githubusercontent.com/c-smile/sciter-sdk/master/bin.lnx/x64/libsciter-gtk.so
BuildRequires:  cargo-packaging
BuildRequires:  rust
BuildRequires:  vcpkg-tool
BuildRequires:  pkgconfig(opus)
BuildRequires:  pkgconfig(vpx)
BuildRequires:  pkgconfig(xcb)
BuildRequires:  pkgconfig(xcb)
BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  pkgconfig(libpulse)
BuildRequires:  pkgconfig(libxdo)
BuildRequires:  pkgconfig(alsa)
BuildRequires:  nasm
BuildRequires:  yasm-devel
BuildRequires:  clang13-devel

%description
Open source virtual remote desktop infrastructure for everyone! The open source TeamViewer alternative. Display and control your PC and Android devices. 

%prep
%autosetup -a1
#mkdir .cargo
cp %{SOURCE2} .cargo/config
mkdir -p target/release
cp %{SOURCE3} target/release/

%build
##export VCPKG_ROOT=%%{_bindir}/vcpkg


ln -s %{_bindir}/vcpkg $HOME/vcpkg/vcpkg
touch $HOME/vcpkg/.vcpkg-root
export VCPKG_ROOT=$HOME/vcpkg

%{cargo_build}

%install
%{cargo_install}

%check
#%%{cargo_test}

%files
%license LICENSE
%doc README.md README-*.md

%changelog
openSUSE Build Service is sponsored by