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