-
Notifications
You must be signed in to change notification settings - Fork 0
/
powerpc-utils.spec.in
108 lines (96 loc) · 2.68 KB
/
powerpc-utils.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
%define name powerpc-utils
%define version @VERSION@
%define release 2
Summary: Utilities for PowerPC platforms
Name: %{name}
Version: %{version}
Release: %{release}
License: IBM Common Public License (CPL)
Group: System Environment
Source: powerpc-utils-%{version}.tar.gz
BuildRoot: /tmp/%{name}-buildroot/
Requires: /bin/bash, /bin/sh, /bin/sed, /usr/bin/perl, librtas >= 1.3.0, zlib
Requires: bc
Requires: coreutils
Requires: findutils
Requires: gawk
Requires: grep
Requires: /sbin/modprobe
Requires: /sbin/shutdown
Requires: udev
Requires: util-linux
Requires: which
%description
Utilities for maintaining and servicing PowerPC systems.
%prep
%setup -q
%build
%configure
%{__make} %{?_smp_mflags}
%install
%{__rm} -rf $RPM_BULD_ROOT
%{__make} install DESTDIR=$RPM_BUILD_ROOT
%files
%defattr(-,root,root)
/usr/share/doc/packages/powerpc-utils/README
/usr/share/doc/packages/powerpc-utils/COPYRIGHT
/usr/sbin/update_flash
/usr/sbin/update_flash_nv
/usr/sbin/activate_firmware
/usr/sbin/set_poweron_time
/usr/sbin/rtas_ibm_get_vpd
/usr/sbin/serv_config
/usr/sbin/uesensor
/usr/sbin/hvcsadmin
/usr/sbin/rtas_dump
/usr/sbin/rtas_event_decode
/usr/sbin/sys_ident
/usr/sbin/drmgr
/usr/sbin/lsslot
/usr/sbin/lsprop
/usr/sbin/nvram
/usr/sbin/snap
/usr/sbin/bootlist
/usr/sbin/ofpathname
/usr/sbin/ppc64_cpu
/usr/sbin/lsdevinfo
/usr/sbin/ls-veth
/usr/sbin/ls-vdev
/usr/sbin/ls-vscsi
/usr/sbin/lparstat
/usr/bin/amsstat
/usr/share/man/man8/update_flash.8.gz
/usr/share/man/man8/activate_firmware.8.gz
/usr/share/man/man8/set_poweron_time.8.gz
/usr/share/man/man8/rtas_ibm_get_vpd.8.gz
/usr/share/man/man8/serv_config.8.gz
/usr/share/man/man8/uesensor.8.gz
/usr/share/man/man8/hvcsadmin.8.gz
/usr/share/man/man8/rtas_dump.8.gz
/usr/share/man/man8/sys_ident.8.gz
/usr/share/man/man8/nvram.8.gz
/usr/share/man/man8/snap.8.gz
/usr/share/man/man8/bootlist.8.gz
/usr/share/man/man8/ofpathname.8.gz
/usr/share/man/man5/lparcfg.5.gz
/usr/share/man/man8/lparstat.8.gz
/usr/share/man/man8/lsslot.8.gz
/usr/share/man/man1/amsstat.1.gz
%post
# Post-install script -----------------------------------------------
ln -sf /usr/sbin/serv_config usr/sbin/uspchrp
ln -sf /usr/share/man/man8/serv_config.8 usr/share/man/man8/uspchrp.8
%postun
# Post-uninstall script ---------------------------------------------
if [ "$1" = "0" ]; then
# last uninstall
rm -f /usr/sbin/uspchrp
rm -f /usr/share/man/man8/uspchrp.8.gz
fi
%changelog
* Tue Dec 7 2011 Brian King <[email protected]>
- Added lsslot man page
* Fri May 13 2011 Brian King <[email protected]>
- Fixed some ofpathname issues with various SAS and FC adapters
* Fri Mar 11 2011 Brian King <[email protected]>
- Do not install vscsi server scripts, since they are deprecated