SUNWpostrun.spec
author adampaul
Tue, 22 Jul 2008 16:07:57 +0000
branchopensolaris-2008-05
changeset 11066 ed015069b8c6
parent 9397 b16e349d18c5
child 10907 b4b2e869d248
permissions -rw-r--r--
Checkin fixes needed to build the OS2008.05 branch
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 SUNWpostrun
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): postrun
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) 2005 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
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    10
# Owner: laca
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
%include Solaris.inc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    13
Name:                    SUNWpostrun
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    14
Summary:                 Delayed execution environment for procedural package scripts
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    15
Version:                 1.0
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    16
Source1:                 postrun
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    17
Source2:                 postrun.usr
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    18
Source3:                 postrun-runq
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    19
Source4:                 postrun-query
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    20
Source5:                 postrun.xml
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    21
SUNW_BaseDir:            /usr
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    22
BuildRoot:               %{_tmppath}/%{name}-%{version}-build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    23
%include default-depend.inc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    24
Requires: %{name}-root
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    25
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    26
%package root
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    27
Summary:                 %{summary} - / filesystem
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    28
SUNW_BaseDir:            /
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    29
%include default-depend.inc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    30
Requires: SUNWlxml
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
%install
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    33
mkdir -p \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    34
    $RPM_BUILD_ROOT/usr/lib \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    35
    $RPM_BUILD_ROOT/var/spool/postrun \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    36
    $RPM_BUILD_ROOT/var/log \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    37
    $RPM_BUILD_ROOT/var/lib/postrun \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    38
    $RPM_BUILD_ROOT/var/svc/manifest/system
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    39
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    40
install --mode=0755 %SOURCE1 $RPM_BUILD_ROOT/var/lib/postrun
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    41
install --mode=0755 %SOURCE2 $RPM_BUILD_ROOT/usr/lib/postrun
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    42
install --mode=0755 %SOURCE3 $RPM_BUILD_ROOT/var/lib/postrun
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    43
install --mode=0755 %SOURCE4 $RPM_BUILD_ROOT/usr/lib
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    44
install --mode=0444 %SOURCE5 $RPM_BUILD_ROOT/var/svc/manifest/system
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    45
touch $RPM_BUILD_ROOT/var/log/postrun.log
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    46
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    47
%clean
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    48
rm -rf $RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    49
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    50
%if %(test -f /usr/sadm/install/scripts/i.manifest && echo 0 || echo 1)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    51
%iclass manifest -f i.manifest
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    52
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    53
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    54
%files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    55
%defattr (-, root, bin)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    56
%dir %attr (0755, root, bin) /usr/lib
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    57
/usr/lib/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    58
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    59
%files root
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    60
%defattr (-, root, sys)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    61
%dir %attr (0755, root, other) /var/lib
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    62
/var/lib/postrun
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    63
%dir %attr (0755, root, bin) /var/spool
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    64
%attr (0755, root, bin) /var/spool/postrun
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    65
%class(manifest) /var/svc/manifest/system/postrun.xml
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    66
%ghost /var/log/postrun.log
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    67
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    68
%changelog
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    69
* Thu Jul 13 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    70
- move postrun to /var/lib, add a wrapper script (postrun.usr) to /usr/lib
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    71
* Thu Jun 29 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    72
- add postrun-query
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    73
* Sat Dec  3 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    74
- created