2f976de
Name:           powerpc-utils
4eff2e6
Version:        1.3.4
3be82c3
Release:        2%{?dist}
2f976de
Summary:        Utilities for PowerPC platforms
2f976de
2f976de
Group:          System Environment/Base
c14f3fe
License:        GPLv2
4eff2e6
URL:            https://github.com/ibm-power-utilities/powerpc-utils
4eff2e6
Source0:        https://github.com/ibm-power-utilities/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
2f976de
Source1:        nvsetenv
7dd857f
21577a2
ExclusiveArch:  ppc %{power64}
21577a2
7dd857f
BuildRequires:  zlib-devel doxygen automake
c14f3fe
BuildRequires:  librtas-devel >= 1.4.0
7dd857f
BuildRequires:  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
7577807
# rtas_dump dependency  
7577807
Requires:       perl(Data::Dumper)
d2f2d80
Requires:       %{name}-core = %{version}-%{release}
21577a2
21577a2
Obsoletes:      powerpc-utils-papr <= 1.1.7-6
21577a2
Provides:       powerpc-utils-papr = 1.1.7-6
2f976de
0eab10a
Patch1:		powerpc-utils-1.2.15-man.patch
Vasant Hegde 5454599
Patch2:		powerpc-utils-1.2.27-makefile.patch
Roman Rakus 69e331f
2f976de
%description
2f976de
Utilities for PowerPC platforms.
2f976de
d2f2d80
d2f2d80
%package core
d2f2d80
Summary: Core utilities for PowerPC platforms
d2f2d80
d2f2d80
Requires: /usr/bin/awk
d2f2d80
Requires: /usr/bin/basename
d2f2d80
Requires: /usr/bin/bc
d2f2d80
Requires: /usr/bin/cat
d2f2d80
Requires: /usr/bin/cut
d2f2d80
Requires: /usr/bin/echo
d2f2d80
Requires: /usr/bin/find
3be82c3
Requires: /bin/grep
d2f2d80
Requires: /usr/bin/head
d2f2d80
Requires: /usr/bin/ls
d2f2d80
Requires: /usr/bin/sed
d2f2d80
Requires: /usr/bin/tr
d2f2d80
Requires: /usr/bin/udevadm
d2f2d80
d2f2d80
d2f2d80
%description core
d2f2d80
Utilities needed when installing Fedora on PowerPC systems.
d2f2d80
d2f2d80
2f976de
%prep
2e7522f
%setup -q
2f976de
0eab10a
%patch1 -p1 -b .man
Vasant Hegde 390ad04
%patch2 -p1 -b .makefile
2e7522f
Vasant Hegde 5454599
2f976de
%build
Roman Rakus cec6eaa
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
c14f3fe
./autogen.sh
2e7522f
%configure
2e7522f
make %{?_smp_mflags}
2f976de
2f976de
2f976de
%install
Roman Rakus 7bd8501
make install DESTDIR=$RPM_BUILD_ROOT FILES= RCSCRIPTS=
4eff2e6
install -p -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_sbindir}/nvsetenv
2f976de
5d71b44
#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
21577a2
rm -f $RPM_BUILD_ROOT%{_pkgdocdir}/COPYING
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
%files
7dd857f
%doc README Changelog
Roman Rakus 7bd8501
7dd857f
%{_bindir}/amsstat
Roman Rakus 7bd8501
%{_sbindir}/activate_firmware
7dd857f
%{_sbindir}/bootlist
Roman Rakus 7bd8501
%{_sbindir}/drmgr
Vasant Hegde a0c73db
%{_sbindir}/errinjct
7dd857f
%{_sbindir}/hvcsadmin
7dd857f
%{_sbindir}/lparstat
7dd857f
%{_sbindir}/lsdevinfo
7dd857f
%{_sbindir}/lsprop
Roman Rakus 7bd8501
%{_sbindir}/lsslot
Roman Rakus 61d6aae
%{_sbindir}/ls-vdev
Roman Rakus 61d6aae
%{_sbindir}/ls-veth
Roman Rakus 61d6aae
%{_sbindir}/ls-vscsi
7dd857f
%{_sbindir}/nvsetenv
7dd857f
%{_sbindir}/ppc64_cpu
7dd857f
%{_sbindir}/rtas_dbg
7dd857f
%{_sbindir}/rtas_dump
7dd857f
%{_sbindir}/rtas_event_decode
7dd857f
%{_sbindir}/rtas_ibm_get_vpd
7dd857f
%{_sbindir}/serv_config
7dd857f
%{_sbindir}/set_poweron_time
7dd857f
%{_sbindir}/sys_ident
7dd857f
%{_sbindir}/uesensor
7dd857f
%{_sbindir}/update_flash
7dd857f
%{_sbindir}/update_flash_nv
Roman Rakus 61d6aae
7dd857f
# use sosreport from sos instead
7dd857f
%exclude %{_sbindir}/snap
7dd857f
%exclude %{_mandir}/man8/snap.8*
7dd857f
7dd857f
%{_mandir}/man1/amsstat.1*
7dd857f
%{_mandir}/man5/lparcfg.5*
2e7522f
%{_mandir}/man8/activate_firmware.8*
7dd857f
%{_mandir}/man8/bootlist.8*
7dd857f
%{_mandir}/man8/drmgr.8*
7dd857f
%{_mandir}/man8/errinjct.8*
2e7522f
%{_mandir}/man8/hvcsadmin.8*
Jiri Skala 37793ba
%{_mandir}/man8/lparstat.8*
Jiri Skala 37793ba
%{_mandir}/man8/lsdevinfo.8*
Jiri Skala 37793ba
%{_mandir}/man8/lsprop.8*
7dd857f
%{_mandir}/man8/lsslot.8*
7dd857f
%{_mandir}/man8/ls-vdev.8*
Jiri Skala 37793ba
%{_mandir}/man8/ls-veth.8*
Jiri Skala 37793ba
%{_mandir}/man8/ls-vscsi.8*
7dd857f
%{_mandir}/man8/nvsetenv.8*
7dd857f
%{_mandir}/man8/ppc64_cpu.8*
Vasant Hegde a0c73db
%{_mandir}/man8/rtas_dbg.8*
7dd857f
%{_mandir}/man8/rtas_dump.8*
7dd857f
%{_mandir}/man8/rtas_event_decode.8*
7dd857f
%{_mandir}/man8/rtas_ibm_get_vpd.8*
7dd857f
%{_mandir}/man8/serv_config.8*
7dd857f
%{_mandir}/man8/set_poweron_time.8*
7dd857f
%{_mandir}/man8/sys_ident.8*
7dd857f
%{_mandir}/man8/uesensor.8*
7dd857f
%{_mandir}/man8/update_flash.8*
2f976de
d2f2d80
%files core
d2f2d80
%{!?_licensedir:%global license %%doc}
d2f2d80
%license COPYING
d2f2d80
d2f2d80
%{_sbindir}/nvram
d2f2d80
%{_sbindir}/ofpathname
d2f2d80
%{_sbindir}/pseries_platform
d2f2d80
d2f2d80
%{_mandir}/man8/nvram.8*
d2f2d80
%{_mandir}/man8/ofpathname.8*
d2f2d80
d2f2d80
2f976de
%changelog
3be82c3
* Wed Oct 11 2017 Stephen Gallagher <sgallagh@redhat.com> - 1.3.4-2
3be82c3
- Fix grep dependency
3be82c3
4eff2e6
* Tue Oct 10 2017 Dan Horák <dan[at]danny.cz> - 1.3.4-1
4eff2e6
- Rebased to 1.3.4
4eff2e6
d2f2d80
* Tue Oct 10 2017 Stephen Gallagher <sgallagh@redhat.com> - 1.3.3-4
4eff2e6
- Split critical components into powerpc-utils-core (#1463749)
d2f2d80
d35f94c
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.3-3
d35f94c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
d35f94c
8a7e679
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.3-2
8a7e679
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
8a7e679
Vasant Hegde 6911006
* Wed Apr 19 2017 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 1.3.3-1
Vasant Hegde 6911006
- Update to latest upstream 1.3.3
Vasant Hegde 6911006
972b92f
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-2
972b92f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
972b92f
21577a2
* Mon Jul 11 2016 Peter Robinson <pbrobinson@fedoraproject.org> 1.3.1-1
7dd857f
- Update to latest upstream 1.3.1
7dd857f
- Use %%license
7dd857f
- Drop requires on optional powerpc-utils-python so as not to pull in X stack
7dd857f
- Package cleanups
21577a2
- Obsolete/Provide powerpc-utils-papr
7dd857f
f11c9da
* Sat Apr  9 2016 Peter Robinson <pbrobinson@fedoraproject.org> 1.3.0-2
f11c9da
- Rebuild for librtas soname bump
f11c9da
c14f3fe
* Thu Feb 18 2016 Rafael Fonseca <rdossant@redhat.com> - 1.3.0-1
c14f3fe
- Update to latest upstream 1.3.0
c14f3fe
- Update upstream URL.
c14f3fe
- Change license to GPL.
c14f3fe
- Remove deprecated patch.
c14f3fe
f75919e
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.27-3
f75919e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
f75919e
Vasant Hegde 5454599
* Mon Nov 16 2015 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 1.2.27-2
Vasant Hegde 5454599
- Fix build warnings
Vasant Hegde 5454599
Vasant Hegde a0c73db
* Mon Nov 16 2015 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 1.2.27
Vasant Hegde a0c73db
- Update to latest upstream 1.2.27
Vasant Hegde a0c73db
5a7ece8
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.24-2
5a7ece8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
5a7ece8
7577807
* Tue Jan 06 2015 Jakub Čajka <jcajka@redhat.com> - 1.2.24-1
7577807
- Update to latest upstream 1.2.24
7577807
- ppc64le fix
7577807
- removed snap, sosreport from sos should be used instead
7577807
Vasant Hegde d89a4f9
* Mon Nov 03 2014 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 1.2.23
Vasant Hegde d89a4f9
- Update to latest upstream 1.2.23
Vasant Hegde d89a4f9
Vasant Hegde 390ad04
* Mon Sep 22 2014 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 1.2.22-2
Vasant Hegde 390ad04
- Fix makefile issue
Vasant Hegde 390ad04
Vasant Hegde 7e1babb
* Mon Sep 22 2014 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 1.2.22
Vasant Hegde 7e1babb
- Update to latest upstream 1.2.22
Vasant Hegde 7e1babb
ec37904
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.20-3
ec37904
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
ec37904
5d71b44
* Tue Jun 03 2014 Jakub Čajka <jcajka@redhat.com> - 1.2.20-2
5d71b44
- Spec file clean up
5d71b44
Vasant Hegde 3017af0
* Mon Apr 14 2014 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 1.2.20
Vasant Hegde 3017af0
- Update to latest upstream 1.2.20
Vasant Hegde 3017af0
Vasant Hegde a25bcb2
* Wed Mar 05 2014 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 1.2.19
Vasant Hegde a25bcb2
- Update to latest upstream 1.2.19
Vasant Hegde a25bcb2
Vasant Hegde b86b69c
* Thu Oct 10 2013 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 1.2.18-2
Vasant Hegde b86b69c
- Add ppc64le architecture
Vasant Hegde b86b69c
Vasant Hegde 5583bcc
* Thu Oct 10 2013 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 1.2.18
Vasant Hegde 5583bcc
- Update to latest upstream 1.2.18
Vasant Hegde 5583bcc
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