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