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