Package tigervnc: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 | %define _deffontdir catalogue:%_sysconfdir/X11/fontpath.d Name: tigervnc Version: 1.0.90 Release: alt5 Summary: A TigerVNC remote display system Group: Networking/Remote access License: GPLv2+ URL: http://www.tigervnc.com Requires: xauth xkeyboard-config fonts-bitmap-misc xorg-dri-swrast Provides: tightvnc = 1.7.6 Obsoletes: tightvnc < 1.7.6 Source0: %name-%version.tar.gz Source1: vncserver.init Source6: vncviewer.desktop Source7: xserver110.patch Source100: xorg-server-source-1.10.2.tar.bz2 Patch0: tigervnc-102434.patch Patch4: tigervnc-cookie.patch Patch8: tigervnc-viewer-reparent.patch Patch10: tigervnc11-ldnow.patch Patch11: tigervnc11-gethomedir.patch Patch12: tigervnc11-glx.patch Patch13: tigervnc11-rh692048.patch Patch14: 0001-Use-memmove-instead-of-memcpy-in-fbblt.c-when-memory.patch Patch15: tigervnc11-CVE-2011-1775.patch Patch100: tigervnc-tightvnc-passwd.patch # Automatically added by buildreq on Tue Mar 30 2010 BuildRequires: ImageMagick-tools doxygen flex gcc-c++ libGL-devel libSM-devel libX11-devel libXau-devel libXdmcp-devel libXext-devel libXfont-devel BuildRequires: libXi-devel libXtst-devel libpciaccess-devel libpixman-devel libssl-devel libxkbfile-devel xorg-bigreqsproto-devel xorg-damageproto-devel BuildRequires: xorg-fixesproto-devel xorg-randrproto-devel xorg-renderproto-devel xorg-resourceproto-devel xorg-scrnsaverproto-devel xorg-videoproto-devel BuildRequires: xorg-xcmiscproto-devel xorg-xf86driproto-devel xorg-xtrans-devel zlib-devel libjpeg-devel desktop-file-utils intltool xorg-util-macros BuildRequires: xorg-font-utils libfontenc-devel xorg-compositeproto-devel xorg-sdk libturbojpeg-devel xorg-glproto-devel %ifarch %ix86 x86_64 BuildRequires: nasm %endif %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: Networking/Remote access Provides: tightvnc-server = 1.7.6 Obsoletes: tightvnc-server < 1.7.6 %description server The VNC system allows you to access the same desktop from a wide variety of platforms. This package is a TigerVNC server, allowing others to access the desktop on your machine. %package -n xorg-extension-vnc Summary: VNC extension for Xorg Group: Networking/Remote access %description -n xorg-extension-vnc TigerVNC extension for Xorg server %prep %setup -q -n %name-%version mkdir -p m4 touch config.rpath %patch0 -p1 -b .102434 %patch4 -p1 -b .cookie %patch8 -p1 -b .viewer-reparent %patch10 -p1 -b .ldnow %patch11 -p1 -b .gethomedir %patch12 -p1 -b .glx %patch13 -p1 -b .rh692048 tar -xjf %SOURCE100 -C unix/xserver pushd unix/xserver patch -p1 -b --suffix .vnc < %{SOURCE7} %patch14 -p1 -b .memcpy popd %patch15 -p0 -b .CVE-2011-1775 %patch100 -p1 # Use newer gettext sed -i "s|AM_GNU_GETTEXT_VERSION.*|GETTEXT_PACKAGE=%name\nAC_SUBST(GETTEXT_PACKAGE)\nIT_PROG_INTLTOOL|" configure.ac sed -i "s|^\(.*\)|\1 ru|" po/LINGUAS #install -m0644 %_includedir/xorg/xf86Module.h unix/xserver/hw/xfree86/common/xf86Module.h %build %autoreconf %configure \ --with-system-jpeg \ --disable-static %make_build pushd unix/xserver %autoreconf %configure \ --enable-ipv6 \ --disable-xorg \ --disable-xnest \ --disable-xvfb \ --disable-dmx \ --disable-xwin \ --disable-xephyr \ --disable-kdrive \ --disable-static \ --disable-xinerama \ --disable-composite \ --with-default-font-path=%_deffontdir \ --with-xkb-output=%_localstatedir/xkb \ --disable-dri2 \ --enable-glx \ --disable-config-dbus \ --disable-config-hal \ --with-module-dir="%_xorgmoduledir" %make_build popd # Build icons pushd media %make popd %install %make DESTDIR=%buildroot install pushd unix/xserver/hw/vnc %make DESTDIR=%buildroot install popd # Install Xvnc as service install -pD -m755 %SOURCE1 %buildroot%_initddir/vncserver mkdir -p %buildroot%_sysconfdir/sysconfig cat << __EOF__ > %buildroot%_sysconfdir/sysconfig/vncservers # The VNCSERVERS variable is a list of display:user pairs. # # Uncomment the line below to start a VNC server on display :1 # as my 'myusername' (adjust this to your own). You will also # need to set a VNC password; run 'man vncpasswd' to see how # to do that. # # DO NOT RUN THIS SERVICE if your local area network is # untrusted! For a secure way of using VNC, see # <URL:http://www.uk.research.att.com/vnc/sshvnc.html>;. # VNCSERVERS="1:myusername" __EOF__ # Install desktop stuff mkdir -p %buildroot%_datadir/icons/hicolor/{16x16,24x24,48x48}/apps pushd media/icons for s in 16 24 48; do install -m644 tigervnc_$s.png %buildroot%_datadir/icons/hicolor/${s}x$s/apps/tigervnc.png done popd mkdir -p %buildroot%_datadir/applications desktop-file-install --dir %buildroot%_datadir/applications %SOURCE6 #find_lang %name %files %doc LICENCE.TXT unix/README %_bindir/vncviewer %_desktopdir/*.desktop %_iconsdir/hicolor/*/apps/*.png %_man1dir/vncviewer.1* %files server %_initddir/vncserver %config(noreplace) %_sysconfdir/sysconfig/vncservers %_bindir/vncconfig %_bindir/vncpasswd %_bindir/x0vncserver %_bindir/Xvnc %_bindir/vncserver %_man1dir/Xvnc.1* %_man1dir/vncpasswd.1* %_man1dir/vncconfig.1* %_man1dir/vncserver.1* %_man1dir/x0vncserver.1* %files -n xorg-extension-vnc %_xorgmoduledir/extensions/*.so %changelog * Tue Jun 21 2011 Valery Inozemtsev <shrek@altlinux.ru> 1.0.90-alt5 - updated xorg-server-source to 1.10.2 - enabled ipv6 - fixed CVE-2011-1775 * Tue Apr 19 2011 Valery Inozemtsev <shrek@altlinux.ru> 1.0.90-alt4 - updated build dependencies - updated xorg-server-source to 1.9.5 * Sun Nov 07 2010 Valery Inozemtsev <shrek@altlinux.ru> 1.0.90-alt3 - SVN snapshot 2010-08-13 (4123) * Mon Oct 04 2010 Valery Inozemtsev <shrek@altlinux.ru> 1.0.90-alt2 - rebuild with libcrypto.so.10 * Wed Apr 14 2010 Valery Inozemtsev <shrek@altlinux.ru> 1.0.90-alt1 - vncpasswd compatibility to tightvnc * Tue Mar 30 2010 Valery Inozemtsev <shrek@altlinux.ru> 1.0.90-alt0.20100219svn3993 - initial release |