2f976de
Name:           powerpc-utils
Vasant Hegde a43c584
Version:        1.2.17
Mark Hamzy e9e1855
Release:        2%{?dist}
2f976de
Summary:        Utilities for PowerPC platforms
2f976de
2f976de
Group:          System Environment/Base
2f976de
License:        CPL
2e7522f
URL:            http://sourceforge.net/projects/%{name}/
2e7522f
Source0:        http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
2f976de
Source1:        nvsetenv
2f976de
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Jiri Skala 38e631a
BuildRequires:  zlib-devel doxygen automake librtas-devel libservicelog-devel >= 1.0.1-2
Roman Rakus 7bd8501
Roman Rakus 7bd8501
# should be fixed - libservicelog is not right name
Jiri Skala 9d08aeb
Requires:       libservicelog bc which
2f976de
ExclusiveArch:  ppc ppc64
2f976de
2e7522f
# This hack is needed only for platforms with autoconf < 2.63
0eab10a
Patch0:		powerpc-utils-autoconf.patch
0eab10a
Patch1:		powerpc-utils-1.2.15-man.patch
Roman Rakus 69e331f
Roman Rakus 7bd8501
# This is done before release of F12
Roman Rakus 7bd8501
Obsoletes:      powerpc-utils-papr < 1.1.6-3
Roman Rakus 7bd8501
Provides:       powerpc-utils-papr = 1.1.6-3
Roman Rakus 7bd8501
d3ac251
Requires:       powerpc-utils-python
d3ac251
2f976de
%description
2f976de
Utilities for PowerPC platforms.
2f976de
2f976de
%prep
2e7522f
%setup -q
2f976de
2e7522f
# This hack is needed only for platforms with autoconf < 2.63
2e7522f
%if 0%{?fedora} < 9 && 0%{?rhel} < 6
0eab10a
%patch0 -p1 -b .aconf
2e7522f
%endif
0eab10a
%patch1 -p1 -b .man
2e7522f
2f976de
%build
Roman Rakus cec6eaa
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
2e7522f
%configure
2e7522f
make %{?_smp_mflags}
2f976de
2f976de
2f976de
%install
2f976de
rm -rf $RPM_BUILD_ROOT
Roman Rakus 7bd8501
make install DESTDIR=$RPM_BUILD_ROOT FILES= RCSCRIPTS=
2f976de
install -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_sbindir}/nvsetenv
2f976de
Mark Hamzy e9e1855
#%define pkgdocdir %{_datadir}/doc/%{name}-%{version}
Mark Hamzy e9e1855
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
Mark Hamzy e9e1855
Roman Rakus 7bd8501
# move doc files
Mark Hamzy e9e1855
mkdir -p $RPM_BUILD_ROOT%{_pkgdocdir}
Mark Hamzy e9e1855
install $RPM_BUILD_ROOT/usr/share/doc/packages/powerpc-utils/* -t $RPM_BUILD_ROOT%{_pkgdocdir}
Roman Rakus 7bd8501
rm -rf $RPM_BUILD_ROOT/usr/share/doc/packages/powerpc-utils
Roman Rakus 7bd8501
Roman Rakus da95a4d
# remove init script and perl script. They are deprecated
Roman Rakus da95a4d
rm -rf $RPM_BUILD_ROOT/etc/init.d/ibmvscsis.sh $RPM_BUILD_ROOT/usr/sbin/vscsisadmin
Roman Rakus 7bd8501
Roman Rakus cec6eaa
# nvsetenv is just a wrapper to nvram
Roman Rakus cec6eaa
ln -s nvram.8.gz $RPM_BUILD_ROOT/%{_mandir}/man8/nvsetenv.8.gz
Roman Rakus cec6eaa
2f976de
%clean
2f976de
rm -rf $RPM_BUILD_ROOT
2f976de
2f976de
%files
Roman Rakus 7bd8501
%defattr(-,root,root)
2f976de
%{_sbindir}/nvsetenv
2f976de
%{_sbindir}/nvram
2f976de
%{_sbindir}/snap
2f976de
%{_sbindir}/bootlist
2f976de
%{_sbindir}/ofpathname
2f976de
%{_sbindir}/ppc64_cpu
2e7522f
%{_sbindir}/lsdevinfo
Roman Rakus 7596599
%{_sbindir}/lsprop
2e7522f
%{_mandir}/man8/nvram.8*
Roman Rakus cec6eaa
%{_mandir}/man8/nvsetenv.8*
2e7522f
%{_mandir}/man8/snap.8*
2e7522f
%{_mandir}/man8/bootlist.8*
2e7522f
%{_mandir}/man8/ofpathname.8*
Roman Rakus 7bd8501
Roman Rakus 7bd8501
%{_sbindir}/update_flash
Roman Rakus 7bd8501
%{_sbindir}/activate_firmware
Roman Rakus 7bd8501
%{_sbindir}/set_poweron_time
Roman Rakus 7bd8501
%{_sbindir}/rtas_ibm_get_vpd
Roman Rakus 7bd8501
%{_sbindir}/serv_config
Roman Rakus 7bd8501
%{_sbindir}/uesensor
Roman Rakus 7bd8501
%{_sbindir}/hvcsadmin
Roman Rakus 7bd8501
%{_sbindir}/rtas_dump
Roman Rakus 7bd8501
%{_sbindir}/rtas_event_decode
Roman Rakus 7bd8501
%{_sbindir}/sys_ident
Roman Rakus 7bd8501
%{_sbindir}/drmgr
Roman Rakus 7bd8501
%{_sbindir}/lsslot
Roman Rakus 61d6aae
%{_sbindir}/ls-vdev
Roman Rakus 61d6aae
%{_sbindir}/ls-veth
Roman Rakus 61d6aae
%{_sbindir}/ls-vscsi
Jiri Skala 37793ba
%{_sbindir}/lparstat
Roman Rakus 61d6aae
Roman Rakus 7bd8501
%{_bindir}/amsstat
2e7522f
%{_mandir}/man8/update_flash.8*
2e7522f
%{_mandir}/man8/activate_firmware.8*
2e7522f
%{_mandir}/man8/set_poweron_time.8*
2e7522f
%{_mandir}/man8/rtas_ibm_get_vpd.8*
2e7522f
%{_mandir}/man8/serv_config.8*
2e7522f
%{_mandir}/man8/uesensor.8*
2e7522f
%{_mandir}/man8/hvcsadmin.8*
2e7522f
%{_mandir}/man8/rtas_dump.8*
2e7522f
%{_mandir}/man8/sys_ident.8*
Jiri Skala 37793ba
%{_mandir}/man8/lparstat.8*
Jiri Skala 280eaaf
%{_mandir}/man5/lparcfg.5*
2e7522f
%{_mandir}/man1/amsstat.1*
Jiri Skala 37793ba
%{_mandir}/man8/lsdevinfo.8*
Jiri Skala 37793ba
%{_mandir}/man8/rtas_event_decode.8*
Jiri Skala 37793ba
%{_mandir}/man8/ls-vdev.8*
Jiri Skala 37793ba
%{_mandir}/man8/lsslot.8*
Jiri Skala 37793ba
%{_mandir}/man8/lsprop.8*
Jiri Skala 37793ba
%{_mandir}/man8/drmgr.8*
Jiri Skala 37793ba
%{_mandir}/man8/ls-veth.8*
Jiri Skala 37793ba
%{_mandir}/man8/ppc64_cpu.8*
Jiri Skala 37793ba
%{_mandir}/man8/ls-vscsi.8*
2f976de
%doc README COPYRIGHT Changelog
2f976de
Roman Rakus 7bd8501
%post
Roman Rakus 7bd8501
Roman Rakus 7bd8501
%preun
2f976de
2f976de
%changelog
Mark Hamzy e9e1855
* Sun Sep 15 2013 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 1.2.17-2
Mark Hamzy e9e1855
- Fix docdir (#998579)
Mark Hamzy e9e1855
Vasant Hegde a43c584
* Tue Aug 20 2013 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 1.2.17
Vasant Hegde a43c584
- Update to latest upstream 1.2.17
Vasant Hegde a43c584
d76ef71
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.16-3
d76ef71
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
d76ef71
73f489d
* Wed Jun 26 2013 Tony Breeds <tony@bakeyournoodle.com> - 1.2.16-2
73f489d
- drmgr: Check for rpadlpar_io module
73f489d
- resolves: #972606
73f489d
Vasant Hegde 1f4566b
* Tue May 21 2013 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 1.2.16
Vasant Hegde 1f4566b
- Update to latest upstream 1.2.16
Vasant Hegde 1f4566b
1cf5460
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.15-2
1cf5460
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
1cf5460
0eab10a
* Wed Jan 16 2013 Karsten Hopp <karsten@redhat.com> 1.2.15-1
0eab10a
- update to 1.2.15
0eab10a
- usysident/usysattn got moved to ppc64-diag package
0eab10a
- multipath ofpathname patch removed as it is upstream now
0eab10a
Filip Kocina f9a2df1
* Tue Dec 18 2012 Filip Kocina <fkocina@redhat.com> 1.2.14-1
Filip Kocina f9a2df1
- Resolves: #859222 - updated to latest upstream 1.2.14
Filip Kocina f9a2df1
af28865
* Thu Dec 13 2012 Karsten Hopp <karsten@redhat.com> 1.2.12-4
af28865
- Add multipath support to ofpathname for bug #884826
af28865
d3ac251
* Tue Sep 04 2012 Karsten Hopp <karsten@redhat.com> 1.2.12-3
d3ac251
- require powerpc-utils-python (#852326 comment 7)
d3ac251
e8763d8
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.12-2
e8763d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
e8763d8
Jiri Skala f8f0894
* Thu Mar 22 2012 Jiri Skala <jskala@redhat.com> - 1.2.12-1
Jiri Skala f8f0894
- updated to latest upstream 1.2.12
Jiri Skala f8f0894
d2479e3
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.11-3
d2479e3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
d2479e3
Jiri Skala 9d08aeb
* Thu Nov 03 2011 Jiri Skala <jskala@redhat.com> - 1.2.11-2
Jiri Skala 9d08aeb
- updated dependecy
Jiri Skala 9d08aeb
Jiri Skala 58e2277
* Mon Oct 31 2011 Jiri Skala <jskala@redhat.com> - 1.2.11-1
Jiri Skala 58e2277
- updated to latest upstream 1.2.11
Jiri Skala 58e2277
-fixes #749892 - powerpc-utils spec file missing dependency
Jiri Skala 58e2277
Vasant Hegde 00aee74
* Fri Aug 05 2011 Jiri Skala <jskala@redhat.com> - 1.2.10-1
Jiri Skala 37793ba
- updated to latest upstream 1.2.10
Jiri Skala 37793ba
4ae188e
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.6-2
4ae188e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
4ae188e
Jiri Skala 280eaaf
* Mon Jan 24 2011 Jiri Skala <jskala@redhat.com> - 1.2.6-1
Jiri Skala 280eaaf
- updated to latest upstream 1.2.6
Jiri Skala 280eaaf
- removed amsvis man page (amsvis moved to powerpc-utils-python)
Jiri Skala 280eaaf
- added lparcfg man page - doc to /proc/ppc64/lparcfg
Jiri Skala 280eaaf
Roman Rakus cec6eaa
* Thu Jun 24 2010 Roman Rakus <rrakus@redhat.com> - 1.2.2-14
Roman Rakus cec6eaa
- Compile with -fno-strict-aliasing CFLAG
Roman Rakus cec6eaa
- linked nvsetenv man page to nvram man page
Roman Rakus cec6eaa
- Updated man page of ofpathname
Roman Rakus cec6eaa
- Updated amsstat script
Roman Rakus cec6eaa
Roman Rakus e96140f
* Tue Jun 15 2010 Roman Rakus <rrakus@redhat.com> - 1.2.2-11
Roman Rakus e96140f
- Correct the parameter handling of ppc64_cpu when setting the run-mode
Roman Rakus e96140f
Roman Rakus 61d6aae
* Wed Jun 09 2010 Roman Rakus <rrakus@redhat.com> - 1.2.2-10
Roman Rakus 61d6aae
- Added some upstream patches
Roman Rakus 61d6aae
- also bump release
Roman Rakus 61d6aae
Roman Rakus 69e331f
* Wed Jun 02 2010 Roman Rakus <rrakus@redhat.com> - 1.2.2-4
Roman Rakus 69e331f
- correct the parameter checking when attempting to set the run mode
Roman Rakus 69e331f
- also bump release
Roman Rakus 69e331f
Roman Rakus da95a4d
* Fri Mar 05 2010 Roman Rakus <rrakus@redhat.com> - 1.2.2-2
Roman Rakus da95a4d
- Removed deprecated init script and perl script
Roman Rakus da95a4d
2e7522f
* Thu Oct 29 2009 Stepan Kasal <skasal@redhat.com> - 1.2.2-1
2e7522f
- new upstream version
2e7522f
- amsvis removed, this package has no longer anything with python
2e7522f
- change the manual pages in the file list so that it does not depend on
2e7522f
  particular compression used
2e7522f
- add patch for configure.ac on platforms with autoconf < 2.63
2e7522f
- use standard %%configure/make in %%build
2e7522f
Roman Rakus 7bd8501
* Mon Aug 17 2009 Roman Rakus <rrakus@redhat.com> - 1.2.0-1
Roman Rakus 7bd8501
- Bump tu version 1.2.0 - powerpc-utils and powerpc-utils-papr get merged
Roman Rakus 7bd8501
db944f7
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3-3
db944f7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
db944f7
Roman Rakus 9b9c368
* Mon Apr 06 2009 Roman Rakus <rrakus@redhat.com> - 1.1.3-1
Roman Rakus 9b9c368
- new upstream version 1.1.3
Roman Rakus 9b9c368
Roman Rakus b19be15
* Tue Mar 03 2009 Roman Rakus <rrakus@redhat.com> - 1.1.2-1
Roman Rakus b19be15
- new upstream version 1.1.2
Roman Rakus b19be15
b2db847
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-2
b2db847
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
b2db847
Roman Rakus 7596599
* Thu Feb 19 2009 Roman Rakus <rrakus@redhat.com> - 1.1.1-1
Roman Rakus 7596599
- new upstream version 1.1.1
Roman Rakus 7596599
9958cee
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.0.6-3
9958cee
- Autorebuild for GCC 4.3
9958cee
e453296
* Mon Dec  3 2007 David Woodhouse <dwmw2@redhat.com> 1.0.6-2
e453296
- Add --version to nvsetenv, for ybin compatibility
e453296
2f976de
* Fri Nov 23 2007 David Woodhouse <dwmw2@redhat.com> 1.0.6-1
2f976de
- New package, split from ppc64-utils