author | hawklu |
Mon, 17 Nov 2008 03:35:17 +0000 | |
branch | opensolaris-2008-11 |
changeset 14389 | 2b15c067f4e1 |
parent 13809 | 478a2d0d7ce5 |
child 14110 | a036cef35fd6 |
child 14424 | 9fe51489f5c0 |
permissions | -rw-r--r-- |
9397 | 1 |
# |
2 |
# spec file for package SUNWgnome-a11y-libs |
|
3 |
# |
|
4 |
# includes module(s): at-spi java-access-bridge libgail-gnome freetts gnome-mag |
|
5 |
# |
|
10572 | 6 |
# Copyright 2007 Sun Microsystems, Inc. |
9397 | 7 |
# This file and all modifications and additions to the pristine |
8 |
# package are under the same license as the package itself. |
|
9 |
# |
|
11430 | 10 |
# Owner: liyuan |
9397 | 11 |
# |
12 |
%include Solaris.inc |
|
13 |
||
12763 | 14 |
%ifarch amd64 sparcv9 |
15 |
%include arch64.inc |
|
16 |
%use at_spi_64 = at-spi.spec |
|
17 |
%endif |
|
18 |
||
19 |
%include base.inc |
|
9397 | 20 |
%use at_spi = at-spi.spec |
21 |
%use libgail_gnome = libgail-gnome.spec |
|
10572 | 22 |
%if %option_with_java |
9397 | 23 |
%use java_access_bridge = java-access-bridge.spec |
10572 | 24 |
%endif |
9397 | 25 |
%use freetts = freetts.spec |
26 |
%use gnome_mag = gnome-mag.spec |
|
27 |
||
28 |
Name: SUNWgnome-a11y-libs |
|
29 |
Summary: Accessibility implementation for GNOME |
|
30 |
Version: %{default_pkg_version} |
|
31 |
Source: %{name}-manpages-0.1.tar.gz |
|
32 |
SUNW_BaseDir: %{_basedir} |
|
11976 | 33 |
SUNW_Copyright: %{name}.copyright |
9397 | 34 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
35 |
||
36 |
%include default-depend.inc |
|
37 |
Requires: SUNWgnome-libs |
|
38 |
Requires: SUNWgnome-panel |
|
39 |
Requires: SUNWgnome-component |
|
40 |
Requires: SUNWgnome-base-libs |
|
9441 | 41 |
Requires: SUNWgnome-config |
9397 | 42 |
Requires: SUNWlibms |
43 |
Requires: SUNWlibpopt |
|
44 |
Requires: SUNWj5rt |
|
11878 | 45 |
Requires: SUNWj6rt |
9397 | 46 |
Requires: SUNWzoner |
47 |
Requires: SUNWzoneu |
|
48 |
Requires: SUNWpkgcmdsu |
|
49 |
||
50 |
BuildRequires: SUNWgnome-base-libs-devel |
|
9441 | 51 |
BuildRequires: SUNWgnome-config-devel |
9397 | 52 |
BuildRequires: SUNWlibpopt-devel |
53 |
BuildRequires: SUNWgnome-panel-devel |
|
54 |
BuildRequires: SUNWgnome-libs-devel |
|
55 |
BuildRequires: SUNWgnome-panel-devel |
|
56 |
BuildRequires: SUNWgnome-component-devel |
|
57 |
||
13809 | 58 |
%package root |
59 |
Summary: %{summary} - / filesystem |
|
60 |
SUNW_BaseDir: / |
|
61 |
%include default-depend.inc |
|
62 |
||
9397 | 63 |
%package devel |
64 |
Summary: %{summary} - development files |
|
65 |
SUNW_BaseDir: %{_basedir} |
|
66 |
%include default-depend.inc |
|
67 |
Requires: SUNWperl584usr |
|
10451 | 68 |
Requires: SUNWgnome-base-libs-devel |
9397 | 69 |
Requires: SUNWgnome-libs-devel |
70 |
||
71 |
%if %build_l10n |
|
72 |
%package l10n |
|
73 |
Summary: %{summary} - l10n files |
|
74 |
SUNW_BaseDir: %{_basedir} |
|
75 |
%include default-depend.inc |
|
76 |
Requires: %{name} |
|
77 |
%endif |
|
78 |
||
79 |
%prep |
|
80 |
rm -rf %name-%version |
|
81 |
mkdir %name-%version |
|
12763 | 82 |
|
83 |
%ifarch amd64 sparcv9 |
|
84 |
mkdir %name-%version/%_arch64 |
|
85 |
%at_spi_64.prep -d %name-%version/%_arch64 |
|
86 |
%endif |
|
87 |
||
88 |
mkdir %name-%version/%base_arch |
|
89 |
%at_spi.prep -d %name-%version/%base_arch |
|
90 |
%libgail_gnome.prep -d %name-%version/%base_arch |
|
10574 | 91 |
%if %option_with_java |
12763 | 92 |
%java_access_bridge.prep -d %name-%version/%base_arch |
10574 | 93 |
%endif |
12763 | 94 |
%freetts.prep -d %name-%version/%base_arch |
95 |
%gnome_mag.prep -d %name-%version/%base_arch |
|
9397 | 96 |
cd %{_builddir}/%name-%version |
97 |
gzcat %SOURCE0 | tar xf - |
|
98 |
||
99 |
%build |
|
100 |
PKG_CONFIG_DISABLE_UNINSTALLED= |
|
101 |
unset PKG_CONFIG_DISABLE_UNINSTALLED |
|
102 |
export PKG_CONFIG_PATH="../at-spi-%{at_spi.version}:%{_pkg_config_path}" |
|
10620 | 103 |
export CFLAGS="%optflags -I/usr/X11/include" |
9397 | 104 |
export RPM_OPT_FLAGS="$CFLAGS" |
12785 | 105 |
export LDFLAGS="%_ldflags" |
12774 | 106 |
export ACLOCAL_FLAGS="-I %{_datadir}/aclocal" |
12763 | 107 |
|
108 |
%ifarch amd64 sparcv9 |
|
109 |
%at_spi_64.build -d %name-%version/%_arch64 |
|
110 |
%endif |
|
111 |
||
112 |
%at_spi.build -d %name-%version/%base_arch |
|
113 |
%libgail_gnome.build -d %name-%version/%base_arch |
|
10572 | 114 |
%if %option_with_java |
12763 | 115 |
%java_access_bridge.build -d %name-%version/%base_arch |
10572 | 116 |
%endif |
12763 | 117 |
%freetts.build -d %name-%version/%base_arch |
118 |
%gnome_mag.build -d %name-%version/%base_arch |
|
9397 | 119 |
|
120 |
%install |
|
12763 | 121 |
%ifarch amd64 sparcv9 |
122 |
%at_spi_64.install -d %name-%version/%_arch64 |
|
123 |
%endif |
|
124 |
||
125 |
%at_spi.install -d %name-%version/%base_arch |
|
126 |
%libgail_gnome.install -d %name-%version/%base_arch |
|
10572 | 127 |
%if %option_with_java |
12763 | 128 |
%java_access_bridge.install -d %name-%version/%base_arch |
10572 | 129 |
%endif |
12763 | 130 |
%freetts.install -d %name-%version/%base_arch |
131 |
%gnome_mag.install -d %name-%version/%base_arch |
|
9397 | 132 |
rm -rf $RPM_BUILD_ROOT%{_mandir} |
133 |
cd %{_builddir}/%name-%version/sun-manpages |
|
134 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
135 |
||
136 |
# Remove .la files. |
|
137 |
rm -f $RPM_BUILD_ROOT%{_libdir}/orbit-2.0/GNOME_Magnifier_module.la |
|
10017 | 138 |
# Remove .pyo files |
139 |
find $RPM_BUILD_ROOT -name '*.pyo' -exec rm {} \; |
|
9397 | 140 |
|
13716 | 141 |
# Remove empty dir |
13717
3e8a0e755d62
removed the subdirs under /usr/share/doc/ as well
davelam
parents:
13716
diff
changeset
|
142 |
rmdir $RPM_BUILD_ROOT%{_datadir}/doc/gnome-mag-*/reference/html |
3e8a0e755d62
removed the subdirs under /usr/share/doc/ as well
davelam
parents:
13716
diff
changeset
|
143 |
rmdir $RPM_BUILD_ROOT%{_datadir}/doc/gnome-mag-*/reference |
13716 | 144 |
rmdir $RPM_BUILD_ROOT%{_datadir}/doc/gnome-mag-* |
145 |
||
9397 | 146 |
%if %build_l10n |
147 |
%else |
|
148 |
# REMOVE l10n FILES |
|
149 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale |
|
150 |
%endif |
|
151 |
||
152 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} |
|
153 |
||
154 |
%clean |
|
155 |
rm -rf $RPM_BUILD_ROOT |
|
156 |
||
10572 | 157 |
%if %option_with_java |
9397 | 158 |
%post |
159 |
# This script works by |
|
160 |
# 1. If pkgcond exec exists it uses it to determine whether to |
|
161 |
# make any file system modifications |
|
162 |
# 2. if pkgcond does not exist it works by using the older FCS logic in CheckZones() |
|
163 |
# The LocalZones() function now calls the function that modified /usr |
|
164 |
# based on whether /usr/java/jre/lib is writable |
|
165 |
||
166 |
# Basically local zones can have any arbitrary directory readonly or writable |
|
167 |
# So a script that needs to modify say /usr/java needs |
|
168 |
# to figure out if this is actually doable first. |
|
169 |
||
170 |
||
171 |
PKGCOND=/usr/bin/pkgcond |
|
172 |
CheckZones() |
|
173 |
{ |
|
174 |
if [ "${PKG_INSTALL_ROOT:=/}" = "/" -a -x /usr/bin/zonename ]; then |
|
175 |
ZONENAME=`/usr/bin/zonename` |
|
176 |
if [ ${ZONENAME} = "global" ]; then |
|
177 |
GLOBAL_ZONE=true |
|
178 |
else |
|
179 |
GLOBAL_ZONE=false |
|
180 |
fi |
|
181 |
else |
|
182 |
# Unable to determine zone |
|
183 |
GLOBAL_ZONE=true |
|
184 |
fi |
|
185 |
} |
|
186 |
||
187 |
# I am testing if /usr/java/jre/lib/ is writable as this is the only dir touched by this postinstall script |
|
188 |
# If there are other dirs that are touched later then need to add them here as well |
|
189 |
LocalZones () { |
|
9546 | 190 |
/usr/bin/touch ${BASEDIR}/java/jre/lib/.test.$$ > /dev/null 2>&1 |
9397 | 191 |
if [ $? != 0 ]; then |
192 |
return 0 |
|
193 |
fi |
|
9546 | 194 |
rm -f ${BASEDIR}/java/jre/lib/.test.$$ > /dev/null 2>&1 |
9397 | 195 |
ExecuteDefaultCmds |
196 |
return $? |
|
197 |
||
198 |
} |
|
199 |
||
200 |
||
201 |
ExecuteDefaultCmds() { |
|
202 |
||
203 |
||
204 |
if [ -h ${BASEDIR}/java/jre/lib/accessibility.properties ]; |
|
205 |
then |
|
206 |
rm -f ${BASEDIR}/java/jre/lib/accessibility.properties |
|
207 |
fi |
|
208 |
# Remove the incorrect /usr/java entries from the packaging database. |
|
209 |
# Ignore errors for situation where files no longer in db as removing a |
|
210 |
# non-existant reference does not cause any harm. |
|
211 |
removef $PKGINST /usr/java/jre/lib/accessibility.properties >/dev/null 2>&1 |
|
212 |
removef $PKGINST /usr/java/jre/lib/ext/gnome-java-bridge.jar >/dev/null 2>&1 |
|
213 |
removef -f $PKGINST >/dev/null 2>&1 |
|
214 |
||
215 |
# Determine the full path (symlinks resolved) to JDK pointed to by /usr/java. |
|
216 |
cd $BASEDIR |
|
217 |
JAVADIR=java |
|
218 |
JDK_DIR=$BASEDIR |
|
219 |
# If $JAVADIR is a symlink then we must resolve it. |
|
220 |
if [ -d $JAVADIR -a -h $JAVADIR ] |
|
221 |
then |
|
222 |
# Get symlink target. |
|
223 |
DIR=`ls -l $JAVADIR | awk '{print $NF}'` |
|
224 |
||
225 |
# If the target is a symlink then need to resolve it. |
|
226 |
if [ -d $DIR -a -h $DIR ] |
|
227 |
then |
|
228 |
nextdir=`dirname $DIR` |
|
229 |
cd $nextdir |
|
230 |
JDK_DIR="$JDK_DIR/$nextdir" # Append this bit. |
|
231 |
||
232 |
f=`basename $DIR` |
|
233 |
nextdir=`ls -l $f | awk '{print $NF}'` |
|
234 |
JDK_DIR="$JDK_DIR/$nextdir" |
|
235 |
else |
|
236 |
# otherwise just append to $JDK_DIR and we're done. |
|
237 |
JDK_DIR="$JDK_DIR/$DIR" |
|
238 |
fi |
|
239 |
else |
|
240 |
# If the 'java' item is not a symlink (presumably a dir) there will be no |
|
241 |
# symlink to installf items to. |
|
242 |
return 0 |
|
243 |
fi |
|
244 |
||
245 |
cd ${JDK_DIR}/jre/lib || exit 2 |
|
246 |
# Dynamically determine number of '..' required. |
|
247 |
JAR_DIR=share/jar |
|
248 |
DOTS=. |
|
249 |
LEVEL=0 |
|
250 |
FILE=accessibility.properties |
|
251 |
# Keep testing, up to a max of 10 levels to avoid infinite loop. |
|
252 |
while [ ! -f $DOTS/$JAR_DIR/$FILE ] && [ $LEVEL -lt 10 ] |
|
253 |
do |
|
254 |
DOTS="$DOTS/.." |
|
255 |
LEVEL=`expr $LEVEL + 1` |
|
256 |
done |
|
257 |
if [ -f $DOTS/$JAR_DIR/$FILE ]; then |
|
258 |
ln -s $DOTS/$JAR_DIR/$FILE . || exit 2 |
|
259 |
installf $PKGINST ${JDK_DIR}/jre/lib/$FILE=$DOTS/$JAR_DIR/$FILE s || exit 2 |
|
260 |
fi |
|
261 |
FILE=gnome-java-bridge.jar |
|
262 |
if [ -f $DOTS/$JAR_DIR/$FILE ]; then |
|
263 |
cp $DOTS/$JAR_DIR/$FILE ext || exit 2 |
|
264 |
installf $PKGINST ${JDK_DIR}/jre/lib/ext/$FILE f 0644 root bin || exit 2 |
|
265 |
fi |
|
266 |
||
267 |
installf -f $PKGINST || exit 2 |
|
268 |
||
269 |
return 0 |
|
270 |
||
271 |
} |
|
272 |
||
273 |
ExecuteWholerootCmds() { |
|
274 |
||
275 |
||
276 |
if [ -h ${BASEDIR}/java/jre/lib/accessibility.properties ]; |
|
277 |
then |
|
278 |
rm -f ${BASEDIR}/java/jre/lib/accessibility.properties |
|
279 |
fi |
|
280 |
# Remove the incorrect /usr/java entries from the packaging database. |
|
281 |
# Ignore errors for situation where files no longer in db as removing a |
|
282 |
# non-existant reference does not cause any harm. |
|
283 |
removef $PKGINST /usr/java/jre/lib/accessibility.properties >/dev/null 2>&1 |
|
284 |
removef $PKGINST /usr/java/jre/lib/ext/gnome-java-bridge.jar >/dev/null 2>&1 |
|
285 |
removef -f $PKGINST >/dev/null 2>&1 |
|
286 |
||
287 |
# Determine the full path (symlinks resolved) to JDK pointed to by /usr/java. |
|
288 |
cd $BASEDIR |
|
289 |
JAVADIR=java |
|
290 |
JDK_DIR=$BASEDIR |
|
291 |
# If $JAVADIR is a symlink then we must resolve it. |
|
292 |
if [ -d $JAVADIR -a -h $JAVADIR ] |
|
293 |
then |
|
294 |
# Get symlink target. |
|
295 |
DIR=`ls -l $JAVADIR | awk '{print $NF}'` |
|
296 |
||
297 |
# If the target is a symlink then need to resolve it. |
|
298 |
if [ -d $DIR -a -h $DIR ] |
|
299 |
then |
|
300 |
nextdir=`dirname $DIR` |
|
301 |
cd $nextdir |
|
302 |
JDK_DIR="$JDK_DIR/$nextdir" # Append this bit. |
|
303 |
||
304 |
f=`basename $DIR` |
|
305 |
nextdir=`ls -l $f | awk '{print $NF}'` |
|
306 |
JDK_DIR="$JDK_DIR/$nextdir" |
|
307 |
else |
|
308 |
# otherwise just append to $JDK_DIR and we're done. |
|
309 |
JDK_DIR="$JDK_DIR/$DIR" |
|
310 |
fi |
|
311 |
else |
|
312 |
# If the 'java' item is not a symlink (presumably a dir) there will be no |
|
313 |
# symlink to installf items to. |
|
314 |
return 0 |
|
315 |
fi |
|
316 |
||
317 |
cd ${JDK_DIR}/jre/lib || exit 2 |
|
318 |
# Extra '..' because traversing up through symlink. |
|
319 |
# |
|
320 |
# Due to bugid 6358671, need to check whether we are running pkgadd relative to /export/Solaris_1* |
|
321 |
# and the link ${PKG_INSTALL_ROOT}/usr_${ARCH}.all to see whether this is smosservice. |
|
322 |
# Also not do installf since diskless client root and user packages are not in installed relative |
|
323 |
# to the same directory. installf/removef will never work properly |
|
324 |
# |
|
325 |
if [ -h ${PKG_INSTALL_ROOT}/usr_${ARCH}.all ]; then |
|
326 |
# Dynamically determine number of '..' required. |
|
327 |
JAR_DIR=share/jar |
|
328 |
DOTS=. |
|
329 |
LEVEL=0 |
|
330 |
FILE=accessibility.properties |
|
331 |
# Keep testing, up to a max of 10 levels to avoid infinite loop. |
|
332 |
while [ ! -f $DOTS/$JAR_DIR/$FILE ] && [ $LEVEL -lt 10 ] |
|
333 |
do |
|
334 |
DOTS="$DOTS/.." |
|
335 |
LEVEL=`expr $LEVEL + 1` |
|
336 |
done |
|
337 |
if [ -f $DOTS/$JAR_DIR/$FILE ]; then |
|
338 |
ln -s $DOTS/$JAR_DIR/$FILE . || exit 2 |
|
339 |
fi |
|
340 |
FILE=gnome-java-bridge.jar |
|
341 |
if [ -f $DOTS/$JAR_DIR/$FILE ]; then |
|
342 |
cp $DOTS/$JAR_DIR/$FILE ext || exit 2 |
|
343 |
fi |
|
344 |
else |
|
345 |
# Dynamically determine number of '..' required. |
|
346 |
JAR_DIR=share/jar |
|
347 |
DOTS=. |
|
348 |
LEVEL=0 |
|
349 |
FILE=accessibility.properties |
|
350 |
# Keep testing, up to a max of 10 levels to avoid infinite loop. |
|
351 |
while [ ! -f $DOTS/$JAR_DIR/$FILE ] && [ $LEVEL -lt 10 ] |
|
352 |
do |
|
353 |
DOTS="$DOTS/.." |
|
354 |
LEVEL=`expr $LEVEL + 1` |
|
355 |
done |
|
356 |
if [ -f $DOTS/$JAR_DIR/$FILE ]; then |
|
357 |
ln -s $DOTS/$JAR_DIR/$FILE . || exit 2 |
|
358 |
installf $PKGINST ${JDK_DIR}/jre/lib/$FILE=$DOTS/$JAR_DIR/$FILE s || exit 2 |
|
359 |
fi |
|
360 |
FILE=gnome-java-bridge.jar |
|
361 |
if [ -f $DOTS/$JAR_DIR/$FILE ]; then |
|
362 |
cp $DOTS/$JAR_DIR/$FILE ext || exit 2 |
|
363 |
installf $PKGINST ${JDK_DIR}/jre/lib/ext/$FILE f 0644 root bin || exit 2 |
|
364 |
fi |
|
365 |
||
366 |
installf -f $PKGINST || exit 2 |
|
367 |
fi |
|
368 |
return 0 |
|
369 |
||
370 |
} |
|
371 |
||
372 |
ExecuteDisklessCmds() { |
|
373 |
||
374 |
||
375 |
if [ -h ${BASEDIR}/java/jre/lib/accessibility.properties ]; |
|
376 |
then |
|
377 |
rm -f ${BASEDIR}/java/jre/lib/accessibility.properties |
|
378 |
fi |
|
379 |
# Remove the incorrect /usr/java entries from the packaging database. |
|
380 |
# Ignore errors for situation where files no longer in db as removing a |
|
381 |
# non-existant reference does not cause any harm. |
|
382 |
removef $PKGINST /usr/java/jre/lib/accessibility.properties >/dev/null 2>&1 |
|
383 |
removef $PKGINST /usr/java/jre/lib/ext/gnome-java-bridge.jar >/dev/null 2>&1 |
|
384 |
removef -f $PKGINST >/dev/null 2>&1 |
|
385 |
||
386 |
# Determine the full path (symlinks resolved) to JDK pointed to by /usr/java. |
|
387 |
cd $BASEDIR |
|
388 |
JAVADIR=java |
|
389 |
JDK_DIR=$BASEDIR |
|
390 |
# If $JAVADIR is a symlink then we must resolve it. |
|
391 |
if [ -d $JAVADIR -a -h $JAVADIR ] |
|
392 |
then |
|
393 |
# Get symlink target. |
|
394 |
DIR=`ls -l $JAVADIR | awk '{print $NF}'` |
|
395 |
||
396 |
# If the target is a symlink then need to resolve it. |
|
397 |
if [ -d $DIR -a -h $DIR ] |
|
398 |
then |
|
399 |
nextdir=`dirname $DIR` |
|
400 |
cd $nextdir |
|
401 |
JDK_DIR="$JDK_DIR/$nextdir" # Append this bit. |
|
402 |
||
403 |
f=`basename $DIR` |
|
404 |
nextdir=`ls -l $f | awk '{print $NF}'` |
|
405 |
JDK_DIR="$JDK_DIR/$nextdir" |
|
406 |
else |
|
407 |
# otherwise just append to $JDK_DIR and we're done. |
|
408 |
JDK_DIR="$JDK_DIR/$DIR" |
|
409 |
fi |
|
410 |
else |
|
411 |
# If the 'java' item is not a symlink (presumably a dir) there will be no |
|
412 |
# symlink to installf items to. |
|
413 |
return 0 |
|
414 |
fi |
|
415 |
||
416 |
cd ${JDK_DIR}/jre/lib || exit 2 |
|
417 |
# Dynamically determine number of '..' required. |
|
418 |
JAR_DIR=share/jar |
|
419 |
DOTS=. |
|
420 |
LEVEL=0 |
|
421 |
FILE=accessibility.properties |
|
422 |
# Keep testing, up to a max of 10 levels to avoid infinite loop. |
|
423 |
while [ ! -f $DOTS/$JAR_DIR/$FILE ] && [ $LEVEL -lt 10 ] |
|
424 |
do |
|
425 |
DOTS="$DOTS/.." |
|
426 |
LEVEL=`expr $LEVEL + 1` |
|
427 |
done |
|
428 |
if [ -f $DOTS/$JAR_DIR/$FILE ]; then |
|
429 |
ln -s $DOTS/$JAR_DIR/$FILE . || exit 2 |
|
430 |
fi |
|
431 |
FILE=gnome-java-bridge.jar |
|
432 |
if [ -f $DOTS/$JAR_DIR/$FILE ]; then |
|
433 |
cp $DOTS/$JAR_DIR/$FILE ext || exit 2 |
|
434 |
fi |
|
435 |
||
436 |
# |
|
437 |
# Comment this out since diskless service root and usr packages are installed in seperate directories and do not have a common package database. installf and removef will not work |
|
438 |
||
439 |
# installf $PKGINST ${JDK_DIR}/jre/lib/accessibility.properties=../../../../../share/jar/accessibility.properties s || exit 2 |
|
440 |
# installf $PKGINST ${JDK_DIR}/jre/lib/ext/gnome-java-bridge.jar f 0644 root bin || exit 2 |
|
441 |
# installf -f $PKGINST || exit 2 |
|
442 |
||
443 |
return 0 |
|
444 |
||
445 |
} |
|
446 |
ExecuteInProperEnvironment () { |
|
447 |
||
448 |
# |
|
449 |
# The following is comment out since pkgcond does not support smosservice |
|
450 |
# if $PKGCOND is_smosservice > /dev/null 2>&1 ; then |
|
451 |
# Execute smosservice for diskless clients service commands. |
|
452 |
# We use $BASEDIR because of diskless client restrictions |
|
453 |
# ExecuteDisklessCmds |
|
454 |
# return 0 |
|
455 |
# fi |
|
456 |
||
457 |
if $PKGCOND is_whole_root_nonglobal_zone > /dev/null 2>&1 ; then |
|
458 |
# Execute non-global whole root zone commands. |
|
459 |
# Should be same action as the default action. |
|
460 |
ExecuteWholerootCmds |
|
461 |
return 0 |
|
462 |
fi |
|
463 |
||
464 |
if $PKGCOND is_nonglobal_zone > /dev/null 2>&1 ; then |
|
465 |
# Execute non-global zone commands. Should be no action here |
|
466 |
return 0 |
|
467 |
fi |
|
468 |
||
469 |
if $PKGCOND is_alternative_root > /dev/null 2>&1 ; then |
|
470 |
# Execute commands specific to an alternate root |
|
471 |
ExecuteDefaultCmds |
|
472 |
return 0 |
|
473 |
fi |
|
474 |
||
475 |
if $PKGCOND is_global_zone > /dev/null 2>&1 ; then |
|
476 |
# In a global zone and system is mounted on /. |
|
477 |
# Execute all commands. |
|
478 |
ExecuteDefaultCmds |
|
479 |
return 0 |
|
480 |
fi |
|
481 |
||
482 |
return 0 |
|
483 |
} |
|
484 |
||
485 |
||
486 |
||
487 |
if [ -n "$PKG_INIT_INSTALL" ] ; then |
|
488 |
# initial installation of Solaris |
|
489 |
ExecuteDefaultCmds |
|
490 |
elif [ -n "$SUNW_PKG_INSTALL_ZONENAME" ] ; then |
|
491 |
# initial installation of non-global zone |
|
492 |
# Execute non-global zone commands. Should be no action here |
|
493 |
exit 0 |
|
494 |
elif [ -x $PKGCOND ] ; then |
|
495 |
# use pkgcond to determine what the package is being installed to |
|
496 |
ExecuteInProperEnvironment && exit 0 || exit 1 |
|
497 |
else |
|
498 |
CheckZones |
|
499 |
if [ "${GLOBAL_ZONE}" = "true" ]; then |
|
9546 | 500 |
# Call LocalZones() to verify that the /usr/java/jre/lib dir is |
501 |
# writeable before trying to create the symlink and copy the file. The |
|
502 |
# function name is unfortunate. To minimize changes it is not being |
|
503 |
# renamed nor this 'if' statement removed. Fixes 6531193. |
|
504 |
LocalZones |
|
9397 | 505 |
else |
506 |
LocalZones |
|
507 |
fi |
|
508 |
fi |
|
509 |
||
510 |
exit 0 |
|
10572 | 511 |
%endif |
9546 | 512 |
|
9397 | 513 |
%files |
12778 | 514 |
%defattr (-, root, bin) |
12763 | 515 |
%ifarch amd64 sparcv9 |
516 |
%dir %attr (0755, root, bin) %{_libdir}/%{_arch64} |
|
517 |
%{_libdir}/%{_arch64}/lib*.so* |
|
12778 | 518 |
%{_libdir}/%{_arch64}/bonobo |
12763 | 519 |
%{_libdir}/%{_arch64}/gtk-2.0/modules/*.so |
520 |
%{_libexecdir}/%{_arch64}/at-spi-registryd |
|
521 |
%{_libdir}/%{_arch64}/orbit-2.0/*.so |
|
522 |
%endif |
|
523 |
||
9397 | 524 |
%dir %attr (0755, root, bin) %{_bindir} |
525 |
%{_bindir}/* |
|
526 |
%dir %attr (0755, root, bin) %{_libdir} |
|
527 |
%{_libdir}/lib*.so* |
|
528 |
%{_libdir}/bonobo |
|
529 |
%{_libdir}/gtk-2.0/modules/*.so |
|
530 |
%{_libdir}/orbit-2.0/*.so |
|
10017 | 531 |
%{_libdir}/python?.? |
9397 | 532 |
%{_libexecdir}/at-spi-registryd |
533 |
%dir %attr (0755, root, sys) %{_datadir} |
|
534 |
%dir %attr (0755, root, sys) %{_datadir}/lib |
|
13654 | 535 |
%doc -d %{base_arch} at-spi-%{at_spi.version}/README |
536 |
%doc -d %{base_arch} at-spi-%{at_spi.version}/AUTHORS |
|
537 |
%doc(bzip2) -d %{base_arch} at-spi-%{at_spi.version}/COPYING |
|
538 |
%doc(bzip2) -d %{base_arch} at-spi-%{at_spi.version}/NEWS |
|
539 |
%doc(bzip2) -d %{base_arch} at-spi-%{at_spi.version}/ChangeLog |
|
540 |
%doc -d %{base_arch} freetts/freetts-%{freetts.version}/license.terms |
|
541 |
%doc -d %{base_arch} freetts/freetts-%{freetts.version}/acknowledgments.txt |
|
542 |
%doc -d %{base_arch} freetts/freetts-%{freetts.version}/ANNOUNCE.txt |
|
543 |
%doc -d %{base_arch} freetts/freetts-%{freetts.version}/RELEASE_NOTES |
|
544 |
%doc -d %{base_arch} freetts/freetts-%{freetts.version}/README.txt |
|
545 |
%doc -d %{base_arch} gnome-mag-%{gnome_mag.version}/README |
|
546 |
%doc -d %{base_arch} gnome-mag-%{gnome_mag.version}/AUTHORS |
|
547 |
%doc -d %{base_arch} gnome-mag-%{gnome_mag.version}/colorblind/colorblind-applet.py |
|
548 |
%doc(bzip2) -d %{base_arch} gnome-mag-%{gnome_mag.version}/COPYING |
|
549 |
%doc(bzip2) -d %{base_arch} gnome-mag-%{gnome_mag.version}/NEWS |
|
550 |
%doc(bzip2) -d %{base_arch} gnome-mag-%{gnome_mag.version}/ChangeLog |
|
551 |
%doc -d %{base_arch} java-access-bridge-%{java_access_bridge.version}/README |
|
552 |
%doc -d %{base_arch} java-access-bridge-%{java_access_bridge.version}/AUTHORS |
|
553 |
%doc(bzip2) -d %{base_arch} java-access-bridge-%{java_access_bridge.version}/COPYING |
|
554 |
%doc(bzip2) -d %{base_arch} java-access-bridge-%{java_access_bridge.version}/NEWS |
|
555 |
%doc(bzip2) -d %{base_arch} java-access-bridge-%{java_access_bridge.version}/ChangeLog |
|
556 |
%doc -d %{base_arch} libgail-gnome-%{libgail_gnome.version}/README |
|
557 |
%doc -d %{base_arch} libgail-gnome-%{libgail_gnome.version}/AUTHORS |
|
558 |
%doc(bzip2) -d %{base_arch} libgail-gnome-%{libgail_gnome.version}/COPYING |
|
559 |
%doc(bzip2) -d %{base_arch} libgail-gnome-%{libgail_gnome.version}/NEWS |
|
560 |
%doc(bzip2) -d %{base_arch} libgail-gnome-%{libgail_gnome.version}/ChangeLog |
|
9397 | 561 |
%dir %attr (0755, root, other) %{_datadir}/doc |
13654 | 562 |
%{_datadir}/doc/at-spi-%{at_spi.version}/* |
9397 | 563 |
%{_datadir}/gnome-mag |
10572 | 564 |
%if %option_with_java |
9397 | 565 |
%{_datadir}/jar |
10572 | 566 |
%endif |
9397 | 567 |
%{_datadir}/lib/freetts |
568 |
||
569 |
%files devel |
|
12763 | 570 |
%ifarch amd64 sparcv9 |
13376 | 571 |
%defattr (-, root, bin) |
12763 | 572 |
%dir %attr (0755, root, other) %{_libdir}/%{_arch64}/pkgconfig |
573 |
%{_libdir}/%{_arch64}/pkgconfig/* |
|
574 |
%endif |
|
9397 | 575 |
%defattr (-, root, bin) |
576 |
%dir %attr (0755, root, bin) %{_libdir} |
|
577 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig |
|
578 |
%{_libdir}/pkgconfig/* |
|
579 |
%dir %attr (0755, root, bin) %{_includedir} |
|
580 |
%{_includedir}/* |
|
581 |
%dir %attr (0755, root, sys) %{_datadir} |
|
582 |
%{_datadir}/idl |
|
583 |
%{_datadir}/gtk-doc |
|
584 |
%dir %attr(0755, root, bin) %{_mandir} |
|
13018 | 585 |
%dir %attr(0755, root, bin) %{_mandir}/* |
586 |
%{_mandir}/*/* |
|
9397 | 587 |
|
13809 | 588 |
%files root |
589 |
%defattr (-, root, sys) |
|
590 |
%attr (0755, root, sys) %dir %{_sysconfdir} |
|
591 |
%{_sysconfdir}/gconf/schemas/at-spi.schemas |
|
592 |
||
9397 | 593 |
%if %build_l10n |
594 |
%files l10n |
|
595 |
%defattr (-, root, bin) |
|
596 |
%dir %attr (0755, root, sys) %{_datadir} |
|
597 |
%attr (-, root, other) %{_datadir}/locale |
|
598 |
%endif |
|
599 |
||
600 |
%changelog |
|
13809 | 601 |
* Mon Sep 29 2008 - [email protected] |
602 |
- Added -root pkg for /etc/gconf/schemas/at-spi-schmeas. |
|
13714 | 603 |
* Mon Sep 22 2008 - [email protected] |
604 |
- Removed the empty dir /usr/share/doc/gnome-mag* |
|
13654 | 605 |
* Thu Sep 18 2008 - [email protected] |
606 |
- Added %doc to %files for copyright. |
|
13376 | 607 |
* Wed Sep 03 2008 - [email protected] |
608 |
- Add %defattr (-, root, bin) for "/usr/lib/amd/pkgconfig" dir, otherwise |
|
609 |
the pc files have "gbuild" ownership |
|
13018 | 610 |
* Tue Aug 05 2008 - [email protected] |
611 |
- Add manpages. |
|
12785 | 612 |
* Wed Jul 09 2008 - [email protected] |
613 |
- Remove EXTRA_LDFLAGS after adding patch to at-spi. |
|
12776 | 614 |
* Wed Jul 09 2008 - [email protected] |
12778 | 615 |
- Put %defattr prior to new files. |
616 |
* Wed Jul 09 2008 - [email protected] |
|
12776 | 617 |
- Move login-helper to EXTRA_LDFLAGS and add arch infomation so libraries depend |
618 |
on it can find it in the right place. Also add |
|
619 |
%{_libdir}/%{_arch64}/bonobo/servers/*.server to the file section. |
|
12774 | 620 |
* Tue Jul 08 2008 - [email protected] |
621 |
- Set ACLOCAL_FLAGS for use in gnome-mag.spec. |
|
12763 | 622 |
* Mon Jul 07 2008 - [email protected] |
623 |
- Fix 6697334. Add 64 bit libraries support for at-spi. |
|
11976 | 624 |
* Mon Mar 31 2008 - [email protected] |
625 |
- Add copyright file |
|
11878 | 626 |
* Wed Mar 19 2008 - [email protected] |
627 |
- Add dep on SUNWj6rt so that gnome-java-bridge.jar and accessibility.properties |
|
628 |
get installed in correct /usr/java link location. Fixes 6641866. |
|
11430 | 629 |
* Thu Jan 10 2008 - [email protected] |
630 |
- change owner to liyuan. |
|
10619 | 631 |
* Sun Oct 7 2007 - [email protected] |
10620 | 632 |
- add /usr/X11/include to CFLAGS |
10619 | 633 |
- delete Nevada X deps |
10572 | 634 |
* Fri Sep 28 2007 - [email protected] |
635 |
- disable java access bridge if build without java support |
|
10451 | 636 |
* Wed Sep 05 2007 - [email protected] |
637 |
- Remove references to SUNWgnome-a11y-base-libs as its contents have been |
|
638 |
moved to SUNWgnome-base-libs. |
|
10017 | 639 |
* Thu Jun 07 2007 - [email protected] |
640 |
- Add %{_libdir}/python?.? to %files and remove .pyo files in %install. |
|
9546 | 641 |
* Tue Mar 13 2007 - [email protected] |
642 |
- Incorporate %post changes from Mary Ding. Fixes 6531193. |
|
9441 | 643 |
* Mon Mar 05 2007 - [email protected] |
644 |
- Add Build/Requires SUNWgnome-config/-devel as gconf-2.0.pc is needed. |
|
9397 | 645 |
* Fri Sep 01 2006 - [email protected] |
646 |
- New Manpage tarball |
|
647 |
* Sat Aug 12 2006 - [email protected] |
|
648 |
- delete some unnecessary env variables |
|
649 |
* Fri Jul 14 2006 - [email protected] |
|
650 |
- Remove .la files before packaging. |
|
651 |
* Thu Jun 22 2006 - [email protected] |
|
652 |
- Change 'return 0' to 'exit 0' in main function in %post share. Fixes 6437617. |
|
653 |
* Tue Jun 13 2006 - [email protected] |
|
654 |
- Add dependencies on SUNWzoner/u and SUNWpkgcmdsu for zonename and pkgcond |
|
655 |
binaries that are used in the postinstall script. As suggested in 6377106. |
|
656 |
* Sun Jun 11 2006 - [email protected] |
|
657 |
- change group from other to bin/sys |
|
658 |
* Tue May 30 2006 - [email protected] |
|
659 |
- Merge postinstall script from JDS3.1 branch. Include fix for 6431039. |
|
660 |
* Tue May 09 2006 - [email protected] |
|
661 |
- merge -share pkg(s) into the base pkg(s) |
|
662 |
* Fri May 05 2006 - [email protected] |
|
663 |
- Copy postinstall script from JDS3.1 branch. Incorporate dynamic code. |
|
664 |
* Tue Mar 14 2006 - [email protected] |
|
665 |
- Add doc dir to share package. |
|
666 |
* Mon Feb 20 2006 - [email protected] |
|
667 |
- Complete update of Build/Requires after running check-deps.pl script. |
|
668 |
* Thu Feb 16 2006 - [email protected] |
|
669 |
- Update Build/Requires after running check-deps.pl script. |
|
670 |
- Move Requires SUNWj5rt to share package as postinstall that installs the |
|
671 |
symlink under a SUNWj5rt directory is in share package. Make base package |
|
672 |
require share package. |
|
673 |
* Fri Dec 02 2005 - [email protected] |
|
674 |
- Add Requires SUNWj5rt so that symlink can be created. |
|
675 |
* Mon Nov 21 2005 - [email protected] |
|
676 |
- Add %post share code to accomodate zones. Bug 6347858. Copied from |
|
677 |
cinnabar-solaris branch. |
|
678 |
* Mon Sep 12 2005 - [email protected] |
|
679 |
- define l10n subpkg |
|
680 |
* Tue Jun 14 2005 - [email protected] |
|
681 |
- Fix packaging. |
|
682 |
* Fri Jun 10 2005 - [email protected] |
|
683 |
- Call %freetts.build, and add lib/freetts dir to share package. |
|
684 |
* Mon Nov 22 2004 - [email protected] |
|
685 |
- Fix for 6197816: gnopernicus moved to /usr/demo/jds so gnome-mag moved to |
|
686 |
SUNWgnome-a11y-libs package to remain in /usr/bin. |
|
687 |
* Sat Oct 02 2004 - [email protected] |
|
688 |
- added %pkgbuild_postprocess |
|
689 |
* Mon Aug 30 2004 - [email protected] |
|
690 |
- Bug 5091588 : sman3/4 files should be in a devel package |
|
691 |
* Mon Aug 23 2004 - [email protected] |
|
692 |
- s/SUNWpl5u/SUNWperl584usr/ |
|
693 |
* Wed Aug 18 2004 - [email protected] |
|
694 |
- Added back gtk-docs to packaging. Needed because the at-cspi docs |
|
695 |
are referred to from the libcspi.3 man page. |
|
696 |
* Wed Aug 18 2004 - [email protected] |
|
697 |
- Change manpage perms for Solaris integration. |
|
698 |
* Fri Jul 23 2004 - [email protected] |
|
699 |
- Move freetts from SUNWgnome-a11y-speech. |
|
700 |
* Tue Jun 22 2004 - [email protected] |
|
701 |
- changed install location to /usr/lib and /usr/bin |
|
702 |
* Wed Apr 14 2004 - [email protected] |
|
703 |
- Add entry to %files for accessibility.properties and gnome-java-bridge.jar |
|
704 |
* Fri Mar 26 2004 - [email protected] |
|
705 |
- add panel dependency |
|
706 |
* Wed Mar 24 2004 - [email protected] |
|
707 |
- Added SGML man page integration |
|
708 |
* Tue Mar 23 2004 - [email protected] |
|
709 |
- Remove gtk-doc and _datadir/lib from %files |
|
710 |
* Thu Feb 26 2004 - [email protected] |
|
711 |
- Add devel-share subpkg for idl files and api docs |