2024-10-11 18:32:51 +03:00
Name : rustdesk
Version : 1.3.1
Release : alt1
Summary : An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.
License : AGPL-3.0
Group : Other
Url : https://github.com/rustdesk/rustdesk
Packager : Sergey Konev <konevsa@basealt.ru>
Source : %name-%version.tar.gz
BuildRequires(pre): rpm-build-rust
BuildRequires : /proc
BuildRequires : rust-cargo
BuildRequires : libX11-devel
BuildRequires : libXi-devel
BuildRequires : libXtst-devel
BuildRequires : glib2-devel
BuildRequires : gstreamer1.0-devel
BuildRequires : gst-plugins1.0-devel
BuildRequires : libgtk+3-devel
BuildRequires : libdbus-devel
BuildRequires : clang18.1-devel
BuildRequires : build-essential
BuildRequires : libpam0-devel
BuildRequires : libopus-devel
BuildRequires : libvpx-devel
BuildRequires : libyuv-devel
BuildRequires : libaom-devel
BuildRequires : libpulseaudio-devel
BuildRequires : xdotool-devel
BuildRequires : libxkbcommon-devel
%description
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
%setup
2024-10-11 19:11:09 +03:00
tar xf vendor.tar.gz
2024-10-11 18:32:51 +03:00
2024-10-14 17:04:08 +03:00
# used to inline all GUI stuff to binary (html/css)
chmod +x ./res/inline-sciter.py
./res/inline-sciter.py
2024-10-11 18:34:45 +03:00
mkdir -p ./.cargo
cat >> ./.cargo/config.toml <<EOF
2024-10-11 18:32:51 +03:00
[source.crates-io]
replace-with = " v e n d o r e d - s o u r c e s "
[source." g i t + h t t p s : / / g i t h u b . c o m / b j o r n s n o e n / x 1 1 - r s " ]
git = " h t t p s : / / g i t h u b . c o m / b j o r n s n o e n / x 1 1 - r s "
replace-with = " v e n d o r e d - s o u r c e s "
[source." g i t + h t t p s : / / g i t h u b . c o m / c l s l a i d / c a c a o ? b r a n c h = f e a t / s e t - f i l e - u r l s " ]
git = " h t t p s : / / g i t h u b . c o m / c l s l a i d / c a c a o "
branch = " f e a t / s e t - f i l e - u r l s "
replace-with = " v e n d o r e d - s o u r c e s "
[source." g i t + h t t p s : / / g i t h u b . c o m / c l s l a i d / x 1 1 - c l i p b o a r d ? b r a n c h = f e a t / s t o r e - b a t c h " ]
git = " h t t p s : / / g i t h u b . c o m / c l s l a i d / x 1 1 - c l i p b o a r d "
branch = " f e a t / s t o r e - b a t c h "
replace-with = " v e n d o r e d - s o u r c e s "
[source." g i t + h t t p s : / / g i t h u b . c o m / m a d s m t m / c o r e - f o u n d a t i o n - r s . g i t ? r e v = 7 d 5 9 3 d 0 1 6 1 7 5 7 5 5 e 4 9 2 a 9 2 e f 8 9 e d c a 6 8 a c 3 b d 5 c d " ]
git = " h t t p s : / / g i t h u b . c o m / m a d s m t m / c o r e - f o u n d a t i o n - r s . g i t "
rev = " 7 d 5 9 3 d 0 1 6 1 7 5 7 5 5 e 4 9 2 a 9 2 e f 8 9 e d c a 6 8 a c 3 b d 5 c d "
replace-with = " v e n d o r e d - s o u r c e s "
[source." g i t + h t t p s : / / g i t h u b . c o m / o p e n - t r a d e / p u l s e c t l " ]
git = " h t t p s : / / g i t h u b . c o m / o p e n - t r a d e / p u l s e c t l "
replace-with = " v e n d o r e d - s o u r c e s "
[source." g i t + h t t p s : / / g i t h u b . c o m / o p e n - t r a d e / r u s t - s c i t e r ? b r a n c h = d y n " ]
git = " h t t p s : / / g i t h u b . c o m / o p e n - t r a d e / r u s t - s c i t e r "
branch = " d y n "
replace-with = " v e n d o r e d - s o u r c e s "
[source." g i t + h t t p s : / / g i t h u b . c o m / r u s t d e s k - o r g / T h e - F a t - C o n t r o l l e r ? b r a n c h = h i s t o r y / r e b a s e _ u p s t r e a m _ 2 0 2 4 0 7 2 2 " ]
git = " h t t p s : / / g i t h u b . c o m / r u s t d e s k - o r g / T h e - F a t - C o n t r o l l e r "
branch = " h i s t o r y / r e b a s e _ u p s t r e a m _ 2 0 2 4 0 7 2 2 "
replace-with = " v e n d o r e d - s o u r c e s "
[source." g i t + h t t p s : / / g i t h u b . c o m / r u s t d e s k - o r g / a n d r o i d - w a k e l o c k " ]
git = " h t t p s : / / g i t h u b . c o m / r u s t d e s k - o r g / a n d r o i d - w a k e l o c k "
replace-with = " v e n d o r e d - s o u r c e s "
[source." g i t + h t t p s : / / g i t h u b . c o m / r u s t d e s k - o r g / a r b o a r d " ]
git = " h t t p s : / / g i t h u b . c o m / r u s t d e s k - o r g / a r b o a r d "
replace-with = " v e n d o r e d - s o u r c e s "
[source." g i t + h t t p s : / / g i t h u b . c o m / r u s t d e s k - o r g / c l i p b o a r d - m a s t e r " ]
git = " h t t p s : / / g i t h u b . c o m / r u s t d e s k - o r g / c l i p b o a r d - m a s t e r "
replace-with = " v e n d o r e d - s o u r c e s "
[source." g i t + h t t p s : / / g i t h u b . c o m / r u s t d e s k - o r g / c o n f y " ]
git = " h t t p s : / / g i t h u b . c o m / r u s t d e s k - o r g / c o n f y "
replace-with = " v e n d o r e d - s o u r c e s "
[source." g i t + h t t p s : / / g i t h u b . c o m / r u s t d e s k - o r g / e v d e v " ]
git = " h t t p s : / / g i t h u b . c o m / r u s t d e s k - o r g / e v d e v "
replace-with = " v e n d o r e d - s o u r c e s "
[source." g i t + h t t p s : / / g i t h u b . c o m / r u s t d e s k - o r g / h w c o d e c " ]
git = " h t t p s : / / g i t h u b . c o m / r u s t d e s k - o r g / h w c o d e c "
replace-with = " v e n d o r e d - s o u r c e s "
[source." g i t + h t t p s : / / g i t h u b . c o m / r u s t d e s k - o r g / i m p e r s o n a t e - s y s t e m " ]
git = " h t t p s : / / g i t h u b . c o m / r u s t d e s k - o r g / i m p e r s o n a t e - s y s t e m "
replace-with = " v e n d o r e d - s o u r c e s "
[source." g i t + h t t p s : / / g i t h u b . c o m / r u s t d e s k - o r g / k e e p a w a k e - r s " ]
git = " h t t p s : / / g i t h u b . c o m / r u s t d e s k - o r g / k e e p a w a k e - r s "
replace-with = " v e n d o r e d - s o u r c e s "
[source." g i t + h t t p s : / / g i t h u b . c o m / r u s t d e s k - o r g / m a c h i n e - u i d " ]
git = " h t t p s : / / g i t h u b . c o m / r u s t d e s k - o r g / m a c h i n e - u i d "
replace-with = " v e n d o r e d - s o u r c e s "
[source." g i t + h t t p s : / / g i t h u b . c o m / r u s t d e s k - o r g / m a g n u m - o p u s " ]
git = " h t t p s : / / g i t h u b . c o m / r u s t d e s k - o r g / m a g n u m - o p u s "
replace-with = " v e n d o r e d - s o u r c e s "
[source." g i t + h t t p s : / / g i t h u b . c o m / r u s t d e s k - o r g / p a m " ]
git = " h t t p s : / / g i t h u b . c o m / r u s t d e s k - o r g / p a m "
replace-with = " v e n d o r e d - s o u r c e s "
[source." g i t + h t t p s : / / g i t h u b . c o m / r u s t d e s k - o r g / p a m - s y s ? b r a n c h = f i x / v 1 . 0 . 0 - a l p h a 4 _ g n u c _ v a _ l i s t " ]
git = " h t t p s : / / g i t h u b . c o m / r u s t d e s k - o r g / p a m - s y s "
branch = " f i x / v 1 . 0 . 0 - a l p h a 4 _ g n u c _ v a _ l i s t "
replace-with = " v e n d o r e d - s o u r c e s "
[source." g i t + h t t p s : / / g i t h u b . c o m / r u s t d e s k - o r g / p a r i t y - t o k i o - i p c " ]
git = " h t t p s : / / g i t h u b . c o m / r u s t d e s k - o r g / p a r i t y - t o k i o - i p c "
replace-with = " v e n d o r e d - s o u r c e s "
[source." g i t + h t t p s : / / g i t h u b . c o m / r u s t d e s k - o r g / r d e v " ]
git = " h t t p s : / / g i t h u b . c o m / r u s t d e s k - o r g / r d e v "
replace-with = " v e n d o r e d - s o u r c e s "
[source." g i t + h t t p s : / / g i t h u b . c o m / r u s t d e s k - o r g / r e q w e s t " ]
git = " h t t p s : / / g i t h u b . c o m / r u s t d e s k - o r g / r e q w e s t "
replace-with = " v e n d o r e d - s o u r c e s "
[source." g i t + h t t p s : / / g i t h u b . c o m / r u s t d e s k - o r g / r u s t - w e b m " ]
git = " h t t p s : / / g i t h u b . c o m / r u s t d e s k - o r g / r u s t - w e b m "
replace-with = " v e n d o r e d - s o u r c e s "
[source." g i t + h t t p s : / / g i t h u b . c o m / r u s t d e s k - o r g / s y s i n f o ? b r a n c h = r l i m _ m a x " ]
git = " h t t p s : / / g i t h u b . c o m / r u s t d e s k - o r g / s y s i n f o "
branch = " r l i m _ m a x "
replace-with = " v e n d o r e d - s o u r c e s "
[source." g i t + h t t p s : / / g i t h u b . c o m / r u s t d e s k - o r g / t a o ? b r a n c h = d e v " ]
git = " h t t p s : / / g i t h u b . c o m / r u s t d e s k - o r g / t a o "
branch = " d e v "
replace-with = " v e n d o r e d - s o u r c e s "
[source." g i t + h t t p s : / / g i t h u b . c o m / r u s t d e s k - o r g / t o k i o - s o c k s " ]
git = " h t t p s : / / g i t h u b . c o m / r u s t d e s k - o r g / t o k i o - s o c k s "
replace-with = " v e n d o r e d - s o u r c e s "
[source." g i t + h t t p s : / / g i t h u b . c o m / r u s t d e s k - o r g / w a l l p a p e r . r s " ]
git = " h t t p s : / / g i t h u b . c o m / r u s t d e s k - o r g / w a l l p a p e r . r s "
replace-with = " v e n d o r e d - s o u r c e s "
[source." g i t + h t t p s : / / g i t h u b . c o m / t a u r i - a p p s / t r a y - i c o n " ]
git = " h t t p s : / / g i t h u b . c o m / t a u r i - a p p s / t r a y - i c o n "
replace-with = " v e n d o r e d - s o u r c e s "
[source.vendored-sources]
2024-10-11 18:45:32 +03:00
directory = " v e n d o r "
2024-10-11 18:32:51 +03:00
EOF
%build
2024-10-14 17:04:08 +03:00
%rust_build --features linux-pkg-config,inline
2024-10-11 18:32:51 +03:00
%install
%rust_install
2024-10-14 17:04:08 +03:00
mkdir -p %{buildroot} /usr/lib/%name/
mkdir -p %_datadir /%name/files/
mkdir -p %_datadir /icons/hicolor/256x256/apps/
mkdir -p %_datadir /icons/hicolor/scalable/apps/
#install $HBB/libsciter-gtk.so %{buildroot}/usr/lib/rustdesk/libsciter-gtk.so
install ./res/%name.service %_datadir /%name/files/
install ./res/128x128@2x.png %_iconsdir /hicolor/256x256/apps/%name.png
install ./res/scalable.svg %_iconsdir /hicolor/scalable/apps/%name.svg
install ./res/%name.desktop %_datadir /%name/files/
install ./res/%name-link.desktop %_datadir /%name/files/
2024-10-11 18:32:51 +03:00
%check
2024-10-14 17:04:08 +03:00
%rust_test --features linux-pkg-config,inline -- --skip test_get_cursor_pos
2024-10-11 18:32:51 +03:00
%files
%doc *.md
2024-10-14 17:04:08 +03:00
2024-10-11 18:34:45 +03:00
%_bindir /*
2024-10-14 17:04:08 +03:00
#/usr/lib/rustdesk/libsciter-gtk.so
%_datadir /%name/files/%name.service
%_iconsdir /hicolor/256x256/apps/%name.png
%_iconsdir /hicolor/scalable/apps/%name.svg
%_datadir /%name/files/%name.desktop
%_datadir /%name/files/%name-link.desktop