File powerpc-utils.spec of Package powerpc-utils
#
# spec file for package powerpc-utils
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# use the tgtd instead of the ibmvscsis kernel module to setup an IBM vscsi server
#!BuildIgnore: tgt
Name: powerpc-utils
Requires: /sbin/modprobe
Requires: /sbin/shutdown
Requires: bc
Requires: coreutils
Requires: findutils
Requires: gawk
Requires: grep
Requires: tgt
Requires: udev
Requires: util-linux
Recommends: powerpc-utils-python
BuildRequires: librtas-devel
BuildRequires: zlib-devel
Version: 1.2.22
Release: 0
Url: http://sourceforge.net/projects/powerpc-utils
Summary: Utilities for PowerPC Hardware
License: CPL-1.0
Group: System/Management
PreReq: %insserv_prereq %fillup_prereq
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: powerpc-utils-%{version}.tar.gz
Source1: nvsetenv
Patch1: powerpc-utils-lsprop.patch
Patch3: powerpc-utils.ofpathname.bootlist.patch
Patch4: powerpc-utils-bug-886123_01-l2of_scsi.patch
Patch5: powerpc-utils-bug-886123_02-of2l_scsi.patch
ExclusiveArch: ppc ppc64 ppc64le
%description
The powerpc-utils package provides a set of tools and utilities and
utilities for maintaining and enabling certain features of Linux on Power.
%prep
%setup -q
%patch1 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%build
%configure
make CFLAGS="%optflags" %{?jobs:-j%jobs}
%install
make install \
DESTDIR=%buildroot \
rasdir=/usr/sbin \
mandir=%{_mandir}
mkdir %buildroot/sbin
mv %buildroot/usr/sbin/lsprop %buildroot/sbin
install -m 755 %{SOURCE1} %buildroot%{_sbindir}/nvsetenv
ln -sf /usr/sbin/serv_config %buildroot/usr/sbin/uspchrp
ln -sf /usr/share/man/man8/serv_config.8 %buildroot/usr/share/man/man8/uspchrp.8
ln -sf /usr/sbin/drmgr %buildroot/usr/sbin/drslot_chrp_slot
ln -sf /usr/sbin/drmgr %buildroot/usr/sbin/drslot_chrp_pci
ln -sf /usr/sbin/drmgr %buildroot/usr/sbin/drslot_chrp_cpu
ln -sf /usr/sbin/drmgr %buildroot/usr/sbin/drslot_chrp_phb
ln -sf /usr/sbin/drmgr %buildroot/usr/sbin/drslot_chrp_mem
ln -sf /usr/sbin/drmgr %buildroot/usr/sbin/drslot_chrp_hea
ln -sf /usr/sbin/drmgr %buildroot/usr/sbin/drmig_chrp_pmig
%files
%defattr(-,root,root)
%doc README COPYRIGHT Changelog
%{_mandir}/man*/*
%{_sbindir}/*
%{_bindir}/*
/sbin/lsprop
%changelog