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