java-1.7.0-openjdk-vl.spec 64 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851
  1. %define release_number 1
  2. # If debug is 1, OpenJDK is built with all debug info present.
  3. %global debug 0
  4. # we remove the build id notes explicitly to avoid generating (potentially
  5. # conflicting) files in the -debuginfo package
  6. %undefine _missing_build_ids_terminate_build
  7. %global icedtea_version 2.6.2
  8. %global hg_tag icedtea-{icedtea_version}
  9. %global aarch64 aarch64 arm64 armv8
  10. #sometimes we need to distinguish big and little endian PPC64
  11. %global ppc64le ppc64le
  12. %global ppc64be ppc64 ppc64p7
  13. %global multilib_arches %{power64} sparc64 x86_64
  14. %global jit_arches %{ix86} x86_64 sparcv9 sparc64 %{ppc64be} %{ppc64le} %{aarch64}
  15. # With disabled nss is NSS deactivated, so in NSS_LIBDIR can be wrong path
  16. # the initialisation must be here. LAter the pkg-connfig have bugy behaviour
  17. #looks liekopenjdk RPM specific bug
  18. # Always set this so the nss.cfg file is not broken
  19. %global NSS_LIBDIR %(pkg-config --variable=libdir nss)
  20. %ifarch x86_64
  21. %global archbuild amd64
  22. %global archinstall amd64
  23. %endif
  24. %ifarch ppc
  25. %global archbuild ppc
  26. %global archinstall ppc
  27. %global archdef PPC
  28. %endif
  29. %ifarch %{ppc64be}
  30. %global archbuild ppc64
  31. %global archinstall ppc64
  32. %global archdef PPC
  33. %endif
  34. %ifarch %{ppc64le}
  35. %global archbuild ppc64le
  36. %global archinstall ppc64le
  37. %global archdef PPC64
  38. %endif
  39. %ifarch %{ix86}
  40. %global archbuild i586
  41. %global archinstall i386
  42. %endif
  43. %ifarch ia64
  44. %global archbuild ia64
  45. %global archinstall ia64
  46. %endif
  47. %ifarch s390
  48. %global archbuild s390
  49. %global archinstall s390
  50. %global archdef S390
  51. %endif
  52. %ifarch s390x
  53. %global archbuild s390x
  54. %global archinstall s390x
  55. %global archdef S390
  56. %endif
  57. %ifarch %{arm}
  58. %global archbuild arm
  59. %global archinstall arm
  60. %global archdef ARM
  61. %endif
  62. %ifarch %{aarch64}
  63. %global archbuild aarch64
  64. %global archinstall aarch64
  65. %global archdef AARCH64
  66. %endif
  67. # 32 bit sparc, optimized for v9
  68. %ifarch sparcv9
  69. %global archbuild sparc
  70. %global archinstall sparc
  71. %endif
  72. # 64 bit sparc
  73. %ifarch sparc64
  74. %global archbuild sparcv9
  75. %global archinstall sparcv9
  76. %endif
  77. %ifnarch %{jit_arches}
  78. %global archbuild %{_arch}
  79. %global archinstall %{_arch}
  80. %endif
  81. %if %{debug}
  82. %global debugbuild debug_build
  83. %else
  84. %global debugbuild %{nil}
  85. %endif
  86. # If hsbootstrap is 1, build HotSpot alone first and use that in the bootstrap JDK
  87. # You can turn this on to avoid issues where HotSpot is broken in the bootstrap JDK
  88. %global hsbootstrap 0
  89. %if %{debug}
  90. %global buildoutputdir openjdk/build/linux-%{archbuild}-debug
  91. %else
  92. %global buildoutputdir openjdk/build/linux-%{archbuild}
  93. %endif
  94. %global with_pulseaudio 1
  95. %ifarch %{jit_arches}
  96. %global with_systemtap 1
  97. %else
  98. %global with_systemtap 0
  99. %endif
  100. # Convert an absolute path to a relative path. Each symbolic link is
  101. # specified relative to the directory in which it is installed so that
  102. # it will resolve properly within chrooted installations.
  103. %global script 'use File::Spec; print File::Spec->abs2rel($ARGV[0], $ARGV[1])'
  104. %global abs2rel %{__perl} -e %{script}
  105. # Hard-code libdir on 64-bit architectures to make the 64-bit JDK
  106. # simply be another alternative.
  107. %global LIBDIR %{_libdir}
  108. #backuped original one
  109. %ifarch %{multilib_arches}
  110. %global syslibdir %{_prefix}/lib64
  111. %global _libdir %{_prefix}/lib
  112. %else
  113. %global syslibdir %{_libdir}
  114. %endif
  115. # Standard JPackage naming and versioning defines.
  116. %global origin openjdk
  117. %global updatever 91
  118. %global buildver 00
  119. # Keep priority on 7digits in case updatever>9
  120. %global priority 17000%{updatever}
  121. %global javaver 1.7.0
  122. %global sdkdir %{uniquesuffix}
  123. %global jrelnk jre-%{javaver}-%{origin}-%{version}-%{release}.%{_arch}
  124. %global jredir %{sdkdir}/jre
  125. %global sdkbindir %{_jvmdir}/%{sdkdir}/bin
  126. %global jrebindir %{_jvmdir}/%{jredir}/bin
  127. %global jvmjardir %{_jvmjardir}/%{uniquesuffix}
  128. %global fullversion %{name}-%{version}-%{release}
  129. %global uniquesuffix %{fullversion}.%{_arch}
  130. #we can copy the javadoc to not arched dir, or made it not noarch
  131. %global uniquejavadocdir %{fullversion}
  132. %ifarch %{jit_arches}
  133. # Where to install systemtap tapset (links)
  134. # We would like these to be in a package specific subdir,
  135. # but currently systemtap doesn't support that, so we have to
  136. # use the root tapset dir for now. To distinquish between 64
  137. # and 32 bit architectures we place the tapsets under the arch
  138. # specific dir (note that systemtap will only pickup the tapset
  139. # for the primary arch for now). Systemtap uses the machine name
  140. # aka build_cpu as architecture specific directory name.
  141. %global tapsetroot /usr/share/systemtap
  142. %ifarch %{ix86}
  143. %global tapsetdir %{tapsetroot}/tapset/i386
  144. %else
  145. %global tapsetdir %{tapsetroot}/tapset/%{_build_cpu}
  146. %endif
  147. %endif
  148. # Prevent brp-java-repack-jars from being run.
  149. %global __jar_repack 0
  150. Name: java-%{javaver}-%{origin}
  151. Version: %{javaver}.%{updatever}
  152. Release: %{icedtea_version}.%{release_number}%{?_dist_release}
  153. # java-1.5.0-ibm from jpackage.org set Epoch to 1 for unknown reasons,
  154. # and this change was brought into RHEL-4. java-1.5.0-ibm packages
  155. # also included the epoch in their virtual provides. This created a
  156. # situation where in-the-wild java-1.5.0-ibm packages provided "java =
  157. # 1:1.5.0". In RPM terms, "1.6.0 < 1:1.5.0" since 1.6.0 is
  158. # interpreted as 0:1.6.0. So the "java >= 1.6.0" requirement would be
  159. # satisfied by the 1:1.5.0 packages. Thus we need to set the epoch in
  160. # JDK package >= 1.6.0 to 1, and packages referring to JDK virtual
  161. # provides >= 1.6.0 must specify the epoch, "java >= 1:1.6.0".
  162. # Epoch: 1
  163. Summary: OpenJDK Runtime Environment
  164. Summary(ja): OpenJDK ランタイム環境
  165. Group: Development/Languages
  166. License: ASL 1.1 and ASL 2.0 and GPL+ and GPLv2 and GPLv2 with exceptions and LGPL+ and LGPLv2 and MPLv1.0 and MPLv1.1 and Public Domain and W3C
  167. URL: http://openjdk.java.net/
  168. #head
  169. #REPO=http://icedtea.classpath.org/hg/icedtea7-forest
  170. #current release
  171. #REPO=http://icedtea.classpath.org/hg/release/icedtea7-forest-2.5
  172. # hg clone $REPO/ openjdk -r %{hg_tag}
  173. # hg clone $REPO/corba/ openjdk/corba -r %{hg_tag}
  174. # hg clone $REPO/hotspot/ openjdk/hotspot -r %{hg_tag}
  175. # hg clone $REPO/jaxp/ openjdk/jaxp -r %{hg_tag}
  176. # hg clone $REPO/jaxws/ openjdk/jaxws -r %{hg_tag}
  177. # hg clone $REPO/jdk/ openjdk/jdk -r %{hg_tag}
  178. # hg clone $REPO/langtools/ openjdk/langtools -r %{hg_tag}
  179. # find openjdk -name ".hg" -exec rm -rf '{}' \;
  180. # sh /git/java-1.7.0-openjdk/rhel-7.1/fsg.sh
  181. # tar cJf openjdk-icedtea-%{icedtea_version}.tar.xz openjdk
  182. Source0: openjdk-icedtea-%{icedtea_version}.tar.xz
  183. # README file
  184. # This source is under maintainer's/java-team's control
  185. Source2: README.src
  186. # Sources 6-12 are taken from hg clone http://icedtea.classpath.org/hg/icedtea7
  187. # Unless said differently, there is directory with required sources which should be enough to pack/rename
  188. # Class rewrite to rewrite rhino hierarchy
  189. Source5: class-rewriter.tar.gz
  190. # Systemtap tapsets. Zipped up to keep it small.
  191. # last update from http://icedtea.classpath.org/hg/icedtea7/file/8599fdfc398d/tapset
  192. Source6: systemtap-tapset-2014-03-19.tar.xz
  193. # .desktop files.
  194. Source7: policytool.desktop
  195. Source77: jconsole.desktop
  196. # nss configuration file
  197. Source8: nss.cfg
  198. # FIXME: Taken from IcedTea snapshot 877ad5f00f69, but needs to be moved out
  199. # hg clone -r 877ad5f00f69 http://icedtea.classpath.org/hg/icedtea7
  200. Source9: pulseaudio.tar.gz
  201. # Removed libraries that we link instead
  202. Source10: remove-intree-libraries.sh
  203. #http://icedtea.classpath.org/hg/icedtea7/file/933d082ec889/fsg.sh
  204. # file to clean tarball, should be ketp updated as possible
  205. Source1111: fsg.sh
  206. # Remove build ids from binaries
  207. Source11: remove-buildids.sh
  208. # Ensure we aren't using the limited crypto policy
  209. Source12: TestCryptoLevel.java
  210. Source13: java-abrt-luncher
  211. # RPM/distribution specific patches
  212. # Allow TCK to pass with access bridge wired in
  213. Patch1: java-1.7.0-openjdk-java-access-bridge-tck.patch
  214. # Disable access to access-bridge packages by untrusted apps
  215. Patch3: java-1.7.0-openjdk-java-access-bridge-security.patch
  216. # Ignore AWTError when assistive technologies are loaded
  217. Patch4: java-1.7.0-openjdk-accessible-toolkit.patch
  218. # Build docs even in debug
  219. Patch5: java-1.7.0-openjdk-debugdocs.patch
  220. # Add debuginfo where missing
  221. Patch6: %{name}-debuginfo.patch
  222. #
  223. # OpenJDK specific patches
  224. #
  225. # Add rhino support
  226. Patch100: rhino.patch
  227. Patch106: %{name}-freetype-check-fix.patch
  228. # allow to create hs_pid.log in tmp (in 700 permissions) if working directory is unwritable
  229. Patch200: abrt_friendly_hs_log_jdk7.patch
  230. #
  231. # Optional component packages
  232. #
  233. # Make the ALSA based mixer the default when building with the pulseaudio based
  234. # mixer
  235. Patch300: pulse-soundproperties.patch
  236. # Make the curves reported by Java's SSL implementation match those of NSS
  237. Patch400: rh1022017.patch
  238. # Temporary patches
  239. Patch500: 8072932or8074489.patch
  240. # End of tmp patches
  241. BuildRequires: autoconf
  242. BuildRequires: automake
  243. BuildRequires: gcc-c++
  244. BuildRequires: alsa-lib-devel
  245. BuildRequires: cups-devel
  246. BuildRequires: desktop-file-utils
  247. BuildRequires: giflib-devel
  248. BuildRequires: lcms2-devel >= 2.5
  249. BuildRequires: libX11-devel
  250. BuildRequires: libXi-devel
  251. BuildRequires: libXp-devel
  252. BuildRequires: libXt-devel
  253. BuildRequires: libXtst-devel
  254. BuildRequires: libjpeg-turbo-devel
  255. BuildRequires: libpng-devel
  256. BuildRequires: wget
  257. BuildRequires: libxslt
  258. BuildRequires: xorg-x11-proto-devel
  259. BuildRequires: ant
  260. BuildRequires: libXinerama-devel
  261. BuildRequires: rhino
  262. BuildRequires: lsb
  263. BuildRequires: zip
  264. BuildRequires: fontconfig
  265. BuildRequires: xorg-x11-fonts-Type1
  266. BuildRequires: zlib > 1.2.3-6
  267. BuildRequires: java-1.7.0-openjdk-devel
  268. BuildRequires: fontconfig
  269. BuildRequires: at-spi-devel
  270. BuildRequires: gawk
  271. BuildRequires: pkgconfig >= 0.9.0
  272. BuildRequires: xorg-x11-utils
  273. # Requirements for setting up the nss.cfg
  274. BuildRequires: nss-devel
  275. # Required for NIO2
  276. BuildRequires: libattr-devel
  277. # Required for smartcard support
  278. BuildRequires: pcsc-lite-devel
  279. # Required for SCTP support
  280. BuildRequires: lksctp-tools-devel
  281. # Required for fallback native proxy support
  282. BuildRequires: GConf2-devel
  283. # PulseAudio build requirements.
  284. %if %{with_pulseaudio}
  285. BuildRequires: pulseaudio-libs-devel >= 0.9.11
  286. %endif
  287. # Zero-assembler build requirement.
  288. %ifnarch %{jit_arches}
  289. BuildRequires: libffi-devel >= 3.0.10
  290. %endif
  291. # cacerts build requirement.
  292. BuildRequires: openssl
  293. # execstack build requirement.
  294. # no prelink on ARM yet
  295. %ifnarch %{arm} %{aarch64} %{ppc64le}
  296. BuildRequires: prelink
  297. %endif
  298. %ifarch %{jit_arches}
  299. #systemtap build requirement.
  300. BuildRequires: systemtap-sdt-devel
  301. %endif
  302. Requires: fontconfig
  303. Requires: xorg-x11-fonts-Type1
  304. #requires rest of java
  305. Requires: %{name}-headless = %{?epoch}:%{version}-%{release}
  306. OrderWithRequires: %{name}-headless = %{?epoch}:%{version}-%{release}
  307. # Standard JPackage base provides.
  308. Provides: jre-%{javaver}-%{origin} = %{?epoch}:%{version}-%{release}
  309. Provides: jre-%{origin} = %{?epoch}:%{version}-%{release}
  310. Provides: jre-%{javaver} = %{?epoch}:%{version}-%{release}
  311. Provides: java-%{javaver} = %{?epoch}:%{version}-%{release}
  312. Provides: jre = %{javaver}
  313. Provides: java-%{origin} = %{?epoch}:%{version}-%{release}
  314. Provides: java = %{?epoch}:%{javaver}
  315. # Standard JPackage extensions provides.
  316. Provides: java-fonts = %{?epoch}:%{version}
  317. # Obsolete older 1.6 packages as it cannot use the new bytecode
  318. # Obsoletes: java-1.6.0-openjdk
  319. # Obsoletes: java-1.6.0-openjdk-demo
  320. # Obsoletes: java-1.6.0-openjdk-devel
  321. # Obsoletes: java-1.6.0-openjdk-javadoc
  322. # Obsoletes: java-1.6.0-openjdk-src
  323. %description
  324. The OpenJDK runtime environment.
  325. %package headless
  326. Summary: The OpenJDK runtime environment without audio and video support
  327. Summary(ja): オーディオ・ビデオサポートなしの OpenJDK ランタイム環境
  328. Group: Development/Languages
  329. Requires: lcms2 >= 2.5
  330. Requires: libjpeg = 6b
  331. # Require /etc/pki/java/cacerts.
  332. Requires: ca-certificates
  333. # Require jpackage-utils for ant.
  334. Requires: jpackage-utils >= 1.7.3-1jpp.2
  335. # Require zoneinfo data provided by tzdata-java subpackage.
  336. Requires: tzdata-java
  337. # Post requires alternatives to install tool alternatives.
  338. Requires(post): %{_sbindir}/alternatives
  339. # Postun requires alternatives to uninstall tool alternatives.
  340. Requires(postun): %{_sbindir}/alternatives
  341. Provides: jre-%{javaver}-%{origin}-headless = %{?epoch}:%{version}-%{release}
  342. Provides: jre-%{origin}-headless = %{?epoch}:%{version}-%{release}
  343. Provides: jre-%{javaver}-headless = %{?epoch}:%{version}-%{release}
  344. Provides: java-%{javaver}-headless = %{?epoch}:%{version}-%{release}
  345. Provides: jre-headless = %{?epoch}:%{javaver}
  346. Provides: java-%{origin}-headless = %{?epoch}:%{version}-%{release}
  347. Provides: java-headless = %{?epoch}:%{javaver}
  348. # Standard JPackage extensions provides.
  349. Provides: jndi = %{?epoch}:%{version}
  350. Provides: jndi-ldap = %{?epoch}:%{version}
  351. Provides: jndi-cos = %{?epoch}:%{version}
  352. Provides: jndi-rmi = %{?epoch}:%{version}
  353. Provides: jndi-dns = %{?epoch}:%{version}
  354. Provides: jaas = %{?epoch}:%{version}
  355. Provides: jsse = %{?epoch}:%{version}
  356. Provides: jce = %{?epoch}:%{version}
  357. Provides: jdbc-stdext = 4.1
  358. Provides: java-sasl = %{?epoch}:%{version}
  359. %description headless
  360. The OpenJDK runtime environment without audio and video
  361. %package devel
  362. Summary: OpenJDK Development Environment
  363. Summary(ja): OpenJDK 開発環境
  364. Group: Development/Tools
  365. # Require base package.
  366. Requires: %{name} = %{?epoch}:%{version}-%{release}
  367. OrderWithRequires: %{name}-headless = %{?epoch}:%{version}-%{release}
  368. # Post requires alternatives to install tool alternatives.
  369. Requires(post): %{_sbindir}/alternatives
  370. # Postun requires alternatives to uninstall tool alternatives.
  371. Requires(postun): %{_sbindir}/alternatives
  372. # Standard JPackage devel provides.
  373. Provides: java-sdk-%{javaver}-%{origin} = %{?epoch}:%{version}
  374. Provides: java-sdk-%{javaver} = %{?epoch}:%{version}
  375. Provides: java-sdk-%{origin} = %{?epoch}:%{version}
  376. Provides: java-sdk = %{?epoch}:%{javaver}
  377. Provides: java-%{javaver}-devel = %{?epoch}:%{version}
  378. Provides: java-devel-%{origin} = %{?epoch}:%{version}
  379. Provides: java-devel = %{?epoch}:%{javaver}
  380. %description devel
  381. The OpenJDK development tools.
  382. %package demo
  383. Summary: OpenJDK Demos
  384. Summary(ja): OpenJDK デモ
  385. Group: Development/Languages
  386. Requires: %{name} = %{?epoch}:%{version}-%{release}
  387. OrderWithRequires: %{name}-headless = %{?epoch}:%{version}-%{release}
  388. %description demo
  389. The OpenJDK demos.
  390. %package src
  391. Summary: OpenJDK Source Bundle
  392. Summary(ja): OpenJDK ソースバンドル
  393. Group: Development/Languages
  394. Requires: %{name} = %{?epoch}:%{version}-%{release}
  395. %description src
  396. The OpenJDK source bundle.
  397. %package javadoc
  398. Summary: OpenJDK API Documentation
  399. Summary(ja): OpenJDK API ドキュメント
  400. Group: Documentation
  401. Requires: jpackage-utils
  402. BuildArch: noarch
  403. OrderWithRequires: %{name}-headless = %{?epoch}:%{version}-%{release}
  404. # Post requires alternatives to install javadoc alternative.
  405. Requires(post): %{_sbindir}/alternatives
  406. # Postun requires alternatives to uninstall javadoc alternative.
  407. Requires(postun): %{_sbindir}/alternatives
  408. # Standard JPackage javadoc provides.
  409. Provides: java-javadoc = %{?epoch}:%{version}-%{release}
  410. Provides: java-%{javaver}-javadoc = %{?epoch}:%{version}-%{release}
  411. %description javadoc
  412. The OpenJDK API documentation.
  413. %package accessibility
  414. Summary: OpenJDK accessibility connector
  415. Summary(ja): OpenJDK アクセシビリティコネクタ
  416. Requires: java-atk-wrapper
  417. Requires: %{name} = %{?epoch}:%{version}-%{release}
  418. OrderWithRequires: %{name}-headless = %{?epoch}:%{version}-%{release}
  419. %description accessibility
  420. Enables accessibility support in OpenJDK by using java-at-wrapper. This allows compatible at-spi2 based accessibility programs to work for AWT and Swing-based programs.
  421. Please note, the java-atk-wrapper is still in beta, and also OpenJDK itself is still in phase of tuning to be working with accessibility features.
  422. Although working pretty fine, there are known issues with accessibility on, so do not rather install this package unless you really need.
  423. %prep
  424. %setup -q -c -n %{uniquesuffix} -T -a 0
  425. # https://bugzilla.redhat.com/show_bug.cgi?id=1189084
  426. prioritylength=`expr length %{priority}`
  427. if [ $prioritylength -ne 7 ] ; then
  428. echo "priority must be 7 digits in total, violated"
  429. exit 14
  430. fi
  431. cp %{SOURCE2} .
  432. # OpenJDK patches
  433. %patch100
  434. # pulseaudio support
  435. %if %{with_pulseaudio}
  436. %patch300
  437. %endif
  438. # ECC fix
  439. %patch400
  440. # Add systemtap patches if enabled
  441. %if %{with_systemtap}
  442. %endif
  443. %patch500
  444. # Remove libraries that are linked
  445. sh %{SOURCE10}
  446. # Extract the rewriter (to rewrite rhino classes)
  447. tar xzf %{SOURCE5}
  448. # Extract systemtap tapsets
  449. %if %{with_systemtap}
  450. tar xf %{SOURCE6}
  451. for file in tapset/*.in; do
  452. OUTPUT_FILE=`echo $file | sed -e s:%{javaver}\.stp\.in$:%{version}-%{release}.stp:g`
  453. sed -e s:@ABS_SERVER_LIBJVM_SO@:%{_jvmdir}/%{sdkdir}/jre/lib/%{archinstall}/server/libjvm.so:g $file > $file.1
  454. # FIXME this should really be %if %{has_client_jvm}
  455. %ifarch %{ix86}
  456. sed -e s:@ABS_CLIENT_LIBJVM_SO@:%{_jvmdir}/%{sdkdir}/jre/lib/%{archinstall}/client/libjvm.so:g $file.1 > $OUTPUT_FILE
  457. %else
  458. sed -e '/@ABS_CLIENT_LIBJVM_SO@/d' $file.1 > $OUTPUT_FILE
  459. %endif
  460. sed -i -e s:@ABS_JAVA_HOME_DIR@:%{_jvmdir}/%{sdkdir}:g $OUTPUT_FILE
  461. sed -i -e s:@INSTALL_ARCH_DIR@:%{archinstall}:g $OUTPUT_FILE
  462. done
  463. %endif
  464. # Pulseaudio
  465. %if %{with_pulseaudio}
  466. tar xzf %{SOURCE9}
  467. %endif
  468. %patch3
  469. %patch4
  470. %if %{debug}
  471. %patch5
  472. %patch6
  473. %endif
  474. %patch106
  475. %patch200
  476. %build
  477. # How many cpu's do we have?
  478. export NUM_PROC=`/usr/bin/getconf _NPROCESSORS_ONLN 2> /dev/null || :`
  479. export NUM_PROC=${NUM_PROC:-1}
  480. # Build IcedTea and OpenJDK.
  481. %ifarch s390x sparc64 alpha %{power64} %{aarch64}
  482. export ARCH_DATA_MODEL=64
  483. %endif
  484. %ifarch alpha
  485. export CFLAGS="$CFLAGS -mieee"
  486. %endif
  487. #CFLAGS="$CFLAGS -fstack-protector-strong"
  488. CFLAGS="$CFLAGS -fstack-protector"
  489. export CFLAGS
  490. # Build the re-written rhino jar
  491. mkdir -p rhino/{old,new}
  492. # Compile the rewriter
  493. (cd rewriter
  494. javac com/redhat/rewriter/ClassRewriter.java
  495. )
  496. # Extract rhino.jar contents and rewrite
  497. (cd rhino/old
  498. jar xf /usr/share/java/rhino.jar
  499. )
  500. java -cp rewriter com.redhat.rewriter.ClassRewriter \
  501. $PWD/rhino/old \
  502. $PWD/rhino/new \
  503. org.mozilla \
  504. sun.org.mozilla
  505. (cd rhino/old
  506. for file in `find -type f -not -name '*.class'` ; do
  507. new_file=../new/`echo $file | sed -e 's#org#sun/org#'`
  508. mkdir -pv `dirname $new_file`
  509. cp -v $file $new_file
  510. sed -ie 's#org\.mozilla#sun.org.mozilla#g' $new_file
  511. done
  512. )
  513. (cd rhino/new
  514. jar cfm ../rhino.jar META-INF/MANIFEST.MF sun
  515. )
  516. export SYSTEM_JDK_DIR=/usr/lib/jvm/java-1.7.0-openjdk
  517. export JDK_TO_BUILD_WITH=${SYSTEM_JDK_DIR}
  518. pushd openjdk >& /dev/null
  519. export ALT_BOOTDIR="$JDK_TO_BUILD_WITH"
  520. # Save old umask as jdk_generic_profile overwrites it
  521. oldumask=`umask`
  522. # Set generic profile
  523. %ifnarch %{jit_arches}
  524. export ZERO_BUILD=true
  525. %endif
  526. export PKGVERSION="vine-%{release}-%{_arch} u%{updatever}-b%{buildver}"
  527. source jdk/make/jdk_generic_profile.sh
  528. # Restore old umask
  529. umask $oldumask
  530. %if %{hsbootstrap}
  531. mkdir bootstrap
  532. make \
  533. DISABLE_INTREE_EC=true \
  534. UNLIMITED_CRYPTO=true \
  535. ANT="/usr/bin/ant" \
  536. DISTRO_NAME="Vine Linux" \
  537. DISTRO_PACKAGE_VERSION="${PKGVERSION}" \
  538. JDK_UPDATE_VERSION=`printf "%02d" %{updatever}` \
  539. JDK_BUILD_NUMBER=b`printf "%02d" %{buildver}` \
  540. JRE_RELEASE_VERSION=%{javaver}_`printf "%02d" %{updatever}`-b`printf "%02d" %{buildver}` \
  541. MILESTONE="fcs" \
  542. ALT_PARALLEL_COMPILE_JOBS="$NUM_PROC" \
  543. HOTSPOT_BUILD_JOBS="$NUM_PROC" \
  544. STATIC_CXX="false" \
  545. RHINO_JAR="$PWD/../rhino/rhino.jar" \
  546. GENSRCDIR="$PWD/generated.build" \
  547. FT2_CFLAGS="`pkg-config --cflags freetype2` " \
  548. FT2_LIBS="`pkg-config --libs freetype2` " \
  549. DEBUG_CLASSFILES="true" \
  550. DEBUG_BINARIES="true" \
  551. STRIP_POLICY="no_strip" \
  552. JAVAC_WARNINGS_FATAL="false" \
  553. INSTALL_LOCATION=%{_jvmdir}/%{sdkdir} \
  554. SYSTEM_GSETTINGS="true" \
  555. BUILD_JAXP=false BUILD_JAXWS=false BUILD_LANGTOOLS=false BUILD_JDK=false BUILD_CORBA=false \
  556. ALT_JDK_IMPORT_PATH=${JDK_TO_BUILD_WITH} ALT_OUTPUTDIR=${PWD}/bootstrap \
  557. %{debugbuild}
  558. export VM_DIR=bootstrap-vm/jre/lib/%{archinstall}/server
  559. cp -dR ${SYSTEM_JDK_DIR}-* bootstrap-vm
  560. rm -vf ${VM_DIR}/libjvm.so
  561. if [ ! -e ${VM_DIR} ] ; then mkdir -p ${VM_DIR}; fi
  562. cp -av bootstrap/hotspot/import/jre/lib/%{archinstall}/server/libjvm.so ${VM_DIR}
  563. export ALT_BOOTDIR=${PWD}/bootstrap-vm
  564. %endif
  565. # ENABLE_FULL_DEBUG_SYMBOLS=0 is the internal HotSpot option
  566. # to turn off the stripping of debuginfo. FULL_DEBUG_SYMBOLS
  567. # does the same for product builds, but is ignored on non-product builds.
  568. make \
  569. DISABLE_INTREE_EC=true \
  570. UNLIMITED_CRYPTO=true \
  571. ANT="/usr/bin/ant" \
  572. DISTRO_NAME="Vine Linux" \
  573. DISTRO_PACKAGE_VERSION="${PKGVERSION}" \
  574. JDK_UPDATE_VERSION=`printf "%02d" %{updatever}` \
  575. JDK_BUILD_NUMBER=b`printf "%02d" %{buildver}` \
  576. JRE_RELEASE_VERSION=%{javaver}_`printf "%02d" %{updatever}`-b`printf "%02d" %{buildver}` \
  577. MILESTONE="fcs" \
  578. ALT_PARALLEL_COMPILE_JOBS="$NUM_PROC" \
  579. HOTSPOT_BUILD_JOBS="$NUM_PROC" \
  580. STATIC_CXX="false" \
  581. RHINO_JAR="$PWD/../rhino/rhino.jar" \
  582. GENSRCDIR="$PWD/generated.build" \
  583. FT2_CFLAGS="`pkg-config --cflags freetype2` " \
  584. FT2_LIBS="`pkg-config --libs freetype2` " \
  585. DEBUG_CLASSFILES="true" \
  586. DEBUG_BINARIES="true" \
  587. STRIP_POLICY="no_strip" \
  588. JAVAC_WARNINGS_FATAL="false" \
  589. INSTALL_LOCATION=%{_jvmdir}/%{sdkdir} \
  590. SYSTEM_GSETTINGS="true" \
  591. %{debugbuild}
  592. popd >& /dev/null
  593. if [ -e $(pwd)/%{buildoutputdir}/j2sdk-image/lib/sa-jdi.jar ]; then
  594. chmod 644 $(pwd)/%{buildoutputdir}/j2sdk-image/lib/sa-jdi.jar;
  595. fi
  596. export JAVA_HOME=$(pwd)/%{buildoutputdir}/j2sdk-image
  597. # Install java-abrt-luncher
  598. mkdir $JAVA_HOME/jre-abrt
  599. mkdir $JAVA_HOME/jre-abrt/bin
  600. mv $JAVA_HOME/jre/bin/java $JAVA_HOME/jre-abrt/bin/java
  601. ln -s %{_jvmdir}/%{sdkdir}/jre/lib $JAVA_HOME/jre-abrt/lib
  602. cat %{SOURCE13} | sed -e s:@JAVA_PATH@:%{_jvmdir}/%{sdkdir}/jre-abrt/bin/java:g -e s:@LIB_DIR@:%{LIBDIR}/libabrt-java-connector.so:g > $JAVA_HOME/jre/bin/java
  603. chmod 755 $JAVA_HOME/jre/bin/java
  604. # Install nss.cfg right away as we will be using the JRE above
  605. cp -a %{SOURCE8} $JAVA_HOME/jre/lib/security/
  606. sed -i -e s:@NSS_LIBDIR@:%{NSS_LIBDIR}:g $JAVA_HOME/jre/lib/security/nss.cfg
  607. # Build pulseaudio and install it to JDK build location
  608. %if %{with_pulseaudio}
  609. pushd pulseaudio
  610. make JAVA_HOME=$JAVA_HOME -f Makefile.pulseaudio
  611. cp -pPRf build/native/libpulse-java.so $JAVA_HOME/jre/lib/%{archinstall}/
  612. cp -pPRf build/pulse-java.jar $JAVA_HOME/jre/lib/ext/
  613. popd
  614. %endif
  615. # Copy tz.properties
  616. echo "sun.zoneinfo.dir=/usr/share/javazi" >> $JAVA_HOME/jre/lib/tz.properties
  617. #remove all fontconfig files. This change should be usptreamed soon
  618. rm -f %{buildoutputdir}/j2re-image/lib/fontconfig*.properties.src
  619. rm -f %{buildoutputdir}/j2re-image/lib/fontconfig*.bfc
  620. rm -f %{buildoutputdir}/j2sdk-image/jre/lib/fontconfig*.properties.src
  621. rm -f %{buildoutputdir}/j2sdk-image/jre/lib/fontconfig*.bfc
  622. rm -f %{buildoutputdir}/lib/fontconfig*.properties.src
  623. rm -f %{buildoutputdir}/lib/fontconfig*.bfc
  624. # Check unlimited policy has been used
  625. $JAVA_HOME/bin/javac -d . %{SOURCE12}
  626. $JAVA_HOME/bin/java TestCryptoLevel
  627. sh %{SOURCE11} ${JAVA_HOME}
  628. %install
  629. rm -rf $RPM_BUILD_ROOT
  630. STRIP_KEEP_SYMTAB=libjvm*
  631. # there used to be and link to soundfont
  632. # will be replaced by fix of http://mail.openjdk.java.net/pipermail/sound-dev/2015-October/000352.html
  633. # once done, and have to go to fedora first. Removed from rhel7 for now
  634. pushd %{buildoutputdir}/j2sdk-image
  635. #install jsa directories so we can owe them
  636. mkdir -p $RPM_BUILD_ROOT%{_jvmdir}/%{jredir}/lib/%{archinstall}/server/
  637. mkdir -p $RPM_BUILD_ROOT%{_jvmdir}/%{jredir}/lib/%{archinstall}/client/
  638. # Install main files.
  639. install -d -m 755 $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir}
  640. cp -a jre-abrt bin include lib src.zip $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir}
  641. install -d -m 755 $RPM_BUILD_ROOT%{_jvmdir}/%{jredir}
  642. cp -a jre/bin jre/lib $RPM_BUILD_ROOT%{_jvmdir}/%{jredir}
  643. cp -a ASSEMBLY_EXCEPTION LICENSE THIRD_PARTY_README $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir}
  644. %ifarch %{jit_arches}
  645. # Install systemtap support files.
  646. install -dm 755 $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir}/tapset
  647. cp -a $RPM_BUILD_DIR/%{uniquesuffix}/tapset/*.stp $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir}/tapset/
  648. install -d -m 755 $RPM_BUILD_ROOT%{tapsetdir}
  649. pushd $RPM_BUILD_ROOT%{tapsetdir}
  650. RELATIVE=$(%{abs2rel} %{_jvmdir}/%{sdkdir}/tapset %{tapsetdir})
  651. ln -sf $RELATIVE/*.stp .
  652. popd
  653. %endif
  654. # Install cacerts symlink.
  655. rm -f $RPM_BUILD_ROOT%{_jvmdir}/%{jredir}/lib/security/cacerts
  656. pushd $RPM_BUILD_ROOT%{_jvmdir}/%{jredir}/lib/security
  657. RELATIVE=$(%{abs2rel} %{_sysconfdir}/pki/java \
  658. %{_jvmdir}/%{jredir}/lib/security)
  659. ln -sf $RELATIVE/cacerts .
  660. popd
  661. # Install extension symlinks.
  662. install -d -m 755 $RPM_BUILD_ROOT%{jvmjardir}
  663. pushd $RPM_BUILD_ROOT%{jvmjardir}
  664. RELATIVE=$(%{abs2rel} %{_jvmdir}/%{jredir}/lib %{jvmjardir})
  665. ln -sf $RELATIVE/jsse.jar jsse-%{version}.jar
  666. ln -sf $RELATIVE/jce.jar jce-%{version}.jar
  667. ln -sf $RELATIVE/rt.jar jndi-%{version}.jar
  668. ln -sf $RELATIVE/rt.jar jndi-ldap-%{version}.jar
  669. ln -sf $RELATIVE/rt.jar jndi-cos-%{version}.jar
  670. ln -sf $RELATIVE/rt.jar jndi-rmi-%{version}.jar
  671. ln -sf $RELATIVE/rt.jar jaas-%{version}.jar
  672. ln -sf $RELATIVE/rt.jar jdbc-stdext-%{version}.jar
  673. ln -sf jdbc-stdext-%{version}.jar jdbc-stdext-3.0.jar
  674. ln -sf $RELATIVE/rt.jar sasl-%{version}.jar
  675. for jar in *-%{version}.jar
  676. do
  677. if [ x%{version} != x%{javaver} ]
  678. then
  679. ln -sf $jar $(echo $jar | sed "s|-%{version}.jar|-%{javaver}.jar|g")
  680. fi
  681. ln -sf $jar $(echo $jar | sed "s|-%{version}.jar|.jar|g")
  682. done
  683. popd
  684. # Install JCE policy symlinks.
  685. install -d -m 755 $RPM_BUILD_ROOT%{_jvmprivdir}/%{uniquesuffix}/jce/vanilla
  686. # Install versioned symlinks.
  687. pushd $RPM_BUILD_ROOT%{_jvmdir}
  688. ln -sf %{jredir} %{jrelnk}
  689. popd
  690. pushd $RPM_BUILD_ROOT%{_jvmjardir}
  691. ln -sf %{sdkdir} %{jrelnk}
  692. popd
  693. # Remove javaws man page
  694. rm -f man/man1/javaws*
  695. # Install man pages.
  696. install -d -m 755 $RPM_BUILD_ROOT%{_mandir}/man1
  697. for manpage in man/man1/*
  698. do
  699. # Convert man pages to UTF8 encoding.
  700. iconv -f ISO_8859-1 -t UTF8 $manpage -o $manpage.tmp
  701. mv -f $manpage.tmp $manpage
  702. install -m 644 -p $manpage $RPM_BUILD_ROOT%{_mandir}/man1/$(basename \
  703. $manpage .1)-%{uniquesuffix}.1
  704. done
  705. # Install demos and samples.
  706. cp -a demo $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir}
  707. mkdir -p sample/rmi
  708. mv bin/java-rmi.cgi sample/rmi
  709. cp -a sample $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir}
  710. popd
  711. # Install Javadoc documentation.
  712. install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}
  713. cp -a %{buildoutputdir}/docs $RPM_BUILD_ROOT%{_javadocdir}/%{uniquejavadocdir}
  714. # Install icons and menu entries.
  715. for s in 16 24 32 48 ; do
  716. install -D -p -m 644 \
  717. openjdk/jdk/src/solaris/classes/sun/awt/X11/java-icon${s}.png \
  718. $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/${s}x${s}/apps/java-%{javaver}.png
  719. done
  720. # Install desktop files.
  721. install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/{applications,pixmaps}
  722. for e in %{SOURCE7} %{SOURCE77} ; do
  723. sed -i "s/#ARCH#/%{_arch}-%{release}/g" $e
  724. sed -i "s|/usr/bin|%{sdkbindir}/|g" $e
  725. desktop-file-install --vendor=%{uniquesuffix} --mode=644 \
  726. --dir=$RPM_BUILD_ROOT%{_datadir}/applications $e
  727. done
  728. # Install /etc/.java/.systemPrefs/ directory
  729. # See https://bugzilla.redhat.com/show_bug.cgi?id=741821
  730. mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/.java/.systemPrefs
  731. # Find JRE directories.
  732. find $RPM_BUILD_ROOT%{_jvmdir}/%{jredir} -type d \
  733. | grep -v jre/lib/security \
  734. | sed 's|'$RPM_BUILD_ROOT'|%dir |' \
  735. > %{name}.files-headless
  736. # Find JRE files.
  737. find $RPM_BUILD_ROOT%{_jvmdir}/%{jredir} -type f -o -type l \
  738. | grep -v jre/lib/security \
  739. | sed 's|'$RPM_BUILD_ROOT'||' \
  740. > %{name}.files.all
  741. #split %{name}.files to %{name}.files-headless and %{name}.files
  742. #see https://bugzilla.redhat.com/show_bug.cgi?id=875408
  743. NOT_HEADLESS=\
  744. "%{_jvmdir}/%{uniquesuffix}/jre/lib/%{archinstall}/libjsoundalsa.so
  745. %{_jvmdir}/%{uniquesuffix}/jre/lib/%{archinstall}/libpulse-java.so
  746. %{_jvmdir}/%{uniquesuffix}/jre/lib/%{archinstall}/libsplashscreen.so
  747. %{_jvmdir}/%{uniquesuffix}/jre/lib/%{archinstall}/xawt/libmawt.so
  748. %{_jvmdir}/%{uniquesuffix}/jre-abrt/lib/%{archinstall}/libjsoundalsa.so
  749. %{_jvmdir}/%{uniquesuffix}/jre-abrt/lib/%{archinstall}/libpulse-java.so
  750. %{_jvmdir}/%{uniquesuffix}/jre-abrt/lib/%{archinstall}/libsplashscreen.so
  751. %{_jvmdir}/%{uniquesuffix}/jre-abrt/lib/%{archinstall}/xawt/libmawt.so"
  752. #filter %{name}.files from %{name}.files.all to %{name}.files-headless
  753. ALL=`cat %{name}.files.all`
  754. for file in $ALL ; do
  755. INLCUDE="NO" ;
  756. for blacklist in $NOT_HEADLESS ; do
  757. #we can not match normally, because rpmbuild will evaluate !0 result as script failure
  758. q=`expr match "$file" "$blacklist"` || :
  759. l=`expr length "$blacklist"` || :
  760. if [ $q -eq $l ]; then
  761. INLCUDE="YES" ;
  762. fi;
  763. done
  764. if [ "x$INLCUDE" = "xNO" ]; then
  765. echo "$file" >> %{name}.files-headless
  766. else
  767. echo "$file" >> %{name}.files
  768. fi
  769. done
  770. # Find demo directories.
  771. find $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir}/demo \
  772. $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir}/sample -type d \
  773. | sed 's|'$RPM_BUILD_ROOT'|%dir |' \
  774. > %{name}-demo.files
  775. # FIXME: remove SONAME entries from demo DSOs. See
  776. # https://bugzilla.redhat.com/show_bug.cgi?id=436497
  777. # Find non-documentation demo files.
  778. find $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir}/demo \
  779. $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir}/sample \
  780. -type f -o -type l | sort \
  781. | grep -v README \
  782. | sed 's|'$RPM_BUILD_ROOT'||' \
  783. >> %{name}-demo.files
  784. # Find documentation demo files.
  785. find $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir}/demo \
  786. $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir}/sample \
  787. -type f -o -type l | sort \
  788. | grep README \
  789. | sed 's|'$RPM_BUILD_ROOT'||' \
  790. | sed 's|^|%doc |' \
  791. >> %{name}-demo.files
  792. # intentionally after the files generation, as it goes to separate package
  793. # Create links which leads to separately installed java-atk-bridge and allow configuration
  794. # links points to java-atk-wrapper - an dependence
  795. pushd $RPM_BUILD_ROOT/%{_jvmdir}/%{jredir}/lib/%{archinstall}
  796. ln -s %{syslibdir}/java-atk-wrapper/libatk-wrapper.so.0 libatk-wrapper.so
  797. popd
  798. pushd $RPM_BUILD_ROOT/%{_jvmdir}/%{jredir}/lib/ext
  799. ln -s %{syslibdir}/java-atk-wrapper/java-atk-wrapper.jar java-atk-wrapper.jar
  800. popd
  801. pushd $RPM_BUILD_ROOT/%{_jvmdir}/%{jredir}/lib/
  802. echo "#Config file to enable java-atk-wrapper" > accessibility.properties
  803. echo "" >> accessibility.properties
  804. echo "assistive_technologies=org.GNOME.Accessibility.AtkWrapper" >> accessibility.properties
  805. echo "" >> accessibility.properties
  806. popd
  807. %pretrans headless -p <lua>
  808. -- see https://bugzilla.redhat.com/show_bug.cgi?id=1038092 for whole issue
  809. local posix = require "posix"
  810. local currentjvm = "%{uniquesuffix}"
  811. local jvmdir = "%{_jvmdir}"
  812. local jvmDestdir = jvmdir
  813. local origname = "%{name}"
  814. local origjavaver = "%{javaver}"
  815. --trasnform substitute names to lua patterns
  816. --all percentages must be doubled for case of RPM escapingg
  817. local name = string.gsub(string.gsub(origname, "%%-", "%%%%-"), "%%.", "%%%%.")
  818. local javaver = string.gsub(origjavaver, "%%.", "%%%%.")
  819. local arch ="%{_arch}"
  820. local debug = false;
  821. local jvms = { }
  822. local caredFiles = {"jre/lib/calendars.properties",
  823. "jre/lib/content-types.properties",
  824. "jre/lib/flavormap.properties",
  825. "jre/lib/logging.properties",
  826. "jre/lib/net.properties",
  827. "jre/lib/psfontj2d.properties",
  828. "jre/lib/sound.properties",
  829. "jre/lib/tz.properties",
  830. "jre/lib/deployment.properties",
  831. "jre/lib/deployment.config",
  832. "jre/lib/security/US_export_policy.jar",
  833. "jre/lib/security/java.policy",
  834. "jre/lib/security/java.security",
  835. "jre/lib/security/local_policy.jar",
  836. "jre/lib/security/nss.cfg,",
  837. "jre/lib/ext"}
  838. function splitToTable(source, pattern)
  839. local i1 = string.gmatch(source, pattern)
  840. local l1 = {}
  841. for i in i1 do
  842. table.insert(l1, i)
  843. end
  844. return l1
  845. end
  846. if (debug) then
  847. print("started")
  848. end;
  849. foundJvms = posix.dir(jvmdir);
  850. if (foundJvms == nil) then
  851. if (debug) then
  852. print("no, or nothing in "..jvmdir.." exit")
  853. end;
  854. return
  855. end
  856. if (debug) then
  857. print("found "..#foundJvms.."jvms")
  858. end;
  859. for i,p in pairs(foundJvms) do
  860. -- regex similar to %{_jvmdir}/%{name}-%{javaver}*%{_arch} bash command
  861. --all percentages must be doubled for case of RPM escapingg
  862. if (string.find(p, name.."%%-"..javaver..".*"..arch) ~= nil ) then
  863. if (debug) then
  864. print("matched: "..p)
  865. end;
  866. if (currentjvm == p) then
  867. if (debug) then
  868. print("this jdk is already installed. exiting lua script")
  869. end;
  870. return
  871. end ;
  872. table.insert(jvms, p)
  873. else
  874. if (debug) then
  875. print("NOT matched: "..p)
  876. end;
  877. end
  878. end
  879. if (#jvms <=0) then
  880. if (debug) then
  881. print("no matching jdk in "..jvmdir.." exit")
  882. end;
  883. return
  884. end;
  885. if (debug) then
  886. print("matched "..#jvms.." jdk in "..jvmdir)
  887. end;
  888. --full names are like java-1.7.0-openjdk-1.7.0.60-2.4.5.1.fc20.x86_64
  889. table.sort(jvms , function(a,b)
  890. -- version-sort
  891. -- split on non word: . -
  892. local l1 = splitToTable(a, "[^%.-]+")
  893. local l2 = splitToTable(b, "[^%.-]+")
  894. for x = 1, math.min(#l1, #l2) do
  895. local l1x = tonumber(l1[x])
  896. local l2x = tonumber(l2[x])
  897. if (l1x ~= nil and l2x ~= nil)then
  898. --if hunks are numbers, go with them
  899. if (l1x < l2x) then return true; end
  900. if (l1x > l2x) then return false; end
  901. else
  902. if (l1[x] < l2[x]) then return true; end
  903. if (l1[x] > l2[x]) then return false; end
  904. end
  905. -- if hunks are equals then move to another pair of hunks
  906. end
  907. return a<b
  908. end)
  909. if (debug) then
  910. print("sorted lsit of jvms")
  911. for i,file in pairs(jvms) do
  912. print(file)
  913. end
  914. end
  915. latestjvm = jvms[#jvms]
  916. for i,file in pairs(caredFiles) do
  917. local SOURCE=jvmdir.."/"..latestjvm.."/"..file
  918. local DEST=jvmDestdir.."/"..currentjvm.."/"..file
  919. if (debug) then
  920. print("going to copy "..SOURCE)
  921. print("to "..DEST)
  922. end;
  923. local stat1 = posix.stat(SOURCE, "type");
  924. if (stat1 ~= nil) then
  925. if (debug) then
  926. print(SOURCE.." exists")
  927. end;
  928. local s = ""
  929. local dirs = splitToTable(DEST, "[^/]+")
  930. for i,d in pairs(dirs) do
  931. if (i == #dirs) then
  932. break
  933. end
  934. s = s.."/"..d
  935. local stat2 = posix.stat(s, "type");
  936. if (stat2 == nil) then
  937. if (debug) then
  938. print(s.." does not exists, creating")
  939. end;
  940. posix.mkdir(s)
  941. else
  942. if (debug) then
  943. print(s.." exists,not creating")
  944. end;
  945. end
  946. end
  947. -- Copy with -a to keep everything intact
  948. local exe = "cp".." -ar "..SOURCE.." "..DEST
  949. if (debug) then
  950. print("executing "..exe)
  951. end;
  952. os.execute(exe)
  953. else
  954. if (debug) then
  955. print(SOURCE.." does not exists")
  956. end;
  957. end
  958. end
  959. %post
  960. update-desktop-database %{_datadir}/applications &> /dev/null || :
  961. /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
  962. exit 0
  963. # FIXME: identical binaries are copied, not linked. This needs to be
  964. # fixed upstream.
  965. %post headless
  966. # The pretrans lua scriptlet prevents an unmodified java.security
  967. # from being replaced via an update. It gets created as
  968. # java.security.rpmnew instead. This invalidates the patch of
  969. # JDK-8061210 of the January 2015 CPU or JDK-8043201 of the
  970. # July 2015 CPU. We fix this via a post scriptlet which runs on updates.
  971. if [ "$1" -gt 1 ]; then
  972. javasecurity="%{_jvmdir}/%{uniquesuffix}/jre/lib/security/java.security"
  973. sum=$(md5sum "${javasecurity}" | cut -d' ' -f1)
  974. # This is the md5sum of an unmodified java.security file
  975. if [ "${sum}" = '567d9244d9ef1ac0e557d05eb0892413' -o \
  976. "${sum}" = '034a9bfa527cbdf58f021ce0e47e22db' ]; then
  977. if [ -f "${javasecurity}.rpmnew" ]; then
  978. mv -f "${javasecurity}.rpmnew" "${javasecurity}"
  979. fi
  980. fi
  981. fi
  982. %ifarch %{jit_arches}
  983. # MetaspaceShared::generate_vtable_methods not implemented for PPC JIT
  984. %ifnarch %{power64}
  985. #see https://bugzilla.redhat.com/show_bug.cgi?id=513605
  986. %{jrebindir}/java -Xshare:dump >/dev/null 2>/dev/null
  987. %endif
  988. %endif
  989. ext=.gz
  990. alternatives \
  991. --install %{_bindir}/java java %{jrebindir}/java %{priority} \
  992. --slave %{_jvmdir}/jre jre %{_jvmdir}/%{jredir} \
  993. --slave %{_jvmjardir}/jre jre_exports %{jvmjardir} \
  994. --slave %{_bindir}/keytool keytool %{jrebindir}/keytool \
  995. --slave %{_bindir}/orbd orbd %{jrebindir}/orbd \
  996. --slave %{_bindir}/pack200 pack200 %{jrebindir}/pack200 \
  997. --slave %{_bindir}/rmid rmid %{jrebindir}/rmid \
  998. --slave %{_bindir}/rmiregistry rmiregistry %{jrebindir}/rmiregistry \
  999. --slave %{_bindir}/servertool servertool %{jrebindir}/servertool \
  1000. --slave %{_bindir}/tnameserv tnameserv %{jrebindir}/tnameserv \
  1001. --slave %{_bindir}/unpack200 unpack200 %{jrebindir}/unpack200 \
  1002. --slave %{_mandir}/man1/java.1$ext java.1$ext \
  1003. %{_mandir}/man1/java-%{uniquesuffix}.1$ext \
  1004. --slave %{_mandir}/man1/keytool.1$ext keytool.1$ext \
  1005. %{_mandir}/man1/keytool-%{uniquesuffix}.1$ext \
  1006. --slave %{_mandir}/man1/orbd.1$ext orbd.1$ext \
  1007. %{_mandir}/man1/orbd-%{uniquesuffix}.1$ext \
  1008. --slave %{_mandir}/man1/pack200.1$ext pack200.1$ext \
  1009. %{_mandir}/man1/pack200-%{uniquesuffix}.1$ext \
  1010. --slave %{_mandir}/man1/rmid.1$ext rmid.1$ext \
  1011. %{_mandir}/man1/rmid-%{uniquesuffix}.1$ext \
  1012. --slave %{_mandir}/man1/rmiregistry.1$ext rmiregistry.1$ext \
  1013. %{_mandir}/man1/rmiregistry-%{uniquesuffix}.1$ext \
  1014. --slave %{_mandir}/man1/servertool.1$ext servertool.1$ext \
  1015. %{_mandir}/man1/servertool-%{uniquesuffix}.1$ext \
  1016. --slave %{_mandir}/man1/tnameserv.1$ext tnameserv.1$ext \
  1017. %{_mandir}/man1/tnameserv-%{uniquesuffix}.1$ext \
  1018. --slave %{_mandir}/man1/unpack200.1$ext unpack200.1$ext \
  1019. %{_mandir}/man1/unpack200-%{uniquesuffix}.1$ext
  1020. for X in %{origin} %{javaver} ; do
  1021. alternatives \
  1022. --install %{_jvmdir}/jre-"$X" \
  1023. jre_"$X" %{_jvmdir}/%{jredir} %{priority} \
  1024. --slave %{_jvmjardir}/jre-"$X" \
  1025. jre_"$X"_exports %{jvmjardir}
  1026. done
  1027. update-alternatives --install %{_jvmdir}/jre-%{javaver}-%{origin} jre_%{javaver}_%{origin} %{_jvmdir}/%{jrelnk} %{priority} \
  1028. --slave %{_jvmjardir}/jre-%{javaver} jre_%{javaver}_%{origin}_exports %{jvmjardir}
  1029. update-desktop-database %{_datadir}/applications &> /dev/null || :
  1030. /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
  1031. exit 0
  1032. %postun
  1033. update-desktop-database %{_datadir}/applications &> /dev/null || :
  1034. if [ $1 -eq 0 ] ; then
  1035. /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
  1036. /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  1037. fi
  1038. exit 0
  1039. %postun headless
  1040. alternatives --remove java %{jrebindir}/java
  1041. alternatives --remove jre_%{origin} %{_jvmdir}/%{jredir}
  1042. alternatives --remove jre_%{javaver} %{_jvmdir}/%{jredir}
  1043. alternatives --remove jre_%{javaver}_%{origin} %{_jvmdir}/%{jrelnk}
  1044. # avoid unnecessary failure
  1045. if [ -e %{_jvmdir}/%{uniquesuffix} ] ; then
  1046. # as lua copied all necessary config files, we do not wont the double rpmnew and rpm.save
  1047. rm -rf %{_jvmdir}/%{uniquesuffix}
  1048. fi
  1049. exit 0
  1050. %posttrans
  1051. /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  1052. %post devel
  1053. ext=.gz
  1054. alternatives \
  1055. --install %{_bindir}/javac javac %{sdkbindir}/javac %{priority} \
  1056. --slave %{_jvmdir}/java java_sdk %{_jvmdir}/%{sdkdir} \
  1057. --slave %{_jvmjardir}/java java_sdk_exports %{_jvmjardir}/%{sdkdir} \
  1058. --slave %{_bindir}/appletviewer appletviewer %{sdkbindir}/appletviewer \
  1059. --slave %{_bindir}/apt apt %{sdkbindir}/apt \
  1060. --slave %{_bindir}/extcheck extcheck %{sdkbindir}/extcheck \
  1061. --slave %{_bindir}/idlj idlj %{sdkbindir}/idlj \
  1062. --slave %{_bindir}/jar jar %{sdkbindir}/jar \
  1063. --slave %{_bindir}/jarsigner jarsigner %{sdkbindir}/jarsigner \
  1064. --slave %{_bindir}/javadoc javadoc %{sdkbindir}/javadoc \
  1065. --slave %{_bindir}/javah javah %{sdkbindir}/javah \
  1066. --slave %{_bindir}/javap javap %{sdkbindir}/javap \
  1067. --slave %{_bindir}/jcmd jcmd %{sdkbindir}/jcmd \
  1068. --slave %{_bindir}/jconsole jconsole %{sdkbindir}/jconsole \
  1069. --slave %{_bindir}/jdb jdb %{sdkbindir}/jdb \
  1070. --slave %{_bindir}/jhat jhat %{sdkbindir}/jhat \
  1071. --slave %{_bindir}/jinfo jinfo %{sdkbindir}/jinfo \
  1072. --slave %{_bindir}/jmap jmap %{sdkbindir}/jmap \
  1073. --slave %{_bindir}/jps jps %{sdkbindir}/jps \
  1074. --slave %{_bindir}/jrunscript jrunscript %{sdkbindir}/jrunscript \
  1075. --slave %{_bindir}/jsadebugd jsadebugd %{sdkbindir}/jsadebugd \
  1076. --slave %{_bindir}/jstack jstack %{sdkbindir}/jstack \
  1077. --slave %{_bindir}/jstat jstat %{sdkbindir}/jstat \
  1078. --slave %{_bindir}/jstatd jstatd %{sdkbindir}/jstatd \
  1079. --slave %{_bindir}/native2ascii native2ascii %{sdkbindir}/native2ascii \
  1080. --slave %{_bindir}/policytool policytool %{sdkbindir}/policytool \
  1081. --slave %{_bindir}/rmic rmic %{sdkbindir}/rmic \
  1082. --slave %{_bindir}/schemagen schemagen %{sdkbindir}/schemagen \
  1083. --slave %{_bindir}/serialver serialver %{sdkbindir}/serialver \
  1084. --slave %{_bindir}/wsgen wsgen %{sdkbindir}/wsgen \
  1085. --slave %{_bindir}/wsimport wsimport %{sdkbindir}/wsimport \
  1086. --slave %{_bindir}/xjc xjc %{sdkbindir}/xjc \
  1087. --slave %{_mandir}/man1/appletviewer.1$ext appletviewer.1$ext \
  1088. %{_mandir}/man1/appletviewer-%{uniquesuffix}.1$ext \
  1089. --slave %{_mandir}/man1/apt.1$ext apt.1$ext \
  1090. %{_mandir}/man1/apt-%{uniquesuffix}.1$ext \
  1091. --slave %{_mandir}/man1/extcheck.1$ext extcheck.1$ext \
  1092. %{_mandir}/man1/extcheck-%{uniquesuffix}.1$ext \
  1093. --slave %{_mandir}/man1/jar.1$ext jar.1$ext \
  1094. %{_mandir}/man1/jar-%{uniquesuffix}.1$ext \
  1095. --slave %{_mandir}/man1/jarsigner.1$ext jarsigner.1$ext \
  1096. %{_mandir}/man1/jarsigner-%{uniquesuffix}.1$ext \
  1097. --slave %{_mandir}/man1/javac.1$ext javac.1$ext \
  1098. %{_mandir}/man1/javac-%{uniquesuffix}.1$ext \
  1099. --slave %{_mandir}/man1/javadoc.1$ext javadoc.1$ext \
  1100. %{_mandir}/man1/javadoc-%{uniquesuffix}.1$ext \
  1101. --slave %{_mandir}/man1/javah.1$ext javah.1$ext \
  1102. %{_mandir}/man1/javah-%{uniquesuffix}.1$ext \
  1103. --slave %{_mandir}/man1/javap.1$ext javap.1$ext \
  1104. %{_mandir}/man1/javap-%{uniquesuffix}.1$ext \
  1105. --slave %{_mandir}/man1/jconsole.1$ext jconsole.1$ext \
  1106. %{_mandir}/man1/jconsole-%{uniquesuffix}.1$ext \
  1107. --slave %{_mandir}/man1/jdb.1$ext jdb.1$ext \
  1108. %{_mandir}/man1/jdb-%{uniquesuffix}.1$ext \
  1109. --slave %{_mandir}/man1/jhat.1$ext jhat.1$ext \
  1110. %{_mandir}/man1/jhat-%{uniquesuffix}.1$ext \
  1111. --slave %{_mandir}/man1/jinfo.1$ext jinfo.1$ext \
  1112. %{_mandir}/man1/jinfo-%{uniquesuffix}.1$ext \
  1113. --slave %{_mandir}/man1/jmap.1$ext jmap.1$ext \
  1114. %{_mandir}/man1/jmap-%{uniquesuffix}.1$ext \
  1115. --slave %{_mandir}/man1/jps.1$ext jps.1$ext \
  1116. %{_mandir}/man1/jps-%{uniquesuffix}.1$ext \
  1117. --slave %{_mandir}/man1/jrunscript.1$ext jrunscript.1$ext \
  1118. %{_mandir}/man1/jrunscript-%{uniquesuffix}.1$ext \
  1119. --slave %{_mandir}/man1/jsadebugd.1$ext jsadebugd.1$ext \
  1120. %{_mandir}/man1/jsadebugd-%{uniquesuffix}.1$ext \
  1121. --slave %{_mandir}/man1/jstack.1$ext jstack.1$ext \
  1122. %{_mandir}/man1/jstack-%{uniquesuffix}.1$ext \
  1123. --slave %{_mandir}/man1/jstat.1$ext jstat.1$ext \
  1124. %{_mandir}/man1/jstat-%{uniquesuffix}.1$ext \
  1125. --slave %{_mandir}/man1/jstatd.1$ext jstatd.1$ext \
  1126. %{_mandir}/man1/jstatd-%{uniquesuffix}.1$ext \
  1127. --slave %{_mandir}/man1/native2ascii.1$ext native2ascii.1$ext \
  1128. %{_mandir}/man1/native2ascii-%{uniquesuffix}.1$ext \
  1129. --slave %{_mandir}/man1/policytool.1$ext policytool.1$ext \
  1130. %{_mandir}/man1/policytool-%{uniquesuffix}.1$ext \
  1131. --slave %{_mandir}/man1/rmic.1$ext rmic.1$ext \
  1132. %{_mandir}/man1/rmic-%{uniquesuffix}.1$ext \
  1133. --slave %{_mandir}/man1/schemagen.1$ext schemagen.1$ext \
  1134. %{_mandir}/man1/schemagen-%{uniquesuffix}.1$ext \
  1135. --slave %{_mandir}/man1/serialver.1$ext serialver.1$ext \
  1136. %{_mandir}/man1/serialver-%{uniquesuffix}.1$ext \
  1137. --slave %{_mandir}/man1/wsgen.1$ext wsgen.1$ext \
  1138. %{_mandir}/man1/wsgen-%{uniquesuffix}.1$ext \
  1139. --slave %{_mandir}/man1/wsimport.1$ext wsimport.1$ext \
  1140. %{_mandir}/man1/wsimport-%{uniquesuffix}.1$ext \
  1141. --slave %{_mandir}/man1/xjc.1$ext xjc.1$ext \
  1142. %{_mandir}/man1/xjc-%{uniquesuffix}.1$ext
  1143. for X in %{origin} %{javaver} ; do
  1144. alternatives \
  1145. --install %{_jvmdir}/java-"$X" \
  1146. java_sdk_"$X" %{_jvmdir}/%{sdkdir} %{priority} \
  1147. --slave %{_jvmjardir}/java-"$X" \
  1148. java_sdk_"$X"_exports %{_jvmjardir}/%{sdkdir}
  1149. done
  1150. update-alternatives --install %{_jvmdir}/java-%{javaver}-%{origin} java_sdk_%{javaver}_%{origin} %{_jvmdir}/%{sdkdir} %{priority} \
  1151. --slave %{_jvmjardir}/java-%{javaver}-%{origin} java_sdk_%{javaver}_%{origin}_exports %{_jvmjardir}/%{sdkdir}
  1152. update-desktop-database %{_datadir}/applications &> /dev/null || :
  1153. /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
  1154. exit 0
  1155. %postun devel
  1156. alternatives --remove javac %{sdkbindir}/javac
  1157. alternatives --remove java_sdk_%{origin} %{_jvmdir}/%{sdkdir}
  1158. alternatives --remove java_sdk_%{javaver} %{_jvmdir}/%{sdkdir}
  1159. alternatives --remove java_sdk_%{javaver}_%{origin} %{_jvmdir}/%{sdkdir}
  1160. update-desktop-database %{_datadir}/applications &> /dev/null || :
  1161. if [ $1 -eq 0 ] ; then
  1162. /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
  1163. /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  1164. fi
  1165. exit 0
  1166. %posttrans devel
  1167. /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  1168. %post javadoc
  1169. alternatives \
  1170. --install %{_javadocdir}/java javadocdir %{_javadocdir}/%{uniquejavadocdir}/api \
  1171. %{priority}
  1172. exit 0
  1173. %postun javadoc
  1174. alternatives --remove javadocdir %{_javadocdir}/%{uniquejavadocdir}/api
  1175. exit 0
  1176. %files -f %{name}.files
  1177. %{_datadir}/icons/hicolor/*x*/apps/java-%{javaver}.png
  1178. # important note, see https://bugzilla.redhat.com/show_bug.cgi?id=1038092 for whole issue
  1179. # all config/norepalce files (and more) have to be declared in pretrans. See pretrans
  1180. %files headless -f %{name}.files-headless
  1181. %defattr(-,root,root,-)
  1182. %doc %{_jvmdir}/%{sdkdir}/ASSEMBLY_EXCEPTION
  1183. %doc %{_jvmdir}/%{sdkdir}/LICENSE
  1184. %doc %{_jvmdir}/%{sdkdir}/THIRD_PARTY_README
  1185. %dir %{_jvmdir}/%{sdkdir}
  1186. %dir %{_jvmdir}/%{sdkdir}/jre/lib/
  1187. %dir %{_jvmdir}/%{sdkdir}/jre/lib/%{archinstall}
  1188. %ifarch x86_64
  1189. %dir %{_jvmdir}/%{sdkdir}/jre/lib/%{archinstall}/xawt
  1190. %endif
  1191. %{_jvmdir}/%{jrelnk}
  1192. %{_jvmjardir}/%{jrelnk}
  1193. %{_jvmprivdir}/*
  1194. %{jvmjardir}
  1195. %dir %{_jvmdir}/%{jredir}/lib/security
  1196. %{_jvmdir}/%{jredir}/lib/security/cacerts
  1197. %config(noreplace) %{_jvmdir}/%{jredir}/lib/security/US_export_policy.jar
  1198. %config(noreplace) %{_jvmdir}/%{jredir}/lib/security/local_policy.jar
  1199. %config(noreplace) %{_jvmdir}/%{jredir}/lib/security/java.policy
  1200. %config(noreplace) %{_jvmdir}/%{jredir}/lib/security/java.security
  1201. %config(noreplace) %{_jvmdir}/%{jredir}/lib/logging.properties
  1202. %{_mandir}/man1/java-%{uniquesuffix}.1*
  1203. %{_mandir}/man1/keytool-%{uniquesuffix}.1*
  1204. %{_mandir}/man1/orbd-%{uniquesuffix}.1*
  1205. %{_mandir}/man1/pack200-%{uniquesuffix}.1*
  1206. %{_mandir}/man1/rmid-%{uniquesuffix}.1*
  1207. %{_mandir}/man1/rmiregistry-%{uniquesuffix}.1*
  1208. %{_mandir}/man1/servertool-%{uniquesuffix}.1*
  1209. %{_mandir}/man1/tnameserv-%{uniquesuffix}.1*
  1210. %{_mandir}/man1/unpack200-%{uniquesuffix}.1*
  1211. %config(noreplace) %{_jvmdir}/%{jredir}/lib/security/nss.cfg
  1212. # removed %%{_jvmdir}/%%{jredir}/lib/audio/
  1213. # see soundfont in %%install
  1214. %ifarch %{jit_arches}
  1215. %attr(664, root, root) %ghost %{_jvmdir}/%{jredir}/lib/%{archinstall}/server/classes.jsa
  1216. %attr(664, root, root) %ghost %{_jvmdir}/%{jredir}/lib/%{archinstall}/client/classes.jsa
  1217. %endif
  1218. %{_jvmdir}/%{jredir}/lib/%{archinstall}/server/
  1219. %{_jvmdir}/%{jredir}/lib/%{archinstall}/client/
  1220. %{_sysconfdir}/.java/
  1221. %{_sysconfdir}/.java/.systemPrefs
  1222. %{_jvmdir}/%{sdkdir}/jre-abrt
  1223. %files devel
  1224. %defattr(-,root,root,-)
  1225. %doc %{_jvmdir}/%{sdkdir}/ASSEMBLY_EXCEPTION
  1226. %doc %{_jvmdir}/%{sdkdir}/LICENSE
  1227. %doc %{_jvmdir}/%{sdkdir}/THIRD_PARTY_README
  1228. %dir %{_jvmdir}/%{sdkdir}/bin
  1229. %dir %{_jvmdir}/%{sdkdir}/include
  1230. %dir %{_jvmdir}/%{sdkdir}/lib
  1231. %ifarch %{jit_arches}
  1232. %dir %{_jvmdir}/%{sdkdir}/tapset
  1233. %endif
  1234. %{_jvmdir}/%{sdkdir}/bin/*
  1235. %{_jvmdir}/%{sdkdir}/include/*
  1236. %{_jvmdir}/%{sdkdir}/lib/*
  1237. %ifarch %{jit_arches}
  1238. %{_jvmdir}/%{sdkdir}/tapset/*.stp
  1239. %endif
  1240. %{_jvmjardir}/%{sdkdir}
  1241. %{_datadir}/applications/*jconsole.desktop
  1242. %{_datadir}/applications/*policytool.desktop
  1243. %{_mandir}/man1/appletviewer-%{uniquesuffix}.1*
  1244. %{_mandir}/man1/apt-%{uniquesuffix}.1*
  1245. %{_mandir}/man1/extcheck-%{uniquesuffix}.1*
  1246. %{_mandir}/man1/idlj-%{uniquesuffix}.1*
  1247. %{_mandir}/man1/jar-%{uniquesuffix}.1*
  1248. %{_mandir}/man1/jarsigner-%{uniquesuffix}.1*
  1249. %{_mandir}/man1/javac-%{uniquesuffix}.1*
  1250. %{_mandir}/man1/javadoc-%{uniquesuffix}.1*
  1251. %{_mandir}/man1/javah-%{uniquesuffix}.1*
  1252. %{_mandir}/man1/javap-%{uniquesuffix}.1*
  1253. %{_mandir}/man1/jconsole-%{uniquesuffix}.1*
  1254. %{_mandir}/man1/jcmd-%{uniquesuffix}.1*
  1255. %{_mandir}/man1/jdb-%{uniquesuffix}.1*
  1256. %{_mandir}/man1/jhat-%{uniquesuffix}.1*
  1257. %{_mandir}/man1/jinfo-%{uniquesuffix}.1*
  1258. %{_mandir}/man1/jmap-%{uniquesuffix}.1*
  1259. %{_mandir}/man1/jps-%{uniquesuffix}.1*
  1260. %{_mandir}/man1/jrunscript-%{uniquesuffix}.1*
  1261. %{_mandir}/man1/jsadebugd-%{uniquesuffix}.1*
  1262. %{_mandir}/man1/jstack-%{uniquesuffix}.1*
  1263. %{_mandir}/man1/jstat-%{uniquesuffix}.1*
  1264. %{_mandir}/man1/jstatd-%{uniquesuffix}.1*
  1265. %{_mandir}/man1/native2ascii-%{uniquesuffix}.1*
  1266. %{_mandir}/man1/policytool-%{uniquesuffix}.1*
  1267. %{_mandir}/man1/rmic-%{uniquesuffix}.1*
  1268. %{_mandir}/man1/schemagen-%{uniquesuffix}.1*
  1269. %{_mandir}/man1/serialver-%{uniquesuffix}.1*
  1270. %{_mandir}/man1/wsgen-%{uniquesuffix}.1*
  1271. %{_mandir}/man1/wsimport-%{uniquesuffix}.1*
  1272. %{_mandir}/man1/xjc-%{uniquesuffix}.1*
  1273. %ifarch %{jit_arches}
  1274. %{tapsetroot}
  1275. %endif
  1276. %files demo -f %{name}-demo.files
  1277. %defattr(-,root,root,-)
  1278. %doc %{_jvmdir}/%{sdkdir}/LICENSE
  1279. %files src
  1280. %defattr(-,root,root,-)
  1281. %doc README.src
  1282. %{_jvmdir}/%{sdkdir}/src.zip
  1283. %files javadoc
  1284. %defattr(-,root,root,-)
  1285. %doc %{_javadocdir}/%{uniquejavadocdir}
  1286. %doc %{buildoutputdir}/j2sdk-image/jre/LICENSE
  1287. %files accessibility
  1288. %{_jvmdir}/%{jredir}/lib/%{archinstall}/libatk-wrapper.so
  1289. %{_jvmdir}/%{jredir}/lib/ext/java-atk-wrapper.jar
  1290. %{_jvmdir}/%{jredir}/lib/accessibility.properties
  1291. %changelog
  1292. * Tue Nov 17 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.7.0.91-2.6.2.1
  1293. - new upstream release.
  1294. - import changes from CentOS7.
  1295. * Mon Jul 14 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.7.0.55-2.4.7.3
  1296. - replaced most of stuff with specfile of RHEL7.
  1297. * Fri May 30 2014 Andrew John Hughes <gnu.andrew@redhat.com> - 1.7.0.55-2.4.7.2
  1298. - Remove NSS patches. Issues with PKCS11 provider mean it shouldn't be enabled.
  1299. - Always setup nss.cfg and depend on nss-devel at build-time to do so.
  1300. - This allows users who wish to use PKCS11+NSS to just add it to java.security.
  1301. - Patches to PKCS11 provider will be included upstream in 2.4.8 (ETA July 2014)
  1302. - Resolves: rhbz#1099565
  1303. * Tue May 20 2014 Jiri Vanek <jvanek@redhat.com> - 1.7.0.55-2.4.7.0.el7
  1304. - bumped to future icedtea-forest 2.4.7
  1305. - updatever set to 55, buildver se to 13, release reset to 0
  1306. - removed upstreamed patch402 gstackbounds.patch
  1307. - removed Requires: rhino, BuildRequires is enough
  1308. - ppc64 repalced by power64 macro
  1309. - patch111 applied as dry-run (6.6 forward port)
  1310. - nss enabled, but notused as default (6.6 forward port)
  1311. - Resolves: rhbz#1099565
  1312. * Fri Apr 04 2014 Jiri Vanek <jvanek@redhat.com> - 1.7.0.51-2.4.5.5.el7
  1313. - added OrderWithRequires on headless where possible
  1314. - Resolves: rhbz#1038092
  1315. * Thu Mar 27 2014 Jiri Vanek <jvanek@redhat.com> - 1.7.0.51-2.4.5.3.el7
  1316. - synced lua script from fedora.
  1317. - Resolves: rhbz#1038092
  1318. * Fri Mar 14 2014 Jiri Vanek <jvanek@redhat.com> - 1.7.0.51-2.4.5.2.el7
  1319. - added fstack-protector-strong to CFLAGS
  1320. - Resolves: rhbz#1070816
  1321. * Thu Mar 06 2014 Jiri Vanek <jvanek@redhat.com> - 1.7.0.51-2.4.5.1.el7
  1322. - diabled NSS. Missuisng 1038092 for it as it is in hurry.
  1323. - Related: rhbz#1038092
  1324. * Thu Jan 30 2014 Jiri Vanek <jvanek@redhat.com> - 1.7.0.51-2.4.5.0.el7
  1325. - updated to icedtea 2.4.5 + sync with f21
  1326. - http://blog.fuseyism.com/index.php/2014/01/29/icedtea-2-4-5-released/
  1327. - removed buildRequires: pulseaudio >= 0.9.11, as not neccessary
  1328. - but kept libs-devel)
  1329. - removed upstreamed or unwonted patches (thanx to gnu_andrew to pointing them out)
  1330. - patch410 1015432.patch (upstreamed)
  1331. - patch411 1029588.patch
  1332. - patch412 zero-x32.diff
  1333. - patch104 java-1.7.0-ppc-zero-jdk.patch
  1334. - patch105 java-1.7.0-ppc-zero-hotspot.patch
  1335. - patch402 gstackbounds.patch and patch403 PStack-808293.patch applied always
  1336. (again thanx to gnu_andrew)
  1337. - merged other gnu_andrew's changes
  1338. - FT2_CFLAGS and FT2_LIBS hardoced values replaced by correct pkg-config calls
  1339. - buildver bumbed to 31
  1340. - added build requires nss-devel
  1341. - removed build requires mercurial
  1342. - added JRE_RELEASE_VERSION and ALT_PARALLEL_COMPILE_JOBS into make call
  1343. - Related: rhbz1038092
  1344. * Tue Jan 28 2014 Daniel Mach <dmach@redhat.com> - 1.7.0.51-2.4.4.1
  1345. - Mass rebuild 2014-01-24
  1346. * Fri Jan 10 2014 Jiri Vanek <jvanek@redhat.com> - 1.7.0.51-2.4.4.0.el7
  1347. - updated to security icedtea 2.4.4
  1348. - icedtea_version set to 2.4.4
  1349. - updatever bumped to 51
  1350. - release reset to 0
  1351. - sync with fedora
  1352. - added and applied patch411 1029588.patch (rh 1029588)
  1353. - added aand applied patch410, 1015432 (rh 1015432)
  1354. - and so removed patch121 FixPPC64StackOverflow.patch
  1355. - added patch412 zero-x32.diff to try to fix zero builds build
  1356. - Resolves: rhbz#1053280
  1357. * Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.7.0.45-2.4.3.5.el7
  1358. - Mass rebuild 2013-12-27
  1359. * Thu Oct 31 2013 Jiri Vanek <jvanek@redhat.com> - 1.7.0.40-2.4.3.4.fel7
  1360. - Removed obsoletes for java-1.6.0-openjdk* , until decided its presence in el7
  1361. - Resolves:rhbz#1018680
  1362. * Thu Oct 31 2013 Jiri Vanek <jvanek@redhat.com> - 1.7.0.40-2.4.3.3.fel7
  1363. - just bumped release, need to confirm, that patch121, FixPPC64StackOverflow.patch
  1364. really works
  1365. - Resolves:rhbz#1018680
  1366. * Wed Oct 16 2013 Jiri Vanek <jvanek@redhat.com> - 1.7.0.40-2.4.3.2.fel7
  1367. - added and applied patch121, FixPPC64StackOverflow.patch
  1368. - all redundant ppc64 strings replaced by power64 macro
  1369. - Resolves:rhbz#1018680
  1370. * Wed Oct 16 2013 Jiri Vanek <jvanek@redhat.com> - 1.7.0.40-2.4.3.1.fel7
  1371. - updated to new CPU sources 2.4.3
  1372. - Resolves:rhbz#1018680
  1373. * Mon Oct 14 2013 Jiri Vanek <jvanek@redhat.com> - 1.7.0.40-2.4.3.0.fel7
  1374. - updated to latest CPU sources 2.4.3
  1375. - Resolves:rhbz#1018680
  1376. * Mon Oct 14 2013 Jiri Vanek <jvanek@redhat.com> - 1.7.0.40-2.4.2.12.fel7
  1377. - jdk splitted to headless and rest
  1378. - Resolves:rhbz#875408
  1379. * Fri Oct 04 2013 Jiri Vanek <jvanek@redhat.com> - 1.7.0.40-2.4.2.11.fel7
  1380. - another tapset fix
  1381. - Resolves:rhbz#875408
  1382. * Fri Oct 04 2013 Jiri Vanek <jvanek@redhat.com> - 1.7.0.40-2.4.2.10.fel7
  1383. - abrt changed to soft dependece
  1384. - Resolves:rhbz#875408
  1385. * Thu Oct 03 2013 Jiri Vanek <jvanek@redhat.com> - 1.7.0.40-2.4.2.9.el7
  1386. - renamed tapset source to be "versioned"
  1387. - improved agent placement
  1388. - Resolves:rhbz#875408
  1389. * Wed Oct 02 2013 Jiri Vanek <jvanek@redhat.com> - 1.7.0.40-2.4.2.8.el7
  1390. - updated tapset to current head (825824)
  1391. - Resolves:rhbz#875408
  1392. * Tue Oct 01 2013 Jiri Vanek <jvanek@redhat.com> - 1.7.0.40-2.4.2.7.el7
  1393. - fixed incorrect _jvmdir/jre-javaver_origin to _jvmdir/jre-javaver-origin link
  1394. - Resolves:rhbz#875408
  1395. * Tue Oct 01 2013 Jiri Vanek <jvanek@redhat.com> - 1.7.0.40-2.4.2.6.el7
  1396. - syncing with f20 - abrt connector
  1397. - Resolves:rhbz#875408
  1398. * Tue Oct 01 2013 Jiri Vanek <jvanek@redhat.com> - 1.7.0.40-2.4.2.3.el7
  1399. - syncing with f19/rhel-6.5
  1400. - Resolves:rhbz#875408
  1401. * Wed Aug 07 2013 Deepak Bhole <dbhole@redhat.com> - 1.7.0.25-2.3.12.3.el7
  1402. - Removed obsoletes for java-1.6.0-openjdk*
  1403. * Fri Jul 26 2013 Jiri Vanek <jvanek@redhat.com> - 1.7.0.25-2.3.12.2.el7
  1404. - refreshed icedtea7-forest 2.3.12
  1405. - fix broken jre_exports alternatives links (thanx to orion bug #979128)
  1406. * Thu Jul 25 2013 Jiri Vanek <jvanek@redhat.com> - 1.7.0.25-2.3.11.0.el7
  1407. - added new alternatives jre-1.7.0-openjdk and java-1.7.0-openjdk
  1408. - finally merged arm and main source tarballs
  1409. - updated to icedtea 2.3.11
  1410. - http://blog.fuseyism.com/index.php/2013/07/25/icedtea-2-3-11-released/
  1411. - added removal of new jre-1.7.0-openjdk and java-1.7.0-openjdk alternatives
  1412. - removed patch 400, rhino for 2.1 and other 2.1 conditional stuff
  1413. - removed patch 103 arm-fixes.patch
  1414. - removed "dir" from files which was duplicating jre in sdk
  1415. * Fri Jul 19 2013 Jiri Vanek <jvanek@redhat.com> - 1.7.0.25-2.3.10.6.el7
  1416. - jrelnk is now just lnk, everything is pointing through jredir
  1417. * Thu Jul 18 2013 Jiri Vanek <jvanek@redhat.com> - 1.7.0.25-2.3.10.6.el7
  1418. - minor cleaning
  1419. - sdklnk removed, and substitued by sdkdir
  1420. * Wed Jul 03 2013 Jiri Vanek <jvanek@redhat.com> - 1.7.0.25-2.3.10.5.fel7
  1421. - moved to xz compression of sources
  1422. - updated 2.1 tarball
  1423. * Thu Jun 27 2013 Jiri Vanek <jvanek@redhat.com> - 1.7.0.25-2.3.10.4.el7
  1424. - Sync with upstream IcedTea7-forest 2.3.10 tag
  1425. - Fixes regressions as introduced with 1.7.0.25-2.3.10.3.el6:
  1426. rhbz#978005, rhbz#977979, rhbz#976693, IcedTeaBZ#1487.
  1427. - all patch commands repalced by patch macro
  1428. - updated java-1.7.0-openjdk-ppc-zero-hotspot.patch to pass without loose patching
  1429. * Wed Jun 19 2013 Jiri Vanek <jvanek@redhat.com> - 1.7.0.25-2.3.10.3.el7
  1430. - update of IcedTea7-forest 2.3.10 tarball
  1431. - removed patch1000 MBeanFix.patch to fix regressions caused by security patches
  1432. * Thu Jun 13 2013 Jiri Vanek <jvanek@redhat.com> - 1.7.0.25-2.3.10.2.el7
  1433. - added patch1000 MBeanFix.patch to fix regressions caused by security patches
  1434. * Thu Jun 13 2013 Jiri Vanek <jvanek@redhat.com> - 1.7.0.25-2.3.10.1.el7
  1435. - arm tarball updated to 2.1.9
  1436. - build bumped to 25
  1437. * Wed Jun 12 2013 Jiri Vanek <jvanek@redhat.com> - 1.7.0.19-2.3.10.0.el7
  1438. - fixed RH972717 by enabling patch110 java-1.7.0-openjdk-nss-icedtea-e9c857dcb964.patch
  1439. - temporarly swithced to intree lcms as it have security fixes (patch 500)
  1440. - added GENSRCDIR="$PWD/generated.build" to be able to
  1441. - removed (build)requires lcms2(-devel)
  1442. - Updated to latest IcedTea7-forest 2.3.10
  1443. * Wed Jun 05 2013 Jiri Vanek <jvanek@redhat.com> - 1.7.0.19-2.3.9.14.fc19
  1444. - Added client/server directories so they can be owned
  1445. - Renamed patch 107 to 200
  1446. - Added nss support from 6.5
  1447. - Added fix for RH857717, owned /etc/.java/ and /etc/.java/.systemPrefs
  1448. - Removed ant-nodeps, should not be needed
  1449. * Tue May 28 2013 Jiri Vanek <jvanek@redhat.com> - 1.7.0.19-2.3.9.13.el7
  1450. - javadoc put into fully versioned directory, but without arch (to be kept noarch)
  1451. - uniquejavadocdir
  1452. - updated to latest 2.3.9 tarball - fixing the rhbz#967436
  1453. * Mon May 27 2013 Omair Majid <omajid@redhat.com> - 1.7.0.19-2.3.9.12.el7
  1454. - Allowed multiple OpenJDKs to be installed in parallel
  1455. - Removed archname
  1456. - Added arch to all, not only multilib arches
  1457. - uniquesuffix is now holding fully versioned name
  1458. - Intorduced source11 remove-buildids.sh
  1459. * Fri May 17 2013 Omair Majid <omajid@redhat.com> - 1.7.0.19-2.3.9.12.el7
  1460. - Replace %{name} with %{uniquesuffix} where it's used as a unique suffix.
  1461. * Thu May 16 2013 Jiri Vanek <jvanek@redhat.com>
  1462. - added variable arm_arches as restriction to some cases of not jit_arches
  1463. * Tue May 14 2013 Jiri Vanek <jvanek@redhat.com>
  1464. - patch402 gstackbounds.patch applied only to jit arches
  1465. - patch403 PStack-808293.patch likewise
  1466. * Mon May 13 2013 Jiri Vanek <jvanek@redhat.com>
  1467. - initial, not buildable, sync with f19
  1468. * Tue Mar 12 2013 Daisuke SUZUKI <daisuke@linux.or.jp> 1.7.0.9-2.3.8.1
  1469. - update to icedtea7 2.3.8
  1470. * Sun Jul 22 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 1.7.0.5-2.2.1.1
  1471. - initial build for Vine Linux
  1472. * Mon Jul 09 2012 Deepak Bhole <dbhole@redhat.com> - 1.7.0.5-2.2.1.fc18.9
  1473. - Added support to build older (2.1.1/u3/hs22) version on non-jit (secondary)
  1474. arches
  1475. * Wed Jun 13 2012 jiri Vanek <jvanek@redhat.com> - 1.7.0.3-2.2.1fc18.8
  1476. - Fixed broken provides sections
  1477. - Changed java-devel requirement to be self's devel (java-1.7.0-openjdk-devel)
  1478. * Mon Jun 11 2012 jiri Vanek <jvanek@redhat.com> - 1.7.0.3-2.2.1fc18.7
  1479. - Used newly prepared tarball with security fixes
  1480. - Bump to icedtea7-forest-2.2.1
  1481. - _mandir/man1/jcmd-name.1 added to alternatives
  1482. - Updated rhino.patch
  1483. - Modified partially upstreamed patch302 - systemtap.patch
  1484. - Temporarly disabled patch102 - java-1.7.0-openjdk-size_t.patch
  1485. - Removed already upstreamed patches 104,107,108,301
  1486. - java-1.7.0-openjdk-arm-ftbfs.patch
  1487. - java-1.7.0-openjdk-system-zlib.patch
  1488. - java-1.7.0-openjdk-remove-mimpure-opt.patch
  1489. - systemtap-alloc-size-workaround.patch
  1490. - patch 105 (java-1.7.0-openjdk-ppc-zero-jdk.patch) have become 104
  1491. - patch 106 (java-1.7.0-openjdk-ppc-zero-hotspot.patch) have become 105
  1492. - Added build requires zip, which was untill now dependence of dependence
  1493. - Access gnome brridge jar forced to be 644
  1494. * Fri May 25 2012 Deepak Bhole <dbhole@redhat.com> - 1.7.0.3-2.1.fc17.7
  1495. - Miscellaneous fixes brought in from RHEL branch
  1496. - Resolves: rhbz#825255: Added ALT_STRIP_POLICY so that debug info is not stripped
  1497. - Moved Patch #7 (usage of system zlib) to #107
  1498. * Tue May 01 2012 Deepak Bhole <dbhole@redhat.com> - 1.7.0.3-2.1.fc17.6
  1499. - Removed VisualVM requirements
  1500. - Obsoleted java-1.6.0-openjdk*
  1501. - Added BR for zip
  1502. * Mon Mar 26 2012 Deepak Bhole <dbhole@redhat.com> - 1.7.0.3-2.1.fc17.5
  1503. - Added SystemTap fixes by Mark Wielaard
  1504. * Sat Mar 24 2012 Dan Horák <dan[at]danny.cz>> - 1.7.0.3-2.1.fc17.4
  1505. - update paths in the ppc patches, add missing snippet
  1506. * Wed Mar 21 2012 Deepak Bhole <dbhole@redhat.com> - 1.7.0.3-2.1.fc17.3
  1507. - Reverted fix for rhbz#740762
  1508. - Fixed PPC/PPC64 build (rh804136) -- added patches from Chris Phillips
  1509. - Moved OpenJDK specific patches to 1XX series
  1510. * Mon Mar 12 2012 Deepak Bhole <dbhole@redhat.com> - 1.7.0.3-2.1.fc17.2
  1511. - Resolved rhbz#740762: java.library.path is missing some paths
  1512. - Unified spec file for x86, x86_64, ARM and s390
  1513. - Integrated changes from Dan Horák <dhorak@redhat.com> for Zero/s390
  1514. - Integrated changes from Chris Phillips <chphilli@redhat.com> for Zero/ARM
  1515. * Fri Feb 24 2012 Deepak Bhole <dbhole@redhat.com> - 1.7.0.3-2.1.fc17.1
  1516. - Added flag so that debuginfo is built into classfiles (rhbz# 796400)
  1517. - Updated rhino.patch to build scripting support (rhbz# 796398)
  1518. * Tue Feb 14 2012 Deepak Bhole <dbhole@redhat.com> - 1.7.0.3-2.1
  1519. - Updated to OpenJDK7u3/IcedTea7 2.1
  1520. - Security fixes:
  1521. - S7112642, CVE-2012-0497: Incorrect checking for graphics rendering object
  1522. - S7082299, CVE-2011-3571: AtomicReferenceArray insufficient array type check
  1523. - S7110687, CVE-2012-0503: Unrestricted use of TimeZone.setDefault
  1524. - S7110700, CVE-2012-0505: Incomplete info in the deserialization exception
  1525. - S7110683, CVE-2012-0502: KeyboardFocusManager focus stealing
  1526. - S7088367, CVE-2011-3563: JavaSound incorrect bounds check
  1527. - S7126960, CVE-2011-5035: Add property to limit number of request headers to the HTTP Server
  1528. - S7118283, CVE-2012-0501: Off-by-one bug in ZIP reading code
  1529. - S7110704, CVE-2012-0506: CORBA fix
  1530. - Add patch to fix compilation with GCC 4.7
  1531. * Tue Nov 15 2011 Deepak Bhole <dbhole@redhat.com> - 1.7.0.1-2.0.3
  1532. - Added patch to fix bug in jdk_generic_profile.sh
  1533. - Compile with generic profile to use system libraries
  1534. - Made remove-intree-libraries.sh more robust
  1535. - Added lcms requirement
  1536. - Added patch to fix glibc name clash
  1537. - Updated java version to include -icedtea
  1538. * Sun Nov 06 2011 Deepak Bhole <dbhole@redhat.com> - 1.7.0.1-2.0.2
  1539. - Added missing changelog entry
  1540. * Sun Nov 06 2011 Deepak Bhole <dbhole@redhat.com> - 1.7.0.1-2.0.1
  1541. - Updated to IcedTea 2.0 tag in the IcedTea OpenJDK7 forest
  1542. - Removed obsoleted patches
  1543. - Added system timezone support
  1544. - Revamp version/release naming scheme to make it proper
  1545. - Security fixes
  1546. - S7000600, CVE-2011-3547: InputStream skip() information leak
  1547. - S7019773, CVE-2011-3548: mutable static AWTKeyStroke.ctor
  1548. - S7023640, CVE-2011-3551: Java2D TransformHelper integer overflow
  1549. - S7032417, CVE-2011-3552: excessive default UDP socket limit under SecurityManager
  1550. - S7046823, CVE-2011-3544: missing SecurityManager checks in scripting engine
  1551. - S7055902, CVE-2011-3521: IIOP deserialization code execution
  1552. - S7057857, CVE-2011-3554: insufficient pack200 JAR files uncompress error checks
  1553. - S7064341, CVE-2011-3389: HTTPS: block-wise chosen-plaintext attack against SSL/TLS (BEAST)
  1554. - S7070134, CVE-2011-3558: HotSpot crashes with sigsegv from PorterStemmer
  1555. - S7077466, CVE-2011-3556: RMI DGC server remote code execution
  1556. - S7083012, CVE-2011-3557: RMI registry privileged code execution
  1557. - S7096936, CVE-2011-3560: missing checkSetFactory calls in HttpsURLConnection
  1558. * Mon Aug 29 2011 Deepak Bhole <dbhole@redhat.com> - 1.7.0.0-0.1.20110823.1
  1559. - Provide a "7" version of items to enfore F-16 policy of no Java 7 builds
  1560. - Resolves: rhbz#728706, patch from Ville Skyttä <ville.skytta at iki dot fi>
  1561. * Fri Aug 05 2011 Deepak Bhole <dbhole@redhat.com> - 1.7.0.0-0.1.20110803
  1562. - Use a newer snapshot and forest on classpath.org rather than on openjdk.net
  1563. - Added in-tree-removal script to remove libraries that we manually link
  1564. - Updated snapshots
  1565. - Added DISTRO_NAME and FreeType header/lib locations
  1566. - Removed application of patch100 and patch 113 (now in forest)
  1567. * Wed Aug 03 2011 Deepak Bhole <dbhole@redhat.com> - 1.7.0.0-0.1.20110729
  1568. - Initial build from java-1.6.0-openjdk RPM