1127
|
1 |
Name: j2re-integration
|
|
2 |
License: GPL
|
|
3 |
Group: Development/Tools
|
|
4 |
BuildArchitectures: noarch
|
1129
|
5 |
Version: 0.0.3
|
|
6 |
Release: 8
|
1127
|
7 |
Distribution: Mercury
|
|
8 |
Vendor: Sun Microsystems, Inc.
|
|
9 |
Summary: Java integration for Mercury.
|
1129
|
10 |
Source: font.properties.zh_CN.Sun
|
|
11 |
Source1: font.properties.zh_CN_UTF8.Sun
|
|
12 |
Source2: font.properties.zh_HK.Sun
|
|
13 |
Source3: font.properties.zh_HK_UTF8.Sun
|
|
14 |
Source4: font.properties.zh_TW.Sun
|
|
15 |
Source5: font.properties.zh_TW_UTF8.Sun
|
1127
|
16 |
URL: http://www.gnome.org
|
|
17 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
18 |
|
|
19 |
%define plugin_dir %{_prefix}/lib/mozilla/plugins
|
|
20 |
%define j2redefault_link_to %{_prefix}/java/j2re1.4.2_01/
|
|
21 |
|
1129
|
22 |
Requires: j2re = 1.4.2_01-fcs
|
1127
|
23 |
PreReq: j2re
|
|
24 |
BuildRequires: j2re
|
|
25 |
|
|
26 |
%description
|
|
27 |
Java integration for Mercury
|
|
28 |
|
1129
|
29 |
%prep
|
|
30 |
%setup -T -c -n j2re-integration
|
|
31 |
cp %SOURCE0 .
|
|
32 |
cp %SOURCE1 .
|
|
33 |
cp %SOURCE2 .
|
|
34 |
cp %SOURCE3 .
|
|
35 |
cp %SOURCE4 .
|
|
36 |
cp %SOURCE5 .
|
|
37 |
|
|
38 |
|
1127
|
39 |
%install
|
1129
|
40 |
install -d ${RPM_BUILD_ROOT}%{j2redefault_link_to}/lib
|
|
41 |
install --mode=644 font.properties.zh_CN.Sun ${RPM_BUILD_ROOT}%{j2redefault_link_to}/lib/font.properties.zh_CN.Sun.new
|
|
42 |
install --mode=644 font.properties.zh_CN_UTF8.Sun ${RPM_BUILD_ROOT}%{j2redefault_link_to}/lib/font.properties.zh_CN_UTF8.Sun.new
|
|
43 |
install --mode=644 font.properties.zh_HK.Sun ${RPM_BUILD_ROOT}%{j2redefault_link_to}/lib/font.properties.zh_HK.Sun
|
|
44 |
install --mode=644 font.properties.zh_HK_UTF8.Sun ${RPM_BUILD_ROOT}%{j2redefault_link_to}/lib/font.properties.zh_HK_UTF8.Sun
|
|
45 |
install --mode=644 font.properties.zh_TW.Sun ${RPM_BUILD_ROOT}%{j2redefault_link_to}/lib/font.properties.zh_TW.Sun.new
|
|
46 |
install --mode=644 font.properties.zh_TW_UTF8.Sun ${RPM_BUILD_ROOT}%{j2redefault_link_to}/lib/font.properties.zh_TW_UTF8.Sun.new
|
1127
|
47 |
|
|
48 |
%clean
|
|
49 |
rm -rf $RPM_BUILD_ROOT
|
|
50 |
|
1129
|
51 |
%post
|
|
52 |
if [ $1 = 1 ]; then
|
|
53 |
#fresh install
|
|
54 |
ln -s %{j2redefault_link_to} %{_prefix}/java/j2redefault
|
|
55 |
ln -s %{_prefix}/java/j2redefault/bin/java %{_prefix}/bin/java
|
|
56 |
ln -s %{_prefix}/java/j2redefault/plugin/i386/ns610-gcc32/libjavaplugin_oji.so %{plugin_dir}/libjavaplugin_oji.so
|
|
57 |
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
|
|
58 |
do
|
|
59 |
mv %{j2redefault_link_to}/lib/$file %{j2redefault_link_to}/lib/$file.original
|
|
60 |
ln -s %{j2redefault_link_to}/lib/$file.new %{j2redefault_link_to}/lib/$file
|
|
61 |
done
|
|
62 |
fi
|
|
63 |
|
|
64 |
%postun
|
|
65 |
if [ $1 = 0 ]; then
|
|
66 |
#Being removed, not upgraded
|
|
67 |
rm %{_prefix}/java/j2redefault
|
|
68 |
rm %{_prefix}/bin/java
|
|
69 |
rm %{plugin_dir}/libjavaplugin_oji.so
|
|
70 |
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
|
|
71 |
do
|
|
72 |
rm %{j2redefault_link_to}/lib/$file
|
|
73 |
mv %{j2redefault_link_to}/lib/$file.original %{j2redefault_link_to}/lib/$file
|
|
74 |
done
|
|
75 |
fi
|
|
76 |
|
1127
|
77 |
%files
|
|
78 |
%defattr(-, root, root)
|
1129
|
79 |
%{j2redefault_link_to}/lib/font.*
|
1127
|
80 |
|
|
81 |
%changelog
|
1129
|
82 |
* Fri Sep 05 2003 - [email protected]
|
|
83 |
- Moved j2re symlinking to post/postun actions.
|
|
84 |
- Added Chinese font.properties files for zh_HK.
|
|
85 |
- Added post/postun to link Chinese font.properties files over
|
|
86 |
existing files for zh_CN and zh_TW.
|
|
87 |
- Fixes 4916359.
|
|
88 |
|
1127
|
89 |
* Wed Aug 21 2003 - [email protected]
|
|
90 |
- Added PreReq on j2re - needed to ensure correct install order
|
|
91 |
|
|
92 |
* Fri Aug 08 2003 - [email protected]
|
|
93 |
- Add dependency on j2re - this makes everything simpler
|
|
94 |
|
|
95 |
* Thu Jul 31 2003 - [email protected]
|
|
96 |
- Remove .desktop file, fix links and add java plugin link
|
|
97 |
|
|
98 |
* Mon Jul 28 2003 - [email protected]
|
|
99 |
- Install Java convenience links
|