-
-
Notifications
You must be signed in to change notification settings - Fork 140
/
xpra.spec
2230 lines (2055 loc) · 92.6 KB
/
xpra.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# This file is part of Xpra.
# Copyright (C) 2010-2021 Antoine Martin <antoine@xpra.org>
# Xpra is released under the terms of the GNU GPL v2, or, at your option, any
# later version. See the file COPYING for details.
%define _disable_source_fetch 0
%define version 4.4
%define CFLAGS -O2
%define DEFAULT_BUILD_ARGS --with-Xdummy --without-enc_x265 --pkg-config-path=%{_libdir}/xpra/pkgconfig --rpath=%{_libdir}/xpra --without-cuda_rebuild
%{!?nthreads: %global nthreads %(nproc)}
%{!?update_firewall: %define update_firewall 1}
%{!?run_tests: %define run_tests 0}
%{!?with_selinux: %define with_selinux 1}
#we only enable CUDA / NVENC with 64-bit builds:
%if 0%{?fedora}>=37
%define with_cuda 0
%endif
%ifarch x86_64 aarch64
%{!?with_cuda: %define with_cuda 1}
%else
%define with_cuda 0
%endif
%if 0%{?with_cuda}
%define build_args %{DEFAULT_BUILD_ARGS}
%else
%define build_args %{DEFAULT_BUILD_ARGS} --without-cuda_kernels --without-nvenc --without-nvfbc --without-nvjpeg_encoder --without-nvjpeg_decoder
%endif
%if 0%{?el9}
#no pandoc!
%define build_args %{DEFAULT_BUILD_ARGS} --without-docs
%endif
%global selinux_variants mls targeted
%define selinux_modules cups_xpra xpra_socketactivation
#we never want to depend on proprietary nvidia bits,
#and we manage the codecs with a private library:
%global __requires_exclude ^(libnvjpeg|libnvidia-|libavcodec|libavformat|libavutil|libswscale|libx264).*\\.so.*$
# no support for centos / rhel 7:
%if 0%{?el7}
echo CentOS 7.x is no longer supported
exit 1
%endif
%if 0%{?xpra_revision_no}
%define revision_no 10.r%{xpra_revision_no}
%else
%define revision_no 10
%endif
Name: xpra
Version: %{version}
Release: %{revision_no}%{?dist}
Summary: Xpra gives you "persistent remote applications" for X.
Group: Networking
License: GPLv2+ and BSD and LGPLv3+ and MIT
URL: https://xpra.org/
Packager: Antoine Martin <antoine@xpra.org>
Vendor: https://xpra.org/
Source: https://xpra.org/src/xpra-%{version}.tar.xz
#rpm falls over itself if we try to make the top-level package noarch:
#BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Requires: xpra-common = %{version}-%{release}
Requires: xpra-html5
Requires: python3-xpra-client = %{version}-%{release}
Requires: python3-xpra-server = %{version}-%{release}
%if 0%{?fedora}
Requires: python3-xpra-audio = %{version}-%{release}
%else
Suggests: python3-xpra-audio = %{version}-%{release}
%endif
%description
Xpra gives you "persistent remote applications" for X. That is, unlike normal X applications, applications run with xpra are "persistent" -- you can run them remotely, and they don't die if your connection does. You can detach them, and reattach them later -- even from another computer -- with no loss of state. And unlike VNC or RDP, xpra is for remote applications, not remote desktops -- individual applications show up as individual windows on your screen, managed by your window manager. They're not trapped in a box.
So basically it's screen for remote X apps.
This metapackage installs the python3 version of xpra in full, including the python client, server and HTML5 client.
%package common
Summary: Common files for xpra packages
Group: Networking
BuildArch: noarch
Requires(pre): shadow-utils
Conflicts: xpra < 2.1
%if !0%{?el9}
BuildRequires: pandoc
%endif
BuildRequires: libfakeXinerama
%description common
This package contains the files which are shared between all the xpra packages.
%package common-client
Summary: Common files for xpra client packages
Group: Networking
BuildArch: noarch
Requires: xpra-common = %{version}-%{release}
BuildRequires: desktop-file-utils
Requires(post): desktop-file-utils
Requires(postun): desktop-file-utils
%description common-client
This package contains the files which are shared between all the xpra client packages.
%package common-server
Summary: Common files for xpra server packages
Group: Networking
BuildArch: noarch
Requires: xpra-common
%if 0%{?fedora}
Suggests: xmodmap
Suggests: xrandr
Requires: xrdb
%else
Requires: xorg-x11-server-utils
%endif
Requires: xorg-x11-drv-dummy
Requires: xorg-x11-xauth
Requires: selinux-policy
Requires(post): openssl
Requires(post): systemd-units
Requires(preun): systemd-units
Requires(postun): systemd-units
Recommends: xterm
Recommends: libfakeXinerama
Recommends: mesa-dri-drivers
Recommends: redhat-menus
Recommends: gnome-menus
Recommends: gnome-icon-theme
#allows the server to use software opengl:
Recommends: mesa-libOSMesa
BuildRequires: systemd-devel
BuildRequires: checkpolicy
BuildRequires: selinux-policy-devel
BuildRequires: pam-devel
%if 0%{?fedora}
BuildRequires: procps-devel
%endif
BuildRequires: lz4-devel
BuildRequires: brotli-devel
BuildRequires: qrencode-devel
%if 0%{?run_tests}
BuildRequires: dbus-x11
BuildRequires: dbus-tools
BuildRequires: tigervnc
BuildRequires: xorg-x11-server-Xorg
BuildRequires: xorg-x11-server-Xvfb
BuildRequires: xorg-x11-drv-dummy
%endif
Requires(post): /usr/sbin/semodule, /usr/sbin/semanage, /sbin/restorecon, /sbin/fixfiles
Requires(postun): /usr/sbin/semodule, /usr/sbin/semanage, /sbin/restorecon, /sbin/fixfiles
%description common-server
This package contains the files which are shared between all the xpra server packages.
%package -n python3-xpra
Summary: Xpra gives you "persistent remote applications" for X. Python3 build.
Group: Networking
Requires: xpra-common = %{version}-%{release}
Requires: python3
Requires: python3-pillow
Requires: libyuv
Requires: libvpx
Requires: libdrm-devel
#not available yet:
#Requires: libevdi-devel
#this is a downstream package with the codecs separated - it should not be installed:
Conflicts: xpra-codecs-freeworld
Conflicts: libvpx-xpra
Obsoletes: libvpx-xpra < 1.8
Requires: x264-xpra
Requires: ffmpeg-xpra
Requires: turbojpeg
Requires: python3-cryptography
Requires: python3-gobject
Recommends: python3-rencode
Recommends: python3-inotify
Recommends: python3-netifaces
Recommends: python3-dbus
%if 0%{?el8}
Recommends: python3-avahi
%else
%if 0%{?fedora}
Recommends: python3-zeroconf
%endif
%endif
Recommends: lz4-libs
Recommends: brotli
Recommends: python3-dns
Recommends: python3-paramiko
Recommends: python3-kerberos
Recommends: python3-gssapi
Recommends: python3-ldap
Recommends: python3-ldap3
#Suggests: python3-cpuinfo
Requires: libwebp
%if 0%{?fedora}
Requires: libavif
BuildRequires: libavif-devel
Requires: libspng
BuildRequires: libspng-devel
%endif
BuildRequires: which
BuildRequires: libwebp-devel
BuildRequires: turbojpeg-devel
BuildRequires: libyuv-devel
BuildRequires: coreutils
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: python3
BuildRequires: python3-devel
BuildRequires: python3-Cython
BuildRequires: python3-gobject
BuildRequires: pygobject3-devel
BuildRequires: python3-cairo-devel
BuildRequires: libvpx-devel
BuildRequires: x264-xpra-devel
BuildRequires: ffmpeg-xpra-devel
BuildRequires: libyuv-devel
BuildRequires: gtk3-devel
BuildRequires: gobject-introspection-devel
%if 0%{?run_tests}
BuildRequires: python3-cryptography
BuildRequires: python3-rencode
BuildRequires: python3-numpy
%endif
%description -n python3-xpra
This package contains the python3 build of xpra.
%package -n python3-xpra-audio
Summary: python3 build of xpra audio support
Group: Networking
Requires: python3-xpra = %{version}-%{release}
Requires: python3-gstreamer1
Requires: gstreamer1
Requires: gstreamer1-plugins-base
Requires: gstreamer1-plugins-good
Recommends: gstreamer1-plugin-timestamp
Recommends: gstreamer1-plugins-ugly
Recommends: gstreamer1-plugins-ugly-free
Recommends: pulseaudio
Recommends: pulseaudio-module-x11
Recommends: pulseaudio-utils
%if 0%{?run_tests}
Requires: python3-gstreamer1
BuildRequires: gstreamer1
BuildRequires: gstreamer1-plugins-good
BuildRequires: pulseaudio
BuildRequires: pulseaudio-utils
%endif
%description -n python3-xpra-audio
This package contains audio support for python2 builds of xpra.
%package -n python3-xpra-client
Summary: python3 build of xpra client
Group: Networking
Requires: xpra-common-client = %{version}-%{release}
Requires: python3-xpra = %{version}-%{release}
BuildRequires: python3-pyxdg
BuildRequires: python3-cups
Recommends: pinentry
Recommends: python3-xpra-audio
Recommends: python3-cups
Recommends: python3-pyopengl
Recommends: python3-pyu2f
Recommends: python3-psutil
Recommends: qrencode
Recommends: python3-pysocks
Suggests: python3-opencv
#without this, the system tray is unusable with gnome!
%if 0%{?el8}
Recommends: gnome-shell-extension-topicons-plus
%else
Suggests: gnome-shell-extension-appindicator
%endif
Suggests: sshpass
%if 0%{?run_tests}
%if 0%{?fedora}
BuildRequires: xclip
BuildRequires: zlib-devel
%endif
%endif
%description -n python3-xpra-client
This package contains the python3 xpra client.
%package -n python3-xpra-server
Summary: python3 build of xpra server
Group: Networking
Requires: xpra-common-server = %{version}-%{release}
Requires: python3-xpra = %{version}-%{release}
Recommends: cups-filters
Recommends: cups-pdf
Recommends: python3-cups
Recommends: dbus-x11
Recommends: gtk3-immodule-xim
Recommends: python3-setproctitle
Recommends: librsvg2
Recommends: ibus
Recommends: python3-pyxdg
Recommends: xdg-menu
%if %{with_cuda}
Recommends: python3-pynvml
Recommends: python3-pycuda
%endif
Suggests: tcp_wrappers-libs
Suggests: python3-ldap3
Suggests: python3-ldap
Suggests: python3-oauthlib
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: python3-Cython
BuildRequires: libxkbfile-devel
BuildRequires: libXtst-devel
BuildRequires: libXcomposite-devel
BuildRequires: libXdamage-devel
BuildRequires: libXres-devel
Requires: libxkbfile
Requires: libXtst
Requires: libXcomposite
Requires: libXdamage
Requires: libXres
#once the server is fully ported over to python3:
#Recommends: python3-uinput
%description -n python3-xpra-server
This package contains the python3 xpra server.
%prep
#sha256=`sha256sum %{SOURCE0} | awk '{print $1}'`
#if [ "${sha256}" != "ffff" ]; then
# echo "invalid checksum for %{SOURCE0}"
# exit 1
#fi
rm -rf $RPM_BUILD_DIR/xpra-%{version}
xzcat $RPM_SOURCE_DIR/xpra-%{version}.tar.xz | tar -xf -
%debug_package
%build
pushd xpra-%{version}
rm -rf build install
# set pkg_config_path for xpra video libs:
CFLAGS="%{CFLAGS}" LDFLAGS="%{?LDFLAGS} -Wl,--as-needed" %{__python3} setup.py build \
-j %{nthreads} \
%{build_args} \
--without-printing --without-cuda_kernels
%if 0%{?with_selinux}
for mod in %{selinux_modules}
do
pushd fs/share/selinux/${mod}
for selinuxvariant in %{selinux_variants}
do
make NAME=${selinuxvariant} -f /usr/share/selinux/devel/Makefile
mv ${mod}.pp ${mod}.pp.${selinuxvariant}
make NAME=${selinuxvariant} -f /usr/share/selinux/devel/Makefile clean
done
popd
done
%endif
popd
%install
rm -rf $RPM_BUILD_ROOT
pushd xpra-%{version}
%{__python3} setup.py install \
%{build_args} \
--prefix /usr --skip-build --root %{buildroot}
%if 0%{?with_selinux}
for mod in %{selinux_modules}
do
for selinuxvariant in %{selinux_variants}
do
install -d %{buildroot}%{_datadir}/selinux/${selinuxvariant}
install -p -m 644 fs/share/selinux/${mod}/${mod}.pp.${selinuxvariant} \
%{buildroot}%{_datadir}/selinux/${selinuxvariant}/${mod}.pp
done
done
%endif
popd
#fix permissions on shared objects
find %{buildroot}%{python3_sitearch}/xpra -name '*.so' -exec chmod 0755 {} \;
#remove the tests, not meant to be installed in the first place
#(but I can't get distutils to play nice: I want them built, not installed)
rm -fr ${RPM_BUILD_ROOT}/%{python3_sitearch}/unittests
%clean
rm -rf $RPM_BUILD_ROOT
%files
%files common
%defattr(-,root,root)
%{_bindir}/xpra*
%{_bindir}/run_scaled*
%{_datadir}/xpra/README.md
%{_datadir}/xpra/COPYING
%{_datadir}/xpra/icons
%{_datadir}/xpra/*.wav
%{_datadir}/xpra/cuda
%{_datadir}/man/man1/xpra*.1*
%{_datadir}/man/man1/run_scaled.1*
%if !0%{?el9}
%{_docdir}/xpra
%endif
%{_datadir}/metainfo/xpra.appdata.xml
%{_datadir}/icons/xpra.png
%{_datadir}/icons/xpra-mdns.png
%{_datadir}/icons/xpra-shadow.png
%dir %{_sysconfdir}/xpra
%config %{_sysconfdir}/xpra/xpra.conf
%config %{_sysconfdir}/xpra/conf.d/05_features.conf
%config %{_sysconfdir}/xpra/conf.d/10_network.conf
%config %{_sysconfdir}/xpra/conf.d/12_ssl.conf
%config %{_sysconfdir}/xpra/conf.d/15_file_transfers.conf
%config %{_sysconfdir}/xpra/conf.d/16_printing.conf
%config %{_sysconfdir}/xpra/conf.d/20_sound.conf
%config %{_sysconfdir}/xpra/conf.d/30_picture.conf
%config %{_sysconfdir}/xpra/conf.d/35_webcam.conf
%files common-client
%{_libexecdir}/xpra/xpra_signal_listener
%config %{_sysconfdir}/xpra/conf.d/40_client.conf
%config %{_sysconfdir}/xpra/conf.d/42_client_keyboard.conf
%{_datadir}/applications/xpra-launcher.desktop
%{_datadir}/applications/xpra-gui.desktop
%{_datadir}/applications/xpra.desktop
%{_datadir}/mime/packages/application-x-xpraconfig.xml
%{_datadir}/xpra/autostart.desktop
%files common-server
%{_sysconfdir}/dbus-1/system.d/xpra.conf
/lib/systemd/system/xpra.service
/lib/systemd/system/xpra.socket
%{_prefix}/lib/cups/backend/xpraforwarder
%{_prefix}/lib/udev/rules.d/71-xpra-virtual-pointer.rules
%{_datadir}/xpra/css
%{_datadir}/applications/xpra-shadow.desktop
%{_libexecdir}/xpra/xpra_udev_product_version
%{_libexecdir}/xpra/xdg-open
%{_libexecdir}/xpra/gnome-open
%{_libexecdir}/xpra/gvfs-open
%{_libexecdir}/xpra/auth_dialog
%config(noreplace) %{_sysconfdir}/sysconfig/xpra
%config %{_prefix}/lib/tmpfiles.d/xpra.conf
%config %{_prefix}/lib/sysusers.d/xpra.conf
%config %{_sysconfdir}/pam.d/xpra
%config(noreplace) %{_sysconfdir}/X11/xorg.conf.d/90-xpra-virtual.conf
%config(noreplace) %{_sysconfdir}/xpra/xorg.conf
%config(noreplace) %{_sysconfdir}/xpra/xorg-uinput.conf
%if %{with_cuda}
%config(noreplace) %{_sysconfdir}/xpra/cuda.conf
%config(noreplace) %{_sysconfdir}/xpra/*.keys
%endif
%config %{_sysconfdir}/xpra/conf.d/50_server_network.conf
%config %{_sysconfdir}/xpra/conf.d/55_server_x11.conf
%config %{_sysconfdir}/xpra/conf.d/60_server.conf
%config %{_sysconfdir}/xpra/conf.d/65_proxy.conf
%config %{_sysconfdir}/xpra/content-type/*
%config %{_sysconfdir}/xpra/content-categories/*
%config %{_sysconfdir}/xpra/content-parent/*
%config %{_sysconfdir}/xpra/http-headers/*
%if 0%{?with_selinux}
%{_datadir}/selinux/*/*.pp
%endif
%files -n python3-xpra
%{python3_sitearch}/xpra/__pycache__
%{python3_sitearch}/xpra/buffers
%{python3_sitearch}/xpra/clipboard
%{python3_sitearch}/xpra/notifications
%{python3_sitearch}/xpra/codecs
%{python3_sitearch}/xpra/dbus
%{python3_sitearch}/xpra/gtk_common
%{python3_sitearch}/xpra/keyboard
%{python3_sitearch}/xpra/net
%{python3_sitearch}/xpra/platform
%{python3_sitearch}/xpra/scripts
%{python3_sitearch}/xpra/sound
%{python3_sitearch}/xpra/x11
%{python3_sitearch}/xpra/rectangle.*.so
%{python3_sitearch}/xpra/*.py*
%{python3_sitearch}/xpra-*.egg-info
%files -n python3-xpra-audio
%{python3_sitearch}/xpra/sound
%files -n python3-xpra-client
%{python3_sitearch}/xpra/client
%files -n python3-xpra-server
%{python3_sitearch}/xpra/server
%check
/usr/bin/desktop-file-validate %{buildroot}%{_datadir}/applications/xpra-launcher.desktop
/usr/bin/desktop-file-validate %{buildroot}%{_datadir}/applications/xpra-gui.desktop
/usr/bin/desktop-file-validate %{buildroot}%{_datadir}/applications/xpra-shadow.desktop
/usr/bin/desktop-file-validate %{buildroot}%{_datadir}/applications/xpra.desktop
%if 0%{?debug_tests}
export XPRA_UTIL_DEBUG=1
export XPRA_TEST_DEBUG=1
%endif
%if 0%{?run_tests}
pushd xpra-%{version}
XPRA_BIN_DIR="`pwd`/fs/bin/"
XPRA_COMMAND="${XPRA_BIN_DIR}/xpra"
XPRA_CONF_DIR="`pwd`/fs/etc/xpra"
pushd tests/unittests
PYTHONPATH="%{python3_sitearch}:%{buildroot}%{python3_sitearch}:`pwd`" \
PATH="${XPRA_BIN_DIR}:$PATH" \
XPRA_COMMAND="${XPRA_COMMAND}" \
XPRA_CONF_DIR="${XPRA_CONF_DIR}" \
XPRA_TEST_COVERAGE=0 \
GDK_BACKEND=x11 \
%{__python3} ./unit/run.py
popd
popd
%endif
%post common-server
%if 0%{?fedora}%{?el8}
%tmpfiles_create xpra.conf
#fedora can use sysusers.d instead
%sysusers_create xpra.conf
%endif
if [ ! -e "/etc/xpra/ssl-cert.pem" ]; then
umask=`umask`
umask 077
openssl req -new -newkey rsa:4096 -days 3650 -nodes -x509 \
-subj "/C=US/ST=Denial/L=Springfield/O=Dis/CN=localhost" \
-keyout "/etc/xpra/key.pem" -out "/etc/xpra/cert.pem" 2> /dev/null
cat "/etc/xpra/key.pem" "/etc/xpra/cert.pem" > "/etc/xpra/ssl-cert.pem"
umask $umask
chmod 644 /etc/xpra/cert.pem
fi
%if 0%{update_firewall}
ZONE=`firewall-offline-cmd --get-default-zone 2> /dev/null`
if [ ! -z "${ZONE}" ]; then
set +e
firewall-cmd --zone=${ZONE} --list-ports | grep "14500/tcp" >> /dev/null 2>&1
if [ $? != "0" ]; then
firewall-cmd --zone=${ZONE} --add-port=14500/tcp --permanent >> /dev/null 2>&1
if [ $? == "0" ]; then
firewall-cmd --reload | grep -v "^success"
else
firewall-offline-cmd --add-port=14500/tcp | grep -v "^success"
fi
fi
set -e
fi
%endif
/bin/chmod 700 /usr/lib/cups/backend/xpraforwarder
%if 0%{?with_selinux}
for mod in %{selinux_modules}
do
for selinuxvariant in %{selinux_variants}
do
/usr/sbin/semodule -s ${selinuxvariant} -i \
%{_datadir}/selinux/${selinuxvariant}/${mod}.pp &> /dev/null || :
done
done
semanage port -a -t xpra_port_t -p tcp 14500 2>&1 | grep -v "already defined" || :
restorecon -R /etc/xpra /usr/lib/systemd/system/xpra* /usr/bin/xpra* || :
restorecon -R /run/xpra* /run/user/*/xpra 2> /dev/null || :
restorecon -R /usr/lib/cups/backend/xpraforwarder || :
%endif
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
if [ $1 -eq 1 ]; then
/bin/systemctl enable xpra.socket >/dev/null 2>&1 || :
/bin/systemctl start xpra.socket >/dev/null 2>&1 || :
else
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
/bin/systemctl restart xpra.socket >/dev/null 2>&1 || :
fi
if [ -e "/bin/udevadm" ]; then
udevadm control --reload-rules && udevadm trigger || :
fi
#reload dbus to get our new policy:
systemctl reload dbus
%post common-client
/usr/bin/update-mime-database &> /dev/null || :
/usr/bin/update-desktop-database &> /dev/null || :
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
%preun common-server
if [ $1 -eq 0 ] ; then
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
/bin/systemctl disable xpra.service > /dev/null 2>&1 || :
/bin/systemctl disable xpra.socket > /dev/null 2>&1 || :
/bin/systemctl stop xpra.service > /dev/null 2>&1 || :
/bin/systemctl stop xpra.socket > /dev/null 2>&1 || :
fi
%postun common-server
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
%if 0%{update_firewall}
if [ $1 -eq 0 ]; then
ZONE=`firewall-offline-cmd --get-default-zone 2> /dev/null`
if [ ! -z "${ZONE}" ]; then
set +e
firewall-cmd --zone=${ZONE} --remove-port=14500/tcp --permanent >> /dev/null 2>&1
if [ $? == "0" ]; then
firewall-cmd --reload | grep -v "^success"
else
firewall-offline-cmd --add-port=14500/tcp | grep -v "^success"
fi
set -e
fi
fi
%endif
%if 0%{?with_selinux}
if [ $1 -eq 0 ] ; then
semanage port -d -p tcp 14500
for mod in %{selinux_modules}
do
for selinuxvariant in %{selinux_variants}
do
/usr/sbin/semodule -s ${selinuxvariant} -r ${mod} &> /dev/null || :
done
done
fi
%endif
%postun common-client
/usr/bin/update-mime-database &> /dev/null || :
/usr/bin/update-desktop-database &> /dev/null || :
if [ $1 -eq 0 ] ; then
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
fi
%posttrans common
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%changelog
* Sat Oct 01 2022 Antoine Martin <antoine@xpra.org> 4.4-10
- Platforms, build and packaging:
Native LZ4 bindings
Safer native brotli bindings
Native qrencode bindings
openSUSE build tweaks, Fedora 37, Oracle Linux / Rocky Linux / Alma Linux / CentOS Stream : 8 and 9
Debian finally moved to `libexec`
MS Windows taskbar integration
SSH server support on MS Windows, including starting shadow sessions
- Server:
Configurable vertical refresh rate
Virtual Monitors
Multi-monitor desktop mode
Expand an existing desktop
Exit with windows
Full shadow keyboard mapping
xwait subcommand
guess content-type from parent pid
cups print backend status report
Override sockets on upgrade
Allow additional options to X server invocation
Control commands for modifying command environment and read only flag
Start new commands via a proxy server's SSH listener
- Shadow server:
Geometry restrictions
Shadow specific applications
- Client:
Automatic keyboard grabs
Pointer confinement
Faster window initial data
Improved DPI detection on MS Windows
Show all current keyboard shortcuts
Preserve all options when reconnecting
Option to accept SSL mismatched host permanently
Forward all command line options
Smooth scrolling options
Per-window scaling - experimental
Workaround Wayland startup hangs
- Security and authentication:
Configurable information disclosure
Keycloak authentication
Capability based authentication
Authentication for web server scripts
OTP authentication
Workaround paramiko `No existing session` error
- Encodings and latency:
Option to cap picture quality
Expose scaling quality
NVJPEG decoder
AVIF encoding
selective `scroll` encoding detection
- Network:
SOCKS proxy connection support
SSH agent forwarding
SSH workarounds for polluted stream premable
proxy network performance improvement
- Misc:
easier xpra subcommand invocation
- Refactoring and preparation for the next LTS release:
Feature deprecation
Remove "app menus" support
Remove ancient complicated code
Simplify the build file
More robust info handlers
Remove scary warnings
f-strings
* Wed Dec 08 2021 Antoine Martin <antoine@xpra.org> 4.3-10
- Platforms, build and packaging:
arm64 support #3291, including nvenc and nvjpeg: #3378
non-system header builds (eg: conda): #3360
fixed MacOS shadow start via ssh: #3343
parallel builds: #3255
don't ship too may pillow plugins: #3133
easier access to documentation: #3015
Python 3.10 buffer api compatibility: #3031
- Misc:
make it easier to silence OpenGL validation warnings: #3380
don't wait for printers: #3170
make it easier to autostart: #3134
'clean' subcommand: #3099
flexible 'run_scaled' subcommand: #3303
more flexible key shortcuts configuration: #3183
- Encodings and latency:
significant latency and performance improvements: #3337
spng decoder #3373 and encoder: #3374
jpeg with transparency: #3367
faster argb module: #3361
faster nvjpeg module using CUDA, add transparency: #2984
faster xshape scaling: #1226
downscale jpeg and webp: #3333
disable av-sync for applications without audio: #3351
opaque region support: #3317
show FPS on client window: #3311
nvenc to use the same device context as nvjpeg: #3195
nvenc disable unsupported presets: #3136
- Network:
make it easier to use SSL: #3299
support more AES modes: GCM, CFB and CTR, #3247
forked rencodeplus encoder: #3229
- Server:
shadow specific areas or monitors: #3320
faster icon lookup: #3326
don't trust _NET_WM_PID: #3251
move all sessions to a sub-directory: #3217
more reliable server cleanup: #3218
better VNC support: #3256
more seamless server upgrades: #541
source /etc/profile: #3083
switch input method to ibus: #2359
* Tue May 18 2021 Antoine Martin <antoine@xpra.org> 4.2-1
- use pinentry for password prompts and ssh prompts
- nvjpeg encoder
- gui for starting remote sessions
- new subcommands: `recover`, `displays`, `list-sessions`, `clean-displays`, `clean-sockets`
- many fixes:
window initial position
focus issues
non-opengl paint corruption
slow rendering on MacOS
handle smooth scroll events with wayland clients
always lossless screen updates for terminals
clipboard timeout
peercred auth options
- support multiple clients using mmap simultaneously with non-default file paths
- only synchronize xsettings with seamless servers
- automatic desktop scaling is now disabled
- workaround for gnome applications starting slowly (documentation)
* Sat Feb 27 2021 Antoine Martin <antoine@xpra.org> 4.1-1
- Overhauled container based build system
- Splash screen
- `run_scaled` utility script
- Client:
header bar option for window control menu
generate a qrcode to connect
show all keyboard shortcuts
progress bar for file transfers
GTK cairo backend support for more native bit depths
disable xpra's keyboard shortcuts from the system tray menu
automatically include the server log in bug reports
- OpenGL client backend:
render at fixed bit depths with the `pixel-depth` option
support more bit depths
- Clipboard:
MacOS support for images, more text formats, etc
MS Windows support for images
wayland clients
- Server:
faster server startup
`xpra list-windows` subcommand
new window control commands: move / resize and map / unmap
remote logging from server to client
support window re-stacking
- `xpra top`:
show pids, shortcuts
more details in the list view
show speed and quality
- Display:
bumped maximum resolution beyond 8K
set the initial resolution more easily using the 'resize-display' option
- Encoding:
server side picture downscaling
libva hardware accelerated encoding
NVENC 30-bit accelerated encoding
vpx 30-bit
x264 30-bit
faster 30-bit RGB subsampling
scroll encoding now handled more generically
black and white mode
- Network:
IGD / UPNP
SO_KEEPALIVE option
clients can be queried and controlled using local sockets
specify connection attributes using the connection string
nested SSH tunnels
websocket header modules
specify the socket type with socket activation
expose the packet flush flag
`xpra shell` subcommand for interacting with processes in real time
custom group sockets directory permissions and name
- Testing:
better test coverage
cleanup output
* Sun May 10 2020 Antoine Martin <antoine@xpra.org> 4.0-1
- Drop support for:
Python 2, GTK2
legacy versions (pre 1.0)
weak authentication
- Network, per socket options:
authentication and encryption
ssl
ssh
bind options for client
- make it easier to send files from the server
- xpra toolbox subcommand
- xpra help subcommand
- xpra top new features
- faster startup
- signal handling fixes
- smoother window resizing
- refactoring and testing
unit tests coverage and fixes
completely skip loading unused features at runtime
get rid of capabilities data after parsing it
better module dependency separation
don't convert to a string before we need it
- more useful window and tray title
- make it easier to source environment
- disable desktop animations in desktop mode
- automatic start-or-upgrade, automatic X11 display rescue
- support MS Windows OpenSSH server to start shadow
- more selective use of OpenGL acceleration in client
- expose server OpenGL capabilities
- cleaner HTML5 syntax
* Tue Mar 19 2019 Antoine Martin <antoine@xpra.org> 3.0-1
- Python 3 port complete, now the default: #1571, #2195
- much nicer HTML5 client user interface: #2269
- Window handling:
- smoother window resizing: #478 (OpenGL)
- honouring gravity: #2217
- lock them in readonly mode: #2137
- xpra top subcommand: #2348
- faster startup:
- #2347 faster client startup
- #2341 faster server startup
- OpenGL:
- more reliable driver probing: #2204
- cursor paint support: #1497
- transparency on MacOS: #1794
- Encoding:
- lossless window scrolling: #1320
- scrolling acceleration for non-OpenGL backends: #2295
- harden image parsing: #2279
- workaround slow video encoder initialization (ie: NVENC) using replacement frames: #2048
- avoid loading codecs we don't need: #2344
- skip some CUDA devices, speedup enumeration: #2415
- Clipboard:
- new native clipboard implementations for all platforms: #812
- HTML5 asynchronous clipboard: #1844
- HTML5 support for copying images: #2312 (with watermarking)
- brotli compression for text data: #2289
- Authentication:
- modular client authentication handlers: #1796
- mysql authentication module: #2287
- generic SQL authentication module: #2288
- Network:
- client listen mode: #1022
- retry to connect until it succeeds or times out: #2346
- mdns TXT attributes updated at runtime: #2187
- zeroconf fixes: #2317
- drop pybonjour: #2297
- paramiko honours IdentityFile: #2282, handles SIGINT better: #2378
- proxy server fixes for ssl and ssh sockets: #2399, remove spurious options: #2193
- proxy ping and timeouts: #2408
- proxy dynamic authentication: #2261
- Automated Testing:
- test HTML5 client: #2231
- many new mixin tests: #1773 (and bugs found)
- start-new-commands is now enabled by default: #2278, and the UI allows free text: #2221
- basic support for native GTK wayland client: #2243
- forward custom X11 properties: #2311
- xpra launcher visual feedback during connection: #1421, sharing option: #2115
- "Window" menu on MacOS: #1808
* Tue Mar 19 2019 Antoine Martin <antoine@xpra.org> 2.5-1
- Python 3 port mostly complete, including packaging for Debian
- pixel compression and bandwidth management:
- better recovery from network congestion
- distinguish refresh from normal updates
- better tuning for mmap connections
- heuristics improvements
- use video encoders more aggressively
- prevent too many delayed frames with x264
- better video region detection with opengl content
- better automatic tuning for client applications
- based on application categories
- application supplied hints
- application window encoding hints
- using environment variables and disabling video
- HTML5 client improvements
- Client improvements:
- make it easier to start new commands, provide start menu
- probe OpenGL in a subprocess to detect and workaround driver crashes
- use appindicator if available
- Packaging:
- merge xpra and its dependencies into the MSYS2 repository
- ship fewer files in MS Windows installers
- partial support for parallel installation of 32-bit and 64-bit version on MS Windows
- MacOS library updates
- CentOS 7: libyuv and turbojpeg
- Windows Services for Linux (WSL) support
- Fedora 30 and Ubuntu Disco support
- Ubuntu HWE compatibility (manual steps required due to upstream bug)
- Server improvements:
- start command on last client exit
- honour minimum window size
- Python 3
- upgrade-desktop subcommand
- Network layer:
- less copying
- use our own websocket layer
- make it easier to install mdns on MS Windows
- make mmap group configurable
- TCP CORK support on Linux
- SSH transport:
- support .ssh/config with paramiko backend
- connecting via ssh proxy hosts
- SSHFP with paramiko:
- clipboard: restrict clipboard data transfers size
- audio: support wasapi on MS Windows
- code cleanups, etc
* Sat Oct 13 2018 Antoine Martin <antoine@xpra.org> 2.4-1
- SSH client integration (paramiko)
- builtin server support for TCP socket upgrades to SSH (paramiko)
- automatic TCP port allocation
- expose desktop-sessions as VNC via mdns
- add zeroconf backend
- register more URL schemes
- window content type heuristics configuration
- use content type it to better tune automatic encoding selection
- automatic video scaling
- bandwidth-limit management in video encoders
- HTML5 client mpeg1 and h264 decoding
- HTML5 client support for forwarding of URL open requests
- HTML5 client Internet Explorer 11 compatibility
- HTML5 client toolbar improvements
- HTML5 fullscreen mode support
- limit video dimensions to cap CPU and bandwidth usage
- keyboard layout handling fixes
- better memory management and resource usage
- new default GUI welcome screen
- desktop file for starting shadow servers more easily
- clipboard synchronization with multiple clients
- use notifications bubbles for more important events
- workarounds for running under Wayland with GTK3
- modal windows enabled by default
- support xdg base directory specification and socket file time
- improved python3 support (still client only)
- multi-window shadow servers on MacOS and MS Windows
- buildbot upgrade
- more reliable unit tests
- fixes and workarounds for Java client applications
- locally authenticated users can shutdown proxy servers
- restrict potential privileged information leakage
- enhanced per-client window filtering
- remove extra pixel copy in opengl enabled client
- clip pointer events to the actual window content size
- new platforms: Ubuntu Cosmic, Fedora 29
* Tue May 08 2018 Antoine Martin <antoine@xpra.org> 2.3-1