]>
Commit | Line | Data |
---|---|---|
3cbe738b ER |
1 | # TODO |
2 | # - minimize deps, use more suggests | |
c551d1a0 ER |
3 | Summary: Front end for controlling remote desktop sessions |
4 | Name: winswitch | |
39f88833 | 5 | Version: 0.12.20 |
4ac7dcfd | 6 | Release: 2 |
39f88833 | 7 | License: GPL v3 |
c551d1a0 | 8 | Group: Networking |
39f88833 ER |
9 | #Source0: http://winswitch.org/src/%{name}-%{version}.tar.gz |
10 | Source0: %{name}-%{version}.tar.gz | |
11 | # Source0-md5: b2814b2fd6274408ff9820d8fb519a85 | |
c551d1a0 | 12 | URL: http://winswitch.org/ |
c551d1a0 ER |
13 | BuildRequires: python |
14 | BuildRequires: python-distribute | |
15 | BuildRequires: rpm-pythonprov | |
fb1309ce | 16 | BuildRequires: rpmbuild(macros) >= 1.672 |
39f88833 ER |
17 | BuildRequires: sed >= 4.0 |
18 | ||
4ac7dcfd ER |
19 | Suggests: avahi |
20 | Suggests: avahi-ui | |
39f88833 | 21 | |
4ac7dcfd | 22 | Suggests: gstreamer |
39f88833 ER |
23 | |
24 | #Requires: gnome-python2-rsvg | |
25 | #Requires: nautilus-python | |
fb1309ce | 26 | Requires: python-utmp |
39f88833 ER |
27 | |
28 | Requires: python-Crypto | |
29 | Requires: python-PIL | |
11a0a87d ER |
30 | Requires: python-TwistedConch |
31 | Requires: python-TwistedCore | |
39f88833 ER |
32 | #Requires: python-ctypes |
33 | #Requires: python-hashlib | |
34 | Requires: python-pygtk-gtk | |
39f88833 ER |
35 | #Requires: python-uuid |
36 | #Requires: python-xlib | |
37 | ||
38 | Requires: python | |
39 | ||
40 | Requires: python-pyasn1 | |
41 | ||
42 | #Requires: xorg-x11-server-utils | |
43 | ||
39f88833 | 44 | Requires: openssh-clients |
39f88833 ER |
45 | #Requires: tigervnc-server >= 1.0.90 |
46 | Requires: xpra >= 0.7 | |
fb1309ce ER |
47 | Suggests: nx |
48 | Suggests: rdesktop | |
39f88833 ER |
49 | |
50 | Suggests: ImageMagick | |
51 | Suggests: dbus-x11 | |
52 | #Suggests: devilspie | |
53 | Suggests: gnome-menus | |
54 | #Suggests: gnome-python2 | |
55 | Suggests: tigervnc | |
56 | Suggests: xfreerdp | |
57 | #Suggests: xloadimage | |
58 | ||
c551d1a0 | 59 | Obsoletes: shifter |
39f88833 | 60 | BuildArch: noarch |
c551d1a0 ER |
61 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
62 | ||
39f88833 ER |
63 | %define _libexecdir %{_prefix}/lib |
64 | ||
fb1309ce ER |
65 | %define _noautoreq_java ClassDataVersion |
66 | ||
c551d1a0 ER |
67 | %description |
68 | Start and control remote GUI sessions via xpra, NX, VNC, RDP or plain | |
69 | ssh X11 forwarding. You can start, suspend, resume and send supported | |
70 | sessions to other clients. | |
71 | ||
72 | %prep | |
73 | %setup -q | |
74 | ||
39f88833 ER |
75 | # TODO: bashism: |
76 | # skel/libexec/winswitch/firewall | |
77 | # skel/libexec/winswitch/kill_parent | |
fb1309ce | 78 | |
39f88833 ER |
79 | grep -rl '/usr/bin/env python' winswitch skel | xargs %{__sed} -i -e '1s,^#!.*python,#!%{__python},' |
80 | ||
c551d1a0 ER |
81 | %build |
82 | %{__python} setup.py build | |
83 | ||
84 | %install | |
85 | rm -rf $RPM_BUILD_ROOT | |
86 | %{__python} setup.py install \ | |
87 | --skip-build \ | |
88 | --optimize=2 \ | |
89 | --root=$RPM_BUILD_ROOT | |
90 | ||
91 | %py_postclean | |
92 | ||
39f88833 ER |
93 | # nautilus 2.x (no gnome 2 in pld) |
94 | rm $RPM_BUILD_ROOT%{_libexecdir}/nautilus/extensions-2.0/python/nautilus_winswitch.py | |
95 | ||
c551d1a0 ER |
96 | %clean |
97 | rm -rf $RPM_BUILD_ROOT | |
98 | ||
99 | %files | |
100 | %defattr(644,root,root,755) | |
101 | %doc COPYING | |
39f88833 ER |
102 | %dir %{_sysconfdir}/winswitch |
103 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/winswitch/firewall | |
104 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/winswitch/ports.conf | |
105 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/winswitch/server_defaults.conf | |
c551d1a0 | 106 | %attr(755,root,root) %{_bindir}/wcw |
39f88833 ER |
107 | %attr(755,root,root) %{_bindir}/winswitch_applet |
108 | %attr(755,root,root) %{_bindir}/winswitch_away | |
109 | %attr(755,root,root) %{_bindir}/winswitch_back | |
110 | %attr(755,root,root) %{_bindir}/winswitch_client | |
111 | %attr(755,root,root) %{_bindir}/winswitch_command_wrapper | |
112 | %attr(755,root,root) %{_bindir}/winswitch_open_remotely | |
113 | %attr(755,root,root) %{_bindir}/winswitch_server | |
114 | %attr(755,root,root) %{_bindir}/winswitch_ssh_Xnest | |
115 | %attr(755,root,root) %{_bindir}/winswitch_ssh_session | |
116 | %attr(755,root,root) %{_bindir}/winswitch_stdio_socket | |
117 | %attr(755,root,root) %{_bindir}/winswitch_stdio_tcp | |
118 | %{_mandir}/man1/wcw.1* | |
119 | %{_mandir}/man1/winswitch_*.1* | |
c551d1a0 | 120 | %{_desktopdir}/winswitch.desktop |
39f88833 ER |
121 | %{_iconsdir}/hicolor/*/apps/winswitch*.png |
122 | %{_iconsdir}/winswitch_applet.png | |
123 | %{_datadir}/mime/packages/winswitch.xml | |
124 | ||
125 | %{_datadir}/winswitch | |
126 | %{py_sitescriptdir}/winswitch | |
127 | %{py_sitescriptdir}/winswitch-%{version}-py*.egg-info | |
128 | ||
129 | %dir %{_libexecdir}/winswitch | |
130 | %dir %{_libexecdir}/winswitch/bin-override | |
131 | %attr(755,root,root) %{_libexecdir}/winswitch/bin-override/xdg-open | |
132 | %attr(755,root,root) %{_libexecdir}/winswitch/delayed_start | |
133 | %attr(755,root,root) %{_libexecdir}/winswitch/firewall | |
134 | %attr(755,root,root) %{_libexecdir}/winswitch/gst_capture | |
135 | %attr(755,root,root) %{_libexecdir}/winswitch/gst_playback | |
136 | %attr(755,root,root) %{_libexecdir}/winswitch/kill_parent | |
137 | %attr(755,root,root) %{_libexecdir}/winswitch/mime_open | |
138 | %attr(755,root,root) %{_libexecdir}/winswitch/server_monitor | |
139 | %attr(755,root,root) %{_libexecdir}/winswitch/server_portinfo | |
140 | %attr(755,root,root) %{_libexecdir}/winswitch/virt_server_daemonizer | |
141 | ||
142 | # thunar | |
143 | %{_datadir}/Thunar/sendto/thunar-winswitch.desktop | |
fb1309ce ER |
144 | |
145 | # Vash - https://github.com/thevash/vash | |
146 | # .jar to make screenshots | |
147 | # TODO: package as java-vash and suggest it | |
c551d1a0 | 148 | %{_datadir}/Vash |