File powerpc-utils.spec of Package powerpc-utils

#
# spec file for package powerpc-utils (Version 1.1.1)
#
# Copyright (c) 2008 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/
#

# norootforbuild


Name:           powerpc-utils
# use the tgtd instead of the ibmvscsis kernel module to setup an IBM vscsi server
#!BuildIgnore:  tgt
Requires:       tgt
BuildRequires:  librtas
BuildRequires:  libservicelog-devel
Obsoletes:      powerpc-utils-papr
Obsoletes:      ppc64-utils
Provides:       ppc64-utils
Version:        1.1.1
Release:        9
License:        IBM Public License
Url:            http://powerpc-utils.ozlabs.org/
Group:          System/Management
Summary:        Utilities for PowerPC Hardware
PreReq:         %insserv_prereq %fillup_prereq
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%define papr_version 1.1.3
Source0:        powerpc-utils-%{version}.tar.bz2
Source1:        powerpc-utils-papr-%{papr_version}.tar.bz2
Patch0:         powerpc-utils-nvsetenv.patch
Patch1:         powerpc-utils-lsprop.patch
Patch2:         powerpc-utils.ofpathname.show_of_path.patch
Patch3:         powerpc-utils.ofpathname.bootlist.patch
Patch100:       powerpc-utils-papr.open-flag.patch
Patch101:       powerpc-utils-papr.insserv-ibmvscsis.patch
Patch102:       powerpc-utils-papr.drmgs_mem_rm.patch
Patch103:       powerpc-utils-papr.drmgr-symlinks.patch
Patch104:       powerpc-utils-papr.drmgr-phandle.patch
Patch105:       powerpc-utils-papr.no_sysfs_hp_path.patch
ExclusiveArch:  ppc ppc64

%description
IBM PPC64 hardware utilities for accessing NVRAM, flashing firmware,
configuring an VSCSI server, other maintenance related utilities.
lsprop to dump the /proc/device-tree contents in human readable form.



Authors:
--------
    Nathan Fontenot <nfont@austin.ibm.com>
    Michael Strosaker <strosake@austin.ibm.com>

%prep
%setup -q -a 1
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
cd powerpc-utils-papr-%{papr_version} 
%patch100 -p1
%patch101 -p1
%patch102 -p1
%patch103 -p1
%patch104 -p1
%patch105 -p1

%build
make CFLAGS="$RPM_OPT_FLAGS" %{?jobs:-j%jobs}
cd powerpc-utils-papr-%{papr_version} 
make CFLAGS="$RPM_OPT_FLAGS" %{?jobs:-j%jobs}
cd ..

%install
make install \
	DESTDIR=$RPM_BUILD_ROOT \
	rasdir=/usr/sbin \
	mandir=%{_mandir}
mkdir $RPM_BUILD_ROOT/sbin
mv $RPM_BUILD_ROOT/usr/sbin/{lsprop,nvsetenv} $RPM_BUILD_ROOT/sbin
cd powerpc-utils-papr-%{papr_version} 
make install \
	DESTDIR=$RPM_BUILD_ROOT \
	rasdir=/usr/sbin \
	mandir=%{_mandir}
mv README ../README.papr
cd ..
rm -rf $RPM_BUILD_ROOT/usr/share/doc/packages

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(444, root, root,555)
%doc README README.papr COPYRIGHT
%{_mandir}/man*/*
%attr (755,root,root) /*bin/*
%attr (755,root,root) /usr/*bin/*
%config %attr (755,root,root) /etc/init.d/ibmvscsis.sh

%changelog
* Tue Oct 28 2008 olh@suse.de
- Release hotplug children of slots on dlpar remove (bnc#439491 - LTC48584)
* Mon Oct 27 2008 olh@suse.de
- use linux,phandle for memory add when ibm,phandle is not available.
  (bnc#438685 - LTC49075)
* Wed Oct 15 2008 olh@suse.de
- fix memory hotplug remove (bnc#435181 - LTC48640)
- provide compat symlinks (bnc#435543 - LTC49095)
* Wed Oct 15 2008 olh@suse.de
- require tgt unconditionally
* Thu Oct 09 2008 olh@suse.de
- require tgt because the ibmvscsis kernel driver is SLES10 only
  (bnc#433956)
* Mon Oct 06 2008 sassmann@suse.de
- update powerpc-utils-papr to 1.1.3 (bnc#430790)
  * Corrected string length calculation in of_to_full_path()
  * Removed call to release_lmb() during recovery of memory add.
  In certain cases this can leead to an oops becasue we try to
  remove non-existant lmbs.
- remove patch powerpc-utils-papr.lsslot.patch (upstream)
* Tue Sep 30 2008 olh@suse.de
- fix malloc size lsslot (bnc#430790 - LTC48583)
* Mon Sep 15 2008 olh@suse.de
- update powerpc-utils-papr to 1.1.2 (bnc#417533)
  compile with new libservicelog sources
* Fri Aug 29 2008 olh@suse.de
- updated powerpc-utils and -papr to version 1.1.1 (bnc#417555)
  support for virtual FC devices
* Thu Aug 28 2008 olh@suse.de
- move Required-Start/Stop to ShouldStart/Stop
* Thu Aug 07 2008 ro@suse.de
- add exclusivearch to specfile
* Thu Jun 26 2008 olh@suse.de
- fix open flags in drmgr, fix buffer handling in serv_config.c
- updated powerpc-utils-papr to version 1.1.0 (fate#304103)
  * Add drmgr and lsslot commands
  * Updated serv_config with processor-module-info parameter
* Fri May 09 2008 olh@suse.de
- sysfs layout changed once again
  look for directories when searching for kernel device names to
  avoid multiple matches
* Thu Mar 06 2008 sassmann@suse.de
- updated powerpc-utils to version 1.1.0
  * Added lsprop command.
  * ofpathname updated to detect PATA devices, whitespace cleanup, add
  platform detection and add -a option to print device tree aliases.
  * ofpathaname: Updates to properly parse paths for SAS drives.
  * Added ppc64_cpu script from Anton Blanchard which allows you to set the
  cpu SMT, DSCR and smt-snooze-delay settings.
- adapted patch powerpc-utils-lsprop.patch to new release
- adapted patch powerpc-utils-nvsetenv.patch to new release
* Tue Mar 04 2008 sassmann@suse.de
- removed petitboot from powerpc-utils (handled in separate
  package petitboot now)
* Thu Jan 17 2008 sassmann@suse.de
- use kernel 2.6.24-rc8 for booting petitboot
- update kernel config file to 2.6.24
- update geninitrd.sh
  * spawn ttys for debugging
  * syslog to tty8
  * update udev rule
  * include setctsid
- update to petitboot-0.2
- adapt patches to petitboot-0.2
- update to libtwin-0.0.3 (required for petitboot-0.2)
* Thu Jan 17 2008 olh@suse.de
- update ofpathname for the sysfslayout of the week,
  to fix bootlist -m normal eth1
* Fri Jan 04 2008 sassmann@suse.de
- add sixaxis joypad support to petitboot
- enable joystick support in kernel config
- split petitboot patches into small components
- patch libtwin to latest b9b2acf28d1ebad52de372a181dadf73455ad4de
  snapshot from git://anongit.freedesktop.org/git/twin
* Thu Oct 18 2007 sassmann@suse.de
- reapplied fixed patch powerpc-utils.ofpathname.show_of_path.patch
- patch powerpc-utils.ofpathname.correct-vscsi-scan.patch obsolete
- patch powerpc-utils.bootlist.easy-network-dev.patch obsolete
* Tue Oct 16 2007 sassmann@suse.de
- update to powerpc-utils-1.0.6
- update to powerpc-utils-papr-1.0.4
- disabled patches
  Patch2: powerpc-utils.ofpathname.show_of_path.patch
  Patch3: powerpc-utils.ofpathname.correct-vscsi-scan.patch
  Patch4: powerpc-utils.bootlist.easy-network-dev.patch
* Tue Sep 11 2007 sassmann@suse.de
- rework of petitboot patches
* Tue Aug 28 2007 sassmann@suse.de
- added ps3 network shutdown patch
  (ps3-gelic-fix-ifup-hangup.diff)
- petitboot-editor fix right shift key not working correctly
* Fri Aug 24 2007 sassmann@suse.de
- petitboot now reads timeout from config file
  (petitboot.timeout-from-config.patch)
* Thu Aug 23 2007 sassmann@suse.de
- fixed bug in libtwin which reversed key_up/key_down handling
  (libtwin.key-up-down.patch)
- petitboot-editor now handles ctrl and shift keys
  (petitboot-editor-enhancement.patch)
* Wed Aug 22 2007 sassmann@suse.de
- changed ps3fb size from 18 to 9MB to save RAM in ps3config
* Mon Aug 20 2007 sassmann@suse.de
- added missing '-' key to petitboot editor
- enable /proc/config.gz (CONFIG_IKCONFIG_PROC=y)
- added udevinfo to initrd
* Wed Aug 15 2007 sassmann@suse.de
- added kernel patch for HDMI/DVI autodetection
- added Samsung226bw to monitor quirk list
- added ps3-storage-fix-probe-region-loop.diff to fix random
  misdetection of storage devices
- added patch to prevent focus disappearing when switching windows
  petitboot.focus-disappear-on-switch-fix.patch
- improved petitboot editor to support more keys
* Tue Aug 14 2007 sassmann@suse.de
- changed petitboot editor keyboard layout to QWERTY
- removed debug output from petitboot
- improved event handling in petitboot
* Mon Aug 13 2007 sassmann@suse.de
- added rudimentary editor for petitboot
- resized petitboot loading jpg to gain some space
- disabled wireless extension in kernel config
* Fri Aug 10 2007 sassmann@suse.de
- added petitboot features
  * implemented timeout handling
  * default timeout of 20s
  * added fancy loading screen
- fixed ps3-utils naming issue in petitboot
- fixed dhcp handling, now sets subnet mask correctly
* Tue Aug 07 2007 olh@suse.de
- fix filelist to not include /usr/lib/debug, to fix build
  bz2 sources
  remove unclosed if
  run ldconfig also in postun because rpmlint wants it that way
* Tue Jul 31 2007 sassmann@suse.de
- added ps3-utils to installation section
* Tue Jul 24 2007 sassmann@suse.de
- fixed dns resolving for ps3
- network configuration with ifconfig
* Mon Jul 23 2007 sassmann@suse.de
- updated ps3-utils to git tag
  99570babcccbb964aeb402cb4458406d3ca02773
- cleanup of geninitrd.sh
- smaller ps3-kernel
- added patch for reboot problem
* Fri Jul 13 2007 sassmann@suse.de
- updated otheros.bld to build from kernel source 2.6.22
  updated .config file
* Thu Jun 21 2007 sassmann@suse.de
- updated ps3-utils to git tag
  99570babcccbb964aeb402cb4458406d3ca02773
* Thu Jun 21 2007 sassmann@suse.de
- autoselect first boot entry in petitboot
* Wed May 16 2007 olh@suse.de
- add vim-base to Buildrequires, for xxd
* Fri May 11 2007 sassmann@suse.de
- fixed udev on ps3 to detect devices properly (geninitrd.sh)
  added icons for petitboot
* Mon May 07 2007 sassmann@suse.de
- generate otheros.bld from kernel source 2.6.16
  added libtwin
  added petitboot
  added ps3pf-utils
* Mon Feb 19 2007 olh@suse.de
- handle network devices with flat device-tree
* Fri Oct 13 2006 olh@suse.de
- handle short writes to /dev/nvram, current kernels limit write
  size to PAGE_SIZE
* Mon May 15 2006 olh@suse.de
- the kernel ibmvscsis patch was updated to provide the type
  field again. remove last patch again (173880 - LTC23729)
* Sat Apr 29 2006 olh@suse.de
- /sys/bus/vio/drivers/ibmvscsis/30000003/bus0/target0/type was
  removed from sles10, it was always unused.
  remove it from vscsisadmin and ibmvscsis.conf man page
* Tue Mar 28 2006 olh@suse.de
- allow bootlist -m normal eth0, no further options required
* Mon Feb 20 2006 olh@suse.de
- correct vscsi path detection (#142637)
  update to powerpc-utils 1.0.0
  * Added devball target to builds.
  update to powerpc-utils-papr 1.0.1
  * Updated usysident with the ability to manipulate SES-controlled LEDs.
* Mon Feb 06 2006 olh@suse.de
- use show_of_path.sh in ofpathname for scsi (#142637)
* Tue Jan 31 2006 olh@suse.de
- strip neededforbuild, remove libselinux
* Fri Jan 27 2006 olh@suse.de
- move lsprop and nvsetenv from util-linux
* Mon Jan 23 2006 olh@suse.de
- rename to powerpc-utils 0.0.1, includes further fixes
  (fate #140406 - 144758)
* Fri Oct 28 2005 olh@suse.de
- update to version 2.5.3 (130214 - LTC19273)
  fixes for ofpathname
* Wed Oct 26 2005 olh@suse.de
- add LSB header to ibmvscsis runlevel script
* Wed Oct 26 2005 olh@suse.de
- update to version 2.5.2 (130214 - LTC19273)
  small fix for rtas_dump
* Wed Oct 19 2005 olh@suse.de
- update to version 2.5, many new cmdline utils
* Mon Oct 18 2004 olh@suse.de
- update to version 1.1 (#47323 - LTC11869)
  force of the block size to 4k in update_flash;
  this is required for flasing firmware on power5 systems
  (the firmware image will be corrupted otherwise)
* Sun Jun 13 2004 meissner@suse.de
- Updated to latest IBM requested version. LTC#9266/SUSE#41907
	- lots of enhancements to nvram, and update_flash.
* Sun Dec 14 2003 olh@suse.de
- read nvram in small chunks, not at once
* Mon Sep 08 2003 olh@suse.de
- update to current version
* Thu Feb 06 2003 olh@suse.de
- inital package version 0.4
openSUSE Build Service is sponsored by