]>
Commit | Line | Data |
---|---|---|
5bd16a60 | 1 | %define xversion 1.14.0 |
aced0e84 | 2 | |
25ea9235 JR |
3 | Summary: A TigerVNC remote display system |
4 | Summary(pl.UTF-8): System zdalnego dostępu TigerVNC | |
aced0e84 | 5 | Name: tigervnc |
ea73831e | 6 | Version: 1.3.0 |
bd5cb60a | 7 | Release: 3 |
aced0e84 JR |
8 | License: GPL v2 |
9 | Group: X11/Applications/Networking | |
ea73831e MK |
10 | Source0: http://download.sourceforge.net/tigervnc/%{name}-%{version}.tar.bz2 |
11 | # Source0-md5: a5158228e64d14496821a39bf3851f1b | |
aced0e84 | 12 | Source1: %{name}.desktop |
d76ad120 MK |
13 | Source2: vncserver.init |
14 | Source3: vncserver.sysconfig | |
d1286e0a AF |
15 | Patch0: %{name}-cookie.patch |
16 | Patch1: %{name}-ldnow.patch | |
17 | Patch2: %{name}-rh102434.patch | |
ea73831e MK |
18 | Patch3: %{name}-as-needed.patch |
19 | Patch4: %{name}-ipv6.patch | |
20 | Patch5: %{name}-rh692048.patch | |
21 | Patch6: no-bashizm.patch | |
22 | Patch7: format-security.patch | |
23 | Patch8: %{name}-typecast.patch | |
bd5cb60a MK |
24 | Patch9: tigervnc-xstartup.patch |
25 | Patch10: xserver.patch | |
aced0e84 | 26 | URL: http://www.tigervnc.com/ |
7113a006 | 27 | BuildRequires: ImageMagick |
7718ecda JR |
28 | BuildRequires: ImageMagick-coder-png |
29 | BuildRequires: ImageMagick-coder-svg | |
d1286e0a | 30 | BuildRequires: Mesa-libGL-devel >= 7.8.1 |
aced0e84 | 31 | BuildRequires: cpp |
80f71334 | 32 | BuildRequires: fltk-devel |
f6fa61b2 | 33 | BuildRequires: gnutls-devel |
ea2b4c07 | 34 | BuildRequires: libjpeg-turbo-devel |
7113a006 | 35 | BuildRequires: xorg-xserver-server-source >= %{xversion} |
d1286e0a | 36 | BuildRequires: zlib-devel |
aced0e84 | 37 | # xserver BRs, should match xorg-xserver-server.spec |
aced0e84 JR |
38 | # for glx headers |
39 | BuildRequires: OpenGL-GLX-devel | |
40 | BuildRequires: autoconf >= 2.57 | |
41 | BuildRequires: automake | |
42 | BuildRequires: libdrm-devel >= 2.4.5 | |
43 | BuildRequires: libtool | |
d31e009e | 44 | BuildRequires: nasm |
aced0e84 JR |
45 | BuildRequires: ncurses-devel |
46 | BuildRequires: pam-devel | |
47 | BuildRequires: perl-base | |
48 | BuildRequires: pixman-devel >= 0.16.0 | |
49 | BuildRequires: pkgconfig >= 1:0.19 | |
50 | BuildRequires: xorg-app-mkfontscale | |
51 | BuildRequires: xorg-font-font-util >= 1.1 | |
52 | BuildRequires: xorg-lib-libX11-devel | |
53 | BuildRequires: xorg-lib-libXau-devel | |
54 | BuildRequires: xorg-lib-libXaw-devel | |
55 | BuildRequires: xorg-lib-libXdamage-devel | |
56 | BuildRequires: xorg-lib-libXdmcp-devel | |
d1286e0a | 57 | BuildRequires: xorg-lib-libXext-devel >= 1.0.99.4 |
aced0e84 JR |
58 | BuildRequires: xorg-lib-libXfont-devel >= 1.4.2 |
59 | BuildRequires: xorg-lib-libXi-devel >= 1.2.99.1 | |
60 | BuildRequires: xorg-lib-libXmu-devel | |
61 | BuildRequires: xorg-lib-libXpm-devel | |
62 | BuildRequires: xorg-lib-libXrender-devel | |
63 | BuildRequires: xorg-lib-libXres-devel | |
64 | BuildRequires: xorg-lib-libXt-devel >= 1.0.0 | |
65 | BuildRequires: xorg-lib-libXtst-devel >= 1.0.99.2 | |
66 | BuildRequires: xorg-lib-libXv-devel | |
67 | BuildRequires: xorg-lib-libXxf86dga-devel | |
68 | BuildRequires: xorg-lib-libXxf86misc-devel | |
69 | BuildRequires: xorg-lib-libXxf86vm-devel | |
70 | BuildRequires: xorg-lib-libfontenc-devel | |
7470b97a | 71 | BuildRequires: xorg-lib-libpciaccess-devel >= 0.13 |
aced0e84 JR |
72 | BuildRequires: xorg-lib-libxkbfile-devel |
73 | BuildRequires: xorg-lib-libxkbui-devel >= 1.0.2 | |
74 | BuildRequires: xorg-lib-xtrans-devel >= 1.2.2 | |
75 | BuildRequires: xorg-proto-bigreqsproto-devel >= 1.1.0 | |
76 | BuildRequires: xorg-proto-damageproto-devel >= 1.1 | |
77 | BuildRequires: xorg-proto-fixesproto-devel >= 4.1 | |
78 | BuildRequires: xorg-proto-fontcacheproto-devel | |
79 | BuildRequires: xorg-proto-fontsproto-devel | |
80 | BuildRequires: xorg-proto-glproto-devel >= 1.4.10 | |
81 | BuildRequires: xorg-proto-inputproto-devel >= 1.9.99.902 | |
82 | BuildRequires: xorg-proto-kbproto-devel >= 1.0.3 | |
83 | BuildRequires: xorg-proto-printproto-devel | |
470522f5 | 84 | BuildRequires: xorg-proto-randrproto-devel >= 1.3 |
7113a006 | 85 | BuildRequires: xorg-proto-recordproto-devel |
aced0e84 JR |
86 | BuildRequires: xorg-proto-renderproto-devel >= 0.11 |
87 | BuildRequires: xorg-proto-resourceproto-devel | |
88 | BuildRequires: xorg-proto-scrnsaverproto-devel >= 1.1.0 | |
89 | BuildRequires: xorg-proto-videoproto-devel | |
90 | BuildRequires: xorg-proto-xcmiscproto-devel >= 1.2.0 | |
91 | BuildRequires: xorg-proto-xextproto-devel >= 1:7.0.99.3 | |
92 | BuildRequires: xorg-proto-xf86bigfontproto-devel >= 1.2.0 | |
93 | BuildRequires: xorg-proto-xf86dgaproto-devel >= 2.0.99.1 | |
94 | BuildRequires: xorg-proto-xf86driproto-devel >= 2.1.0 | |
95 | BuildRequires: xorg-proto-xf86miscproto-devel | |
96 | BuildRequires: xorg-proto-xf86vidmodeproto-devel >= 2.2.99.1 | |
470522f5 | 97 | BuildRequires: xorg-proto-xproto-devel >= 7.0.22 |
aced0e84 | 98 | BuildRequires: xorg-util-util-macros >= 1.10 |
d1286e0a AF |
99 | Requires(post,postun): gtk-update-icon-cache |
100 | Requires(post,postun): hicolor-icon-theme | |
ea2b4c07 | 101 | Requires: libjpeg-turbo |
aced0e84 JR |
102 | Provides: vnc-client |
103 | Conflicts: vnc | |
104 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
105 | ||
e11ecd59 | 106 | %define _xserverver %(LC_ALL=C rpm -q --qf '%{V}' xorg-xserver-server-source 2> /dev/null) |
7113a006 | 107 | |
aced0e84 | 108 | %description |
7113a006 JR |
109 | TigerVNC is a suite of VNC servers and clients that have a focus on |
110 | performance and remote display functionality. Originally this software | |
111 | was based on the (never released) VNC 4 branch of TightVNC. | |
aced0e84 | 112 | |
203e0071 JR |
113 | %description -l pl.UTF-8 |
114 | TigerVNC to zestaw serwerów i klientów VNC, które koncentrują się | |
115 | na wydajności i funkcjonalności zdalnego wyświetlania. Pierwotnie | |
116 | oprogramowanie oparte było na (nigdy nie wydanej) | |
117 | gałęzi VNC 4 TightVNC. | |
118 | ||
aced0e84 | 119 | %package server |
25ea9235 JR |
120 | Summary: VNC X server - TigerVNC version |
121 | Summary(pl.UTF-8): X serwer VNC - wersja TigerVNC | |
aced0e84 | 122 | Group: X11/Applications/Networking |
2dcb3511 | 123 | Requires(post,preun): /sbin/chkconfig |
aced0e84 JR |
124 | Requires: xorg-app-rgb |
125 | # for vncpasswd tool | |
126 | Requires: %{name}-utils = %{version}-%{release} | |
127 | # for mcookie | |
128 | Requires: util-linux | |
ea2b4c07 | 129 | Requires: libjpeg-turbo |
7559c302 | 130 | Requires: xkeyboard-config |
a511b5c2 | 131 | Requires: xorg-app-xauth |
7559c302 | 132 | Requires: xorg-app-xkbcomp |
aced0e84 JR |
133 | Obsoletes: vnc-server |
134 | ||
135 | %description server | |
7113a006 | 136 | This package contains VNC X server in TigerVNC version. |
aced0e84 JR |
137 | |
138 | %description server -l pl.UTF-8 | |
7113a006 | 139 | Ten pakiet zawiera X serwer VNC w wersji TigerVNC. |
aced0e84 JR |
140 | |
141 | %package utils | |
25ea9235 JR |
142 | Summary: Additional utilities for TigerVNC |
143 | Summary(pl.UTF-8): Dodatkowe narzędzia do TigerVNC | |
aced0e84 JR |
144 | Group: X11/Applications/Networking |
145 | Obsoletes: vnc-utils | |
146 | ||
147 | %description utils | |
7113a006 JR |
148 | This package contains additional TigerVNC utilities: vncconfig and |
149 | vncpasswd. vncconfig is used to configure and control a running | |
150 | instance of Xvnc, or any other X server with the VNC extension. | |
151 | vncpasswd generates password file (both on server and viewer side). | |
aced0e84 | 152 | |
203e0071 JR |
153 | %description utils -l pl.UTF-8 |
154 | Ten pakiet zawiera dodatkowe narzędzia do tightvnc: vncconfig i | |
155 | vncpasswd. vncconfig służy do konfigurowania i kontroli działającej | |
156 | instancji Xvnc lub innego serwera X z rozszerzeniem VNC. | |
157 | vncpasswd służy to tworzenia pliku z hasłem (zarówno po | |
158 | stronie serwera, jak i przeglądarki). | |
159 | ||
12ef4f37 JR |
160 | %package -n xorg-xserver-libvnc |
161 | Summary: TigerVNC module for X.org server | |
203e0071 | 162 | Summary(pl.UTF-8): Moduł TigerVNC dla servera X.org |
12ef4f37 | 163 | Group: X11/Servers |
7113a006 | 164 | %requires_eq_to xorg-xserver-server xorg-xserver-server-source |
12ef4f37 JR |
165 | Provides: xorg-xserver-module(vnc) |
166 | ||
167 | %description -n xorg-xserver-libvnc | |
168 | This package contains libvnc.so module for X.org server, | |
169 | allowing others to access the desktop on your machine. | |
170 | ||
203e0071 JR |
171 | %description -n xorg-xserver-libvnc -l pl.UTF-8 |
172 | Ten pakiet zawiera moduł libvnc.so dla serwera X.org, | |
173 | pozwalający na zdalny dostęp do pulpitu. | |
174 | ||
aced0e84 | 175 | %prep |
d31e009e | 176 | %setup -q |
7113a006 JR |
177 | %patch0 -p1 |
178 | %patch1 -p1 | |
179 | %patch2 -p1 | |
ea73831e MK |
180 | %patch3 -p1 |
181 | %patch4 -p0 | |
182 | %patch5 -p1 | |
183 | %patch6 -p1 | |
2c7d78a4 | 184 | %patch7 -p1 |
7470b97a | 185 | %patch8 -p1 |
bd5cb60a | 186 | %patch9 -p1 |
aced0e84 | 187 | |
7113a006 | 188 | cp -a %{_usrsrc}/xorg-xserver-server-%{_xserverver}/* unix/xserver |
ea73831e | 189 | |
12ef4f37 | 190 | cd unix/xserver |
bd5cb60a | 191 | patch -p1 <%{PATCH10} |
d31e009e | 192 | cd - |
12ef4f37 | 193 | |
aced0e84 | 194 | %build |
7470b97a | 195 | %cmake . |
aced0e84 JR |
196 | %{__make} |
197 | ||
12ef4f37 | 198 | cd unix/xserver |
7470b97a | 199 | %{__aclocal} -I m4 |
12ef4f37 | 200 | %{__autoconf} |
7470b97a JR |
201 | %{__automake} |
202 | export CXXFLAGS="%{rpmcxxflags} -fpermissive" | |
12ef4f37 | 203 | %configure \ |
7113a006 JR |
204 | --with-os-name="PLD/Linux" \ |
205 | --with-os-vendor="PLD/Team" \ | |
206 | --disable-config-dbus \ | |
207 | --disable-config-hal \ | |
208 | --disable-config-udev \ | |
7113a006 JR |
209 | --without-xmlto \ |
210 | --without-fop \ | |
211 | --without-doxygen \ | |
212 | --disable-devel-docs \ | |
213 | --with-default-font-path="%{_fontsdir}/misc,%{_fontsdir}/TTF,%{_fontsdir}/OTF,%{_fontsdir}/Type1,%{_fontsdir}/100dpi,%{_fontsdir}/75dpi" \ | |
12ef4f37 JR |
214 | --disable-xorg \ |
215 | --disable-xnest \ | |
216 | --disable-xvfb \ | |
217 | --disable-dmx \ | |
218 | --disable-xwin \ | |
219 | --disable-xephyr \ | |
220 | --disable-kdrive \ | |
7113a006 | 221 | --disable-xfbdev \ |
7470b97a | 222 | --disable-dri \ |
2c7d78a4 | 223 | --enable-dri2 \ |
12ef4f37 JR |
224 | --with-pic \ |
225 | --disable-static \ | |
226 | --disable-xinerama \ | |
227 | --disable-composite \ | |
12ef4f37 | 228 | --enable-glx \ |
7113a006 JR |
229 | --enable-glx-tls \ |
230 | --enable-aiglx \ | |
231 | --enable-dga \ | |
232 | --enable-glx-tls \ | |
233 | --enable-install-libxf86config \ | |
234 | --enable-record \ | |
7113a006 JR |
235 | --disable-xfake \ |
236 | --enable-secure-rpc \ | |
2c7d78a4 JR |
237 | --with-xkb-output=/var/lib/xkb \ |
238 | --disable-unit-tests | |
12ef4f37 JR |
239 | |
240 | %{__make} | |
241 | cd - | |
242 | ||
12ef4f37 JR |
243 | cd media |
244 | %{__make} | |
245 | ||
aced0e84 JR |
246 | %install |
247 | rm -rf $RPM_BUILD_ROOT | |
7113a006 JR |
248 | install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/{16x16,22x22,24x24,32x32,48x48,scalable}/apps \ |
249 | $RPM_BUILD_ROOT%{_desktopdir} | |
aced0e84 | 250 | |
aced0e84 JR |
251 | %{__make} install \ |
252 | DESTDIR=$RPM_BUILD_ROOT | |
253 | ||
12ef4f37 JR |
254 | cd unix/xserver/hw/vnc |
255 | %{__make} install \ | |
256 | DESTDIR=$RPM_BUILD_ROOT | |
257 | cd - | |
258 | ||
7113a006 JR |
259 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
260 | ||
261 | install media/icons/tigervnc_16.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/16x16/apps/tigervnc.png | |
262 | install media/icons/tigervnc_22.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/22x22/apps/tigervnc.png | |
263 | install media/icons/tigervnc_24.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/24x24/apps/tigervnc.png | |
264 | install media/icons/tigervnc_32.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/32x32/apps/tigervnc.png | |
265 | install media/icons/tigervnc_48.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/apps/tigervnc.png | |
266 | install media/icons/tigervnc.svg $RPM_BUILD_ROOT%{_iconsdir}/hicolor/scalable/apps/tigervnc.svg | |
267 | ||
d76ad120 MK |
268 | install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} |
269 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/vncserver | |
270 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/vncserver | |
271 | ||
a5f2294f JR |
272 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir} |
273 | ||
7113a006 JR |
274 | %find_lang %{name} |
275 | ||
aced0e84 JR |
276 | %clean |
277 | rm -rf $RPM_BUILD_ROOT | |
278 | ||
145f00de JR |
279 | %post |
280 | [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_post | |
d1286e0a | 281 | %update_icon_cache hicolor |
145f00de JR |
282 | |
283 | %postun | |
284 | [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_postun | |
d1286e0a | 285 | %update_icon_cache hicolor |
145f00de | 286 | |
2dcb3511 MK |
287 | %post server |
288 | /sbin/chkconfig --add vncserver | |
289 | %service vncserver restart "VNC server" | |
290 | ||
291 | %preun server | |
292 | if [ "$1" = "0" ]; then | |
293 | %service vncserver stop | |
294 | /sbin/chkconfig --del vncserver | |
295 | fi | |
296 | ||
7113a006 | 297 | %files -f %{name}.lang |
aced0e84 | 298 | %defattr(644,root,root,755) |
a5f2294f | 299 | %doc README.txt doc/* |
aced0e84 JR |
300 | %attr(755,root,root) %{_bindir}/vncviewer |
301 | %{_mandir}/man1/vncviewer.1* | |
7113a006 JR |
302 | %{_desktopdir}/tigervnc.desktop |
303 | %{_iconsdir}/hicolor/*/apps/tigervnc.* | |
aced0e84 JR |
304 | |
305 | %files server | |
306 | %defattr(644,root,root,755) | |
12ef4f37 | 307 | %attr(755,root,root) %{_bindir}/Xvnc |
aced0e84 | 308 | %attr(755,root,root) %{_bindir}/vncserver |
7113a006 | 309 | %attr(755,root,root) %{_bindir}/x0vncserver |
d76ad120 MK |
310 | %attr(754,root,root) /etc/rc.d/init.d/vncserver |
311 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/vncserver | |
12ef4f37 | 312 | %{_mandir}/man1/Xvnc.1* |
aced0e84 | 313 | %{_mandir}/man1/vncserver.1* |
7113a006 | 314 | %{_mandir}/man1/x0vncserver.1* |
aced0e84 JR |
315 | |
316 | %files utils | |
317 | %defattr(644,root,root,755) | |
7113a006 | 318 | %attr(755,root,root) %{_bindir}/vncconfig |
aced0e84 | 319 | %attr(755,root,root) %{_bindir}/vncpasswd |
7113a006 | 320 | %{_mandir}/man1/vncconfig.1* |
aced0e84 | 321 | %{_mandir}/man1/vncpasswd.1* |
12ef4f37 JR |
322 | |
323 | %files -n xorg-xserver-libvnc | |
324 | %defattr(644,root,root,755) | |
325 | %attr(755,root,root) %{_libdir}/xorg/modules/extensions/libvnc.so |