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