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

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