You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

tigervnc.spec 55KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426
  1. %define _default_patch_fuzz 2
  2. %define tigervnc_src_dir %{_builddir}/%{name}-%{version}%{?snap:-%{snap}}
  3. %{!?_self_signed: %define _self_signed 1}
  4. %{!?_bootstrap: %define _bootstrap 1}
  5. #%global scl_name %{name}$(echo %version | sed -e 's/\\.//;s/\\..*//')
  6. %define scl_name %{name}16
  7. %if %{_bootstrap}
  8. %define xorg_buildroot $RPM_BUILD_ROOT/opt/%{name}/%{scl_name}
  9. %else
  10. %define xorg_buildroot /opt/%{name}/%{scl_name}
  11. %endif
  12. Name: tigervnc
  13. Version: @VERSION@
  14. Release: 3%{?snap:.%{snap}}%{?dist}
  15. Summary: A TigerVNC remote display system
  16. Group: User Interface/Desktops
  17. License: GPLv2+
  18. Packager: Brian P. Hinz <bphinz@users.sourceforge.net>
  19. URL: http://www.tigervnc.com
  20. Source0: %{name}-%{version}%{?snap:-%{snap}}.tar.bz2
  21. Source1: vncserver.service
  22. Source2: vncserver.sysconfig
  23. Source9: FindX11.cmake
  24. Source11: http://fltk.org/pub/fltk/1.3.3/fltk-1.3.3-source.tar.gz
  25. Source12: http://downloads.sourceforge.net/project/libjpeg-turbo/1.4.2/libjpeg-turbo-1.4.2.tar.gz
  26. Source13: http://downloads.sourceforge.net/project/libpng/libpng15/1.5.24/libpng-1.5.24.tar.bz2
  27. Source14: https://ftp.gnu.org/gnu/gmp/gmp-6.0.0a.tar.bz2
  28. Source15: http://ftp.gnu.org/gnu/libtasn1/libtasn1-4.7.tar.gz
  29. Source16: https://ftp.gnu.org/gnu/nettle/nettle-2.7.1.tar.gz
  30. Source17: ftp://ftp.gnutls.org/gcrypt/gnutls/v3.3/gnutls-3.3.19.tar.xz
  31. Source100: http://www.x.org/releases/X11R7.7/src/everything/bigreqsproto-1.1.2.tar.bz2
  32. Source101: http://www.x.org/releases/X11R7.7/src/everything/compositeproto-0.4.2.tar.bz2
  33. Source102: http://www.x.org/releases/X11R7.7/src/everything/damageproto-1.2.1.tar.bz2
  34. Source103: http://www.x.org/releases/X11R7.7/src/everything/dmxproto-2.3.1.tar.bz2
  35. Source104: http://www.x.org/releases/X11R7.7/src/everything/dri2proto-2.6.tar.bz2
  36. Source105: http://www.x.org/releases/X11R7.7/src/everything/fixesproto-5.0.tar.bz2
  37. Source106: http://www.x.org/releases/X11R7.7/src/everything/font-util-1.3.0.tar.bz2
  38. Source107: http://www.x.org/releases/X11R7.7/src/everything/fontsproto-2.1.2.tar.bz2
  39. Source108: http://www.x.org/releases/X11R7.7/src/everything/glproto-1.4.15.tar.bz2
  40. Source109: http://www.x.org/releases/X11R7.7/src/everything/inputproto-2.2.tar.bz2
  41. Source110: http://www.x.org/releases/X11R7.7/src/everything/kbproto-1.0.6.tar.bz2
  42. Source111: http://www.x.org/releases/X11R7.7/src/everything/libICE-1.0.8.tar.bz2
  43. Source112: http://www.x.org/releases/X11R7.7/src/everything/libSM-1.2.1.tar.bz2
  44. Source113: http://www.x.org/releases/X11R7.7/src/everything/libX11-1.5.0.tar.bz2
  45. Source114: http://www.x.org/releases/X11R7.7/src/everything/libXScrnSaver-1.2.2.tar.bz2
  46. Source115: http://www.x.org/releases/X11R7.7/src/everything/libXau-1.0.7.tar.bz2
  47. Source116: http://www.x.org/releases/X11R7.7/src/everything/libXaw-1.0.11.tar.bz2
  48. Source117: http://www.x.org/releases/X11R7.7/src/everything/libXcomposite-0.4.3.tar.bz2
  49. Source118: http://www.x.org/releases/X11R7.7/src/everything/libXcursor-1.1.13.tar.bz2
  50. Source119: http://www.x.org/releases/X11R7.7/src/everything/libXdamage-1.1.3.tar.bz2
  51. Source120: http://www.x.org/releases/X11R7.7/src/everything/libXdmcp-1.1.1.tar.bz2
  52. Source121: http://www.x.org/releases/X11R7.7/src/everything/libXext-1.3.1.tar.bz2
  53. Source122: http://www.x.org/releases/X11R7.7/src/everything/libXfixes-5.0.tar.bz2
  54. Source123: http://www.x.org/releases/X11R7.7/src/everything/libXfont-1.4.5.tar.bz2
  55. Source124: http://www.x.org/releases/X11R7.7/src/everything/libXft-2.3.1.tar.bz2
  56. Source125: http://www.x.org/releases/X11R7.7/src/everything/libXi-1.6.1.tar.bz2
  57. Source126: http://www.x.org/releases/X11R7.7/src/everything/libXinerama-1.1.2.tar.bz2
  58. Source127: http://www.x.org/releases/X11R7.7/src/everything/libXmu-1.1.1.tar.bz2
  59. Source128: http://www.x.org/releases/X11R7.7/src/everything/libXpm-3.5.10.tar.bz2
  60. Source129: http://www.x.org/releases/X11R7.7/src/everything/libXrandr-1.3.2.tar.bz2
  61. Source130: http://www.x.org/releases/X11R7.7/src/everything/libXrender-0.9.7.tar.bz2
  62. Source131: http://www.x.org/releases/X11R7.7/src/everything/libXres-1.0.6.tar.bz2
  63. Source132: http://www.x.org/releases/X11R7.7/src/everything/libXt-1.1.3.tar.bz2
  64. Source133: http://www.x.org/releases/X11R7.7/src/everything/libXtst-1.2.1.tar.bz2
  65. Source134: http://www.x.org/releases/X11R7.7/src/everything/libXv-1.0.7.tar.bz2
  66. Source135: http://www.x.org/releases/X11R7.7/src/everything/libXvMC-1.0.7.tar.bz2
  67. Source136: http://www.x.org/releases/X11R7.7/src/everything/libXxf86dga-1.1.3.tar.bz2
  68. Source137: http://www.x.org/releases/X11R7.7/src/everything/libXxf86vm-1.1.2.tar.bz2
  69. Source138: http://www.x.org/releases/X11R7.7/src/everything/libfontenc-1.1.1.tar.bz2
  70. Source139: http://www.x.org/releases/X11R7.7/src/everything/libpciaccess-0.13.1.tar.bz2
  71. #Source140: http://www.x.org/releases/X11R7.7/src/everything/libpthread-stubs-0.3.tar.bz2
  72. # libpthread-stubs fails to compile, so we use the same method
  73. # as the el6 libxcb rpm. pthread-stubs.pc.in taken from el6 libxcb rpm
  74. Source140: pthread-stubs.pc.in
  75. Source141: http://www.x.org/releases/X11R7.7/src/everything/libxcb-1.8.1.tar.bz2
  76. Source142: http://www.x.org/releases/X11R7.7/src/everything/libxkbfile-1.0.8.tar.bz2
  77. Source143: http://www.x.org/releases/X11R7.7/src/everything/makedepend-1.0.4.tar.bz2
  78. Source144: http://www.x.org/releases/X11R7.7/src/everything/randrproto-1.3.2.tar.bz2
  79. Source145: http://www.x.org/releases/X11R7.7/src/everything/recordproto-1.14.2.tar.bz2
  80. Source146: http://www.x.org/releases/X11R7.7/src/everything/renderproto-0.11.1.tar.bz2
  81. Source147: http://www.x.org/releases/X11R7.7/src/everything/resourceproto-1.2.0.tar.bz2
  82. Source148: http://www.x.org/releases/X11R7.7/src/everything/scrnsaverproto-1.2.2.tar.bz2
  83. Source149: http://www.x.org/releases/X11R7.7/src/everything/util-macros-1.17.tar.bz2
  84. Source150: http://www.x.org/releases/X11R7.7/src/everything/videoproto-2.3.1.tar.bz2
  85. Source151: http://www.x.org/releases/X11R7.7/src/everything/xcb-proto-1.7.1.tar.bz2
  86. Source152: http://www.x.org/releases/X11R7.7/src/everything/xcmiscproto-1.2.2.tar.bz2
  87. Source153: http://www.x.org/releases/X11R7.7/src/everything/xextproto-7.2.1.tar.bz2
  88. Source154: http://www.x.org/releases/X11R7.7/src/everything/xf86bigfontproto-1.2.0.tar.bz2
  89. Source155: http://www.x.org/releases/X11R7.7/src/everything/xf86dgaproto-2.1.tar.bz2
  90. Source156: http://www.x.org/releases/X11R7.7/src/everything/xf86driproto-2.1.1.tar.bz2
  91. Source157: http://www.x.org/releases/X11R7.7/src/everything/xf86vidmodeproto-2.3.1.tar.bz2
  92. Source158: http://www.x.org/releases/X11R7.7/src/everything/xineramaproto-1.2.1.tar.bz2
  93. Source159: http://www.x.org/releases/X11R7.7/src/everything/xorg-server-1.12.2.tar.bz2
  94. Source160: http://www.x.org/releases/X11R7.7/src/everything/xproto-7.0.23.tar.bz2
  95. Source161: http://www.x.org/releases/X11R7.7/src/everything/xrandr-1.3.5.tar.bz2
  96. Source162: http://www.x.org/releases/X11R7.7/src/everything/xtrans-1.2.7.tar.bz2
  97. Source200: http://fontconfig.org/release/fontconfig-2.8.0.tar.gz
  98. Source201: http://download.savannah.gnu.org/releases/freetype/freetype-old/freetype-2.3.11.tar.bz2
  99. Source202: http://xorg.freedesktop.org/archive/individual/lib/pixman-0.32.4.tar.bz2
  100. Source203: http://dri.freedesktop.org/libdrm/libdrm-2.4.52.tar.bz2
  101. Source204: ftp://ftp.freedesktop.org/pub/mesa/older-versions/9.x/9.2.5/MesaLib-9.2.5.tar.bz2
  102. # NOTE:
  103. # libgcrypt from el5 is not new enough to satisfy newer Xorg requirements for --with-sha1,
  104. # which causes Xorg to link against libssl.so and introduce about 10 dynamic dependencies.
  105. # to prevent this, build a static libsha1 and link against that.
  106. # NOTE:
  107. Source205: https://github.com/dottedmag/libsha1/archive/0.3.tar.gz
  108. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  109. # xorg requires newer versions of automake, & autoconf than are available with el5. Use el6 versions.
  110. BuildRequires: automake >= 1.11, autoconf >= 2.60, libtool >= 1.4, gettext >= 0.14.4, gettext-devel >= 0.14.4, bison-devel, python26
  111. BuildRequires: java-devel, jpackage-utils
  112. BuildRequires: pam-devel
  113. BuildRequires: cmake28
  114. BuildRequires: pkgconfig >= 0.20
  115. BuildRequires: gcc44, gcc44-c++
  116. BuildRequires: glibc-devel, libstdc++-devel, libpng-devel
  117. BuildRequires: expat-devel
  118. BuildRequires: git, gperf, intltool, libtalloc-devel
  119. BuildRequires: kernel-headers, libatomic_ops-devel
  120. BuildRequires: xz
  121. %if !%{_bootstrap}
  122. BuildRequires: %{name}-static-devel == %{version}
  123. %endif
  124. Requires(post): initscripts chkconfig coreutils
  125. Requires(postun):coreutils
  126. Requires: hicolor-icon-theme
  127. Requires: tigervnc-license
  128. Provides: vnc = 4.1.3-2, vnc-libs = 4.1.3-2
  129. Obsoletes: vnc < 4.1.3-2, vnc-libs < 4.1.3-2
  130. Provides: tightvnc = 1.5.0-0.15.20090204svn3586
  131. Obsoletes: tightvnc < 1.5.0-0.15.20090204svn3586
  132. # tigervnc patches
  133. Patch12: tigervnc14-static-build-fixes.patch
  134. Patch13: tigervnc14-Add-dridir-param.patch
  135. Patch14: tigervnc14-Add-xkbcompdir-param.patch
  136. # fltk patches
  137. Patch15: fltk-1.3.3-static-libs.patch
  138. # freetype patches
  139. Patch20: freetype-2.1.10-enable-ft2-bci.patch
  140. Patch21: freetype-2.3.0-enable-spr.patch
  141. # Enable otvalid and gxvalid modules
  142. Patch46: freetype-2.2.1-enable-valid.patch
  143. # Fix multilib conflicts
  144. Patch88: freetype-multilib.patch
  145. Patch89: freetype-2.3.11-CVE-2010-2498.patch
  146. Patch90: freetype-2.3.11-CVE-2010-2499.patch
  147. Patch91: freetype-2.3.11-CVE-2010-2500.patch
  148. Patch92: freetype-2.3.11-CVE-2010-2519.patch
  149. Patch93: freetype-2.3.11-CVE-2010-2520.patch
  150. Patch96: freetype-2.3.11-CVE-2010-1797.patch
  151. Patch97: freetype-2.3.11-CVE-2010-2805.patch
  152. Patch98: freetype-2.3.11-CVE-2010-2806.patch
  153. Patch99: freetype-2.3.11-CVE-2010-2808.patch
  154. Patch100: freetype-2.3.11-CVE-2010-3311.patch
  155. Patch101: freetype-2.3.11-CVE-2010-3855.patch
  156. Patch102: freetype-2.3.11-CVE-2011-0226.patch
  157. Patch103: freetype-2.3.11-CVE-2011-3256.patch
  158. Patch104: freetype-2.3.11-CVE-2011-3439.patch
  159. Patch105: freetype-2.3.11-CVE-2012-1126.patch
  160. Patch106: freetype-2.3.11-CVE-2012-1127.patch
  161. Patch107: freetype-2.3.11-CVE-2012-1130.patch
  162. Patch108: freetype-2.3.11-CVE-2012-1131.patch
  163. Patch109: freetype-2.3.11-CVE-2012-1132.patch
  164. Patch110: freetype-2.3.11-CVE-2012-1134.patch
  165. Patch111: freetype-2.3.11-CVE-2012-1136.patch
  166. Patch112: freetype-2.3.11-CVE-2012-1137.patch
  167. Patch113: freetype-2.3.11-CVE-2012-1139.patch
  168. Patch114: freetype-2.3.11-CVE-2012-1140.patch
  169. Patch115: freetype-2.3.11-CVE-2012-1141.patch
  170. Patch116: freetype-2.3.11-CVE-2012-1142.patch
  171. Patch117: freetype-2.3.11-CVE-2012-1143.patch
  172. Patch118: freetype-2.3.11-CVE-2012-1144.patch
  173. Patch119: freetype-2.3.11-bdf-overflow.patch
  174. Patch120: freetype-2.3.11-array-initialization.patch
  175. Patch121: freetype-2.3.11-CVE-2012-5669.patch
  176. # Patches for Xorg CVE-2014-12-09 taken from Debian:
  177. # https://release.debian.org/proposed-updates/stable_diffs/xorg-server_1.12.4-6+deb7u5.debdiff
  178. Patch10000: 16_CVE-2014-mult.diff
  179. Patch10001: 17_CVE-regressions.diff
  180. # http://www.x.org/wiki/Development/Security/Advisory-2015-02-10/
  181. Patch10002: CVE-2015-0255.diff
  182. # http://www.x.org/wiki/Development/Security/Advisory-2015-03-17/
  183. Patch10003: CVE-2015-1802.diff
  184. Patch10004: CVE-2015-1803.diff
  185. Patch10005: CVE-2015-1804.diff
  186. # http://lists.x.org/archives/xorg-announce/2015-April/002561.html
  187. Patch10006: CVE-2013-7439.diff
  188. %description
  189. Virtual Network Computing (VNC) is a remote display system which
  190. allows you to view a computing 'desktop' environment not only on the
  191. machine where it is running, but from anywhere on the Internet and
  192. from a wide variety of machine architectures. This package contains a
  193. client which will allow you to connect to other desktops running a VNC
  194. server.
  195. %package server
  196. Summary: A TigerVNC server
  197. Group: User Interface/X
  198. Provides: vnc-server = 4.1.3-2, vnc-libs = 4.1.3-2
  199. Obsoletes: vnc-server < 4.1.3-2, vnc-libs < 4.1.3-2
  200. Provides: tightvnc-server = 1.5.0-0.15.20090204svn3586
  201. Obsoletes: tightvnc-server < 1.5.0-0.15.20090204svn3586
  202. Requires: perl
  203. Requires: tigervnc-server-minimal
  204. Requires: xorg-x11-xauth
  205. %description server
  206. The VNC system allows you to access the same desktop from a wide
  207. variety of platforms. This package includes set of utilities
  208. which make usage of TigerVNC server more user friendly. It also
  209. contains x0vncserver program which can export your active
  210. X session.
  211. %package server-minimal
  212. Summary: A minimal installation of TigerVNC server
  213. Group: User Interface/X
  214. Requires(post): chkconfig
  215. Requires(preun):chkconfig
  216. Requires(preun):initscripts
  217. Requires(postun):initscripts
  218. Requires: xkeyboard-config, xorg-x11-xkb-utils
  219. Requires: keyutils-libs-devel
  220. Requires: tigervnc-license
  221. %description server-minimal
  222. The VNC system allows you to access the same desktop from a wide
  223. variety of platforms. This package contains minimal installation
  224. of TigerVNC server, allowing others to access the desktop on your
  225. machine.
  226. %package server-applet
  227. Summary: Java TigerVNC viewer applet for TigerVNC server
  228. Group: User Interface/X
  229. Requires: tigervnc-server, java, jpackage-utils
  230. %if 0%{?fedora} >= 10 || 0%{?rhel} >= 6 || 0%{?centos} >= 6
  231. BuildArch: noarch
  232. %endif
  233. %description server-applet
  234. The Java TigerVNC viewer applet for web browsers. Install this package to allow
  235. clients to use web browser when connect to the TigerVNC server.
  236. %package license
  237. Summary: License of TigerVNC suite
  238. Group: User Interface/X
  239. %if 0%{?fedora} >= 10 || 0%{?rhel} >= 6 || 0%{?centos} >= 6
  240. BuildArch: noarch
  241. %endif
  242. %description license
  243. This package contains license of the TigerVNC suite
  244. %package icons
  245. Summary: Icons for TigerVNC viewer
  246. Group: User Interface/X
  247. %if 0%{?fedora} >= 10 || 0%{?rhel} >= 6 || 0%{?centos} >= 6
  248. BuildArch: noarch
  249. %endif
  250. %description icons
  251. This package contains icons for TigerVNC viewer
  252. %if %{_bootstrap}
  253. %package static-devel
  254. Summary: Static development files necessary to build TigerVNC
  255. Group: Development/Libraries
  256. %description static-devel
  257. This package contains static development files necessary to build TigerVNC
  258. %endif
  259. %prep
  260. rm -rf $RPM_BUILD_ROOT
  261. rm -rf %{_builddir}/%{name}-%{version}%{?snap:-%{snap}}
  262. %setup -q -n %{name}-%{version}%{?snap:-%{snap}}
  263. # Search paths for X11 are hard coded into FindX11.cmake
  264. cp %SOURCE9 cmake/Modules/
  265. sed -i -e "s#@_includedir@#%{xorg_buildroot}%{_includedir}#" cmake/Modules/FindX11.cmake
  266. sed -i -e "s#@_libdir@#%{xorg_buildroot}%{_libdir}#" cmake/Modules/FindX11.cmake
  267. %patch12 -p1 -b .static-build-fixes
  268. %if %{_bootstrap}
  269. tar xzf %SOURCE11
  270. pushd fltk-*
  271. %patch15 -p1 -b .static-libs
  272. popd
  273. tar xzf %SOURCE12
  274. tar xjf %SOURCE13
  275. tar xjf %SOURCE14
  276. tar xzf %SOURCE15
  277. tar xzf %SOURCE16
  278. xzcat %SOURCE17 | tar xf -
  279. %endif
  280. mkdir xorg
  281. pushd xorg
  282. %if %{_bootstrap}
  283. tar xjf %SOURCE100
  284. tar xjf %SOURCE101
  285. tar xjf %SOURCE102
  286. tar xjf %SOURCE103
  287. tar xjf %SOURCE104
  288. tar xjf %SOURCE105
  289. tar xjf %SOURCE106
  290. tar xjf %SOURCE107
  291. tar xjf %SOURCE108
  292. tar xjf %SOURCE109
  293. tar xjf %SOURCE110
  294. tar xjf %SOURCE111
  295. tar xjf %SOURCE112
  296. tar xjf %SOURCE113
  297. pushd libX11-*
  298. %patch10006 -p1 -b .CVE-2013-7439
  299. popd
  300. tar xjf %SOURCE114
  301. tar xjf %SOURCE115
  302. tar xjf %SOURCE116
  303. tar xjf %SOURCE117
  304. tar xjf %SOURCE118
  305. tar xjf %SOURCE119
  306. tar xjf %SOURCE120
  307. tar xjf %SOURCE121
  308. tar xjf %SOURCE122
  309. tar xjf %SOURCE123
  310. pushd libXfont-*
  311. %patch10003 -p1 -b .CVE-2015-1802
  312. %patch10004 -p1 -b .CVE-2015-1803
  313. %patch10005 -p1 -b .CVE-2015-1804
  314. popd
  315. tar xjf %SOURCE124
  316. tar xjf %SOURCE125
  317. tar xjf %SOURCE126
  318. tar xjf %SOURCE127
  319. tar xjf %SOURCE128
  320. tar xjf %SOURCE129
  321. tar xjf %SOURCE130
  322. tar xjf %SOURCE131
  323. tar xjf %SOURCE132
  324. tar xjf %SOURCE133
  325. tar xjf %SOURCE134
  326. tar xjf %SOURCE135
  327. tar xjf %SOURCE136
  328. tar xjf %SOURCE137
  329. tar xjf %SOURCE138
  330. tar xjf %SOURCE139
  331. tar xjf %SOURCE141
  332. tar xjf %SOURCE142
  333. tar xjf %SOURCE143
  334. tar xjf %SOURCE144
  335. tar xjf %SOURCE145
  336. tar xjf %SOURCE146
  337. tar xjf %SOURCE147
  338. tar xjf %SOURCE148
  339. tar xjf %SOURCE149
  340. tar xjf %SOURCE150
  341. tar xjf %SOURCE151
  342. tar xjf %SOURCE152
  343. tar xjf %SOURCE153
  344. tar xjf %SOURCE154
  345. tar xjf %SOURCE155
  346. tar xjf %SOURCE156
  347. tar xjf %SOURCE157
  348. tar xjf %SOURCE158
  349. %endif
  350. tar xjf %SOURCE159
  351. %if %{_bootstrap}
  352. tar xjf %SOURCE160
  353. tar xjf %SOURCE161
  354. tar xjf %SOURCE162
  355. tar xzf %SOURCE200
  356. tar xjf %SOURCE201
  357. pushd freetype-*
  358. %patch46 -p1 -b .enable-valid
  359. %patch88 -p1 -b .multilib
  360. %patch89 -p1 -b .CVE-2010-2498
  361. %patch90 -p1 -b .CVE-2010-2499
  362. %patch91 -p1 -b .CVE-2010-2500
  363. %patch92 -p1 -b .CVE-2010-2519
  364. %patch93 -p1 -b .CVE-2010-2520
  365. %patch96 -p1 -b .CVE-2010-1797
  366. %patch97 -p1 -b .CVE-2010-2805
  367. %patch98 -p1 -b .CVE-2010-2806
  368. %patch99 -p1 -b .CVE-2010-2808
  369. %patch100 -p1 -b .CVE-2010-3311
  370. %patch101 -p1 -b .CVE-2010-3855
  371. %patch102 -p1 -b .CVE-2011-0226
  372. %patch103 -p1 -b .CVE-2011-3256
  373. %patch104 -p1 -b .CVE-2011-3439
  374. %patch105 -p1 -b .CVE-2012-1126
  375. %patch106 -p1 -b .CVE-2012-1127
  376. %patch107 -p1 -b .CVE-2012-1130
  377. %patch108 -p1 -b .CVE-2012-1131
  378. %patch109 -p1 -b .CVE-2012-1132
  379. %patch110 -p1 -b .CVE-2012-1134
  380. %patch111 -p1 -b .CVE-2012-1136
  381. %patch112 -p1 -b .CVE-2012-1137
  382. %patch113 -p1 -b .CVE-2012-1139
  383. %patch114 -p1 -b .CVE-2012-1140
  384. %patch115 -p1 -b .CVE-2012-1141
  385. %patch116 -p1 -b .CVE-2012-1142
  386. %patch117 -p1 -b .CVE-2012-1143
  387. %patch118 -p1 -b .CVE-2012-1144
  388. %patch119 -p1 -b .bdf-overflow
  389. %patch120 -p1 -b .array-initialization
  390. %patch121 -p1 -b .CVE-2012-5669
  391. popd
  392. tar xjf %SOURCE202
  393. tar xjf %SOURCE203
  394. tar xjf %SOURCE204
  395. %endif
  396. pushd xorg-server-1*
  397. %patch10000 -p1 -b .CVE-2014-mult
  398. %patch10001 -p1 -b .CVE-regressions
  399. %patch10002 -p1 -b .CVE-2015-0255
  400. for f in `find . -type f -perm -000`; do
  401. chmod +r "$f"
  402. done
  403. popd
  404. %if %{_bootstrap}
  405. tar xzf %SOURCE205
  406. %endif
  407. popd
  408. cp -a xorg/xorg-server-1*/* unix/xserver
  409. pushd unix/xserver
  410. for all in `find . -type f -perm -001`; do
  411. chmod -x "$all"
  412. done
  413. patch -p1 < %{_builddir}/%{name}-%{version}%{?snap:-%{snap}}/unix/xserver112.patch
  414. %patch13 -p1 -b .dridir
  415. %patch14 -p1 -b .xkbcompdir
  416. popd
  417. %build
  418. export CC=gcc44
  419. export CXX=g++44
  420. export CFLAGS="-g $RPM_OPT_FLAGS -fPIC"
  421. export CXXFLAGS="$CFLAGS -static-libgcc"
  422. export PYTHON=python26
  423. %if %{_bootstrap}
  424. mkdir -p %{xorg_buildroot}%{_libdir}
  425. pushd %{xorg_buildroot}%{_libdir}
  426. ln -s `g++44 -print-file-name=libz.a` .
  427. ln -s `g++44 -print-file-name=libgcc.a` .
  428. ln -s `g++44 -print-file-name=libexpat.a` .
  429. ln -s `g++44 -print-file-name=libcrypto.a` .
  430. popd
  431. echo "*** Building libjpeg-turbo ***"
  432. pushd libjpeg-turbo-*
  433. LDFLAGS="$LDFLAGS -static" PKG_CONFIG="pkg-config --static" ./configure --host=%{_host} --build=%{_build} --prefix=%{_prefix} --libdir=%{_libdir} --disable-nls --enable-static --disable-shared
  434. make %{?_smp_mflags} DESTDIR=%{xorg_buildroot} install
  435. popd
  436. echo "*** Building Xorg ***"
  437. pushd xorg
  438. echo "*** Building libsha1 ***"
  439. pushd libsha1-*
  440. autoreconf -fiv
  441. LDFLAGS="$LDFLAGS -static" PKG_CONFIG="pkg-config --static" ./configure --host=%{_host} --build=%{_build} --prefix=%{_prefix} --libdir=%{_libdir} --disable-nls --enable-static --disable-shared
  442. make %{?_smp_mflags} DESTDIR=%{xorg_buildroot} install
  443. find %{xorg_buildroot}%{_prefix} -type f -name "*.la" -delete
  444. find %{xorg_buildroot}%{_prefix} -type f -name "*.pc" -exec sed -i -e "s|libdir=%{_libdir}|libdir=%{xorg_buildroot}%{_libdir}|" {} \;
  445. find %{xorg_buildroot}%{_prefix} -type f -name "*.pc" -exec sed -i -e "s|prefix=%{_prefix}|prefix=%{xorg_buildroot}%{_prefix}|" {} \;
  446. popd
  447. popd
  448. %endif
  449. export CFLAGS="$RPM_OPT_FLAGS -fPIC -I%{xorg_buildroot}%{_includedir}"
  450. export CXXFLAGS="$RPM_OPT_FLAGS -fPIC -I%{xorg_buildroot}%{_includedir} -static-libgcc"
  451. export CPPFLAGS=$CXXFLAGS
  452. export LDFLAGS="-L%{xorg_buildroot}%{_libdir} -L%{xorg_buildroot}%{_libdir}/tigervnc $LDFLAGS"
  453. export ACLOCAL="aclocal -I %{xorg_buildroot}%{_datadir}/aclocal"
  454. export PKG_CONFIG_PATH="%{xorg_buildroot}%{_libdir}/pkgconfig:%{xorg_buildroot}%{_libdir}/tigervnc/pkgconfig:%{xorg_buildroot}%{_datadir}/pkgconfig:%{_libdir}/pkgconfig:%{_datadir}/pkgconfig"
  455. %if %{_bootstrap}
  456. echo "*** Building gmp ***"
  457. pushd gmp-*
  458. %ifarch x86_64 s390x ia64 ppc64 alpha sparc64
  459. LDFLAGS="$LDFLAGS -static" PKG_CONFIG="pkg-config --static" ABI=64 ./configure --host=%{_host} --build=%{_build} --prefix=%{_prefix} --libdir=%{_libdir} --enable-static --disable-shared --enable-cxx
  460. %else
  461. LDFLAGS="$LDFLAGS -static" PKG_CONFIG="pkg-config --static" ABI=32 ./configure --host=%{_host} --build=%{_build} --prefix=%{_prefix} --libdir=%{_libdir} --enable-static --disable-shared --enable-cxx
  462. %endif
  463. make %{?_smp_mflags} DESTDIR=%{xorg_buildroot} install
  464. find %{xorg_buildroot}%{_prefix} -type f -name "*.la" -delete
  465. find %{xorg_buildroot}%{_prefix} -type f -name "*.pc" -exec sed -i -e "s|libdir=%{_libdir}|libdir=%{xorg_buildroot}%{_libdir}|" {} \;
  466. find %{xorg_buildroot}%{_prefix} -type f -name "*.pc" -exec sed -i -e "s|prefix=%{_prefix}|prefix=%{xorg_buildroot}%{_prefix}|" {} \;
  467. popd
  468. echo "*** Building libtasn1 ***"
  469. pushd libtasn1-*
  470. LDFLAGS="$LDFLAGS -static" PKG_CONFIG="pkg-config --static" ./configure --host=%{_host} --build=%{_build} --prefix=%{_prefix} --libdir=%{_libdir} --enable-static --disable-shared
  471. make %{?_smp_mflags} DESTDIR=%{xorg_buildroot} install
  472. find %{xorg_buildroot}%{_prefix} -type f -name "*.la" -delete
  473. find %{xorg_buildroot}%{_prefix} -type f -name "*.pc" -exec sed -i -e "s|libdir=%{_libdir}|libdir=%{xorg_buildroot}%{_libdir}|" {} \;
  474. find %{xorg_buildroot}%{_prefix} -type f -name "*.pc" -exec sed -i -e "s|prefix=%{_prefix}|prefix=%{xorg_buildroot}%{_prefix}|" {} \;
  475. popd
  476. echo "*** Building nettle ***"
  477. pushd nettle-*
  478. autoreconf -fiv
  479. LDFLAGS="$LDFLAGS -static" PKG_CONFIG="pkg-config --static" ./configure --host=%{_host} --build=%{_build} --prefix=%{_prefix} --libdir=%{_libdir} --enable-static --disable-shared --disable-openssl
  480. make %{?_smp_mflags} DESTDIR=%{xorg_buildroot} install
  481. find %{xorg_buildroot}%{_prefix} -type f -name "*.la" -delete
  482. find %{xorg_buildroot}%{_prefix} -type f -name "*.pc" -exec sed -i -e "s|libdir=%{_libdir}|libdir=%{xorg_buildroot}%{_libdir}|" {} \;
  483. find %{xorg_buildroot}%{_prefix} -type f -name "*.pc" -exec sed -i -e "s|prefix=%{_prefix}|prefix=%{xorg_buildroot}%{_prefix}|" {} \;
  484. popd
  485. echo "*** Building gnutls ***"
  486. pushd gnutls-*
  487. LDFLAGS="-L%{xorg_buildroot}%{_libdir} -lgmp $LDFLAGS -static" PKG_CONFIG="pkg-config --static" ./configure \
  488. --host=%{_host} \
  489. --build=%{_build} \
  490. --prefix=%{_prefix} \
  491. --libdir=%{_libdir} \
  492. --enable-static \
  493. --disable-shared \
  494. --without-p11-kit \
  495. --disable-guile \
  496. --disable-srp-authentication \
  497. --disable-libdane \
  498. --disable-doc \
  499. --enable-local-libopts \
  500. --without-tpm \
  501. --disable-dependency-tracking \
  502. --disable-silent-rules \
  503. --disable-heartbeat-support
  504. make %{?_smp_mflags} DESTDIR=%{xorg_buildroot} install
  505. find %{xorg_buildroot}%{_prefix} -type f -name "*.la" -delete
  506. find %{xorg_buildroot}%{_prefix} -type f -name "*.pc" -exec sed -i -e "s|libdir=%{_libdir}|libdir=%{xorg_buildroot}%{_libdir}|" {} \;
  507. find %{xorg_buildroot}%{_prefix} -type f -name "*.pc" -exec sed -i -e "s|prefix=%{_prefix}|prefix=%{xorg_buildroot}%{_prefix}|" {} \;
  508. popd
  509. pushd xorg
  510. echo "*** Building freetype ***"
  511. pushd freetype-*
  512. LDFLAGS="$LDFLAGS -static" PKG_CONFIG="pkg-config --static" CFLAGS="$CFLAGS -fno-strict-aliasing" ./configure --host=%{_host} --build=%{_build} --prefix=%{_prefix} --libdir=%{_libdir} --enable-static --disable-shared
  513. sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' builds/unix/libtool
  514. sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' builds/unix/libtool
  515. make DESTDIR=%{xorg_buildroot} install
  516. # FIXME: fontconfig bails out if we delete the libtool archives
  517. find %{xorg_buildroot}%{_prefix} -type f -name "*.la" -exec sed -i -e "s|libdir='%{_libdir}'|libdir='%{xorg_buildroot}%{_libdir}'|" {} \;
  518. find %{xorg_buildroot}%{_prefix} -type f -name "*.pc" -exec sed -i -e "s|libdir=%{_libdir}|libdir=%{xorg_buildroot}%{_libdir}|" {} \;
  519. find %{xorg_buildroot}%{_prefix} -type f -name "*.pc" -exec sed -i -e "s|prefix=%{_prefix}|prefix=%{xorg_buildroot}%{_prefix}|" {} \;
  520. # fix multilib issues
  521. %ifarch x86_64 s390x ia64 ppc64 alpha sparc64
  522. %define wordsize 64
  523. %else
  524. %define wordsize 32
  525. %endif
  526. mv %{xorg_buildroot}%{_includedir}/freetype2/freetype/config/ftconfig.h \
  527. %{xorg_buildroot}%{_includedir}/freetype2/freetype/config/ftconfig-%{wordsize}.h
  528. cat >%{xorg_buildroot}%{_includedir}/freetype2/freetype/config/ftconfig.h <<EOF
  529. #ifndef __FTCONFIG_H__MULTILIB
  530. #define __FTCONFIG_H__MULTILIB
  531. #include <bits/wordsize.h>
  532. #if __WORDSIZE == 32
  533. # include "ftconfig-32.h"
  534. #elif __WORDSIZE == 64
  535. # include "ftconfig-64.h"
  536. #else
  537. # error "unexpected value for __WORDSIZE macro"
  538. #endif
  539. #endif
  540. EOF
  541. popd
  542. echo "*** Building fontconfig ***"
  543. pushd fontconfig-*
  544. autoreconf -fiv
  545. LDFLAGS="$LDFLAGS -static" PKG_CONFIG="pkg-config --static" HASDOCBOOK=no ./configure --host=%{_host} --build=%{_build} --prefix=%{_prefix} --libdir=%{_libdir} --enable-static --disable-shared --with-confdir=%{_sysconfdir}/fonts --with-cache-dir=%{_localstatedir}/cache/fontconfig --with-default-fonts=%{_datadir}/fonts --with-add-fonts="%{_datadir}/X11/fonts/Type1,%{_datadir}/X11/fonts/OTF,%{_datadir}/X11/fonts/TTF,%{_datadir}/X11/fonts/misc,%{_datadir}/X11/fonts/100dpi,%{_datadir}/X11/fonts/75dpi,%{_prefix}/local/share/fonts,~/.fonts"
  546. make %{?_smp_mflags}
  547. make DESTDIR=%{xorg_buildroot} install
  548. find %{xorg_buildroot}%{_prefix} -type f -name "*.la" -delete
  549. find %{xorg_buildroot}%{_prefix} -type f -name "*.pc" -exec sed -i -e "s|libdir=%{_libdir}|libdir=%{xorg_buildroot}%{_libdir}|" {} \;
  550. find %{xorg_buildroot}%{_prefix} -type f -name "*.pc" -exec sed -i -e "s|prefix=%{_prefix}|prefix=%{xorg_buildroot}%{_prefix}|" {} \;
  551. popd
  552. pushd util-macros-*
  553. echo "Building macros"
  554. LDFLAGS="$LDFLAGS -static" PKG_CONFIG="pkg-config --static" ./configure --host=%{_host} --build=%{_build} --prefix=%{_prefix} --libdir=%{_libdir} --enable-static --disable-shared
  555. make DESTDIR=%{xorg_buildroot} install
  556. find %{xorg_buildroot}%{_prefix} -type f -name "*.la" -delete
  557. find %{xorg_buildroot}%{_prefix} -type f -name "*.pc" -exec sed -i -e "s|libdir=%{_libdir}|libdir=%{xorg_buildroot}%{_libdir}|" {} \;
  558. find %{xorg_buildroot}%{_prefix} -type f -name "*.pc" -exec sed -i -e "s|prefix=%{_prefix}|prefix=%{xorg_buildroot}%{_prefix}|" {} \;
  559. popd
  560. modules="\
  561. bigreqsproto \
  562. compositeproto \
  563. damageproto \
  564. dri2proto \
  565. fixesproto \
  566. fontsproto \
  567. glproto \
  568. inputproto \
  569. kbproto \
  570. randrproto \
  571. recordproto \
  572. renderproto \
  573. resourceproto \
  574. scrnsaverproto \
  575. videoproto \
  576. xcb-proto \
  577. xproto \
  578. xcmiscproto \
  579. xextproto \
  580. xf86bigfontproto \
  581. xf86dgaproto \
  582. xf86driproto \
  583. xf86vidmodeproto \
  584. xineramaproto \
  585. makedepend \
  586. xtrans \
  587. libXau \
  588. libXdmcp \
  589. libxcb \
  590. libX11 \
  591. libXext \
  592. libfontenc \
  593. libICE \
  594. libSM \
  595. libXt \
  596. libXmu \
  597. libXpm \
  598. libXaw \
  599. libXfixes \
  600. libXcomposite \
  601. libXrender \
  602. libXdamage \
  603. libXcursor \
  604. libXfont \
  605. libXft \
  606. libXi \
  607. libXinerama \
  608. libxkbfile \
  609. libXrandr \
  610. libXres \
  611. libXScrnSaver \
  612. libXtst \
  613. libXv \
  614. libXxf86dga \
  615. libXxf86vm \
  616. libpciaccess \
  617. pixman \
  618. libdrm \
  619. font-util"
  620. for module in ${modules}; do
  621. extraoptions=""
  622. pushd ${module}-*
  623. echo ======================
  624. echo configuring ${module}
  625. echo ======================
  626. %ifarch i386 i686 x86_64
  627. if [ "${module}" = "libdrm" ]; then
  628. autoreconf -fiv
  629. extraoptions="${extraoptions} --enable-udev --disable-libkms --disable-manpages --disable-intel --disable-radeon --disable-nouveau --disable-vmwgfx"
  630. fi
  631. %endif
  632. if [ "${module}" = "libXdmcp" ]; then
  633. autoreconf -fiv
  634. fi
  635. if [ "${module}" = "libXcursor" ]; then
  636. autoreconf -fiv
  637. fi
  638. if [ "${module}" = "libfontenc" ]; then
  639. autoconf
  640. fi
  641. if [ "${module}" = "libXi" ]; then
  642. autoreconf -fiv
  643. fi
  644. if [ "${module}" = "libXaw" ]; then
  645. extraoptions="${extraoptions} --disable-xaw8 --disable-xaw6"
  646. fi
  647. if [ "${module}" = "libxcb" ]; then
  648. sed -i 's/pthread-stubs //' configure.ac
  649. autoreconf -fiv
  650. fi
  651. if [ "${module}" = "libX11" ]; then
  652. autoreconf -fiv
  653. extraoptions="${extraoptions} --disable-specs"
  654. fi
  655. if [ "${module}" = "libSM" ]; then
  656. extraoptions="${extraoptions} --without-libuuid"
  657. fi
  658. if [ "${module}" = "pixman" ]; then
  659. extraoptions="${extraoptions} --disable-gtk --disable-openmp"
  660. aclocal -I %{xorg_buildroot}%{_datadir}/aclocal
  661. autoconf
  662. autoreconf -fiv
  663. fi
  664. if [ "${module}" = "libXfont" ]; then
  665. extraoptions="${extraoptions} --with-freetype-config=%{xorg_buildroot}%{_bindir}/freetype-config"
  666. fi
  667. if [ "${module}" = "libXScrnSaver" ]; then
  668. LDFLAGS="$LDFLAGS -static" PKG_CONFIG="pkg-config --static" CFLAGS="$CFLAGS -fno-strict-aliasing" ./configure --host=%{_host} --build=%{_build} --prefix=%{_prefix} --libdir=%{_libdir} ${extraoptions} --enable-static --disable-shared --with-pic
  669. elif [ "${module}" = "libxkbfile" ]; then
  670. LDFLAGS="$LDFLAGS -static" PKG_CONFIG="pkg-config --static" CFLAGS="$CFLAGS -fno-strict-aliasing" ./configure --host=%{_host} --build=%{_build} --prefix=%{_prefix} --libdir=%{_libdir} ${extraoptions} --enable-static --disable-shared --with-pic
  671. elif [ "${module}" = "pixman" ]; then
  672. LDFLAGS="$LDFLAGS -static" PKG_CONFIG="pkg-config --static" CFLAGS="$CFLAGS -fno-strict-aliasing" ./configure --host=%{_host} --build=%{_build} --prefix=%{_prefix} --libdir=%{_libdir} ${extraoptions} --enable-static --disable-shared --with-pic
  673. elif [ "${module}" = "libXt" ]; then
  674. LDFLAGS="$LDFLAGS -static" PKG_CONFIG="pkg-config --static" CFLAGS="$CFLAGS -fno-strict-aliasing" ./configure --host=%{_host} --build=%{_build} --prefix=%{_prefix} --libdir=%{_libdir} ${extraoptions} --enable-static --disable-shared --with-pic --with-xfile-search-path="%{_sysconfdir}/X11/%%L/%%T/%%N%%C%%S:%{_sysconfdir}/X11/%%l/%%T/\%%N%%C%%S:%{_sysconfdir}/X11/%%T/%%N%%C%%S:%{_sysconfdir}/X11/%%L/%%T/%%N%%S:%{_sysconfdir}/X\11/%%l/%%T/%%N%%S:%{_sysconfdir}/X11/%%T/%%N%%S:%{_datadir}/X11/%%L/%%T/%%N%%C%%S:%{_datadir}/X1\1/%%l/%%T/%%N%%C%%S:%{_datadir}/X11/%%T/%%N%%C%%S:%{_datadir}/X11/%%L/%%T/%%N%%S:%{_datadir}/X11/%%\l/%%T/%%N%%S:%{_datadir}/X11/%%T/%%N%%S"
  675. elif [ "${module}" = "libX11" ]; then
  676. LDFLAGS="$LDFLAGS -lpthread" PKG_CONFIG="pkg-config --static" ./configure --host=%{_host} --build=%{_build} --prefix=%{_prefix} --libdir=%{_libdir} ${extraoptions} --disable-static --enable-shared --with-pic
  677. elif [ "${module}" = "libXtst" ]; then
  678. LDFLAGS="$LDFLAGS -static" PKG_CONFIG="pkg-config --static" ./configure --host=%{_host} --build=%{_build} --prefix=%{_prefix} --libdir=%{_libdir} ${extraoptions} --enable-static --disable-shared --with-pic
  679. elif [ "${module}" = "libXpm" ]; then
  680. LDFLAGS="$LDFLAGS -static" PKG_CONFIG="pkg-config --static" ./configure --host=%{_host} --build=%{_build} --prefix=%{_prefix} --libdir=%{_libdir} ${extraoptions} --enable-static --disable-shared --with-pic
  681. else
  682. LDFLAGS="$LDFLAGS -static" PKG_CONFIG="pkg-config --static" ./configure --host=%{_host} --build=%{_build} --prefix=%{_prefix} --libdir=%{_libdir} ${extraoptions} --enable-static --disable-shared --with-pic
  683. fi
  684. echo ======================
  685. echo building ${module}
  686. echo ======================
  687. make DESTDIR=%{xorg_buildroot}
  688. if [ "${module}" = "libX11" ]; then
  689. make DESTDIR=%{xorg_buildroot} INSTALL="install -p" install
  690. else
  691. make DESTDIR=%{xorg_buildroot} install
  692. fi
  693. find %{xorg_buildroot}%{_prefix} -type f -name "*.la" -delete
  694. find %{xorg_buildroot}%{_prefix} -type f -name "*.pc" -exec sed -i -e "s|libdir=%{_libdir}|libdir=%{xorg_buildroot}%{_libdir}|" {} \;
  695. find %{xorg_buildroot}%{_prefix} -type f -name "*.pc" -exec sed -i -e "s|prefix=%{_prefix}|prefix=%{xorg_buildroot}%{_prefix}|" {} \;
  696. if [ "${module}" = "libxcb" ]; then
  697. sed 's,@libdir@,%{xorg_buildroot}%{_libdir},;s,@prefix@,%{xorg_buildroot}%{_prefix},;s,@exec_prefix@,%{xorg_buildroot}%{_exec_prefix},' %{SOURCE140} > %{xorg_buildroot}%{_libdir}/pkgconfig/pthread-stubs.pc
  698. sed -i -e 's/^\(Libs.private:.*\)$/\1 -L${libdir} -lXdmcp -lXau/' %{xorg_buildroot}%{_libdir}/pkgconfig/xcb.pc
  699. elif [ "${module}" = "libX11" ]; then
  700. sed -i -e 's/^\(Libs:.*\)$/\1 -ldl/' %{xorg_buildroot}%{_libdir}/pkgconfig/x11.pc
  701. sed -i -e 's/^\(Libs.private:.*\)$/\1 -L${libdir} -lxcb/' %{xorg_buildroot}%{_libdir}/pkgconfig/x11.pc
  702. elif [ "${module}" = "libSM" ]; then
  703. echo 'Libs.private: -L${libdir} -lICE' >> %{xorg_buildroot}%{_libdir}/pkgconfig/sm.pc
  704. fi
  705. popd
  706. done
  707. %else
  708. pushd xorg
  709. %endif
  710. %if %{_bootstrap}
  711. # build mesa
  712. echo "*** Building Mesa ***"
  713. pushd Mesa-*
  714. export PYTHON2=python26
  715. %ifarch %{ix86}
  716. sed -i -e 's/-std=c99/-std=gnu99/g' configure.ac
  717. %endif
  718. autoreconf -fiv
  719. %ifarch %{ix86}
  720. # i do not have words for how much the assembly dispatch code infuriates me
  721. %define common_flags --disable-selinux --enable-pic --disable-asm
  722. %else
  723. %define common_flags --disable-selinux --enable-pic
  724. %endif
  725. # link libGL statically against any xorg libraries built above
  726. LDFLAGS="$LDFLAGS -Wl,-Bstatic -lxcb -lXdmcp -lXau -lXext -lXxf86vm -ldrm -Wl,-Bdynamic -lX11 -lpthread -Wl,-rpath,"'\$$'"ORIGIN/../..%{_libdir}/tigervnc:%{_libdir}/tigervnc:%{_libdir}" \
  727. PKG_CONFIG="pkg-config --static" ./configure %{common_flags} \
  728. --host=%{_host} \
  729. --build=%{_build} \
  730. --prefix=%{_prefix} \
  731. --libdir=%{_libdir}/tigervnc \
  732. --disable-osmesa \
  733. --disable-shared-glapi \
  734. --disable-egl \
  735. --disable-gbm \
  736. --enable-glx \
  737. --disable-glx-tls \
  738. --disable-opencl \
  739. --disable-xvmc \
  740. --with-dri-driverdir=%{_libdir}/tigervnc/dri \
  741. --disable-gallium-egl \
  742. --with-gallium-drivers="" \
  743. --with-dri-drivers=swrast
  744. make DESTDIR=%{xorg_buildroot}
  745. make install DESTDIR=%{xorg_buildroot}
  746. find %{xorg_buildroot}%{_prefix} -type f -name "*.la" -delete
  747. find %{xorg_buildroot}%{_prefix} -type f -name "*.pc" -exec sed -i -e "s|libdir=%{_libdir}|libdir=%{xorg_buildroot}%{_libdir}|" {} \;
  748. find %{xorg_buildroot}%{_prefix} -type f -name "*.pc" -exec sed -i -e "s|prefix=%{_prefix}|prefix=%{xorg_buildroot}%{_prefix}|" {} \;
  749. popd
  750. %endif
  751. popd
  752. %if %{_bootstrap}
  753. echo "*** Building libpng ***"
  754. pushd libpng-*
  755. CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}" ./configure \
  756. --host=%{_host} \
  757. --build=%{_build} \
  758. --prefix=%{_prefix} \
  759. --libdir=%{_libdir} \
  760. --disable-shared \
  761. --enable-static
  762. make %{?_smp_mflags}
  763. make DESTDIR=%{xorg_buildroot} install
  764. popd
  765. echo "*** Building fltk ***"
  766. pushd fltk-*
  767. %endif
  768. export CMAKE_PREFIX_PATH="%{xorg_buildroot}%{_prefix}:%{_prefix}"
  769. export CMAKE_EXE_LINKER_FLAGS=$LDFLAGS
  770. export PKG_CONFIG="pkg-config --static"
  771. %if %{_bootstrap}
  772. ./configure \
  773. --host=%{_host} \
  774. --build=%{_build} \
  775. --prefix=%{_prefix} \
  776. --libdir=%{_libdir} \
  777. --enable-x11 \
  778. --enable-gl \
  779. --disable-shared \
  780. --enable-localjpeg \
  781. --enable-localzlib \
  782. --disable-localpng \
  783. --enable-xinerama \
  784. --enable-xft \
  785. --enable-xdbe \
  786. --enable-xfixes \
  787. --enable-xcursor \
  788. --with-x
  789. make %{?_smp_mflags}
  790. make DESTDIR=%{xorg_buildroot} install
  791. popd
  792. %endif
  793. echo "*** Building VNC ***"
  794. export CFLAGS="$CFLAGS -fPIC"
  795. export CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ -c //g'`
  796. %{cmake28} -G"Unix Makefiles" \
  797. -DFLTK_FLUID_EXECUTABLE=%{xorg_buildroot}%{_bindir}/fluid \
  798. -DFLTK_LIBRARY_DIR=%{xorg_buildroot}%{_libdir} \
  799. -DFLTK_INCLUDE_DIR=%{xorg_buildroot}%{_includedir} \
  800. -DBUILD_STATIC=1 \
  801. -DCMAKE_BUILD_TYPE=Release \
  802. -DUSE_INCLUDED_ZLIB=0 \
  803. -DZLIB_INCLUDE_DIR=%{_includedir} \
  804. -DZLIB_LIBRARY=%{_libdir}/libz.a \
  805. -DCMAKE_INSTALL_PREFIX=%{_prefix}
  806. make %{?_smp_mflags}
  807. pushd unix/xserver
  808. export PIXMANINCDIR=%{xorg_buildroot}%{_includedir}/pixman-1
  809. sed -i -e 's/^\(\s*WAYLAND_SCANNER_RULES.*\)/dnl\1/' configure.ac
  810. autoreconf -fiv
  811. chmod +x ./configure
  812. # create a relocatable Xvnc so that we can bundle the custom libGL & swrast w/o overwriting existing libs
  813. GL_LIBS='-Wl,-Bdynamic -lGL' LDFLAGS="$LDFLAGS -Wl,-rpath,"'\$$'"ORIGIN/../..%{_libdir}/tigervnc:%{_libdir}/tigervnc:%{_libdir}" \
  814. %configure \
  815. --prefix=%{_prefix} --libdir=%{_libdir} --mandir=%{_datadir}/man \
  816. --sysconfdir=%{_sysconfdir} --localstatedir=%{_localstatedir} \
  817. --with-vendor-name="The TigerVNC Project" --with-vendor-name-short="TigerVNC" \
  818. --with-vendor-web="http://www.tigervnc.org" \
  819. --disable-xorg --disable-xnest --disable-xvfb --disable-dmx \
  820. --disable-xwin --disable-xephyr --disable-kdrive --disable-wayland \
  821. --with-pic --enable-static --disable-shared --enable-xinerama \
  822. --with-default-xkb-rules=base \
  823. --with-default-font-path="catalogue:%{_sysconfdir}/X11/fontpath.d,%{_datadir}/X11/fonts/misc,%{_datadir}/X11/fonts/OTF,%{_datadir}/X11/fonts/TTF,%{_datadir}/X11/fonts/Type1,%{_datadir}/X11/fonts/100dpi,%{_datadir}/X11/fonts/75dpi,built-ins" \
  824. --with-serverconfig-path=%{_libdir}/xorg \
  825. --with-fontrootdir=%{_datadir}/X11/fonts \
  826. --with-xkb-output=%{_localstatedir}/lib/xkb \
  827. --enable-install-libxf86config \
  828. --enable-glx --disable-glx-tls --disable-dri --enable-dri2 --disable-dri3 \
  829. --disable-present \
  830. --disable-config-dbus \
  831. --disable-config-hal \
  832. --disable-config-udev \
  833. --without-dtrace \
  834. --disable-unit-tests \
  835. --disable-docs \
  836. --disable-devel-docs \
  837. --disable-selective-werror \
  838. --with-sha1=libsha1
  839. make TIGERVNC_SRCDIR=%{tigervnc_src_dir} %{?_smp_mflags}
  840. popd
  841. # Build icons
  842. pushd media
  843. make
  844. popd
  845. # Build Java applet
  846. pushd java
  847. %{cmake28} \
  848. %if !%{_self_signed}
  849. -DJAVA_KEYSTORE=%{_keystore} \
  850. -DJAVA_KEYSTORE_TYPE=%{_keystore_type} \
  851. -DJAVA_KEY_ALIAS=%{_key_alias} \
  852. -DJAVA_STOREPASS=":env STOREPASS" \
  853. -DJAVA_KEYPASS=":env KEYPASS" \
  854. -DJAVA_TSA_URL=https://timestamp.geotrust.com/tsa .
  855. %endif
  856. JAVA_TOOL_OPTIONS="-Dfile.encoding=UTF8" make
  857. popd
  858. %install
  859. make install DESTDIR=$RPM_BUILD_ROOT
  860. pushd unix/xserver/hw/vnc
  861. make install DESTDIR=$RPM_BUILD_ROOT
  862. popd
  863. mkdir -p $RPM_BUILD_ROOT%{_libdir}/tigervnc/dri
  864. install -m644 -p %{xorg_buildroot}%{_libdir}/tigervnc/dri/swrast_dri.so $RPM_BUILD_ROOT%{_libdir}/tigervnc/dri
  865. for f in `find %{xorg_buildroot}%{_libdir}/tigervnc -name "lib*" -print` ; do
  866. cp -a $f $RPM_BUILD_ROOT%{_libdir}/tigervnc
  867. done
  868. mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/init.d
  869. mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig
  870. install -m644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/init.d/vncserver
  871. install -m644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/vncservers
  872. # Install Java applet
  873. pushd java
  874. mkdir -p $RPM_BUILD_ROOT%{_datadir}/vnc/classes
  875. install -m755 VncViewer.jar $RPM_BUILD_ROOT%{_datadir}/vnc/classes
  876. install -m644 com/tigervnc/vncviewer/index.vnc $RPM_BUILD_ROOT%{_datadir}/vnc/classes
  877. popd
  878. %find_lang %{name} %{name}.lang
  879. %if %{_bootstrap}
  880. find %{xorg_buildroot}%{_prefix} -type f -name "*.la" -delete
  881. find %{xorg_buildroot}%{_prefix} -type f -name "*.pc" -exec sed -i -e "s|libdir=%{xorg_buildroot}%{_libdir}|libdir=/opt/%{name}/%{scl_name}%{_libdir}|" {} \;
  882. find %{xorg_buildroot}%{_prefix} -type f -name "*.pc" -exec sed -i -e "s|prefix=%{xorg_buildroot}%{_prefix}|prefix=/opt/%{name}/%{scl_name}%{_prefix}|" {} \;
  883. %endif
  884. # remove unwanted files
  885. rm -rf $RPM_BUILD_ROOT%{_libdir}/tigervnc/pkgconfig
  886. rm -rf $RPM_BUILD_ROOT%{_libdir}/pkgconfig
  887. rm -rf $RPM_BUILD_ROOT%{_libdir}/xorg
  888. rm -rf $RPM_BUILD_ROOT%{_includedir}
  889. rm -f $RPM_BUILD_ROOT%{_libdir}/tigervnc/*.la
  890. rm -f $RPM_BUILD_ROOT%{_libdir}/tigervnc/dri/*.la
  891. %clean
  892. rm -rf $RPM_BUILD_ROOT
  893. %post
  894. touch -c %{_datadir}/icons/hicolor
  895. if [ -x %{_bindir}/gtk-update-icon-cache ]; then
  896. %{_bindir}/gtk-update-icon-cache -q %{_datadir}/icons/hicolor || :
  897. fi
  898. %postun
  899. touch -c %{_datadir}/icons/hicolor
  900. if [ -x %{_bindir}/gtk-update-icon-cache ]; then
  901. %{_bindir}/gtk-update-icon-cache -q %{_datadir}/icons/hicolor || :
  902. fi
  903. %post server
  904. /sbin/chkconfig --add vncserver
  905. %preun server
  906. if [ $1 -eq 0 ]; then
  907. /sbin/service vncserver stop &>/dev/null || :
  908. /sbin/chkconfig --del vncserver
  909. fi
  910. %postun server
  911. /sbin/service vncserver condrestart &>/dev/null || :
  912. %files -f %{name}.lang
  913. %defattr(-,root,root,-)
  914. %doc README.txt
  915. %{_bindir}/vncviewer
  916. %{_datadir}/applications/*
  917. %{_mandir}/man1/vncviewer.1*
  918. %files server
  919. %defattr(-,root,root,-)
  920. %config(noreplace) %{_sysconfdir}/sysconfig/vncservers
  921. %config(noreplace) %{_sysconfdir}/init.d/vncserver
  922. %{_bindir}/x0vncserver
  923. %{_bindir}/vncserver
  924. %{_mandir}/man1/vncserver.1*
  925. %{_mandir}/man1/x0vncserver.1*
  926. %files server-minimal
  927. %defattr(-,root,root,-)
  928. %{_bindir}/vncconfig
  929. %{_bindir}/vncpasswd
  930. %{_bindir}/Xvnc
  931. %{_mandir}/man1/Xvnc.1*
  932. %{_mandir}/man1/vncpasswd.1*
  933. %{_mandir}/man1/vncconfig.1*
  934. %{_libdir}/*
  935. %files server-applet
  936. %defattr(-,root,root,-)
  937. %doc java/com/tigervnc/vncviewer/README
  938. %{_datadir}/vnc/classes/*
  939. %files license
  940. %defattr(-,root,root,-)
  941. %doc LICENCE.TXT
  942. %files icons
  943. %defattr(-,root,root,-)
  944. %{_datadir}/icons/hicolor/*/apps/*
  945. %if %{_bootstrap}
  946. %files static-devel
  947. %defattr(-,root,root,-)
  948. /opt/%{name}/%{scl_name}%{_sysconfdir}/*
  949. /opt/%{name}/%{scl_name}%{_bindir}/*
  950. /opt/%{name}/%{scl_name}%{_datadir}/*
  951. /opt/%{name}/%{scl_name}%{_includedir}/*
  952. /opt/%{name}/%{scl_name}%{_libdir}/*
  953. %ifarch x86_64 s390x ia64 ppc64 alpha sparc64
  954. /opt/%{name}/%{scl_name}%{_prefix}/lib/python2.6/*
  955. %endif
  956. %endif
  957. %changelog
  958. * Fri Dec 11 2015 Brian P. Hinz <bphinz@users.sourceforge.net> 1.6.80-3
  959. - Configure with --host and --build to avoid build host-specific compiler opts
  960. * Fri Nov 27 2015 Brian P. Hinz <bphinz@users.sourceforge.net> 1.6.80-2
  961. - Split static pre-reqs into separate package
  962. * Thu Nov 26 2015 Brian P. Hinz <bphinz@users.sourceforge.net> 1.6.80-1
  963. - Version bump for 1.6 release
  964. - Update libjpeg-turbo, gnutls, libtasn1, libpng to latest upstream versions.
  965. * Sun Sep 12 2015 Brian P. Hinz <bphinz@users.sourceforge.net> 1.5.80-8
  966. - Build Xvnc with link path relative to $ORIGIN and apply dridir patch
  967. to make it portable.
  968. * Sun Aug 09 2015 Brian P. Hinz <bphinz@users.sourceforge.net> 1.5.80-7
  969. - Patch Xorg sources with latest relevant CVE patches.
  970. - Update libjpeg-turbo, gnutls, libtasn1 to latest upstream versions.
  971. * Sat Mar 14 2015 Brian P. Hinz <bphinz@users.sourceforge.net> 1.4.80-6
  972. - Build static libraries to meet new minimum requirements
  973. * Sat Mar 07 2015 Brian P. Hinz <bphinz@users.sourceforge.net> 1.4.80-5
  974. - Don't disable xinerama extension
  975. * Thu Feb 19 2015 Brian P. Hinz <bphinz@users.sourceforge.net> 1.4.80-4
  976. - Bumped fltk to 1.3.3, no longer requires patching
  977. * Mon Jan 19 2015 Brian P. Hinz <bphinz@users.sourceforge.net> 1.4.0-3
  978. - Added default font paths to Xvnc and fontconfig
  979. - Added vendor strings to Xvnc
  980. - Specified xfile-search-path when configuring libXt the same way el6 does
  981. * Wed Dec 24 2014 Brian P. Hinz <bphinz@users.sourceforge.net> 1.4.80-1.20141119git59c5a55c
  982. - Rebuilt against Xorg 7.7 with CVE-2104-12-09 patches from debian.
  983. - Bumped versions of Mesa, Freetype, fontconfig, etc.
  984. - Link against our own version of libGL to improve portability.
  985. - Added static libsha1 to avoid linking against libssl.so.
  986. * Wed Nov 19 2014 Brian P. Hinz <bphinz@users.sourceforge.net> 1.3.80-18.20141119git59c5a55c
  987. - Removed server module sub-package
  988. * Thu Nov 28 2013 Brian P. Hinz <bphinz@users.sourceforge.net> 1.3.80-17.20131128svn5139
  989. - Bumped version to 1.3.80
  990. - Cleaned up linter warnings
  991. * Thu Jul 05 2013 Brian P. Hinz <bphinz@users.sourceforge.net> 1.3.0
  992. - Upstream 1.3.0 release
  993. - Conditional-ized %snap for release
  994. * Fri Jun 14 2013 Brian P. Hinz <bphinz@users.sourceforge.net> 1.2.90-14.20130531svn5120
  995. - Update libjpeg-turbo to 1.3.0
  996. * Fri May 24 2013 Brian P. Hinz <bphinz@users.sourceforge.net> 1.2.90-14.20130524svn5114
  997. - Improve spec file portability
  998. * Fri May 17 2013 Brian P. Hinz <bphinz@users.sourceforge.net> 1.2.90-13.20130425svn5087
  999. - Improve portability with more static linking
  1000. * Thu Apr 04 2013 Brian P. Hinz <bphinz@users.sourceforge.net> 1.2.80-12.20130330svn5066
  1001. - Added conditional -march arg to libdrm-intel to allow building on i386
  1002. - Fixed version to reflect upstream pre-release versioning
  1003. * Sat Mar 30 2013 Brian P. Hinz <bphinz@users.sourceforge.net> 1.2.0-11.20130330svn5066
  1004. - Updated to TigerVNC svn 5066
  1005. - Updated fltk to 1.3.2 and updated fltk patches per BUILDING.txt
  1006. - Fixed vncserver init script & config file which had been overwritten by
  1007. systemd versions.
  1008. * Wed Nov 28 2012 Brian P. Hinz <bphinz@users.sourceforge.net> 1.2.0-7.20120915svn4999
  1009. - Changed BuildRequires to cmake28
  1010. - Set PIXMANINCDIR when building Xvnc
  1011. * Tue Sep 18 2012 Brian P. Hinz <bphinz@users.sourceforge.net> 1.2.0-6.20120915svn4999
  1012. - Applied icon support patch
  1013. * Sat Sep 15 2012 Brian P. Hinz <bphinz@users.sourceforge.net> 1.2.0-5.20120915svn4999
  1014. - Update to TigerVNC svn r4999 snapshot
  1015. - Build a static libjpeg-turbo to remove the external dependency
  1016. - Applied Cendio's Fltk patches, except for the icon patch which I cannot get to build
  1017. without creating undefined reference errors during linking
  1018. * Thu Jul 19 2012 Brian P. Hinz <bphinz@users.sourceforge.net> 1.2.0-4.20120719svn4941
  1019. - Update to TigerVNC svn r4941 snapshot
  1020. - Removed border-hook.patch since it's been committed
  1021. * Wed Jul 18 2012 Brian P. Hinz <bphinz@users.sourceforge.net> 1.2.0-3.20120715svn4937
  1022. - Update to TigerVNC svn r4937 snapshot
  1023. - Applied border-hook.patch from devel list to fix bug #3415308
  1024. - Use build order recommended by cgit.freedesktop.org/xorg/util/modular/tree/build.sh
  1025. - Removed tigervnc11-rh692048.patch as it seems to break support for VeNCrypt
  1026. * Sun Jul 15 2012 Brian P. Hinz <bphinz@users.sourceforge.net> 1.2.0-1.20120715svn4935
  1027. - Adapted spec file for building static linked binary on RHEL5 from F16
  1028. spec file and DRC's build-xorg script included in src tarball.
  1029. - Update to TigerVNC svn r4935 snapshot
  1030. - Need to use inkscape on RHEL5 because convert is broken
  1031. * Tue Nov 22 2011 Adam Tkac <atkac redhat com> - 1.1.0-3
  1032. - don't build X.Org devel docs (#755782)
  1033. - applet: BR generic java-devel instead of java-gcj-devel (#755783)
  1034. - use runuser to start Xvnc in systemd service file (#754259)
  1035. - don't attepmt to restart Xvnc session during update/erase (#753216)
  1036. * Fri Nov 11 2011 Adam Tkac <atkac redhat com> - 1.1.0-2
  1037. - libvnc.so: don't use unexported GetMaster function (#744881)
  1038. - remove nasm buildreq
  1039. * Mon Sep 12 2011 Adam Tkac <atkac redhat com> - 1.1.0-1
  1040. - update to 1.1.0
  1041. - update the xorg11 patch
  1042. - patches merged
  1043. - tigervnc11-glx.patch
  1044. - tigervnc11-CVE-2011-1775.patch
  1045. - 0001-Use-memmove-instead-of-memcpy-in-fbblt.c-when-memory.patch
  1046. * Thu Jul 28 2011 Adam Tkac <atkac redhat com> - 1.0.90-6
  1047. - add systemd service file and remove legacy SysV initscript (#717227)
  1048. * Tue May 12 2011 Adam Tkac <atkac redhat com> - 1.0.90-5
  1049. - make Xvnc buildable against X.Org 1.11
  1050. * Tue May 10 2011 Adam Tkac <atkac redhat com> - 1.0.90-4
  1051. - viewer can send password without proper validation of X.509 certs
  1052. (CVE-2011-1775)
  1053. * Wed Apr 13 2011 Adam Tkac <atkac redhat com> - 1.0.90-3
  1054. - fix wrong usage of memcpy which caused screen artifacts (#652590)
  1055. - don't point to inaccessible link in sysconfig/vncservers (#644975)
  1056. * Fri Apr 08 2011 Adam Tkac <atkac redhat com> - 1.0.90-2
  1057. - improve compatibility with vinagre client (#692048)
  1058. * Tue Mar 22 2011 Adam Tkac <atkac redhat com> - 1.0.90-1
  1059. - update to 1.0.90
  1060. * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.90-0.32.20110117svn4237
  1061. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  1062. * Mon Jan 17 2011 Adam Tkac <atkac redhat com> 1.0.90-0.31.20110117svn4237
  1063. - fix libvnc.so module loading
  1064. * Mon Jan 17 2011 Adam Tkac <atkac redhat com> 1.0.90-0.30.20110117svn4237
  1065. - update to r4237
  1066. - patches merged
  1067. - tigervnc11-optionsdialog.patch
  1068. - tigervnc11-rh607866.patch
  1069. * Fri Jan 14 2011 Adam Tkac <atkac redhat com> 1.0.90-0.29.20101208svn4225
  1070. - improve patch for keyboard issues
  1071. * Fri Jan 14 2011 Adam Tkac <atkac redhat com> 1.0.90-0.28.20101208svn4225
  1072. - attempt to fix various keyboard-related issues (key repeating etc)
  1073. * Fri Jan 07 2011 Adam Tkac <atkac redhat com> 1.0.90-0.27.20101208svn4225
  1074. - render "Ok" and "Cancel" buttons in the options dialog correctly
  1075. * Wed Dec 15 2010 Jan Görig <jgorig redhat com> 1.0.90-0.26.20101208svn4225
  1076. - added vncserver lock file (#662784)
  1077. * Fri Dec 10 2010 Adam Tkac <atkac redhat com> 1.0.90-0.25.20101208svn4225
  1078. - update to r4225
  1079. - patches merged
  1080. - tigervnc11-rh611677.patch
  1081. - tigervnc11-rh633931.patch
  1082. - tigervnc11-xorg1.10.patch
  1083. - enable VeNCrypt and PAM support
  1084. * Mon Dec 06 2010 Adam Tkac <atkac redhat com> 1.0.90-0.24.20100813svn4123
  1085. - rebuild against xserver 1.10.X
  1086. - 0001-Return-Success-from-generate_modkeymap-when-max_keys.patch merged
  1087. * Wed Sep 29 2010 jkeating - 1.0.90-0.23.20100813svn4123
  1088. - Rebuilt for gcc bug 634757
  1089. * Tue Sep 21 2010 Adam Tkac <atkac redhat com> 1.0.90-0.22.20100420svn4030
  1090. - drop xorg-x11-fonts-misc dependency (#636170)
  1091. * Tue Sep 21 2010 Adam Tkac <atkac redhat com> 1.0.90-0.21.20100420svn4030
  1092. - improve patch for #633645 (fix tcsh incompatibilities)
  1093. * Thu Sep 16 2010 Adam Tkac <atkac redhat com> 1.0.90-0.20.20100813svn4123
  1094. - press fake modifiers correctly (#633931)
  1095. - supress unneeded debug information emitted from initscript (#633645)
  1096. * Wed Aug 25 2010 Adam Tkac <atkac redhat com> 1.0.90-0.19.20100813svn4123
  1097. - separate Xvnc, vncpasswd and vncconfig to -server-minimal subpkg (#626946)
  1098. - move license to separate subpkg and Requires it from main subpkgs
  1099. - Xvnc: handle situations when no modifiers exist well (#611677)
  1100. * Fri Aug 13 2010 Adam Tkac <atkac redhat com> 1.0.90-0.18.20100813svn4123
  1101. - update to r4123 (#617973)
  1102. - add perl requires to -server subpkg (#619791)
  1103. * Thu Jul 22 2010 Adam Tkac <atkac redhat com> 1.0.90-0.17.20100721svn4113
  1104. - update to r4113
  1105. - patches merged
  1106. - tigervnc11-rh586406.patch
  1107. - tigervnc11-libvnc.patch
  1108. - tigervnc11-rh597172.patch
  1109. - tigervnc11-rh600070.patch
  1110. - tigervnc11-options.patch
  1111. - don't own %%{_datadir}/icons directory (#614301)
  1112. - minor improvements in the .desktop file (#616340)
  1113. - bundled libjpeg configure requires nasm; is executed even if system-wide
  1114. libjpeg is used
  1115. * Fri Jul 02 2010 Adam Tkac <atkac redhat com> 1.0.90-0.16.20100420svn4030
  1116. - build against system-wide libjpeg-turbo (#494458)
  1117. - build no longer requires nasm
  1118. * Mon Jun 28 2010 Adam Tkac <atkac redhat com> 1.0.90-0.15.20100420svn4030
  1119. - vncserver: accept <+optname> option when specified as the first one
  1120. * Thu Jun 24 2010 Adam Tkac <atkac redhat com> 1.0.90-0.14.20100420svn4030
  1121. - fix memory leak in Xvnc input code (#597172)
  1122. - don't crash when receive negative encoding (#600070)
  1123. - explicitly disable udev configuration support
  1124. - add gettext-autopoint to BR
  1125. * Mon Jun 14 2010 Adam Tkac <atkac redhat com> 1.0.90-0.13.20100420svn4030
  1126. - update URL about SSH tunneling in the sysconfig file (#601996)
  1127. * Fri Jun 11 2010 Adam Tkac <atkac redhat com> 1.0.90-0.12.20100420svn4030
  1128. - use newer gettext
  1129. - autopoint now uses git instead of cvs, adjust BuildRequires appropriately
  1130. * Thu May 13 2010 Adam Tkac <atkac redhat com> 1.0.90-0.11.20100420svn4030
  1131. - link libvnc.so "now" to catch "undefined symbol" errors during Xorg startup
  1132. - use always XkbConvertCase instead of XConvertCase (#580159, #586406)
  1133. - don't link libvnc.so against libXi.la, libdix.la and libxkb.la; use symbols
  1134. from Xorg instead
  1135. * Thu May 13 2010 Adam Tkac <atkac redhat com> 1.0.90-0.10.20100420svn4030
  1136. - update to r4030 snapshot
  1137. - patches merged to upstream
  1138. - tigervnc11-rh522369.patch
  1139. - tigervnc11-rh551262.patch
  1140. - tigervnc11-r4002.patch
  1141. - tigervnc11-r4014.patch
  1142. * Thu Apr 08 2010 Adam Tkac <atkac redhat com> 1.0.90-0.9.20100219svn3993
  1143. - add server-applet subpackage which contains Java vncviewer applet
  1144. - fix Java applet; it didn't work when run from web browser
  1145. - add xorg-x11-xkb-utils to server Requires
  1146. * Fri Mar 12 2010 Adam Tkac <atkac redhat com> 1.0.90-0.8.20100219svn3993
  1147. - add French translation to vncviewer.desktop (thanks to Alain Portal)
  1148. * Thu Mar 04 2010 Adam Tkac <atkac redhat com> 1.0.90-0.7.20100219svn3993
  1149. - don't crash during pixel format change (#522369, #551262)
  1150. * Mon Mar 01 2010 Adam Tkac <atkac redhat com> 1.0.90-0.6.20100219svn3993
  1151. - add mesa-dri-drivers and xkeyboard-config to -server Requires
  1152. - update to r3993 1.0.90 snapshot
  1153. - tigervnc11-noexecstack.patch merged
  1154. - tigervnc11-xorg18.patch merged
  1155. - xserver18.patch is no longer needed
  1156. * Wed Jan 27 2010 Jan Gorig <jgorig redhat com> 1.0.90-0.5.20091221svn3929
  1157. - initscript LSB compliance fixes (#523974)
  1158. * Fri Jan 22 2010 Adam Tkac <atkac redhat com> 1.0.90-0.4.20091221svn3929
  1159. - mark stack as non-executable in jpeg ASM code
  1160. - add xorg-x11-xauth to Requires
  1161. - add support for X.Org 1.8
  1162. - drop shave sources, they are no longer needed
  1163. * Thu Jan 21 2010 Adam Tkac <atkac redhat com> 1.0.90-0.3.20091221svn3929
  1164. - drop tigervnc-xorg25909.patch, it has been merged to X.Org upstream
  1165. * Thu Jan 07 2010 Adam Tkac <atkac redhat com> 1.0.90-0.2.20091221svn3929
  1166. - add patch for upstream X.Org issue #25909
  1167. - add libXdmcp-devel to build requires to build Xvnc with XDMCP support (#552322)
  1168. * Mon Dec 21 2009 Adam Tkac <atkac redhat com> 1.0.90-0.1.20091221svn3929
  1169. - update to 1.0.90 snapshot
  1170. - patches merged
  1171. - tigervnc10-compat.patch
  1172. - tigervnc10-rh510185.patch
  1173. - tigervnc10-rh524340.patch
  1174. - tigervnc10-rh516274.patch
  1175. * Mon Oct 26 2009 Adam Tkac <atkac redhat com> 1.0.0-3
  1176. - create Xvnc keyboard mapping before first keypress (#516274)
  1177. * Thu Oct 08 2009 Adam Tkac <atkac redhat com> 1.0.0-2
  1178. - update underlying X source to 1.6.4-0.3.fc11
  1179. - remove bogus '-nohttpd' parameter from /etc/sysconfig/vncservers (#525629)
  1180. - initscript LSB compliance fixes (#523974)
  1181. - improve -LowColorSwitch documentation and handling (#510185)
  1182. - honor dotWhenNoCursor option (and it's changes) every time (#524340)
  1183. * Fri Aug 28 2009 Adam Tkac <atkac redhat com> 1.0.0-1
  1184. - update to 1.0.0
  1185. - tigervnc10-rh495457.patch merged to upstream
  1186. * Mon Aug 24 2009 Karsten Hopp <karsten@redhat.com> 0.0.91-0.17
  1187. - fix ifnarch s390x for server-module
  1188. * Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 0.0.91-0.16
  1189. - rebuilt with new openssl
  1190. * Tue Aug 04 2009 Adam Tkac <atkac redhat com> 0.0.91-0.15
  1191. - make Xvnc compilable
  1192. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.91-0.14.1
  1193. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  1194. * Mon Jul 13 2009 Adam Tkac <atkac redhat com> 0.0.91-0.13.1
  1195. - don't write warning when initscript is called with condrestart param (#508367)
  1196. * Tue Jun 23 2009 Adam Tkac <atkac redhat com> 0.0.91-0.13
  1197. - temporary use F11 Xserver base to make Xvnc compilable
  1198. - BuildRequires: libXi-devel
  1199. - don't ship tigervnc-server-module on s390/s390x
  1200. * Mon Jun 22 2009 Adam Tkac <atkac redhat com> 0.0.91-0.12
  1201. - fix local rendering of cursor (#495457)
  1202. * Thu Jun 18 2009 Adam Tkac <atkac redhat com> 0.0.91-0.11
  1203. - update to 0.0.91 (1.0.0 RC1)
  1204. - patches merged
  1205. - tigervnc10-rh499401.patch
  1206. - tigervnc10-rh497592.patch
  1207. - tigervnc10-rh501832.patch
  1208. - after discusion in upstream drop tigervnc-bounds.patch
  1209. - configure flags cleanup
  1210. * Thu May 21 2009 Adam Tkac <atkac redhat com> 0.0.90-0.10
  1211. - rebuild against 1.6.1.901 X server (#497835)
  1212. - disable i18n, vncviewer is not UTF-8 compatible (#501832)
  1213. * Mon May 18 2009 Adam Tkac <atkac redhat com> 0.0.90-0.9
  1214. - fix vncpasswd crash on long passwords (#499401)
  1215. - start session dbus daemon correctly (#497592)
  1216. * Mon May 11 2009 Adam Tkac <atkac redhat com> 0.0.90-0.8.1
  1217. - remove merged tigervnc-manminor.patch
  1218. * Tue May 05 2009 Adam Tkac <atkac redhat com> 0.0.90-0.8
  1219. - update to 0.0.90
  1220. * Thu Apr 30 2009 Adam Tkac <atkac redhat com> 0.0.90-0.7.20090427svn3789
  1221. - server package now requires xorg-x11-fonts-misc (#498184)
  1222. * Mon Apr 27 2009 Adam Tkac <atkac redhat com> 0.0.90-0.6.20090427svn3789
  1223. - update to r3789
  1224. - tigervnc-rh494801.patch merged
  1225. - tigervnc-newfbsize.patch is no longer needed
  1226. - fix problems when vncviewer and Xvnc run on different endianess (#496653)
  1227. - UltraVNC and TightVNC clients work fine again (#496786)
  1228. * Wed Apr 08 2009 Adam Tkac <atkac redhat com> 0.0.90-0.5.20090403svn3751
  1229. - workaround broken fontpath handling in vncserver script (#494801)
  1230. * Fri Apr 03 2009 Adam Tkac <atkac redhat com> 0.0.90-0.4.20090403svn3751
  1231. - update to r3751
  1232. - patches merged
  1233. - tigervnc-xclients.patch
  1234. - tigervnc-clipboard.patch
  1235. - tigervnc-rh212985.patch
  1236. - basic RandR support in Xvnc (resize of the desktop)
  1237. - use built-in libjpeg (SSE2/MMX accelerated encoding on x86 platform)
  1238. - use Tight encoding by default
  1239. - use TigerVNC icons
  1240. * Tue Mar 03 2009 Adam Tkac <atkac redhat com> 0.0.90-0.3.20090303svn3631
  1241. - update to r3631
  1242. * Tue Mar 03 2009 Adam Tkac <atkac redhat com> 0.0.90-0.2.20090302svn3621
  1243. - package review related fixes
  1244. * Mon Mar 02 2009 Adam Tkac <atkac redhat com> 0.0.90-0.1.20090302svn3621
  1245. - initial package, r3621