Search
j0ke.net Open Build Service
>
Projects
>
Java
>
java-1_6_0-sun
> java-1_6_0-sun.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File java-1_6_0-sun.spec of Package java-1_6_0-sun (Revision 2)
Currently displaying revision
2
,
show latest
# # spec file for package java-1_6_0-sun (Version 1.6.0.u4) # # Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild # usedforbuild aaa_base acl attr audit-libs autoconf automake bash binutils bzip2 coreutils cpio cpp cpp42 cracklib cvs desktop-translations diffutils fdupes file filesystem fillup findutils gawk gcc gcc42 gdbm gettext gettext-devel glibc glibc-devel glibc-locale grep groff gzip info insserv jpackage-utils less libacl libattr libbz2-1 libbz2-devel libdb-4_5 libgcc42 libgomp42 libltdl-3 libmudflap42 libreadline5 libstdc++42 libtool libuuid1 libvolume_id libxcrypt libzio linux-kernel-headers m4 make man mktemp ncurses net-tools netcfg pam pam-modules patch perl perl-base permissions popt rpm sed sysvinit tar texinfo timezone unzip update-alternatives update-desktop-files util-linux zlib Name: java-1_6_0-sun BuildRequires: fdupes jpackage-utils unzip update-alternatives update-desktop-files %define section non-free %define origin sun %define priority 1605 %define javamajver 1.6.0 %define javaminver 5 %define toplevel_dir jdk%{javamajver}_0%{javaminver} %define suse_release %{nil} %define javaver %{javamajver}.u%{javaminver}%{suse_release} %define cvsver 1_6_0 %define buildver 0 %define cvsversion %{cvsver}_%{buildver} #define cvsversion %{cvsver} %define javaws_ver %{javaver} %define javaws_version %{cvsversion} %define sdklnk java-%{javaver}-%{origin} %define jrelnk jre-%{javaver}-%{origin} %define sdkdir java-%{javaver}-sun-%{version} %define demodir %{_jvmdir}/%{sdkdir}/demo %define jredir %{sdkdir}/jre %define sdkbindir %{_jvmdir}/%{sdklnk}/bin %define sdklibdir %{_jvmdir}/%{sdklnk}/lib %define jrebindir %{_jvmdir}/%{jrelnk}/bin %define jvmjardir %{_jvmjardir}/java-%{javaver}-sun-%{version} %define x11bindir %{_prefix}/X11R6/bin %define x11encdir %{_prefix}/X11R6/lib/X11/fonts/encodings %define fontconfigdir %{_sysconfdir}/fonts %define fontdir %{_datadir}/fonts/java %define xsldir %{_datadir}/xml/%{name}-%{version} %ifarch %ix86 %define pluginsdir %{_libdir}/browser-plugins %define pluginpath %{_jvmdir}/%{jredir}/plugin/i386/ns7 %define pluginname libjavaplugin_oji.so %endif %define cgibindir %{_var}/www/cgi-bin # Avoid RPM 4.2+'s internal dep generator, it may produce bogus # Provides/Requires here. Version: 1.6.0.u5 Release: 0.1 Summary: Java(TM) 6 Runtime Environment License: Any commercial Group: Development/Languages/Java Url: https://jdk-distros.dev.java.net/developer.html Source0: jdk-6u%{javaminver}-linux-i586.bin NoSource: 0 Source1: jdk-6u%{javaminver}-linux-x64.bin NoSource: 1 #Source1: %{name}-register-java-fonts.xsl #Source2: %{name}-unregister-java-fonts.xsl Source3: fontconfig.SuSE.properties Source4: README.SUSE.EARLY_RELEASE Source5: wrapper-script Source100: tzupdater-1.3.3-2007k.zip NoSource: 100 %define tzupdate true Provides: jre-%{javaver}-%{origin} = %{version}-%{release} Provides: jre-%{origin} = %{version}-%{release} Provides: jre-%{javaver}, java-%{javaver}, jre = %{javaver} Provides: java-%{origin} = %{version}-%{release} Provides: java = %{javaver} Requires: update-alternatives Requires: jpackage-utils >= 1.7.0 Conflicts: kaffe ExclusiveArch: %ix86 x86_64 BuildRoot: %{_tmppath}/%{name}-%{version}-build %ifarch %ix86 Provides: javaws = %{javaws_ver} %endif Provides: jndi = %{javaver}, jndi-ldap = %{javaver} Provides: jndi-cos = %{javaver}, jndi-rmi = %{javaver} Provides: jndi-dns = %{javaver} Provides: jaas = %{javaver} Provides: jsse = %{javaver} Provides: jce = %{javaver} Provides: jdbc-stdext = 3.0, jdbc-stdext = %{javaver} Provides: java-sasl = %{javaver} Provides: jre1.1.x jre1.2.x jre1.3.x jre1.4.x jre1.5.x jre1.6.x # 32-bit versus 64-bit specific provides: %ifarch %ix86 ppc s390 %define bits 32 %endif %ifarch x86_64 ia64 s390x %define bits 64 %endif Provides: jre-%{javaver}-%{origin}-%{bits} = %{version}-%{release} Provides: jre-%{javaver}-%{origin}-%{bits} = %{version}-%{release} Provides: jre-%{origin}-%{bits} = %{version}-%{release} Provides: jre-%{javaver}-%{bits}, java-%{javaver}-%{bits} Provides: jre-%{bits} = %{javaver} Provides: java-%{origin}-%{bits} = %{version}-%{release} Provides: java-%{bits} = %{javaver} Provides: jndi-%{bits}, jdbc-stdext-%{bits} Obsoletes: java2-jre < 1.4.2-150 Provides: java2-jre = 1.6.0 PreReq: update-alternatives %ifarch %ix86 Obsoletes: javaws-menu %endif Provides: j2re = 1.6.0 %description Java(TM) 6 Runtime Environment The Java(TM) 6 Runtime Environment contains the Java virtual machine, runtime class libraries, and Java application launcher that are necessary to run programs written in the Java progamming language. It is not a development environment and does not contain development tools such as compilers and debuggers. For development tools, see the java-1.6.0-sun-devel package. The Java 6 Runtime Environment is intended for software developers and vendors who wish to redistribute their applications. %debug_package %package devel Summary: Java(TM) 6 SDK, Standard Edition Group: Development/Languages/Java Requires: update-alternatives Provides: java-sdk-%{javaver}-%{origin} = %{version}-%{release} Provides: java-sdk-%{origin} = %{version}-%{release} Provides: java-sdk-%{javaver}, java-sdk = %{javaver} Provides: java-devel-%{origin} = %{version}-%{release} Provides: java-%{javaver}-devel, java-devel = %{javaver} Requires: %{name} = %{version}-%{release} Requires: jre-%{javaver}-%{origin}-%{bits} = %{version}-%{release} Provides: j2sdk = 1.6.0 %description devel The Java 6 SDK is a development environment for building applications, applets, and components using the Java programming language. The Java 6 SDK includes tools useful for developing and testing programs written in the Java programming language and running on the Java platform. These tools are designed to be used from the command line. Except for the appletviewer, these tools do not provide a graphical user interface. %if ! 0%{?opensuse_bs} %package src Summary: Source files for java-1_6_0-sun Group: Development/Languages/Java Requires: %{name} = %{version}-%{release} Requires: jre-%{javaver}-%{origin}-%{bits} = %{version}-%{release} %description src This package contains the sources of all classes that make up the Java 6 Standard Edition API, as provided by Sun. %endif %package demo Summary: Demonstration files for java-1_6_0-sun Group: Development/Languages/Java Requires: %{name} = %{version}-%{release} Requires: jre-%{javaver}-%{origin}-%{bits} = %{version}-%{release} # Without this a requirement on libjava_crw_demo_g.so is added which # is not in the main java package. libjava_crw_demo.so is but not "_g". AutoReq: 0 %description demo This package contains demonstration files for java-1_6_0-sun. %ifarch %ix86 %package plugin Summary: Browser plugin files for java-1_6_0-sun Group: Development/Languages/Java Requires: %{name} = %{version}-%{release} Requires: jre-%{javaver}-%{origin}-%{bits} = %{version}-%{release} Requires: %{_bindir}/find, sed Provides: java-plugin = %{javaver}, java-%{javaver}-plugin = %{version} Conflicts: java-%{javaver}-ibm-plugin, java-%{javaver}-blackdown-plugin Conflicts: java-%{javaver}-bea-plugin Obsoletes: java-1.3.1-plugin, java-1.4.0-plugin, java-1.4.1-plugin, java-1.4.2-plugin, java-1.5.0-plugin Provides: java-1.3.1-plugin, java-1.4.0-plugin, java-1.4.1-plugin, java-1.4.2-plugin, java-1.5.0-plugin, java-1.6.0-plugin Requires(post): update-alternatives %description plugin This package contains browser plugin files for java-1_6_0-sun. Note: this package supports browsers built with GCC 3.2 and later %endif %package alsa Summary: ALSA support for java-1_6_0-sun Group: Development/Languages/Java Requires: %{name} = %{version}-%{release} Requires: jre-%{javaver}-%{origin}-%{bits} = %{version}-%{release} %description alsa This package contains Advanced Linux Sound Architecture (ALSA) support libraries for java-1_6_0-sun. %package jdbc Summary: JDBC/ODBC bridge driver for java-1_6_0-sun Group: Development/Languages/Java AutoReq: 0 Requires: %{name} = %{version}-%{release} Requires: jre-%{javaver}-%{origin}-%{bits} = %{version}-%{release} Requires: %{_libdir}/libodbc.so, %{_libdir}/libodbcinst.so Provides: java-jdbc = %{version} %description jdbc This package contains the JDBC/ODBC bridge driver for java-1_6_0-sun. %prep rm -rf $RPM_BUILD_DIR/%{toplevel_dir} export MORE=10000 %ifarch %ix86 sh %{SOURCE0} --accept-license --unpack %endif %ifarch x86_64 sh %{SOURCE1} --accept-license --unpack %endif %setup -T -D -n %{toplevel_dir} chmod -R go=u-w * chmod -R u+w * cp %{SOURCE4} . if [ "%tzupdate" = "true" ] then unzip %{SOURCE100} ./bin/java -jar tzupdater-1.3.3-2007k/tzupdater.jar -v -u fi %build # Nope. %install rm -rf $RPM_BUILD_ROOT export NO_BRP_CHECK_BYTECODE_VERSION="true" for file in jre/bin/java bin/java jre/bin/ControlPanel bin/appletviewer do if [ -e $file ] then cp $file{,.bin} cp %{SOURCE5} $file fi done %ifarch %ix86 # fix up ControlPanel APPHOME and bin locations perl -p -i -e 's|APPHOME=.*|APPHOME=%{_jvmdir}/%{jredir}|' jre/bin/ControlPanel perl -p -i -e 's|/usr/bin/||g' jre/bin/ControlPanel # fix up (create new) HtmlConverter cat > bin/HtmlConverter << EOF %{jrebindir}/java -jar %{sdklibdir}/htmlconverter.jar $* EOF # fix up java-rmi.cgi PATH perl -p -i -e 's|PATH=.*|PATH=%{jrebindir}|' bin/java-rmi.cgi # XXX: what's that? # install java-rmi-cgi #install -D -m 755 bin/java-rmi.cgi $RPM_BUILD_ROOT%{cgibindir}/java-rmi-%{version}.cgi %endif # main files install -d -m 755 $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir} cp -a bin include lib $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir} %if ! 0%{?opensuse_bs} cp -a src.zip $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir} %endif install -d -m 755 $RPM_BUILD_ROOT%{_jvmdir}/%{jredir} # extensions handling install -d -m 755 $RPM_BUILD_ROOT%{jvmjardir} pushd $RPM_BUILD_ROOT%{jvmjardir} ln -s %{_jvmdir}/%{jredir}/lib/jsse.jar jsse-%{version}.jar ln -s %{_jvmdir}/%{jredir}/lib/jce.jar jce-%{version}.jar ln -s %{_jvmdir}/%{jredir}/lib/rt.jar jndi-%{version}.jar ln -s %{_jvmdir}/%{jredir}/lib/rt.jar jndi-ldap-%{version}.jar ln -s %{_jvmdir}/%{jredir}/lib/rt.jar jndi-cos-%{version}.jar ln -s %{_jvmdir}/%{jredir}/lib/rt.jar jndi-rmi-%{version}.jar ln -s %{_jvmdir}/%{jredir}/lib/rt.jar jaas-%{version}.jar ln -s %{_jvmdir}/%{jredir}/lib/rt.jar jdbc-stdext-%{version}.jar ln -s jdbc-stdext-%{version}.jar jdbc-stdext-3.0.jar ln -s %{_jvmdir}/%{jredir}/lib/rt.jar sasl-%{version}.jar for jar in *-%{version}.jar ; do if [ x%{version} != x%{javaver} ]; then ln -fs ${jar} $(echo $jar | sed "s|-%{version}.jar|-%{javaver}.jar|g") fi ln -fs ${jar} $(echo $jar | sed "s|-%{version}.jar|.jar|g") done popd # rest of the jre cp -a jre/bin jre/lib $RPM_BUILD_ROOT%{_jvmdir}/%{jredir} install -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_jvmdir}/%{jredir}/lib %ifarch %ix86 cp -a jre/javaws jre/plugin $RPM_BUILD_ROOT%{_jvmdir}/%{jredir} %endif install -d -m 755 $RPM_BUILD_ROOT%{_jvmdir}/%{jredir}/lib/endorsed # jce policy file handling install -d -m 755 $RPM_BUILD_ROOT%{_jvmprivdir}/%{name}/jce/vanilla for file in local_policy.jar US_export_policy.jar; do mv $RPM_BUILD_ROOT%{_jvmdir}/%{jredir}/lib/security/$file \ $RPM_BUILD_ROOT%{_jvmprivdir}/%{name}/jce/vanilla # for ghosts touch $RPM_BUILD_ROOT%{_jvmdir}/%{jredir}/lib/security/$file done # versionless symlinks pushd $RPM_BUILD_ROOT%{_jvmdir} ln -s %{jredir} %{jrelnk} ln -s %{sdkdir} %{sdklnk} popd pushd $RPM_BUILD_ROOT%{_jvmjardir} ln -s %{sdkdir} %{jrelnk} ln -s %{sdkdir} %{sdklnk} popd %ifarch %ix86 install -dm 755 $RPM_BUILD_ROOT%{_datadir}/applications install -Dpm 644 jre/plugin/desktop/sun_java.png \ $RPM_BUILD_ROOT%{_datadir}/pixmaps/sun-java-%{version}-%{release}.png cat <<EOF > $RPM_BUILD_ROOT%{_datadir}/applications/jpackage-%{name}-ControlPanel.desktop [Desktop Entry] Name=Sun Java %{version} Java Plug-in Control Panel GenericName=Java Plugin Control Panel Comment=Sun Java %{version} Java Plug-in Control Panel Exec=%{_jvmdir}/%{jredir}/bin/ControlPanel Icon=sun-java-%{version}-%{release}.png Terminal=false Type=Application Encoding=UTF-8 EOF %suse_update_desktop_file -r $RPM_BUILD_ROOT%{_datadir}/applications/jpackage-%{name}-ControlPanel.desktop Java System SystemSetup # menu entry for web start (reuse plugin control panel icon) cat <<EOF > $RPM_BUILD_ROOT%{_datadir}/applications/jpackage-%{name}-webstart.desktop [Desktop Entry] Name=Sun Java %{version} Java Web Start GenericName=Java Web Start Comment=Java Web Start Application Manager Exec=%{_jvmdir}/%{jredir}/javaws/javaws Icon=sun-java-%{version}-%{release}.png Terminal=false Type=Application Encoding=UTF-8 Categories=Application;System;Java;X-JPackage; EOF chmod 644 $RPM_BUILD_ROOT%{_datadir}/applications/jpackage-%{name}-webstart.desktop %suse_update_desktop_file -r $RPM_BUILD_ROOT%{_datadir}/applications/jpackage-%{name}-webstart.desktop Java System Monitor %endif # man pages install -d -m 755 $RPM_BUILD_ROOT%{_mandir}/man1 for manpage in man/man1/*; do install -m 644 -p $manpage $RPM_BUILD_ROOT%{_mandir}/man1/`basename $manpage .1`-%{name}.1 done # demo install -d -m 755 $RPM_BUILD_ROOT%{demodir} cp -a demo/* $RPM_BUILD_ROOT%{demodir} # Most of this shamelessly stolen from redhat's kdebase-2.2.2 specfile find $RPM_BUILD_ROOT%{_jvmdir}/%{jredir} -type d \ | sed 's|'$RPM_BUILD_ROOT'|%dir |' > %{name}-%{version}-all.files find $RPM_BUILD_ROOT%{_jvmdir}/%{jredir} -type f -o -type l \ | sed 's|'$RPM_BUILD_ROOT'||' >> %{name}-%{version}-all.files %ifarch %ix86 grep plugin %{name}-%{version}-all.files | sort \ > %{name}-%{version}-plugin.files %endif grep Jdbc %{name}-%{version}-all.files | sort \ > %{name}-%{version}-jdbc.files grep -F alsa.so %{name}-%{version}-all.files | sort \ > %{name}-%{version}-alsa.files cat %{name}-%{version}-all.files \ | grep -v plugin \ | grep -v Jdbc \ | grep -v lib/fonts \ | grep -v "\/demo\/" \ | grep -vF alsa.so \ | grep -v jre/lib/security \ > %{name}-%{version}.files # hardlink duplicates: %fdupes $RPM_BUILD_ROOT JAR_EXECUTABLE=$(readlink -f $(find %{_builddir} -name "jar")) find $RPM_BUILD_ROOT \( -name "*.jar" -a -type f -a ! -empty \) -exec $JAR_EXECUTABLE -i {} \; %clean rm -rf $RPM_BUILD_ROOT %post # set link to javaws ... remove old link, as older versions had a directory as a target %ifarch %ix86 if [ -e /usr/bin/javaws ] then rm -f /usr/bin/javaws fi ln -sf /etc/alternatives/javaws /usr/bin/javaws %endif ext= [ -f %{_mandir}/man1/java-%{name}.1.bz2 ] && ext=".bz2" [ -f %{_mandir}/man1/java-%{name}.1.gz ] && ext=".gz" update-alternatives --install %{_bindir}/java java %{jrebindir}/java %{priority} \ %ifarch %ix86 --slave %{_bindir}/ControlPanel ControlPanel %{jrebindir}/ControlPanel \ --slave %{_datadir}/javaws javaws %{jrebindir}/javaws \ %endif --slave %{_jvmdir}/jre jre %{_jvmdir}/%{jrelnk} \ --slave %{_jvmjardir}/jre jre_exports %{_jvmjardir}/%{jrelnk} \ --slave %{_bindir}/keytool keytool %{jrebindir}/keytool \ --slave %{_bindir}/orbd orbd %{jrebindir}/orbd \ --slave %{_bindir}/policytool policytool %{jrebindir}/policytool \ --slave %{_bindir}/rmid rmid %{jrebindir}/rmid \ --slave %{_bindir}/rmiregistry rmiregistry %{jrebindir}/rmiregistry \ --slave %{_bindir}/servertool servertool %{jrebindir}/servertool \ --slave %{_bindir}/tnameserv tnameserv %{jrebindir}/tnameserv \ --slave %{_mandir}/man1/java.1$ext java.1$ext %{_mandir}/man1/java-%{name}.1$ext \ --slave %{_mandir}/man1/keytool.1$ext keytool.1$ext %{_mandir}/man1/keytool-%{name}.1$ext \ --slave %{_mandir}/man1/orbd.1$ext orbd.1$ext %{_mandir}/man1/orbd-%{name}.1$ext \ --slave %{_mandir}/man1/policytool.1$ext policytool.1$ext %{_mandir}/man1/policytool-%{name}.1$ext \ --slave %{_mandir}/man1/rmid.1$ext rmid.1$ext %{_mandir}/man1/rmid-%{name}.1$ext \ --slave %{_mandir}/man1/rmiregistry.1$ext rmiregistry.1$ext %{_mandir}/man1/rmiregistry-%{name}.1$ext \ --slave %{_mandir}/man1/servertool.1$ext servertool.1$ext %{_mandir}/man1/servertool-%{name}.1$ext \ --slave %{_mandir}/man1/tnameserv.1$ext tnameserv.1$ext %{_mandir}/man1/tnameserv-%{name}.1$ext \ --slave %{_mandir}/man1/javaws.1$ext javaws.1$ext %{_mandir}/man1/javaws-%{name}.1$ext \ --slave %{_mandir}/man1/kinit.1$ext kinit.1$ext %{_mandir}/man1/kinit-%{name}.1$ext \ --slave %{_mandir}/man1/klist.1$ext klist.1$ext %{_mandir}/man1/klist-%{name}.1$ext \ --slave %{_mandir}/man1/ktab.1$ext ktab.1$ext %{_mandir}/man1/ktab-%{name}.1$ext update-alternatives --install %{_jvmdir}/jre-%{origin} jre_%{origin} %{_jvmdir}/%{jrelnk} %{priority} \ --slave %{_jvmjardir}/jre-%{origin} jre_%{origin}_exports %{_jvmjardir}/%{jrelnk} update-alternatives --install %{_jvmdir}/jre-%{javaver} jre_%{javaver} %{_jvmdir}/%{jrelnk} %{priority} \ --slave %{_jvmjardir}/jre-%{javaver} jre_%{javaver}_exports %{_jvmjardir}/%{jrelnk} if [ -d %{_jvmdir}/%{jrelnk}/lib/security ]; then # Need to remove the old jars in order to support upgrading, ugly :( # update-alternatives fails silently if the link targets exist as files. rm -f %{_jvmdir}/%{jrelnk}/lib/security/{local,US_export}_policy.jar fi update-alternatives \ --install \ %{_jvmdir}/%{jrelnk}/lib/security/local_policy.jar \ jce_%{javaver}_%{origin}_local_policy \ %{_jvmprivdir}/%{name}/jce/vanilla/local_policy.jar \ %{priority} \ --slave \ %{_jvmdir}/%{jrelnk}/lib/security/US_export_policy.jar \ jce_%{javaver}_%{origin}_us_export_policy \ %{_jvmprivdir}/%{name}/jce/vanilla/US_export_policy.jar %ifarch %ix86 if [ -f %{_sysconfdir}/mime.types ]; then perl -p -i -e 's|application/x-java-jnlp-file.*||g' %{_sysconfdir}/mailcap.bak 2>/dev/null echo "type=application/x-java-jnlp-file; description=\"Java Web Start\"; exts=\"jnlp\"" >> %{_sysconfdir}/mailcap 2>/dev/null perl -p -i -e 's|application/x-java-jnlp-file.*||g' %{_sysconfdir}/mime.types 2>/dev/null echo "application/x-java-jnlp-file jnlp" >> %{_sysconfdir}/mime.types 2>/dev/null fi %endif ### bad symlinks workaround ### for ALT in java jre_%{origin} jre-%{javaver} jce_%{javaver}_%{origin}_local_policy; do if [[ $(update-alternatives --display ${ALT} | head -n 1 | grep manual) && $(readlink /etc/alternatives/${ALT} | grep "1\.6\.0\.u[23]") ]]; then update-alternatives --auto ${ALT} fi done ### bad symlinks workaround ### %post devel ext= [ -f %{_mandir}/man1/javac-%{name}.1.bz2 ] && ext=".bz2" [ -f %{_mandir}/man1/javac-%{name}.1.gz ] && ext=".gz" update-alternatives --install %{_bindir}/javac javac %{sdkbindir}/javac %{priority} \ --slave %{_jvmdir}/java java_sdk %{_jvmdir}/%{sdklnk} \ --slave %{_jvmjardir}/java java_sdk_exports %{_jvmjardir}/%{sdklnk} \ --slave %{_bindir}/appletviewer appletviewer %{sdkbindir}/appletviewer \ --slave %{_bindir}/extcheck extcheck %{sdkbindir}/extcheck \ --slave %{_bindir}/idlj idlj %{sdkbindir}/idlj \ --slave %{_bindir}/jar jar %{sdkbindir}/jar \ --slave %{_bindir}/jarsigner jarsigner %{sdkbindir}/jarsigner \ --slave %{_bindir}/javadoc javadoc %{sdkbindir}/javadoc \ --slave %{_bindir}/javah javah %{sdkbindir}/javah \ --slave %{_bindir}/javap javap %{sdkbindir}/javap \ --slave %{_bindir}/jdb jdb %{sdkbindir}/jdb \ --slave %{_bindir}/native2ascii native2ascii %{sdkbindir}/native2ascii \ --slave %{_bindir}/rmic rmic %{sdkbindir}/rmic \ --slave %{_bindir}/serialver serialver %{sdkbindir}/serialver \ --slave %{_bindir}/jconsole jconsole %{sdkbindir}/jconsole \ --slave %{_bindir}/pack200 pack200 %{sdkbindir}/pack200 \ --slave %{_bindir}/unpack200 unpack200 %{sdkbindir}/unpack200 \ --slave %{_bindir}/HtmlConverter HtmlConverter %{sdkbindir}/HtmlConverter \ --slave %{_bindir}/apt apt %{sdkbindir}/apt \ --slave %{_bindir}/jinfo jinfo %{sdkbindir}/jinfo \ --slave %{_bindir}/jmap jmap %{sdkbindir}/jmap \ --slave %{_bindir}/jps jps %{sdkbindir}/jps \ --slave %{_bindir}/jsadebugd jsadebugd %{sdkbindir}/jsadebugd \ --slave %{_bindir}/jstack jstack %{sdkbindir}/jstack \ --slave %{_bindir}/jstat jstat %{sdkbindir}/jstat \ --slave %{_bindir}/jstatd jstatd %{sdkbindir}/jstatd \ --slave %{_mandir}/man1/appletviewer.1$ext appletviewer.1$ext %{_mandir}/man1/appletviewer-%{name}.1$ext \ --slave %{_mandir}/man1/extcheck.1$ext extcheck.1$ext %{_mandir}/man1/extcheck-%{name}.1$ext \ --slave %{_mandir}/man1/idlj.1$ext idlj.1$ext %{_mandir}/man1/idlj-%{name}.1$ext \ --slave %{_mandir}/man1/jar.1$ext jar.1$ext %{_mandir}/man1/jar-%{name}.1$ext \ --slave %{_mandir}/man1/jarsigner.1$ext jarsigner.1$ext %{_mandir}/man1/jarsigner-%{name}.1$ext \ --slave %{_mandir}/man1/javac.1$ext javac.1$ext %{_mandir}/man1/javac-%{name}.1$ext \ --slave %{_mandir}/man1/javadoc.1$ext javadoc.1$ext %{_mandir}/man1/javadoc-%{name}.1$ext \ --slave %{_mandir}/man1/javah.1$ext javah.1$ext %{_mandir}/man1/javah-%{name}.1$ext \ --slave %{_mandir}/man1/javap.1$ext javap.1$ext %{_mandir}/man1/javap-%{name}.1$ext \ --slave %{_mandir}/man1/jdb.1$ext jdb.1$ext %{_mandir}/man1/jdb-%{name}.1$ext \ --slave %{_mandir}/man1/native2ascii.1$ext native2ascii.1$ext %{_mandir}/man1/native2ascii-%{name}.1$ext \ --slave %{_mandir}/man1/rmic.1$ext rmic.1$ext %{_mandir}/man1/rmic-%{name}.1$ext \ --slave %{_mandir}/man1/serialver.1$ext serialver.1$ext %{_mandir}/man1/serialver-%{name}.1$ext \ --slave %{_mandir}/man1/jconsole.1$ext jconsole.1$ext %{_mandir}/man1/jconsole-%{name}.1$ext \ --slave %{_mandir}/man1/pack200.1$ext pack200.1$ext %{_mandir}/man1/pack200-%{name}.1$ext \ --slave %{_mandir}/man1/unpack200.1$ext unpack200.1$ext %{_mandir}/man1/unpack200-%{name}.1$ext \ --slave %{_mandir}/man1/apt.1$ext apt.1$ext %{_mandir}/man1/apt-%{name}.1$ext \ --slave %{_mandir}/man1/jinfo.1$ext jinfo.1$ext %{_mandir}/man1/jinfo-%{name}.1$ext \ --slave %{_mandir}/man1/jmap.1$ext jmap.1$ext %{_mandir}/man1/jmap-%{name}.1$ext \ --slave %{_mandir}/man1/jps.1$ext jps.1$ext %{_mandir}/man1/jps-%{name}.1$ext \ --slave %{_mandir}/man1/jsadebugd.1$ext jsadebugd.1$ext %{_mandir}/man1/jsadebugd-%{name}.1$ext \ --slave %{_mandir}/man1/jstack.1$ext jstack.1$ext %{_mandir}/man1/jstack-%{name}.1$ext \ --slave %{_mandir}/man1/jstat.1$ext jstat.1$ext %{_mandir}/man1/jstat-%{name}.1$ext \ --slave %{_mandir}/man1/jstatd.1$ext jstatd.1$ext %{_mandir}/man1/jstatd-%{name}.1$ext update-alternatives --install %{_jvmdir}/java-%{origin} java_sdk_%{origin} %{_jvmdir}/%{sdklnk} %{priority} \ --slave %{_jvmjardir}/java-%{origin} java_sdk_%{origin}_exports %{_jvmjardir}/%{sdklnk} update-alternatives --install %{_jvmdir}/java-%{javaver} java_sdk_%{javaver} %{_jvmdir}/%{sdklnk} %{priority} \ --slave %{_jvmjardir}/java-%{javaver} java_sdk_%{javaver}_exports %{_jvmjardir}/%{sdklnk} ### bad symlinks workaround ### for ALT in javac java_sdk_%{origin} java_sdk_%{javaver}; do if [[ $(update-alternatives --display ${ALT} | head -n 1 | grep manual) && $(readlink /etc/alternatives/${ALT} | grep "1\.6\.0\.u[23]") ]]; then update-alternatives --auto ${ALT} fi done ### bad symlinks workaround ### %ifarch %ix86 %post plugin # set link to plugin lib cd %{pluginsdir} JAVAPLUGINS=$(ls -1 | grep "\(java\|gcj\)" | grep -v javaplugin.so || true) if [ -n "$JAVAPLUGINS" ] then rm -rf $JAVAPLUGINS || true fi /usr/sbin/update-alternatives --install %{pluginsdir}/javaplugin.so javaplugin %{pluginpath}/%{pluginname} %{priority} ### bad symlinks workaround ### for ALT in javaplugin; do if [[ $(update-alternatives --display ${ALT} | head -n 1 | grep manual) && $(readlink /etc/alternatives/${ALT} | grep "1\.6\.0\.u[23]") ]]; then update-alternatives --auto ${ALT} fi done ### bad symlinks workaround ### %preun plugin if [ "$1" = "0" ] ; then /usr/sbin/update-alternatives --remove javaplugin %{pluginpath}/%{pluginname} fi %endif %postun if [ $1 -eq 0 ]; then update-alternatives --remove java %{jrebindir}/java update-alternatives --remove \ jce_%{javaver}_%{origin}_local_policy \ %{_jvmprivdir}/%{name}/jce/vanilla/local_policy.jar update-alternatives --remove jre_%{origin} %{_jvmdir}/%{jrelnk} update-alternatives --remove jre_%{javaver} %{_jvmdir}/%{jrelnk} fi %postun devel if [ $1 -eq 0 ]; then update-alternatives --remove javac %{sdkbindir}/javac update-alternatives --remove java_sdk_%{origin} %{_jvmdir}/%{sdklnk} update-alternatives --remove java_sdk_%{javaver} %{_jvmdir}/%{sdklnk} fi %files -f %{name}-%{version}.files %defattr(-,root,root,-) %ifarch %ix86 %{_datadir}/applications/jpackage-%{name}-webstart.desktop %{_datadir}/pixmaps/sun-java-%{version}-%{release}.png %endif %doc jre/COPYRIGHT jre/LICENSE jre/README README.SUSE.EARLY_RELEASE %doc jre/Welcome.html %dir %{_jvmdir}/%{sdkdir} %{jvmjardir} %{_jvmdir}/%{jredir}/lib/fonts %dir %{_jvmdir}/%{jredir}/lib/security %{_jvmdir}/%{jredir}/lib/security/cacerts %{_jvmdir}/%{jredir}/lib/security/java.policy %{_jvmdir}/%{jredir}/lib/security/java.security %ifarch %ix86 %{_jvmdir}/%{jredir}/lib/security/javaws.policy %endif %ghost %{_jvmdir}/%{jredir}/lib/security/local_policy.jar %ghost %{_jvmdir}/%{jredir}/lib/security/US_export_policy.jar %{_jvmdir}/%{jrelnk} %{_jvmjardir}/%{jrelnk} %{_jvmprivdir}/* %{_mandir}/man1/java-%{name}.1* %{_mandir}/man1/keytool-%{name}.1* %{_mandir}/man1/orbd-%{name}.1* %{_mandir}/man1/policytool-%{name}.1* %{_mandir}/man1/rmid-%{name}.1* %{_mandir}/man1/rmiregistry-%{name}.1* %{_mandir}/man1/servertool-%{name}.1* %{_mandir}/man1/tnameserv-%{name}.1* %{_mandir}/man1/javaws-%{name}.1* %{_mandir}/man1/jhat-java-1_6_0-sun.1.gz %{_mandir}/man1/jrunscript-java-1_6_0-sun.1.gz %{_mandir}/man1/schemagen-java-1_6_0-sun.1.gz %{_mandir}/man1/wsgen-java-1_6_0-sun.1.gz %{_mandir}/man1/wsimport-java-1_6_0-sun.1.gz %{_mandir}/man1/xjc-java-1_6_0-sun.1.gz #%{_mandir}/man1/kinit-%{name}.1* #%{_mandir}/man1/klist-%{name}.1* #%{_mandir}/man1/ktab-%{name}.1* %files devel %defattr(-,root,root,-) %doc COPYRIGHT LICENSE README.html %dir %{_jvmdir}/%{sdkdir}/bin %dir %{_jvmdir}/%{sdkdir}/include %dir %{_jvmdir}/%{sdkdir}/lib %{_jvmdir}/%{sdkdir}/bin/* %{_jvmdir}/%{sdkdir}/include/* %{_jvmdir}/%{sdkdir}/lib/* %{_jvmdir}/%{sdklnk} %{_jvmjardir}/%{sdklnk} %{_mandir}/man1/appletviewer-%{name}.1* %{_mandir}/man1/extcheck-%{name}.1* %{_mandir}/man1/idlj-%{name}.1* %{_mandir}/man1/jar-%{name}.1* %{_mandir}/man1/jarsigner-%{name}.1* %{_mandir}/man1/javac-%{name}.1* %{_mandir}/man1/javadoc-%{name}.1* %{_mandir}/man1/javah-%{name}.1* %{_mandir}/man1/javap-%{name}.1* %{_mandir}/man1/jdb-%{name}.1* %{_mandir}/man1/native2ascii-%{name}.1* %{_mandir}/man1/rmic-%{name}.1* %{_mandir}/man1/serialver-%{name}.1* %{_mandir}/man1/jconsole-%{name}.1* %{_mandir}/man1/pack200-%{name}.1* %{_mandir}/man1/unpack200-%{name}.1* %{_mandir}/man1/apt-%{name}.1* %{_mandir}/man1/jinfo-%{name}.1* %{_mandir}/man1/jmap-%{name}.1* %{_mandir}/man1/jps-%{name}.1* %{_mandir}/man1/jsadebugd-%{name}.1* %{_mandir}/man1/jstack-%{name}.1* %{_mandir}/man1/jstat-%{name}.1* %{_mandir}/man1/jstatd-%{name}.1* %ifarch %ix86 #%{cgibindir}/java-rmi-%{version}.cgi %endif %if ! 0%{?opensuse_bs} %files src %defattr(-,root,root,-) %{_jvmdir}/%{sdkdir}/src.zip %endif %files demo %defattr(-,root,root,-) %{demodir} %files alsa -f %{name}-%{version}-alsa.files %defattr(-,root,root,-) %files jdbc -f %{name}-%{version}-jdbc.files %defattr(-,root,root,-) %ifarch %ix86 %files plugin -f %{name}-%{version}-plugin.files %defattr(-,root,root,-) %{_datadir}/applications/jpackage-%{name}-ControlPanel.desktop %endif %changelog * Wed Jan 23 2008 - mvyskocil@suse.cz - New update - 1.6.0u4 - The better alternatives script - Updated the timezone info to 2007k - added 32-bit and 64-bit specific provides (jre-32, jre-64) (addopted from anosek's patch for 10.3) - avoid the building of a src subpackage in BuildService (licencing problems) - added %%{bits} to requires of subpackage [#354123] * Tue Nov 06 2007 - mvyskocil@suse.cz - Fixed a manual state in /etc/alternatives after update [#334783] * Mon Oct 22 2007 - mvyskocil@suse.cz - Fixed bug [#334783] bad symlinks in /etc/alternatives after update * Wed Oct 10 2007 - mvyskocil@suse.cz - update to 1.6.0_update3 [#332137] - Fixed vulnerabilities: CVE-2007-5232, CVE-2007-5236, CVE-2007-523, CVE-2007-523, CVE-2007-5240 * Thu Jul 19 2007 - stbinner@suse.de - fix suse_update_desktop_file call * Fri Jul 06 2007 - dbornkessel@suse.de - wrapper script got applied twice * Fri Jul 06 2007 - dbornkessel@suse.de - corrected jpackage dependency * Tue Jul 03 2007 - dbornkessel@suse.de - include Olson data 2007f (Bug #271324) * Mon Jul 02 2007 - dbornkessel@suse.de - added wrapper script for SDK java exe as well (Bug #252510 Comment #91) * Mon Jun 04 2007 - dbornkessel@suse.de - update to 1.6.0 update 1: US Daylight Savings Time Sun Alert 102836 Bug 6530336 that was part of Sun Alert 102836, has been fixed in this release. As a result, it is no longer necessary to run the tzupdater tool with the -bc flag to work around this bug. Bug 6466476, that was also part of Sun Alert 102836 has not yet been fixed. If your application uses the deprecated java.util.Timezone IDs and is sensitive to the behavior outlined in 6466476, you will still need to run the tzupdater tool with the -bc flag as a work-around. Note that running tzupdater with the -bc flag does not hinder the fix for 6530336 in any way. This release contains Olson time zone data version 2007a. If you need the latest Olson data (currently 2007c) in order to accommodate the America/Indiana/Winamac changes (see US Daylight Savings Time Changes and the Java SE Platform: FAQ (Appendix)), then you will need to run the tzupdater (with -bc flag as appropriate) after installing this release. Please see Sun Java SE JDK tzupdater Tool for more information on how to do this. Bug Fixes Bug fixes are listed in the following table. - final long stack variable gets corrupted when FileChannel read is interrupted - Strange behavior of Client VM (Unexpected value change on the specific situation) - ParNewGC times spiking, eventually taking up 20 out of every 30 seconds - CMS+ParNew: wildly different ParNew pause times depending on heap shape caused by allocation spread - icache invalidation code can segv - REGRESSION: JNI ExceptionClear does not clear JVMTI's view of the exception - org.omg.CORBA.ORB.init() thread safety issue - Adjustment jprt rules - jTextPane/jEditorPane text space higher than before - Font.equals() incorrectly returns false if getAttributes() is called on just one of the fonts - Unable to retrieve printer list on system with unconnected printers - Combining negative scale and negative shear in Font Transform produced incorrect results in JDK 6 - PIT:Regression test FontAttributeTest.java and two others failed with PIT build 2006-12-04-int.6u1 - PrintServices are incorrectly listed as "not accepting jobs" - Xgl/Compiz/Java 1.5/Swing problem - Focus issue with JFrame and JButton - SplashScreen.getSplashScreen() fails in Web Start context - COMPATIBILITY: Can't use the keypad to simulate game actions - Vista: Modality is broken on vista 5840 for all native Dialogs. - Win32: JVM fastdebug build crashes when Frame uses custom icon. - AWT needs to use the NO_WM case when running inside of Looking Glass - Uncanonicalized absolute filepath with length 248-260 no longer works (win) - (process) Process.destroy() can kill wrong process (Unix) - TEST_BUG: several tests fail because TESTVMOPTS are passed to javac directly - native memory leak when use Thread.getAllStackTraces() - Socket creation on Windows takes a long time if web proxy does not have a DNS entry - (se) epoll based Selector throws java.io.IOException: Operation not permitted during load - (smartcardio) RI's implementation of Card.transmitControlCommand(int, byte[]) may cause JVM failure - CR 4964288 (sound, Unexpected IAE raised while getting TargetData) is not fixed in windows-amd64 JDK - api/javax_sound/sampled/TargetDataLine/index.html#TargetDataLine fails - Text cursor is too short. - First element of JDesktopPane.getAllFrames is an iconified internal frame - OceanTheme causes swing components to serialize with sun.* classes - ArrayOutOfBoundsException raised when SHIFT-selecting items in a JList - Regression: JToolBar's separator is wrongly rendered using GTK L&F on Linux and Solaris - GTK L&F: JToolBar handle rendered incorrectly under Nimbus theme - GTKLAF: Menu item selection bar hieght is not consistant in the menu and popupmenu across the items. - JFileChooser ignores FILES_AND_DIRECTORIES on GTK and Motif - GTK Theme change and JTextField can/will crash Java - SwingWorker notifications might be out of order. - Vista:In disabled JComboBox the drop down button background shows black color and looks enabled. - XPStyle.getSkin returning null is dangerous - Memory leak in XPStyle - Vista: Menu dropdown differs while compare with naitve in vista laf. - REGRESSION: JCheckBox doesn't show on JToolBar under Windows L&F - Jeditorpane does not start up the html file - GTK L&F: JMenuBar is taller than native under Clearlooks - GTK L&F: buttons, checkboxes, and radiobuttons are sized incorrectly - GTK L&F: more toolbar issues - Unbounded memory leak in Windows XP JRE for Applets and applications that open JFrame's - JTree is not visible with GTK and Right-to-Left component orientation - JRadioButton in JTree is not painted in correct state on Vista - (tz) DST bug in latest jdk releases when using EST MST and HST abbreviations - (date) calling java.util.Date.toString() slows down subsequent calls to the class - (tz) Support tzdata2007a - (tz) Support tzdata2006o - (tz) Support tzdata2006p - ExecutableElement.getParameters() uses raw type for class loaded from -g bytecode - Copyright year need to modify with 2007 in J2SE UR releases - "com.sun.jdi.InternalException: Inconsistent suspend policy" in internal event handler - 1.5.0_u7 has "shielded" exe in Windows Vista - regression: re installing the same jre version does not pop up the reinstall dialog - remove "Installshield" text from offline installers - Installation of Solaris Packages fails with jdk1.6.0_01-b05 - Privacy Policy is referring wrong URL - remove "no longer used splash screen" from installer will reduce jre size/speed - Close browser during JRE installation. Open a new window to java.com at the end of the installation. - [zh_CN] README_zh_CN in jdk is out of sync with the english README - [zh_CN, ja] Message sync for two bug fixes in 6.0 - PIT: additional sentence needs to be translated for 6267625 - rmic does not use manifest classpath - SA: Throws UnmappedAddressException while reading address from core file in shared area. - jhat OQL Support direct value of java.lang.String type fields - jhat: oql submit form should put last query into textform for resubmit - JHAT - Missing class mishandled - jhat fails with java.lang.ClassCastException on file created by jmap from core file - jhat should be able to help in finding classloader leaks - InstallStats2 not sending full version for offline installers with 'failure' status - IS2 : InstallComplete ping 'ic' with status 'success' is not posted in silent mode - filename incorrect in jre readme - Need to implement webstart/plugin part of the bug fix 6439864 - jusched crash: buffer overrun - Signed applet hangs browser if a remote policy server is being used - offline support does not work for plugin applets - regression: Desktop.browse does not work properly for java plug-in applets - deployment.javaws.secure.properties cannot be used in 1.4.2, 1.5.0, and Java Se 6 - The Wrong proxy is derived from Mozilla browsers when there is no entry in prefs.js - Regression: Cannot run application using jnlp extensions when offline. - In JNLP file href must end with .jar extension - Web Start application installed from CD will not run under Java 6u1 - cannot launch application offline if https is used - JoinRowSetImpl does not notify listeners - api/javax_sql/rowset/impl/FilteredRowSet/index.html#FilteredRowSet[notifyCursorMovedTest3] fails b98 - api/javax_sql/rowset/impl/JoinRowSet/index.html#JoinRowSet[createCopySchemaTest] fails on b98 - Using JdbcRowSetImpl(strUrl,strUserId, strPassword) without executing a stmt throws NPE in getType() - api/javax_sql/rowset/impl/FilteredRowSet/index.html#FilteredRowSet[absoluteTest] fails - There is no way to plug SyncProvider for CachedRowSet implementation - RMIConnectorServer.stop: deadlock - Using MXBeans can lead to memory leaks * Fri May 25 2007 - dbornkessel@suse.de - moved demo files to %%{_jvmdir}/%%{sdkdir}/demo (which is in %%{_libdir}) in order to avoid having *.so file in /usr/share - switched on stripping again - removed versionless provide of j2sdk - hardlink duplicates - index jar files * Mon May 14 2007 - dbornkessel@suse.de - enable wrapper script for x86_64 * Wed Apr 25 2007 - dbornkessel@suse.de - handle plugin with update-alternative mechanism (fixes collect-desktop-files problem and gives users control over which plugin is used) - wrapper script in order to enable graphical apps (Bug #252510) * Thu Mar 01 2007 - dbornkessel@suse.de - first version