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