%define snap 20101208svn4225 Name: tigervnc Version: 1.0.90 Release: 0.26.%{snap}%{?dist} Summary: A TigerVNC remote display system Group: User Interface/Desktops License: GPLv2+ URL: http://www.tigervnc.com Source0: %{name}-%{version}-%{snap}.tar.bz2 Source1: vncserver.init Source2: vncserver.sysconfig Source6: vncviewer.desktop BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: libX11-devel, automake, autoconf, libtool, gettext, gettext-autopoint BuildRequires: libXext-devel, xorg-x11-server-source, libXi-devel BuildRequires: xorg-x11-xtrans-devel, xorg-x11-util-macros, libXtst-devel BuildRequires: libdrm-devel, libXt-devel, pixman-devel libXfont-devel BuildRequires: libxkbfile-devel, openssl-devel, libpciaccess-devel BuildRequires: mesa-libGL-devel, libXinerama-devel, ImageMagick BuildRequires: freetype-devel, libXdmcp-devel BuildRequires: desktop-file-utils, java-1.5.0-gcj-devel BuildRequires: libjpeg-turbo-devel, gnutls-devel, pam-devel %ifarch %ix86 x86_64 BuildRequires: nasm %endif Requires(post): coreutils Requires(postun):coreutils Requires: hicolor-icon-theme Requires: tigervnc-license Provides: vnc = 4.1.3-2, vnc-libs = 4.1.3-2 Obsoletes: vnc < 4.1.3-2, vnc-libs < 4.1.3-2 Provides: tightvnc = 1.5.0-0.15.20090204svn3586 Obsoletes: tightvnc < 1.5.0-0.15.20090204svn3586 Patch0: tigervnc-102434.patch Patch4: tigervnc-cookie.patch Patch8: tigervnc-viewer-reparent.patch Patch10: tigervnc11-ldnow.patch %description Virtual Network Computing (VNC) is a remote display system which allows you to view a computing 'desktop' environment not only on the machine where it is running, but from anywhere on the Internet and from a wide variety of machine architectures. This package contains a client which will allow you to connect to other desktops running a VNC server. %package server Summary: A TigerVNC server Group: User Interface/X Provides: vnc-server = 4.1.3-2, vnc-libs = 4.1.3-2 Obsoletes: vnc-server < 4.1.3-2, vnc-libs < 4.1.3-2 Provides: tightvnc-server = 1.5.0-0.15.20090204svn3586 Obsoletes: tightvnc-server < 1.5.0-0.15.20090204svn3586 Requires: perl Requires: tigervnc-server-minimal Requires: xorg-x11-xauth %description server The VNC system allows you to access the same desktop from a wide variety of platforms. This package includes set of utilities which make usage of TigerVNC server more user friendly. It also contains x0vncserver program which can export your active X session. %package server-minimal Summary: A minimal installation of TigerVNC server Group: User Interface/X Requires(post): chkconfig Requires(preun):chkconfig Requires(preun):initscripts Requires(postun):initscripts Requires: mesa-dri-drivers, xkeyboard-config, xorg-x11-xkb-utils Requires: tigervnc-license %description server-minimal The VNC system allows you to access the same desktop from a wide variety of platforms. This package contains minimal installation of TigerVNC server, allowing others to access the desktop on your machine. %ifnarch s390 s390x %package server-module Summary: TigerVNC module to Xorg Group: User Interface/X Provides: vnc-server = 4.1.3-2, vnc-libs = 4.1.3-2 Obsoletes: vnc-server < 4.1.3-2, vnc-libs < 4.1.3-2 Provides: tightvnc-server-module = 1.5.0-0.15.20090204svn3586 Obsoletes: tightvnc-server-module < 1.5.0-0.15.20090204svn3586 Requires: xorg-x11-server-Xorg Requires: tigervnc-license %description server-module This package contains libvnc.so module to X server, allowing others to access the desktop on your machine. %endif %package server-applet Summary: Java TigerVNC viewer applet for TigerVNC server Group: User Interface/X Requires: tigervnc-server BuildArch: noarch %description server-applet The Java TigerVNC viewer applet for web browsers. Install this package to allow clients to use web browser when connect to the TigerVNC server. %package license Summary: License of TigerVNC suite Group: User Interface/X BuildArch: noarch %description license This package contains license of the TigerVNC suite %prep %setup -q -n %{name}-%{version}-%{snap} %patch0 -p1 -b .102434 %patch4 -p1 -b .cookie %patch8 -p1 -b .viewer-reparent %patch10 -p1 -b .ldnow cp -r /usr/share/xorg-x11-server-source/* unix/xserver pushd unix/xserver for all in `find . -type f -perm -001`; do chmod -x "$all" done patch -p1 -b --suffix .vnc < ../xserver110.patch popd # Use newer gettext sed -i 's/AM_GNU_GETTEXT_VERSION.*/AM_GNU_GETTEXT_VERSION([0.18.1])/' \ configure.ac %build export CFLAGS="$RPM_OPT_FLAGS" export CXXFLAGS="$CFLAGS" autoreconf -fiv %configure --disable-static --with-system-jpeg make %{?_smp_mflags} pushd unix/xserver autoreconf -fiv %configure \ --disable-xorg --disable-xnest --disable-xvfb --disable-dmx \ --disable-xwin --disable-xephyr --disable-kdrive --with-pic \ --disable-static --disable-xinerama \ --disable-composite \ --with-default-font-path="catalogue:%{_sysconfdir}/X11/fontpath.d,built-ins" \ --with-fontdir=%{_datadir}/X11/fonts \ --with-xkb-output=%{_localstatedir}/lib/xkb \ --enable-install-libxf86config \ --disable-dri2 \ --enable-glx \ --disable-config-dbus \ --disable-config-hal \ --disable-config-udev \ --with-dri-driver-path=%{_libdir}/dri make %{?_smp_mflags} popd # Build icons pushd media make popd # Build Java applet pushd java/src/com/tigervnc/vncviewer/ make popd %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT pushd unix/xserver/hw/vnc make install DESTDIR=$RPM_BUILD_ROOT popd # Install Xvnc as service mkdir -p $RPM_BUILD_ROOT%{_initddir} install -m755 %{SOURCE1} $RPM_BUILD_ROOT%{_initddir}/vncserver mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig install -m644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/vncservers # Install desktop stuff mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/{16x16,24x24,48x48}/apps pushd media/icons for s in 16 24 48; do install -m644 tigervnc_$s.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/${s}x$s/apps/tigervnc.png done popd mkdir $RPM_BUILD_ROOT%{_datadir}/applications desktop-file-install \ --dir $RPM_BUILD_ROOT%{_datadir}/applications \ %{SOURCE6} # Install Java applet pushd java/src/com/tigervnc/vncviewer/ mkdir -p $RPM_BUILD_ROOT%{_datadir}/vnc/classes install -m755 VncViewer.jar $RPM_BUILD_ROOT%{_datadir}/vnc/classes install -m644 index.vnc $RPM_BUILD_ROOT%{_datadir}/vnc/classes popd %find_lang %{name} %{name}.lang # remove unwanted files rm -f $RPM_BUILD_ROOT%{_libdir}/xorg/modules/extensions/libvnc.la %ifarch s390 s390x rm -f $RPM_BUILD_ROOT%{_libdir}/xorg/modules/extensions/libvnc.so %endif %clean rm -rf $RPM_BUILD_ROOT %post touch -c %{_datadir}/icons/hicolor if [ -x %{_bindir}/gtk-update-icon-cache ]; then %{_bindir}/gtk-update-icon-cache -q %{_datadir}/icons/hicolor || : fi %postun touch -c %{_datadir}/icons/hicolor if [ -x %{_bindir}/gtk-update-icon-cache ]; then %{_bindir}/gtk-update-icon-cache -q %{_datadir}/icons/hicolor || : fi %post server /sbin/chkconfig --add vncserver %preun server if [ "$1" -eq 0 ]; then /sbin/service vncserver stop > /dev/null 2>&1 /sbin/chkconfig --del vncserver fi %postun server if [ "$1" -ge "1" ]; then /sbin/service vncserver condrestart > /dev/null 2>&1 || : fi %files -f %{name}.lang %defattr(-,root,root,-) %doc unix/README %{_bindir}/vncviewer %{_datadir}/icons/hicolor/*/apps/* %{_datadir}/applications/* %{_mandir}/man1/vncviewer.1* %files server %defattr(-,root,root,-) %config(noreplace) %{_sysconfdir}/sysconfig/vncservers %{_initddir}/vncserver %{_bindir}/x0vncserver %{_bindir}/vncserver %{_mandir}/man1/vncserver.1* %{_mandir}/man1/x0vncserver.1* %files server-minimal %defattr(-,root,root,-) %{_bindir}/vncconfig %{_bindir}/vncpasswd %{_bindir}/Xvnc %{_mandir}/man1/Xvnc.1* %{_mandir}/man1/vncpasswd.1* %{_mandir}/man1/vncconfig.1* %ifnarch s390 s390x %files server-module %defattr(-,root,root,-) %{_libdir}/xorg/modules/extensions/libvnc.so %endif %files server-applet %defattr(-,root,root,-) %doc java/src/com/tigervnc/vncviewer/README %{_datadir}/vnc/classes/* %files license %doc LICENCE.TXT %changelog * Wed Dec 15 2010 Jan Görig 1.0.90-0.26.20101208svn4225 - added vncserver lock file (#662784) * Fri Dec 10 2010 Adam Tkac 1.0.90-0.25.20101208svn4225 - update to r4225 - patches merged - tigervnc11-rh611677.patch - tigervnc11-rh633931.patch - tigervnc11-xorg1.10.patch - enable VeNCrypt and PAM support * Mon Dec 06 2010 Adam Tkac 1.0.90-0.24.20100813svn4123 - rebuild against xserver 1.10.X - 0001-Return-Success-from-generate_modkeymap-when-max_keys.patch merged * Wed Sep 29 2010 jkeating - 1.0.90-0.23.20100813svn4123 - Rebuilt for gcc bug 634757 * Tue Sep 21 2010 Adam Tkac 1.0.90-0.22.20100420svn4030 - drop xorg-x11-fonts-misc dependency (#636170) * Tue Sep 21 2010 Adam Tkac 1.0.90-0.21.20100420svn4030 - improve patch for #633645 (fix tcsh incompatibilities) * Thu Sep 16 2010 Adam Tkac 1.0.90-0.20.20100813svn4123 - press fake modifiers correctly (#633931) - supress unneeded debug information emitted from initscript (#633645) * Wed Aug 25 2010 Adam Tkac 1.0.90-0.19.20100813svn4123 - separate Xvnc, vncpasswd and vncconfig to -server-minimal subpkg (#626946) - move license to separate subpkg and Requires it from main subpkgs - Xvnc: handle situations when no modifiers exist well (#611677) * Fri Aug 13 2010 Adam Tkac 1.0.90-0.18.20100813svn4123 - update to r4123 (#617973) - add perl requires to -server subpkg (#619791) * Thu Jul 22 2010 Adam Tkac 1.0.90-0.17.20100721svn4113 - update to r4113 - patches merged - tigervnc11-rh586406.patch - tigervnc11-libvnc.patch - tigervnc11-rh597172.patch - tigervnc11-rh600070.patch - tigervnc11-options.patch - don't own %%{_datadir}/icons directory (#614301) - minor improvements in the .desktop file (#616340) - bundled libjpeg configure requires nasm; is executed even if system-wide libjpeg is used * Fri Jul 02 2010 Adam Tkac 1.0.90-0.16.20100420svn4030 - build against system-wide libjpeg-turbo (#494458) - build no longer requires nasm * Mon Jun 28 2010 Adam Tkac 1.0.90-0.15.20100420svn4030 - vncserver: accept <+optname> option when specified as the first one * Thu Jun 24 2010 Adam Tkac 1.0.90-0.14.20100420svn4030 - fix memory leak in Xvnc input code (#597172) - don't crash when receive negative encoding (#600070) - explicitly disable udev configuration support - add gettext-autopoint to BR * Mon Jun 14 2010 Adam Tkac 1.0.90-0.13.20100420svn4030 - update URL about SSH tunneling in the sysconfig file (#601996) * Fri Jun 11 2010 Adam Tkac 1.0.90-0.12.20100420svn4030 - use newer gettext - autopoint now uses git instead of cvs, adjust BuildRequires appropriately * Thu May 13 2010 Adam Tkac 1.0.90-0.11.20100420svn4030 - link libvnc.so "now" to catch "undefined symbol" errors during Xorg startup - use always XkbConvertCase instead of XConvertCase (#580159, #586406) - don't link libvnc.so against libXi.la, libdix.la and libxkb.la; use symbols from Xorg instead * Thu May 13 2010 Adam Tkac 1.0.90-0.10.20100420svn4030 - update to r4030 snapshot - patches merged to upstream - tigervnc11-rh522369.patch - tigervnc11-rh551262.patch - tigervnc11-r4002.patch - tigervnc11-r4014.patch * Thu Apr 08 2010 Adam Tkac 1.0.90-0.9.20100219svn3993 - add server-applet subpackage which contains Java vncviewer applet - fix Java applet; it didn't work when run from web browser - add xorg-x11-xkb-utils to server Requires * Fri Mar 12 2010 Adam Tkac 1.0.90-0.8.20100219svn3993 - add French translation to vncviewer.desktop (thanks to Alain Portal) * Thu Mar 04 2010 Adam Tkac 1.0.90-0.7.20100219svn3993 - don't crash during pixel format change (#522369, #551262) * Mon Mar 01 2010 Adam Tkac 1.0.90-0.6.20100219svn3993 - add mesa-dri-drivers and xkeyboard-config to -server Requires - update to r3993 1.0.90 snapshot - tigervnc11-noexecstack.patch merged - tigervnc11-xorg18.patch merged - xserver18.patch is no longer needed * Wed Jan 27 2010 Jan Gorig 1.0.90-0.5.20091221svn3929 - initscript LSB compliance fixes (#523974) * Fri Jan 22 2010 Adam Tkac 1.0.90-0.4.20091221svn3929 - mark stack as non-executable in jpeg ASM code - add xorg-x11-xauth to Requires - add support for X.Org 1.8 - drop shave sources, they are no longer needed * Thu Jan 21 2010 Adam Tkac 1.0.90-0.3.20091221svn3929 - drop tigervnc-xorg25909.patch, it has been merged to X.Org upstream * Thu Jan 07 2010 Adam Tkac 1.0.90-0.2.20091221svn3929 - add patch for upstream X.Org issue #25909 - add libXdmcp-devel to build requires to build Xvnc with XDMCP support (#552322) * Mon Dec 21 2009 Adam Tkac 1.0.90-0.1.20091221svn3929 - update to 1.0.90 snapshot - patches merged - tigervnc10-compat.patch - tigervnc10-rh510185.patch - tigervnc10-rh524340.patch - tigervnc10-rh516274.patch * Mon Oct 26 2009 Adam Tkac 1.0.0-3 - create Xvnc keyboard mapping before first keypress (#516274) * Thu Oct 08 2009 Adam Tkac 1.0.0-2 - update underlying X source to 1.6.4-0.3.fc11 - remove bogus '-nohttpd' parameter from /etc/sysconfig/vncservers (#525629) - initscript LSB compliance fixes (#523974) - improve -LowColorSwitch documentation and handling (#510185) - honor dotWhenNoCursor option (and it's changes) every time (#524340) * Fri Aug 28 2009 Adam Tkac 1.0.0-1 - update to 1.0.0 - tigervnc10-rh495457.patch merged to upstream * Mon Aug 24 2009 Karsten Hopp 0.0.91-0.17 - fix ifnarch s390x for server-module * Fri Aug 21 2009 Tomas Mraz - 0.0.91-0.16 - rebuilt with new openssl * Tue Aug 04 2009 Adam Tkac 0.0.91-0.15 - make Xvnc compilable * Sun Jul 26 2009 Fedora Release Engineering - 0.0.91-0.14.1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Mon Jul 13 2009 Adam Tkac 0.0.91-0.13.1 - don't write warning when initscript is called with condrestart param (#508367) * Tue Jun 23 2009 Adam Tkac 0.0.91-0.13 - temporary use F11 Xserver base to make Xvnc compilable - BuildRequires: libXi-devel - don't ship tigervnc-server-module on s390/s390x * Mon Jun 22 2009 Adam Tkac 0.0.91-0.12 - fix local rendering of cursor (#495457) * Thu Jun 18 2009 Adam Tkac 0.0.91-0.11 - update to 0.0.91 (1.0.0 RC1) - patches merged - tigervnc10-rh499401.patch - tigervnc10-rh497592.patch - tigervnc10-rh501832.patch - after discusion in upstream drop tigervnc-bounds.patch - configure flags cleanup * Thu May 21 2009 Adam Tkac 0.0.90-0.10 - rebuild against 1.6.1.901 X server (#497835) - disable i18n, vncviewer is not UTF-8 compatible (#501832) * Mon May 18 2009 Adam Tkac 0.0.90-0.9 - fix vncpasswd crash on long passwords (#499401) - start session dbus daemon correctly (#497592) * Mon May 11 2009 Adam Tkac 0.0.90-0.8.1 - remove merged tigervnc-manminor.patch * Tue May 05 2009 Adam Tkac 0.0.90-0.8 - update to 0.0.90 * Thu Apr 30 2009 Adam Tkac 0.0.90-0.7.20090427svn3789 - server package now requires xorg-x11-fonts-misc (#498184) * Mon Apr 27 2009 Adam Tkac 0.0.90-0.6.20090427svn3789 - update to r3789 - tigervnc-rh494801.patch merged - tigervnc-newfbsize.patch is no longer needed - fix problems when vncviewer and Xvnc run on different endianess (#496653) - UltraVNC and TightVNC clients work fine again (#496786) * Wed Apr 08 2009 Adam Tkac 0.0.90-0.5.20090403svn3751 - workaround broken fontpath handling in vncserver script (#494801) * Fri Apr 03 2009 Adam Tkac 0.0.90-0.4.20090403svn3751 - update to r3751 - patches merged - tigervnc-xclients.patch - tigervnc-clipboard.patch - tigervnc-rh212985.patch - basic RandR support in Xvnc (resize of the desktop) - use built-in libjpeg (SSE2/MMX accelerated encoding on x86 platform) - use Tight encoding by default - use TigerVNC icons * Tue Mar 03 2009 Adam Tkac 0.0.90-0.3.20090303svn3631 - update to r3631 * Tue Mar 03 2009 Adam Tkac 0.0.90-0.2.20090302svn3621 - package review related fixes * Mon Mar 02 2009 Adam Tkac 0.0.90-0.1.20090302svn3621 - initial package, r3621