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