author | fujiwara |
Fri, 05 Nov 2004 12:17:36 +0000 | |
changeset 4455 | aea26bce3124 |
parent 4409 | 4fec71e58697 |
child 4579 | a47648ae5f29 |
permissions | -rw-r--r-- |
1127 | 1 |
Name: j2re-integration |
2 |
License: GPL |
|
3 |
Group: Development/Tools |
|
4 |
BuildArchitectures: noarch |
|
1129 | 5 |
Version: 0.0.3 |
4409 | 6 |
Release: 250 |
2529 | 7 |
Distribution: Java Desktop System |
1127 | 8 |
Vendor: Sun Microsystems, Inc. |
2529 | 9 |
Summary: Java integration |
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 |
|
16 |
Source6: javaws.mime |
|
17 |
Source7: javaws.keys |
|
18 |
Source8: javaws.applications |
|
19 |
Source9: runjim.desktop |
|
20 |
Source10: jimregis.desktop |
|
21 |
Source11: JavaIM.directory |
|
4455 | 22 |
Source12: l10n-configure.sh |
2529 | 23 |
URL: http://www.sun.com |
1127 | 24 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
25 |
||
1152 | 26 |
%define plugin_dir %{_libdir}/mozilla/plugins |
3938 | 27 |
%define j2re jdk1.5.0_01 |
1152 | 28 |
%define j2re_dir %{_prefix}/java/%{j2re} |
1127 | 29 |
|
3628 | 30 |
Requires: jdk >= 1.5.0 |
2958 | 31 |
PreReq: jdk |
32 |
BuildRequires: jdk |
|
1127 | 33 |
|
34 |
%description |
|
2529 | 35 |
Java integration. |
1127 | 36 |
|
1129 | 37 |
%prep |
38 |
%setup -T -c -n j2re-integration |
|
39 |
cp %SOURCE0 . |
|
40 |
cp %SOURCE1 . |
|
41 |
cp %SOURCE2 . |
|
42 |
cp %SOURCE3 . |
|
43 |
cp %SOURCE4 . |
|
44 |
cp %SOURCE5 . |
|
1166 | 45 |
cp %SOURCE6 . |
46 |
cp %SOURCE7 . |
|
47 |
cp %SOURCE8 . |
|
1876 | 48 |
cp %SOURCE9 . |
49 |
cp %SOURCE10 . |
|
50 |
cp %SOURCE11 . |
|
1129 | 51 |
|
52 |
||
4455 | 53 |
bash -x %SOURCE12 |
54 |
||
1127 | 55 |
%install |
1152 | 56 |
install --mode=755 -d ${RPM_BUILD_ROOT}%{j2re_dir}/lib |
57 |
install --mode=644 font.properties.zh_CN.Sun ${RPM_BUILD_ROOT}%{j2re_dir}/lib/font.properties.zh_CN.Sun.new |
|
58 |
install --mode=644 font.properties.zh_CN_UTF8.Sun ${RPM_BUILD_ROOT}%{j2re_dir}/lib/font.properties.zh_CN_UTF8.Sun.new |
|
59 |
install --mode=644 font.properties.zh_HK.Sun ${RPM_BUILD_ROOT}%{j2re_dir}/lib/font.properties.zh_HK.Sun |
|
60 |
install --mode=644 font.properties.zh_HK_UTF8.Sun ${RPM_BUILD_ROOT}%{j2re_dir}/lib/font.properties.zh_HK_UTF8.Sun |
|
61 |
install --mode=644 font.properties.zh_TW.Sun ${RPM_BUILD_ROOT}%{j2re_dir}/lib/font.properties.zh_TW.Sun.new |
|
62 |
install --mode=644 font.properties.zh_TW_UTF8.Sun ${RPM_BUILD_ROOT}%{j2re_dir}/lib/font.properties.zh_TW_UTF8.Sun.new |
|
1166 | 63 |
install -d ${RPM_BUILD_ROOT}/usr/share/mime-info |
64 |
install --mode=644 javaws.mime ${RPM_BUILD_ROOT}/usr/share/mime-info/javaws.mime |
|
65 |
install --mode=644 javaws.keys ${RPM_BUILD_ROOT}/usr/share/mime-info/javaws.keys |
|
66 |
install -d ${RPM_BUILD_ROOT}/usr/share/application-registry |
|
67 |
install --mode=644 javaws.applications ${RPM_BUILD_ROOT}/usr/share/application-registry/javaws.applications |
|
1876 | 68 |
install -d ${RPM_BUILD_ROOT}/usr/share/applications |
69 |
install --mode=644 jimregis.desktop ${RPM_BUILD_ROOT}/usr/share/applications |
|
70 |
install --mode=644 runjim.desktop ${RPM_BUILD_ROOT}/usr/share/applications |
|
71 |
install -d ${RPM_BUILD_ROOT}/usr/share/gnome/vfolders |
|
72 |
install --mode=644 JavaIM.directory ${RPM_BUILD_ROOT}/usr/share/gnome/vfolders |
|
1152 | 73 |
|
74 |
#Setup relative symlinks |
|
75 |
||
3938 | 76 |
#Link j2redefault to jre sub-dir of JDK install dir |
1152 | 77 |
install --mode=755 -d ${RPM_BUILD_ROOT}%{_prefix}/java/%{j2re} |
78 |
cd ${RPM_BUILD_ROOT}%{_prefix}/java |
|
2598 | 79 |
ln -s %{j2re}/jre j2redefault |
1152 | 80 |
|
81 |
#link the java program, using a dummy file to keep ln happy |
|
82 |
install --mode=755 -d ${RPM_BUILD_ROOT}%{_prefix}/java/%{j2re}/bin |
|
83 |
touch ${RPM_BUILD_ROOT}%{_prefix}/java/%{j2re}/bin/java |
|
84 |
install --mode=755 -d ${RPM_BUILD_ROOT}%{_bindir} |
|
85 |
cd ${RPM_BUILD_ROOT}%{_bindir} |
|
86 |
ln -s ../java/j2redefault/bin/java java |
|
87 |
||
88 |
#setup mozilla plugin |
|
89 |
#create dummy plugin |
|
2945
b24b17d290b4
j2re-integration.spec: fixed typo in moz plugin lib
dermotm
parents:
2944
diff
changeset
|
90 |
install --mode=755 -d ${RPM_BUILD_ROOT}%{_prefix}/java/%{j2re}/plugin/i386/ns7/ |
2944 | 91 |
touch ${RPM_BUILD_ROOT}%{_prefix}/java/%{j2re}/plugin/i386/ns7/libjavaplugin_oji.so |
1152 | 92 |
install --mode=755 -d ${RPM_BUILD_ROOT}%{plugin_dir} |
93 |
cd ${RPM_BUILD_ROOT}%{plugin_dir} |
|
2944 | 94 |
ln -s ../../../java/j2redefault/plugin/i386/ns7/libjavaplugin_oji.so libjavaplugin_oji.so |
3628 | 95 |
#Remove 0 sized dummy files |
3938 | 96 |
rm $RPM_BUILD_ROOT%{j2re_dir}/bin/java |
97 |
rm $RPM_BUILD_ROOT%{j2re_dir}/plugin/i386/ns7/libjavaplugin_oji.so |
|
1127 | 98 |
|
99 |
%clean |
|
100 |
rm -rf $RPM_BUILD_ROOT |
|
101 |
||
1129 | 102 |
%post |
1152 | 103 |
#Move the originals out of the way and link our ones in |
104 |
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 |
|
105 |
do |
|
106 |
if [ -f %{j2re_dir}/lib/$file ]; then |
|
107 |
#If it is a symlink remove it, otherwise back it up. |
|
108 |
if [ ! -L %{j2re_dir}/lib/$file ]; then |
|
109 |
mv %{j2re_dir}/lib/$file %{j2re_dir}/lib/$file.original |
|
110 |
else |
|
111 |
rm %{j2re_dir}/lib/$file |
|
112 |
fi |
|
113 |
fi |
|
114 |
if [ ! -f %{j2re_dir}/lib/$file ]; then |
|
115 |
ln -s %{j2re_dir}/lib/$file.new %{j2re_dir}/lib/$file |
|
116 |
fi |
|
117 |
done |
|
118 |
||
119 |
%preun |
|
120 |
if [ $1 -eq 0 ]; then |
|
121 |
#we are uninstalling, not upgrading |
|
1129 | 122 |
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 |
123 |
do |
|
1152 | 124 |
if [ -L %{j2re_dir}/lib/$file ]; then |
125 |
rm %{j2re_dir}/lib/$file |
|
126 |
fi |
|
127 |
if [ -f %{j2re_dir}/lib/$file.original ]; then |
|
128 |
mv %{j2re_dir}/lib/$file.original %{j2re_dir}/lib/$file |
|
129 |
fi |
|
1129 | 130 |
done |
131 |
fi |
|
132 |
||
1127 | 133 |
%files |
134 |
%defattr(-, root, root) |
|
1152 | 135 |
%{_bindir}/java |
136 |
%{_prefix}/java/j2redefault |
|
3501 | 137 |
%{_prefix}/share/gnome/vfolders/* |
1166 | 138 |
%{_prefix}/share/mime-info/* |
139 |
%{_prefix}/share/application-registry/* |
|
1876 | 140 |
%{_prefix}/share/applications/* |
1152 | 141 |
%{j2re_dir}/lib/font.properties.* |
142 |
%{plugin_dir}/libjavaplugin_oji.so |
|
1127 | 143 |
|
144 |
%changelog |
|
3938 | 145 |
* Wed Sep 15 2004 - [email protected] |
146 |
- new install dir for JDK 1.5.0 |
|
147 |
||
3685 | 148 |
* Mon Aug 23 2004 - [email protected] |
3684
3e707cc65b77
j2re-integration.spec: %files - vfolders was listed twice
dermotm
parents:
3679
diff
changeset
|
149 |
- removed double entry for vfolders/* in %files |
3e707cc65b77
j2re-integration.spec: %files - vfolders was listed twice
dermotm
parents:
3679
diff
changeset
|
150 |
|
3501 | 151 |
* Fri Aug 06 2004 - [email protected] |
152 |
- Added JavaIM.directory |
|
3628 | 153 |
|
154 |
* Fri Jul 09 2004 - [email protected] |
|
155 |
- Dependency on jdk=1.5.0 breaks with jdk-1.5.0-beta3 |
|
156 |
allow more flexability by specifying jdk >= 1.5.0 |
|
157 |
||
158 |
* Fri Jul 09 2004 - [email protected] |
|
159 |
- too much crack going on here. tidy up for rpm4 |
|
160 |
||
2958 | 161 |
* Sun May 30 2004 - [email protected] |
162 |
- new JDK |
|
163 |
||
2944 | 164 |
* Fri May 28 2004 - [email protected] |
2945
b24b17d290b4
j2re-integration.spec: fixed typo in moz plugin lib
dermotm
parents:
2944
diff
changeset
|
165 |
- fixed typo in moz plugin lib |
b24b17d290b4
j2re-integration.spec: fixed typo in moz plugin lib
dermotm
parents:
2944
diff
changeset
|
166 |
|
b24b17d290b4
j2re-integration.spec: fixed typo in moz plugin lib
dermotm
parents:
2944
diff
changeset
|
167 |
* Fri May 28 2004 - [email protected] |
2944 | 168 |
- changed location of java plugin lib for jdk 1.5.0 |
169 |
||
2598 | 170 |
* Fri Apr 30 2004 - [email protected] |
171 |
- link j2redefault to the ./jre subdir under j2sdk 1.5.0 |
|
172 |
||
2529 | 173 |
* Tue Apr 20 2004 - [email protected] |
174 |
- switched from jre 1.4.2_04 to j2sdk 1.5.0 |
|
175 |
||
1876 | 176 |
* Mon Jan 19 2004 - [email protected] |
177 |
- Rev'd J2re to _04 |
|
178 |
||
179 |
* Thu Dec 11 2003 - [email protected] |
|
180 |
- Added installation of Java IM Demo menu entries |
|
181 |
||
1184 | 182 |
* Thu Oct 02 2003 - [email protected] |
183 |
- Bumped j2re version |
|
184 |
||
1166 | 185 |
* Thu Sep 25 2003 - [email protected] |
186 |
- Added jnlp mimetype and javaws application registration |
|
187 |
||
1152 | 188 |
* Fri Sep 19 2003 - [email protected] |
189 |
- Create j2redefault symlinks in %install section instead of %post |
|
190 |
- Moved postun action to a preun |
|
191 |
- Tightened up post and preun actions to check for files before changing them. |
|
192 |
||
1129 | 193 |
* Fri Sep 05 2003 - [email protected] |
194 |
- Moved j2re symlinking to post/postun actions. |
|
195 |
- Added Chinese font.properties files for zh_HK. |
|
196 |
- Added post/postun to link Chinese font.properties files over |
|
197 |
existing files for zh_CN and zh_TW. |
|
198 |
- Fixes 4916359. |
|
199 |
||
1127 | 200 |
* Wed Aug 21 2003 - [email protected] |
201 |
- Added PreReq on j2re - needed to ensure correct install order |
|
202 |
||
203 |
* Fri Aug 08 2003 - [email protected] |
|
204 |
- Add dependency on j2re - this makes everything simpler |
|
205 |
||
206 |
* Thu Jul 31 2003 - [email protected] |
|
207 |
- Remove .desktop file, fix links and add java plugin link |
|
208 |
||
209 |
* Mon Jul 28 2003 - [email protected] |
|
210 |
- Install Java convenience links |