#
# spec file for package j2re-integration
#
# Copyright (c) 2005 Sun Microsystems, Inc.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
#
Release: 269
%prep
install --mode=644 font.properties.zh_CN.Sun ${RPM_BUILD_ROOT}%{j2re_dir}/lib/font.properties.zh_CN.Sun.new
install --mode=644 font.properties.zh_CN_UTF8.Sun ${RPM_BUILD_ROOT}%{j2re_dir}/lib/font.properties.zh_CN_UTF8.Sun.new
install --mode=644 font.properties.zh_HK.Sun ${RPM_BUILD_ROOT}%{j2re_dir}/lib/font.properties.zh_HK.Sun
install --mode=644 font.properties.zh_HK_UTF8.Sun ${RPM_BUILD_ROOT}%{j2re_dir}/lib/font.properties.zh_HK_UTF8.Sun
install --mode=644 font.properties.zh_TW.Sun ${RPM_BUILD_ROOT}%{j2re_dir}/lib/font.properties.zh_TW.Sun.new
install --mode=644 font.properties.zh_TW_UTF8.Sun ${RPM_BUILD_ROOT}%{j2re_dir}/lib/font.properties.zh_TW_UTF8.Sun.new
install --mode=644 javaws.applications ${RPM_BUILD_ROOT}/usr/share/application-registry/javaws.applications
#Setup relative symlinks
#Link j2redefault to jre sub-dir of JDK install dir
#link the java program, using a dummy file to keep ln happy
cd ${RPM_BUILD_ROOT}%{_bindir}
#setup mozilla plugin
#create dummy plugin
cd ${RPM_BUILD_ROOT}%{plugin_dir}
#Remove 0 sized dummy files
%post
#Move the originals out of the way and link our ones in
for file in font.properties.zh_CN.Sun font.properties.zh_CN_UTF8.Sun font.properties.zh_TW.Sun font.properties.zh_TW_UTF8.Sun
do
#If it is a symlink remove it, otherwise back it up.
else
fi
fi
fi
done
#we are uninstalling, not upgrading
for file in font.properties.zh_CN.Sun font.properties.zh_CN_UTF8.Sun font.properties.zh_TW.Sun font.properties.zh_TW_UTF8.Sun
do
fi
fi
done
fi
- Rev'd J2re to _04
* Thu Dec 11 2003 - stephen.browne@sun.com
- Added installation of Java IM Demo menu entries
* Thu Oct 02 2003 - stephen.browne@sun.com
- Bumped j2re version
* Thu Sep 25 2003 - stephen.browne@sun.com
- Added jnlp mimetype and javaws application registration
* Fri Sep 19 2003 - michael.twomey@sun.com
- Create j2redefault symlinks in %install section instead of %post
- Moved postun action to a preun
- Tightened up post and preun actions to check for files before changing them.
* Fri Sep 05 2003 - michael.twomey@sun.com
- Added Chinese font.properties files for zh_HK.
- Added post/postun to link Chinese font.properties files over
existing files for zh_CN and zh_TW.
- Fixes 4916359.
* Wed Aug 21 2003 - dermot.mccluskey@sun.com
- Added PreReq on j2re - needed to ensure correct install order
* Fri Aug 08 2003 - dermot.mccluskey@sun.com
- Add dependency on j2re - this makes everything simpler
* Thu Jul 31 2003 - Stephen.Browne@sun.com
- Remove .desktop file, fix links and add java plugin link
* Mon Jul 28 2003 - Stephen.Browne@sun.com
- Install Java convenience links