]>
Commit | Line | Data |
---|---|---|
1 | # TODO | |
2 | # - subpackages for client/server, see http://xpra.org/dev.html | |
3 | # - nvenc/cuda support (on bcond) | |
4 | # | |
5 | # Conditional build: | |
6 | %bcond_without client # client part | |
7 | %bcond_without server # server part | |
8 | %bcond_without sound # (gstreamer) sound support | |
9 | %bcond_without clipboard # clipboard support | |
10 | %bcond_without csc # colorspace conversion support | |
11 | %bcond_without dec_av # avcodec decoding | |
12 | %bcond_without opengl # OpenGL support | |
13 | %bcond_without rencode # rencode support | |
14 | %bcond_without vpx # VPX/WebM support | |
15 | %bcond_without webp # WebP support | |
16 | %bcond_without x264 # x264 encoding | |
17 | ||
18 | Summary: Xpra gives you "persistent remote applications" for X | |
19 | Summary(pl.UTF-8): Xpra - "stałe zdalne aplikacje" dla X | |
20 | Name: xpra | |
21 | Version: 0.11.4 | |
22 | Release: 1 | |
23 | License: GPL v2+ | |
24 | Group: X11/Applications/Networking | |
25 | Source0: http://xpra.org/src/%{name}-%{version}.tar.xz | |
26 | # Source0-md5: c5ef7e94c4f85aa198e5855ae2131385 | |
27 | Patch0: setup-cc-ccache.patch | |
28 | URL: http://xpra.org/ | |
29 | BuildRequires: OpenGL-devel | |
30 | BuildRequires: ffmpeg-devel | |
31 | BuildRequires: gtk+2-devel >= 2.0 | |
32 | BuildRequires: libvpx-devel | |
33 | BuildRequires: libx264-devel | |
34 | BuildRequires: pkgconfig | |
35 | BuildRequires: python-Cython >= 0.14.0 | |
36 | BuildRequires: python-distribute | |
37 | BuildRequires: python-pygobject-devel >= 2.0 | |
38 | BuildRequires: python-pygtk-devel >= 2:2.0 | |
39 | BuildRequires: rpm-pythonprov | |
40 | BuildRequires: tar >= 1:1.22 | |
41 | BuildRequires: xorg-lib-libXtst-devel | |
42 | BuildRequires: xz | |
43 | Requires: libwebp | |
44 | Requires: python-pygtk-gtk >= 2:2.0 | |
45 | Requires: xorg-app-setxkbmap | |
46 | Requires: xorg-app-xauth | |
47 | Requires: xorg-app-xmodmap | |
48 | Requires: xorg-xserver-Xvfb | |
49 | Suggests: python-PyOpenGL | |
50 | Suggests: python-pygtkglext | |
51 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
52 | ||
53 | %description | |
54 | Xpra gives you "persistent remote applications" for X. That is, unlike | |
55 | normal X applications, applications run with xpra are "persistent" -- | |
56 | you can run them remotely, and they don't die if your connection does. | |
57 | You can detach them, and reattach them later -- even from another | |
58 | computer -- with no loss of state. And unlike VNC or RDP, xpra is for | |
59 | remote applications, not remote desktops -- individual applications | |
60 | show up as individual windows on your screen, managed by your window | |
61 | manager. They're not trapped in a box. | |
62 | ||
63 | So basically it's screen for remote X apps. | |
64 | ||
65 | %description -l pl.UTF-8 | |
66 | Xpra daje "stałe zdalne aplikacje" dla serwera X, które w | |
67 | przeciwieństwie do zwykłych X-owych aplikacji, uruchamiane są z xprą | |
68 | jako niezamykające. Można je uruchomić zdalnie i one nie zostaną | |
69 | zamknięte, gdy połączenie zostanie przerwane. Można je odłączyć i | |
70 | podłączyć z powrotem później, również z innego komputera, bez straty | |
71 | stanu. W odróżnieniu od VNC czy RDP, xpra jest dla zdalnych aplikacji, | |
72 | a nie zdalnych pulpitów - pojedyncze aplikacje pokazują się jako | |
73 | samodzielne okno na lokalnym ekranie, zarządzane przez lokalnego | |
74 | zarządcę okien. | |
75 | ||
76 | W uproszczeniu xpra to "screen" dla zdalnych aplikacji X-owych. | |
77 | ||
78 | %prep | |
79 | %setup -q | |
80 | %patch0 -p1 | |
81 | ||
82 | %build | |
83 | CC="%{__cc}" \ | |
84 | CFLAGS="%{rpmcflags}" \ | |
85 | %{__python} setup.py build \ | |
86 | %{__with_without client} \ | |
87 | %{__with_without clipboard} \ | |
88 | %{__with_without csc csc_swscale} \ | |
89 | %{__with_without dec_av dec_avcodec} \ | |
90 | %{__with_without opengl} \ | |
91 | %{__with_without rencode} \ | |
92 | %{__with_without server cymaths} \ | |
93 | %{__with_without server shadow} \ | |
94 | %{__with_without server} \ | |
95 | %{__with_without sound} \ | |
96 | %{__with_without vpx} \ | |
97 | %{__with_without webp} \ | |
98 | %{__with_without x264 enc_x264} \ | |
99 | --with-Xdummy \ | |
100 | --with-argb \ | |
101 | --with-cyxor \ | |
102 | --with-gtk2 \ | |
103 | --without-gtk3 \ | |
104 | --without-qt4 \ | |
105 | --with-strict \ | |
106 | --with-warn \ | |
107 | --with-x11 \ | |
108 | --with-PIC \ | |
109 | --with%{!?debug:out}-debug \ | |
110 | %{nil} | |
111 | ||
112 | %install | |
113 | rm -rf $RPM_BUILD_ROOT | |
114 | %{__python} setup.py install \ | |
115 | --skip-build \ | |
116 | --optimize=2 \ | |
117 | --root=$RPM_BUILD_ROOT | |
118 | ||
119 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/xpra/COPYING | |
120 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/xpra/README | |
121 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/xpra/webm/LICENSE | |
122 | ||
123 | %py_postclean | |
124 | ||
125 | %clean | |
126 | rm -rf $RPM_BUILD_ROOT | |
127 | ||
128 | %files | |
129 | %defattr(644,root,root,755) | |
130 | %doc NEWS README | |
131 | %dir %{_sysconfdir}/%{name} | |
132 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/xorg.conf | |
133 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/xpra.conf | |
134 | %attr(755,root,root) %{_bindir}/xpra | |
135 | %attr(755,root,root) %{_bindir}/xpra_Xdummy | |
136 | %attr(755,root,root) %{_bindir}/xpra_launcher | |
137 | %dir %{_datadir}/xpra | |
138 | %dir %{_datadir}/xpra/icons | |
139 | %{_datadir}/xpra/icons/*.png | |
140 | # experimental html5 client | |
141 | %{_datadir}/%{name}/www | |
142 | %{_desktopdir}/xpra.desktop | |
143 | %{_desktopdir}/xpra_launcher.desktop | |
144 | %{_iconsdir}/xpra.png | |
145 | %{_mandir}/man1/xpra.1* | |
146 | %{_mandir}/man1/xpra_launcher.1* | |
147 | ||
148 | %dir %{py_sitedir}/xpra | |
149 | %{py_sitedir}/xpra/client | |
150 | %{py_sitedir}/xpra/clipboard | |
151 | %dir %{py_sitedir}/xpra/codecs | |
152 | %dir %{py_sitedir}/xpra/codecs/argb | |
153 | %attr(755,root,root) %{py_sitedir}/xpra/codecs/argb/argb.so | |
154 | %{py_sitedir}/xpra/codecs/argb/__init__.py[co] | |
155 | %dir %{py_sitedir}/xpra/codecs/csc_swscale | |
156 | %attr(755,root,root) %{py_sitedir}/xpra/codecs/csc_swscale/colorspace_converter.so | |
157 | %{py_sitedir}/xpra/codecs/csc_swscale/__init__.py[co] | |
158 | %dir %{py_sitedir}/xpra/codecs/dec_avcodec | |
159 | %attr(755,root,root) %{py_sitedir}/xpra/codecs/dec_avcodec/decoder.so | |
160 | %{py_sitedir}/xpra/codecs/dec_avcodec/__init__.py[co] | |
161 | %dir %{py_sitedir}/xpra/codecs/enc_x264 | |
162 | %attr(755,root,root) %{py_sitedir}/xpra/codecs/enc_x264/encoder.so | |
163 | %{py_sitedir}/xpra/codecs/enc_x264/__init__.py[co] | |
164 | %dir %{py_sitedir}/xpra/codecs/vpx | |
165 | %attr(755,root,root) %{py_sitedir}/xpra/codecs/vpx/decoder.so | |
166 | %attr(755,root,root) %{py_sitedir}/xpra/codecs/vpx/encoder.so | |
167 | %{py_sitedir}/xpra/codecs/vpx/__init__.py[co] | |
168 | %{py_sitedir}/xpra/codecs/webm | |
169 | %dir %{py_sitedir}/xpra/codecs/xor | |
170 | %attr(755,root,root) %{py_sitedir}/xpra/codecs/xor/cyxor.so | |
171 | %{py_sitedir}/xpra/codecs/xor/*.py[co] | |
172 | %{py_sitedir}/xpra/codecs/*.py[co] | |
173 | %dir %{py_sitedir}/xpra/codecs/csc_cython | |
174 | %{py_sitedir}/xpra/codecs/csc_cython/*.py[co] | |
175 | %attr(755,root,root) %{py_sitedir}/xpra/codecs/csc_cython/colorspace_converter.so | |
176 | %dir %{py_sitedir}/xpra/codecs/csc_opencl | |
177 | %{py_sitedir}/xpra/codecs/csc_opencl/*.py[co] | |
178 | %dir %{py_sitedir}/xpra/net/bencode | |
179 | %{py_sitedir}/xpra/net/bencode/*.py[co] | |
180 | %attr(755,root,root) %{py_sitedir}/xpra/net/bencode/cython_bencode.so | |
181 | %dir %{py_sitedir}/xpra/gtk_common | |
182 | %attr(755,root,root) %{py_sitedir}/xpra/gtk_common/gdk_atoms.so | |
183 | %{py_sitedir}/xpra/gtk_common/*.py[co] | |
184 | %{py_sitedir}/xpra/keyboard | |
185 | %dir %{py_sitedir}/xpra/net | |
186 | %dir %{py_sitedir}/xpra/net/rencode | |
187 | %attr(755,root,root) %{py_sitedir}/xpra/net/rencode/_rencode.so | |
188 | %{py_sitedir}/xpra/net/rencode/*.py[co] | |
189 | %{py_sitedir}/xpra/net/*.py[co] | |
190 | %{py_sitedir}/xpra/platform | |
191 | %{py_sitedir}/xpra/scripts | |
192 | %dir %{py_sitedir}/xpra/server | |
193 | %dir %{py_sitedir}/xpra/server/stats | |
194 | %attr(755,root,root) %{py_sitedir}/xpra/server/stats/cymaths.so | |
195 | %{py_sitedir}/xpra/server/stats/*.py[co] | |
196 | %{py_sitedir}/xpra/server/*.py[co] | |
197 | %dir %{py_sitedir}/xpra/server/auth | |
198 | %{py_sitedir}/xpra/server/auth/*.py[co] | |
199 | %{py_sitedir}/xpra/sound | |
200 | %dir %{py_sitedir}/xpra/x11 | |
201 | %dir %{py_sitedir}/xpra/x11/bindings | |
202 | %attr(755,root,root) %{py_sitedir}/xpra/x11/bindings/*.so | |
203 | %{py_sitedir}/xpra/x11/bindings/__init__.py[co] | |
204 | %dir %{py_sitedir}/xpra/x11/gtk_x11 | |
205 | %attr(755,root,root) %{py_sitedir}/xpra/x11/gtk_x11/gdk_*.so | |
206 | %{py_sitedir}/xpra/x11/gtk_x11/*.py[co] | |
207 | %{py_sitedir}/xpra/x11/*.py[co] | |
208 | %{py_sitedir}/xpra/*.py[co] | |
209 | %{py_sitedir}/xpra-%{version}-py*.egg-info |