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