SUNWjdsrm.spec
author daniell
Wed, 13 Oct 2010 16:43:58 +0000
branchopensolaris-2009-06
changeset 20159 f18a6979f732
parent 12048 4acf887e4d2a
child 16434 f21f22550fe9
permissions -rw-r--r--
6965295 [CVE-2010-1205/CVE-2010-2249] Multiple security issues in libpng 1.2 versions before 1.2.44
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     1
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     2
# spec file for package SUNWjdsrm
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     3
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     4
# includes module(s): SUNWjdsver.spec
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     5
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     6
# Copyright (c) 2004 Sun Microsystems, Inc.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     7
# This file and all modifications and additions to the pristine
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     8
# package are under the same license as the package itself.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     9
#
12048
4acf887e4d2a 2008-04-07 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9397
diff changeset
    10
# Owner: laca
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    11
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    12
# DO NOT REMOVE NEXT LINE
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    13
# PACKAGE NOT ARC REVIEWED BY SUN JDS TEAM
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    14
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    15
%include Solaris.inc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    16
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    17
%use jdsver = SunDesktopVersion.spec
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    18
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    19
Name:                    SUNWjdsrm
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    20
Summary:                 Java Desktop System upgrade package remove
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    21
# Note: increment the nano version in case of a respin.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    22
#       New builds should start with a 0
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    23
#       110 means integrated into solaris 11.0
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    24
Version:                 %{jdsver.prodRelMajor}.%{jdsver.prodBuild}.0
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    25
SUNW_Category: 		 JDS,system,%{jds_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    26
SUNW_BaseDir:            /
12048
4acf887e4d2a 2008-04-07 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9397
diff changeset
    27
SUNW_Copyright:          %{name}.copyright
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    28
BuildRoot:               %{_tmppath}/%{name}-%{version}-build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    29
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    30
%include default-depend.inc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    31
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    32
%prep
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    33
rm -rf %name-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    34
mkdir %name-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    35
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    36
%clean
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    37
rm -rf $RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    38
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    39
%files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    40
%defattr (-, root, bin)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    41
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    42
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    43
%post
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    44
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    45
# JDS clean up for packages with non-standard package version strings
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    46
# Note: Any pkg using SUNWjdsrm to remove a previous version, 
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    47
#	Must add SUNWjdsrm to it's package depend file to ensure the
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    48
#	removal of the previous version before the addition of the
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    49
#	new version.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    50
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    51
PKG="SUNWglow SUNWjai-imageio SUNWjmf SUNWjmfmp3 SUNWjdsver SUNWjpeg SUNWjpegx SUNWtiff SUNWtiffx"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    52
cat > /tmp/admin.dflt.$$ << EOF
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    53
mail=
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    54
instance=overwrite
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    55
partial=nocheck
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    56
runlevel=nocheck
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    57
idepend=nocheck
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    58
rdepend=nocheck
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    59
space=nocheck
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    60
setuid=nocheck
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    61
conflict=nocheck
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    62
action=nocheck
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    63
basedir=default
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    64
EOF
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    65
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    66
REM_SCRIPT=/tmp/pkgremoval.$PKGINST.$$
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    67
echo "PATH=/usr/sadm/bin:$PATH" > $REM_SCRIPT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    68
do_pkgrm() {
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    69
  echo "sleep 3" >> $REM_SCRIPT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    70
  echo "echo Now removing old instance of $1" >> $REM_SCRIPT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    71
  eval echo `gettext SUNW_INSTALL_LIBSVC 'Removing package $1:'`
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    72
  if [ -n "${PKG_INSTALL_ROOT}" ]; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    73
    if [ -f ${PKG_INSTALL_ROOT}/var/sadm/pkg/$i/install/preremove ]; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    74
      sed -e 's: /usr: ${PKG_INSTALL_ROOT}/usr:' ${PKG_INSTALL_ROOT}/var/sadm/pkg/$i/install/preremove > /tmp/$i.pkgremove.$$
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    75
      cp /tmp/$i.pkgremove.$$ ${PKG_INSTALL_ROOT}/var/sadm/pkg/$i/install/preremove
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    76
      rm /tmp/$i.pkgremove.$$
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    77
    fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    78
    echo "pkgrm -M -R ${PKG_INSTALL_ROOT} -a /tmp/admin.dflt.$$ -n $1" >> $REM_SCRIPT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    79
  else
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    80
    echo "pkgrm -M -a /tmp/admin.dflt.$$ -n $1" >> $REM_SCRIPT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    81
  fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    82
}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    83
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    84
for i in $PKG
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    85
do
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    86
  if [ -n "${PKG_INSTALL_ROOT}" ]; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    87
    (pkgparam -R ${PKG_INSTALL_ROOT} $i VERSION | egrep -v  '^[0-9.]+$|^[0-9.]+,REV=[0-9.]+$') > /dev/null 2>&1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    88
  else
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    89
    (pkgparam  $i VERSION | egrep -v  '^[0-9.]+$|^[0-9.]+,REV=[0-9.]+$') > /dev/null 2>&1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    90
  fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    91
  exist=$?
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    92
  if [ $exist -eq 0 ] ; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    93
    do_pkgrm $i
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    94
  fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    95
done
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    96
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    97
if [ -f $REM_SCRIPT ]; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    98
  sh $REM_SCRIPT &
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    99
fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   100
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   101
exit 0
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   102
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   103
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   104
%changelog
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   105
* Sun Jun 11 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   106
- change group from other to bin/sys
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   107
* Thu May 25 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   108
- Updated package version string to remove "110" from the VERSION. 
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   109
  This makes it consistent with SUNWjdsver.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   110
* Tue Nov 05 2004 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   111
- Bug 4810847 & 6185753:  Initial Creation