]>
Commit | Line | Data |
---|---|---|
f1a9b771 | 1 | # TODO |
29951ed6 | 2 | # - subpackages for client/server, see http://xpra.org/dev.html |
6fb59b95 | 3 | # - nvenc/cuda support (on bcond) |
4d273b65 ER |
4 | # |
5 | # Conditional build: | |
6fb59b95 JB |
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 | |
4d273b65 | 17 | |
160ef313 | 18 | Summary: Xpra gives you "persistent remote applications" for X |
5a5f28f1 | 19 | Summary(pl.UTF-8): Xpra - "stałe zdalne aplikacje" dla X |
160ef313 | 20 | Name: xpra |
6fb59b95 | 21 | Version: 0.11.4 |
33952dff | 22 | Release: 1 |
160ef313 | 23 | License: GPL v2+ |
33952dff | 24 | Group: X11/Applications/Networking |
f1a9b771 | 25 | Source0: http://xpra.org/src/%{name}-%{version}.tar.xz |
6fb59b95 | 26 | # Source0-md5: c5ef7e94c4f85aa198e5855ae2131385 |
ee1187c7 | 27 | Patch0: setup-cc-ccache.patch |
160ef313 | 28 | URL: http://xpra.org/ |
5a5f28f1 | 29 | BuildRequires: OpenGL-devel |
29951ed6 | 30 | BuildRequires: ffmpeg-devel |
5a5f28f1 JB |
31 | BuildRequires: gtk+2-devel >= 2.0 |
32 | BuildRequires: libvpx-devel | |
29951ed6 ER |
33 | BuildRequires: libx264-devel |
34 | BuildRequires: pkgconfig | |
5a5f28f1 | 35 | BuildRequires: python-Cython >= 0.14.0 |
160ef313 | 36 | BuildRequires: python-distribute |
5a5f28f1 JB |
37 | BuildRequires: python-pygobject-devel >= 2.0 |
38 | BuildRequires: python-pygtk-devel >= 2:2.0 | |
160ef313 | 39 | BuildRequires: rpm-pythonprov |
f1a9b771 | 40 | BuildRequires: tar >= 1:1.22 |
29951ed6 | 41 | BuildRequires: xorg-lib-libXtst-devel |
f1a9b771 | 42 | BuildRequires: xz |
282f26dd | 43 | Requires: libwebp |
5a5f28f1 | 44 | Requires: python-pygtk-gtk >= 2:2.0 |
33952dff ER |
45 | Requires: xorg-app-setxkbmap |
46 | Requires: xorg-app-xauth | |
47 | Requires: xorg-app-xmodmap | |
282f26dd | 48 | Requires: xorg-xserver-Xvfb |
5c84ecfd ER |
49 | Suggests: python-PyOpenGL |
50 | Suggests: python-pygtkglext | |
160ef313 ER |
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 | ||
134fd9a0 | 65 | %description -l pl.UTF-8 |
5a5f28f1 JB |
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 | |
134fd9a0 | 70 | podłączyć z powrotem później, również z innego komputera, bez straty |
5a5f28f1 JB |
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. | |
134fd9a0 | 75 | |
5a5f28f1 | 76 | W uproszczeniu xpra to "screen" dla zdalnych aplikacji X-owych. |
134fd9a0 | 77 | |
160ef313 | 78 | %prep |
f1a9b771 | 79 | %setup -q |
ee1187c7 | 80 | %patch0 -p1 |
160ef313 ER |
81 | |
82 | %build | |
83 | CC="%{__cc}" \ | |
84 | CFLAGS="%{rpmcflags}" \ | |
4d273b65 ER |
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} | |
160ef313 ER |
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 | ||
160ef313 | 119 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/xpra/COPYING |
5a5f28f1 | 120 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/xpra/README |
160ef313 | 121 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/xpra/webm/LICENSE |
160ef313 ER |
122 | |
123 | %py_postclean | |
124 | ||
125 | %clean | |
126 | rm -rf $RPM_BUILD_ROOT | |
127 | ||
128 | %files | |
129 | %defattr(644,root,root,755) | |
5a5f28f1 | 130 | %doc NEWS README |
160ef313 ER |
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 | |
160ef313 ER |
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 | |
383a6766 ER |
140 | # experimental html5 client |
141 | %{_datadir}/%{name}/www | |
5a5f28f1 | 142 | %{_desktopdir}/xpra.desktop |
160ef313 ER |
143 | %{_desktopdir}/xpra_launcher.desktop |
144 | %{_iconsdir}/xpra.png | |
160ef313 ER |
145 | %{_mandir}/man1/xpra.1* |
146 | %{_mandir}/man1/xpra_launcher.1* | |
147 | ||
160ef313 | 148 | %dir %{py_sitedir}/xpra |
5a5f28f1 JB |
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] | |
383a6766 ER |
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 | |
5a5f28f1 JB |
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] | |
383a6766 ER |
197 | %dir %{py_sitedir}/xpra/server/auth |
198 | %{py_sitedir}/xpra/server/auth/*.py[co] | |
5a5f28f1 JB |
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] | |
160ef313 | 208 | %{py_sitedir}/xpra/*.py[co] |
383a6766 | 209 | %{py_sitedir}/xpra-%{version}-py*.egg-info |