specs/SUNWpostrun.spec
author Jon Tibble <meths@btinternet.com>
Sat Oct 06 16:11:50 2012 +0100 (2012-10-06)
branchs11express-2010-11
changeset 22109 db10202d5f6d
parent 20065 8cf85d0a1d82
permissions -rw-r--r--
Added tag oi_151a_prestable7 for changeset 25dee50cecca
     1 #
     2 # spec file for package SUNWpostrun
     3 #
     4 # includes module(s): postrun
     5 #
     6 # Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
     7 #
     8 # This file and all modifications and additions to the pristine
     9 # package are under the same license as the package itself.
    10 #
    11 %define owner laca
    12 #
    13 
    14 %define OSR developed in the open, no OSR needed:n/a
    15 
    16 %include Solaris.inc
    17 Name:                    SUNWpostrun
    18 IPS_package_name:        service/postrun
    19 Meta(info.classification): %{classification_prefix}:Applications/System Utilities
    20 Summary:                 Delayed execution environment for procedural package scripts
    21 License:                 CDDL
    22 Vendor:                  Sun Microsystems, Inc.
    23 Version:                 1.0
    24 Source1:                 postrun
    25 Source2:                 postrun.usr
    26 Source3:                 postrun-runq
    27 Source4:                 postrun-query
    28 Source5:                 postrun.xml
    29 SUNW_BaseDir:            /usr
    30 SUNW_Copyright:          %{name}.copyright
    31 BuildRoot:               %{_tmppath}/%{name}-%{version}-build
    32 %include default-depend.inc
    33 Requires: %{name}-root
    34 
    35 %package root
    36 Summary:                 %{summary} - / filesystem
    37 SUNW_BaseDir:            /
    38 %include default-depend.inc
    39 Requires: SUNWlxml
    40 
    41 %install
    42 mkdir -p \
    43     $RPM_BUILD_ROOT/usr/lib \
    44     $RPM_BUILD_ROOT/var/spool/postrun \
    45     $RPM_BUILD_ROOT/var/log \
    46     $RPM_BUILD_ROOT/var/lib/postrun \
    47     $RPM_BUILD_ROOT/var/svc/manifest/system
    48 
    49 install --mode=0755 %SOURCE1 $RPM_BUILD_ROOT/var/lib/postrun
    50 install --mode=0755 %SOURCE2 $RPM_BUILD_ROOT/usr/lib/postrun
    51 install --mode=0755 %SOURCE3 $RPM_BUILD_ROOT/var/lib/postrun
    52 install --mode=0755 %SOURCE4 $RPM_BUILD_ROOT/usr/lib
    53 install --mode=0444 %SOURCE5 $RPM_BUILD_ROOT/var/svc/manifest/system
    54 touch $RPM_BUILD_ROOT/var/log/postrun.log
    55 
    56 %clean
    57 rm -rf $RPM_BUILD_ROOT
    58 
    59 %if %(test -f /usr/sadm/install/scripts/i.manifest && echo 0 || echo 1)
    60 %iclass manifest -f i.manifest
    61 %endif
    62 
    63 %files
    64 %defattr (-, root, bin)
    65 %dir %attr (0755, root, bin) /usr/lib
    66 /usr/lib/*
    67 
    68 %files root
    69 %defattr (-, root, sys)
    70 %dir %attr (0755, root, other) /var/lib
    71 /var/lib/postrun
    72 %dir %attr (0755, root, bin) /var/spool
    73 %attr (0755, root, bin) /var/spool/postrun
    74 %class(manifest) /var/svc/manifest/system/postrun.xml
    75 %ghost /var/log/postrun.log
    76 
    77 %changelog
    78 * Mon Aug 16 2010 - laszlo.peter@oracle.com
    79 - copyright update
    80 * Thu Jul 13 2006 - laca@sun.com
    81 - move postrun to /var/lib, add a wrapper script (postrun.usr) to /usr/lib
    82 * Thu Jun 29 2006 - laca@sun.com
    83 - add postrun-query
    84 * Sat Dec  3 2005 - laca@sun.com
    85 - created