]> git.pld-linux.org Git - packages/tigervnc.git/blame - tigervnc.spec
- updated to 1.3.1
[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
d204231a
MK
6Version: 1.3.1
7Release: 1
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
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
aa94f70a 80BuildRequires: xorg-lib-libxshmfence-devel >= 1.1
aced0e84
JR
81BuildRequires: xorg-lib-xtrans-devel >= 1.2.2
82BuildRequires: xorg-proto-bigreqsproto-devel >= 1.1.0
83BuildRequires: xorg-proto-damageproto-devel >= 1.1
aa94f70a 84BuildRequires: xorg-proto-dri3proto-devel >= 1.0
aced0e84
JR
85BuildRequires: xorg-proto-fixesproto-devel >= 4.1
86BuildRequires: xorg-proto-fontcacheproto-devel
87BuildRequires: xorg-proto-fontsproto-devel
88BuildRequires: xorg-proto-glproto-devel >= 1.4.10
89BuildRequires: xorg-proto-inputproto-devel >= 1.9.99.902
90BuildRequires: xorg-proto-kbproto-devel >= 1.0.3
2e5d6664 91BuildRequires: xorg-proto-presentproto-devel >= 1.0
aced0e84 92BuildRequires: xorg-proto-printproto-devel
470522f5 93BuildRequires: xorg-proto-randrproto-devel >= 1.3
7113a006 94BuildRequires: xorg-proto-recordproto-devel
aced0e84
JR
95BuildRequires: xorg-proto-renderproto-devel >= 0.11
96BuildRequires: xorg-proto-resourceproto-devel
97BuildRequires: xorg-proto-scrnsaverproto-devel >= 1.1.0
98BuildRequires: xorg-proto-videoproto-devel
99BuildRequires: xorg-proto-xcmiscproto-devel >= 1.2.0
100BuildRequires: xorg-proto-xextproto-devel >= 1:7.0.99.3
101BuildRequires: xorg-proto-xf86bigfontproto-devel >= 1.2.0
102BuildRequires: xorg-proto-xf86dgaproto-devel >= 2.0.99.1
103BuildRequires: xorg-proto-xf86driproto-devel >= 2.1.0
104BuildRequires: xorg-proto-xf86miscproto-devel
105BuildRequires: xorg-proto-xf86vidmodeproto-devel >= 2.2.99.1
470522f5 106BuildRequires: xorg-proto-xproto-devel >= 7.0.22
aced0e84 107BuildRequires: xorg-util-util-macros >= 1.10
d1286e0a
AF
108Requires(post,postun): gtk-update-icon-cache
109Requires(post,postun): hicolor-icon-theme
ea2b4c07 110Requires: libjpeg-turbo
aced0e84
JR
111Provides: vnc-client
112Conflicts: vnc
113BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
114
e11ecd59 115%define _xserverver %(LC_ALL=C rpm -q --qf '%{V}' xorg-xserver-server-source 2> /dev/null)
7113a006 116
aced0e84 117%description
7113a006
JR
118TigerVNC is a suite of VNC servers and clients that have a focus on
119performance and remote display functionality. Originally this software
120was based on the (never released) VNC 4 branch of TightVNC.
aced0e84 121
203e0071
JR
122%description -l pl.UTF-8
123TigerVNC to zestaw serwerów i klientów VNC, które koncentrują się
124na wydajności i funkcjonalności zdalnego wyświetlania. Pierwotnie
125oprogramowanie oparte było na (nigdy nie wydanej)
126gałęzi VNC 4 TightVNC.
127
aced0e84 128%package server
25ea9235
JR
129Summary: VNC X server - TigerVNC version
130Summary(pl.UTF-8): X serwer VNC - wersja TigerVNC
aced0e84 131Group: X11/Applications/Networking
2dcb3511 132Requires(post,preun): /sbin/chkconfig
9f5ab5d2 133Requires(post,preun,postun): systemd-units >= 38
aced0e84
JR
134Requires: xorg-app-rgb
135# for vncpasswd tool
136Requires: %{name}-utils = %{version}-%{release}
137# for mcookie
138Requires: util-linux
ea2b4c07 139Requires: libjpeg-turbo
9f5ab5d2 140Requires: systemd-units >= 38
7559c302 141Requires: xkeyboard-config
a511b5c2 142Requires: xorg-app-xauth
7559c302 143Requires: xorg-app-xkbcomp
aced0e84
JR
144Obsoletes: vnc-server
145
146%description server
7113a006 147This package contains VNC X server in TigerVNC version.
aced0e84
JR
148
149%description server -l pl.UTF-8
7113a006 150Ten pakiet zawiera X serwer VNC w wersji TigerVNC.
aced0e84
JR
151
152%package utils
25ea9235
JR
153Summary: Additional utilities for TigerVNC
154Summary(pl.UTF-8): Dodatkowe narzędzia do TigerVNC
aced0e84
JR
155Group: X11/Applications/Networking
156Obsoletes: vnc-utils
157
158%description utils
7113a006
JR
159This package contains additional TigerVNC utilities: vncconfig and
160vncpasswd. vncconfig is used to configure and control a running
161instance of Xvnc, or any other X server with the VNC extension.
162vncpasswd generates password file (both on server and viewer side).
aced0e84 163
203e0071
JR
164%description utils -l pl.UTF-8
165Ten pakiet zawiera dodatkowe narzędzia do tightvnc: vncconfig i
166vncpasswd. vncconfig służy do konfigurowania i kontroli działającej
167instancji Xvnc lub innego serwera X z rozszerzeniem VNC.
168vncpasswd służy to tworzenia pliku z hasłem (zarówno po
169stronie serwera, jak i przeglądarki).
170
12ef4f37
JR
171%package -n xorg-xserver-libvnc
172Summary: TigerVNC module for X.org server
203e0071 173Summary(pl.UTF-8): Moduł TigerVNC dla servera X.org
12ef4f37 174Group: X11/Servers
7113a006 175%requires_eq_to xorg-xserver-server xorg-xserver-server-source
12ef4f37
JR
176Provides: xorg-xserver-module(vnc)
177
178%description -n xorg-xserver-libvnc
179This package contains libvnc.so module for X.org server,
180allowing others to access the desktop on your machine.
181
203e0071
JR
182%description -n xorg-xserver-libvnc -l pl.UTF-8
183Ten pakiet zawiera moduł libvnc.so dla serwera X.org,
184pozwalający na zdalny dostęp do pulpitu.
185
aced0e84 186%prep
d31e009e 187%setup -q
7113a006
JR
188%patch0 -p1
189%patch1 -p1
ea73831e
MK
190%patch3 -p1
191%patch4 -p0
192%patch5 -p1
193%patch6 -p1
2c7d78a4 194%patch7 -p1
7470b97a 195%patch8 -p1
bd5cb60a 196%patch9 -p1
773b64b1 197%patch11 -p1
2e5d6664
JR
198%patch12 -p1
199%patch14 -p1
aced0e84 200
7113a006 201cp -a %{_usrsrc}/xorg-xserver-server-%{_xserverver}/* unix/xserver
ea73831e 202
2e5d6664
JR
203%patch13 -p1
204
12ef4f37 205cd unix/xserver
2e5d6664 206%patch10 -p1
12ef4f37 207
aced0e84 208%build
7470b97a 209%cmake .
aced0e84
JR
210%{__make}
211
12ef4f37 212cd unix/xserver
7470b97a 213%{__aclocal} -I m4
12ef4f37 214%{__autoconf}
7470b97a
JR
215%{__automake}
216export CXXFLAGS="%{rpmcxxflags} -fpermissive"
12ef4f37 217%configure \
7113a006
JR
218 --with-os-name="PLD/Linux" \
219 --with-os-vendor="PLD/Team" \
220 --disable-config-dbus \
221 --disable-config-hal \
222 --disable-config-udev \
7113a006
JR
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" \
12ef4f37
JR
228 --disable-xorg \
229 --disable-xnest \
230 --disable-xvfb \
231 --disable-dmx \
232 --disable-xwin \
233 --disable-xephyr \
234 --disable-kdrive \
7113a006 235 --disable-xfbdev \
7470b97a 236 --disable-dri \
2c7d78a4 237 --enable-dri2 \
aa94f70a 238 --enable-dri3 \
12ef4f37
JR
239 --with-pic \
240 --disable-static \
241 --disable-xinerama \
242 --disable-composite \
aa94f70a 243 --disable-wayland \
12ef4f37 244 --enable-glx \
7113a006
JR
245 --enable-glx-tls \
246 --enable-aiglx \
247 --enable-dga \
248 --enable-glx-tls \
249 --enable-install-libxf86config \
250 --enable-record \
7113a006
JR
251 --disable-xfake \
252 --enable-secure-rpc \
2c7d78a4
JR
253 --with-xkb-output=/var/lib/xkb \
254 --disable-unit-tests
12ef4f37
JR
255
256%{__make}
257cd -
258
12ef4f37
JR
259cd media
260%{__make}
261
aced0e84
JR
262%install
263rm -rf $RPM_BUILD_ROOT
7113a006
JR
264install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/{16x16,22x22,24x24,32x32,48x48,scalable}/apps \
265 $RPM_BUILD_ROOT%{_desktopdir}
aced0e84 266
aced0e84
JR
267%{__make} install \
268 DESTDIR=$RPM_BUILD_ROOT
269
12ef4f37
JR
270cd unix/xserver/hw/vnc
271%{__make} install \
272 DESTDIR=$RPM_BUILD_ROOT
273cd -
274
7113a006
JR
275install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
276
277install media/icons/tigervnc_16.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/16x16/apps/tigervnc.png
278install media/icons/tigervnc_22.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/22x22/apps/tigervnc.png
279install media/icons/tigervnc_24.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/24x24/apps/tigervnc.png
280install media/icons/tigervnc_32.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/32x32/apps/tigervnc.png
281install media/icons/tigervnc_48.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/apps/tigervnc.png
282install media/icons/tigervnc.svg $RPM_BUILD_ROOT%{_iconsdir}/hicolor/scalable/apps/tigervnc.svg
283
d76ad120
MK
284install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
285install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/vncserver
286install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/vncserver
287
9f5ab5d2
JR
288install -d $RPM_BUILD_ROOT{%{systemdunitdir},/lib/systemd/system-generators}
289install -p %{SOURCE4} $RPM_BUILD_ROOT%{systemdunitdir}/vncserver.target
290install -p %{SOURCE5} $RPM_BUILD_ROOT/lib/systemd/system-generators/vncserver-service-generator
291ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/vncserver.service
292
a5f2294f
JR
293%{__rm} -r $RPM_BUILD_ROOT%{_docdir}
294
7113a006
JR
295%find_lang %{name}
296
aced0e84
JR
297%clean
298rm -rf $RPM_BUILD_ROOT
299
145f00de
JR
300%post
301[ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_post
d1286e0a 302%update_icon_cache hicolor
145f00de
JR
303
304%postun
305[ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_postun
d1286e0a 306%update_icon_cache hicolor
145f00de 307
2dcb3511
MK
308%post server
309/sbin/chkconfig --add vncserver
310%service vncserver restart "VNC server"
9f5ab5d2
JR
311NORESTART=1
312%systemd_post vncserver.target
2dcb3511
MK
313
314%preun server
315if [ "$1" = "0" ]; then
316 %service vncserver stop
317 /sbin/chkconfig --del vncserver
318fi
9f5ab5d2
JR
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
327export SYSTEMD_LOG_LEVEL=warning SYSTEMD_LOG_TARGET=syslog
328if [ "$(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 || :
330fi
2dcb3511 331
7113a006 332%files -f %{name}.lang
aced0e84 333%defattr(644,root,root,755)
a5f2294f 334%doc README.txt doc/*
aced0e84
JR
335%attr(755,root,root) %{_bindir}/vncviewer
336%{_mandir}/man1/vncviewer.1*
7113a006
JR
337%{_desktopdir}/tigervnc.desktop
338%{_iconsdir}/hicolor/*/apps/tigervnc.*
aced0e84
JR
339
340%files server
341%defattr(644,root,root,755)
12ef4f37 342%attr(755,root,root) %{_bindir}/Xvnc
aced0e84 343%attr(755,root,root) %{_bindir}/vncserver
7113a006 344%attr(755,root,root) %{_bindir}/x0vncserver
d76ad120
MK
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
9f5ab5d2
JR
347%attr(755,root,root) /lib/systemd/system-generators/vncserver-service-generator
348%{systemdunitdir}/vncserver.target
349%{systemdunitdir}/vncserver.service
12ef4f37 350%{_mandir}/man1/Xvnc.1*
aced0e84 351%{_mandir}/man1/vncserver.1*
7113a006 352%{_mandir}/man1/x0vncserver.1*
aced0e84
JR
353
354%files utils
355%defattr(644,root,root,755)
7113a006 356%attr(755,root,root) %{_bindir}/vncconfig
aced0e84 357%attr(755,root,root) %{_bindir}/vncpasswd
7113a006 358%{_mandir}/man1/vncconfig.1*
aced0e84 359%{_mandir}/man1/vncpasswd.1*
12ef4f37
JR
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.085951 seconds and 4 git commands to generate.