2011-09-09 14:03:31 +00:00
|
|
|
Name: ppc64-diag
|
2019-11-27 12:24:22 +00:00
|
|
|
Version: 2.7.6
|
2020-01-30 09:40:20 +00:00
|
|
|
Release: 3%{?dist}
|
2013-05-20 16:49:41 +00:00
|
|
|
Summary: PowerLinux Platform Diagnostics
|
2019-12-02 14:30:31 +00:00
|
|
|
URL: https://github.com/power-ras/%{name}
|
2016-03-21 10:35:44 +00:00
|
|
|
License: GPLv2
|
2016-04-09 13:41:01 +00:00
|
|
|
ExclusiveArch: ppc %{power64}
|
2018-07-19 14:19:38 +00:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libservicelog-devel
|
|
|
|
BuildRequires: flex
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
BuildRequires: byacc
|
|
|
|
BuildRequires: libvpd-devel
|
2013-05-21 04:51:47 +00:00
|
|
|
BuildRequires: ncurses-devel
|
2016-03-21 10:35:44 +00:00
|
|
|
BuildRequires: librtas-devel >= 1.4.0
|
2018-07-19 14:19:38 +00:00
|
|
|
BuildRequires: systemd-units
|
2014-09-25 12:09:58 +00:00
|
|
|
BuildRequires: systemd-devel
|
2018-03-09 16:21:11 +00:00
|
|
|
BuildRequires: libtool
|
2019-11-27 12:24:22 +00:00
|
|
|
BuildRequires: bison
|
2014-03-07 12:09:40 +00:00
|
|
|
|
2011-09-09 14:03:31 +00:00
|
|
|
Requires: servicelog, lsvpd
|
2014-03-07 12:09:40 +00:00
|
|
|
# PCI hotplug support on PowerKVM guest depends on below
|
|
|
|
# powerpc-utils version.
|
2016-03-21 10:35:44 +00:00
|
|
|
Requires: powerpc-utils >= 1.3.0
|
2015-08-06 01:18:15 +00:00
|
|
|
|
2019-12-02 14:30:31 +00:00
|
|
|
Source0: https://github.com/power-ras/p%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
|
2018-05-10 11:26:26 +00:00
|
|
|
# fix paths and permissions
|
2014-09-25 11:46:06 +00:00
|
|
|
Patch0: ppc64-diag-messagecatalog-location.patch
|
|
|
|
Patch2: ppc64-diag-scriptlocation.patch
|
2018-03-09 16:21:11 +00:00
|
|
|
Patch3: ppc64-diag-lpdscriptloc.patch
|
|
|
|
Patch4: ppc64-diag-permission.patch
|
2011-09-09 14:03:31 +00:00
|
|
|
|
|
|
|
%description
|
2013-05-20 16:49:41 +00:00
|
|
|
This package contains various diagnostic tools for PowerLinux.
|
|
|
|
These tools captures the diagnostic events from Power Systems
|
|
|
|
platform firmware, SES enclosures and device drivers, and
|
|
|
|
write events to servicelog database. It also provides automated
|
|
|
|
responses to urgent events such as environmental conditions and
|
|
|
|
predictive failures, if appropriate modifies the FRUs fault
|
|
|
|
indicator(s) and provides event notification to system
|
|
|
|
administrators or connected service frameworks.
|
2011-09-09 14:03:31 +00:00
|
|
|
|
2012-09-26 15:02:50 +00:00
|
|
|
# BZ#860040:
|
|
|
|
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}\/usr\/libexec\/ppc64-diag\/servevent_parse.pl
|
|
|
|
|
2011-09-09 14:03:31 +00:00
|
|
|
%prep
|
2018-05-10 11:26:26 +00:00
|
|
|
%autosetup -p1
|
|
|
|
|
2011-09-09 14:03:31 +00:00
|
|
|
|
|
|
|
%build
|
2018-03-09 16:21:11 +00:00
|
|
|
./autogen.sh
|
|
|
|
%configure
|
2018-05-10 11:26:26 +00:00
|
|
|
LDFLAGS="%{build_ldflags}" CFLAGS="%{build_cflags}" CXXFLAGS="%{build_cflags}" make %{?_smp_mflags} V=1
|
|
|
|
|
2011-09-09 14:03:31 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
2016-03-21 10:35:44 +00:00
|
|
|
chmod 644 COPYING
|
2018-03-09 16:21:11 +00:00
|
|
|
rm -f $RPM_BUILD_ROOT%{_docdir}/ppc64-diag/*
|
2011-09-09 14:03:31 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_libexecdir}/%{name}
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_unitdir}
|
2018-03-09 16:21:11 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}/ses_pages
|
2018-05-10 11:26:26 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_localstatedir}/log/dump
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_localstatedir}/log/opal-elog
|
2013-05-20 16:49:41 +00:00
|
|
|
ln -sfv %{_sbindir}/usysattn $RPM_BUILD_ROOT/%{_sbindir}/usysfault
|
2011-09-09 14:03:31 +00:00
|
|
|
|
|
|
|
|
|
|
|
%files
|
2018-05-10 11:26:26 +00:00
|
|
|
%license COPYING
|
|
|
|
%doc README
|
2011-09-09 14:03:31 +00:00
|
|
|
%dir %{_sysconfdir}/%{name}
|
2013-05-20 16:49:41 +00:00
|
|
|
%dir %{_sysconfdir}/%{name}/ses_pages
|
2018-05-10 11:26:26 +00:00
|
|
|
%dir %{_localstatedir}/log/%{name}/diag_disk
|
|
|
|
%dir %{_localstatedir}/log/dump
|
|
|
|
%dir %{_localstatedir}/log/opal-elog
|
2011-09-09 14:03:31 +00:00
|
|
|
%{_mandir}/man8/*
|
2018-03-09 16:21:11 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/%{name}/ppc64-diag.config
|
|
|
|
%{_sbindir}/*
|
2011-09-09 14:03:31 +00:00
|
|
|
%dir %{_datadir}/%{name}
|
2018-03-09 16:21:11 +00:00
|
|
|
%dir %{_datadir}/%{name}/message_catalog/
|
|
|
|
%{_libexecdir}/%{name}/ppc64_diag_migrate
|
|
|
|
%{_libexecdir}/%{name}/ppc64_diag_mkrsrc
|
|
|
|
%{_libexecdir}/%{name}/ppc64_diag_notify
|
|
|
|
%{_libexecdir}/%{name}/ppc64_diag_setup
|
|
|
|
%{_libexecdir}/%{name}/lp_diag_setup
|
|
|
|
%{_libexecdir}/%{name}/lp_diag_notify
|
|
|
|
%{_libexecdir}/%{name}/servevent_parse.pl
|
|
|
|
%{_datadir}/%{name}/message_catalog/*
|
|
|
|
%{_sysconfdir}/rc.powerfail
|
|
|
|
%{_libexecdir}/%{name}/rtas_errd
|
|
|
|
%{_libexecdir}/%{name}/opal_errd
|
|
|
|
%{_unitdir}/rtas_errd.service
|
|
|
|
%{_unitdir}/opal_errd.service
|
|
|
|
%{_sysconfdir}/cron.daily/run_diag_encl
|
2011-09-09 14:03:31 +00:00
|
|
|
|
|
|
|
%post
|
|
|
|
# Post-install script --------------------------------------------------
|
2014-03-21 10:59:48 +00:00
|
|
|
%{_libexecdir}/%{name}/lp_diag_setup --register >/dev/null 2>&1
|
|
|
|
%{_libexecdir}/%{name}/ppc64_diag_setup --register >/dev/null 2>&1
|
2012-07-27 07:02:54 +00:00
|
|
|
if [ "$1" = "1" ]; then # first install
|
2014-09-25 11:46:06 +00:00
|
|
|
systemctl -q enable opal_errd.service >/dev/null
|
|
|
|
systemctl -q enable rtas_errd.service >/dev/null
|
|
|
|
systemctl start opal_errd.service >/dev/null
|
|
|
|
systemctl start rtas_errd.service >/dev/null
|
2012-07-27 07:02:54 +00:00
|
|
|
elif [ "$1" = "2" ]; then # upgrade
|
2014-09-25 11:46:06 +00:00
|
|
|
systemctl restart opal_errd.service >/dev/null
|
|
|
|
systemctl restart rtas_errd.service >/dev/null
|
2011-09-09 14:03:31 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
%preun
|
|
|
|
# Pre-uninstall script -------------------------------------------------
|
|
|
|
if [ "$1" = "0" ]; then # last uninstall
|
2014-09-25 11:46:06 +00:00
|
|
|
systemctl stop opal_errd.service >/dev/null
|
|
|
|
systemctl stop rtas_errd.service >/dev/null
|
2014-03-21 10:59:48 +00:00
|
|
|
systemctl -q disable opal_errd.service
|
2012-07-27 07:02:54 +00:00
|
|
|
systemctl -q disable rtas_errd.service
|
2011-09-22 13:55:59 +00:00
|
|
|
%{_libexecdir}/%{name}/ppc64_diag_setup --unregister >/dev/null
|
2013-05-20 16:49:41 +00:00
|
|
|
%{_libexecdir}/%{name}/lp_diag_setup --unregister >/dev/null
|
2011-09-09 14:03:31 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
%triggerin -- librtas
|
|
|
|
# trigger on librtas upgrades ------------------------------------------
|
|
|
|
if [ "$2" = "2" ]; then
|
2014-09-25 11:46:06 +00:00
|
|
|
systemctl restart opal_errd.service >/dev/null
|
|
|
|
systemctl restart rtas_errd.service >/dev/null
|
2011-09-09 14:03:31 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2020-01-30 09:40:20 +00:00
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.6-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2019-12-02 14:30:31 +00:00
|
|
|
* Mon Dec 02 2019 Than Ngo <than@redhat.com> - 2.7.6-2
|
|
|
|
- Update Url and Source
|
|
|
|
|
2019-11-27 12:24:22 +00:00
|
|
|
* Wed Nov 27 2019 Than Ngo <than@redhat.com> - 2.7.6-1
|
|
|
|
- rebase to 2.7.6
|
2019-11-27 12:34:03 +00:00
|
|
|
- update Url
|
2019-11-27 12:24:22 +00:00
|
|
|
|
2019-07-26 11:14:25 +00:00
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.5-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-04-25 13:21:01 +00:00
|
|
|
* Thu Apr 25 2019 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 2.7.5-1
|
|
|
|
- Update to latest upstream 2.7.5
|
|
|
|
|
2019-02-02 04:44:41 +00:00
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.4-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-07-13 22:48:44 +00:00
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.4-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-05-10 11:26:26 +00:00
|
|
|
* Thu May 10 2018 Dan Horák <dan[at]danny.cz> - 2.7.4-2
|
2018-05-10 11:35:32 +00:00
|
|
|
- fix condition for rtas_errd service (#1575638)
|
2018-05-10 11:26:26 +00:00
|
|
|
|
|
|
|
* Fri Mar 09 2018 Than Ngo <than@redhat.com> - 2.7.4-1
|
2018-03-09 16:21:11 +00:00
|
|
|
- update to latest upstream 2.7.4
|
|
|
|
|
2018-05-10 11:26:26 +00:00
|
|
|
* Wed Mar 07 2018 Than Ngo <than@redhat.com> - 2.7.1-6
|
2018-03-07 16:04:57 +00:00
|
|
|
- fixed bz#1552653 - ppc64-diag: Missing Fedora build flags injection
|
|
|
|
|
2018-02-09 05:42:00 +00:00
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.1-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2017-08-03 06:19:51 +00:00
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.1-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
2017-07-27 09:00:01 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-02-11 07:48:45 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-05-09 08:08:30 +00:00
|
|
|
* Mon May 9 2016 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 2.7.1-1
|
2016-05-09 08:00:17 +00:00
|
|
|
- Update to latest upstream 2.7.1
|
|
|
|
|
2016-04-09 13:41:01 +00:00
|
|
|
* Sat Apr 9 2016 Peter Robinson <pbrobinson@fedoraproject.org> 2.7.0-2
|
|
|
|
- Rebuild for librtas soname bump
|
|
|
|
- Use %%license
|
|
|
|
|
|
|
|
* Mon Mar 21 2016 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 2.7.0-1
|
2016-03-21 10:35:44 +00:00
|
|
|
- Update to latest upstream 2.7.0
|
|
|
|
- Change license to GPLv2
|
|
|
|
|
2016-02-04 18:25:38 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.10-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-11-16 14:54:04 +00:00
|
|
|
* Mon Nov 16 2015 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 2.6.10
|
|
|
|
- Update to latest upstream 2.6.10
|
|
|
|
|
2015-08-06 01:18:15 +00:00
|
|
|
* Tue Aug 4 2015 Peter Robinson <pbrobinson@fedoraproject.org> 2.6.7-4
|
|
|
|
- Make the build verbase as per packaging standards
|
|
|
|
|
2015-06-18 17:40:43 +00:00
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.7-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2014-09-25 12:09:58 +00:00
|
|
|
* Thu Sep 25 2014 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 2.6.7-2
|
|
|
|
- Update dependency list
|
|
|
|
|
2014-09-25 11:46:06 +00:00
|
|
|
* Thu Sep 25 2014 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 2.6.7
|
|
|
|
- Update to latest upstream 2.6.7
|
|
|
|
|
2014-06-07 17:04:07 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.6-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-04-15 11:09:03 +00:00
|
|
|
* Tue Apr 15 2014 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 2.6.6
|
|
|
|
- Update to latest upstream 2.6.6
|
|
|
|
|
2014-04-02 15:20:28 +00:00
|
|
|
* Wed Apr 02 2014 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 2.6.5
|
|
|
|
- Update to latest upstream 2.6.5
|
|
|
|
|
2014-03-21 10:59:48 +00:00
|
|
|
* Fri Mar 21 2014 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 2.6.4
|
|
|
|
- Update to latest upstream 2.6.4
|
|
|
|
|
2014-03-07 12:09:40 +00:00
|
|
|
* Fri Mar 07 2014 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 2.6.3
|
|
|
|
- Update to latest upstream 2.6.3
|
|
|
|
|
2013-10-10 14:09:16 +00:00
|
|
|
* Thu Oct 10 2013 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 2.6.2-3
|
|
|
|
- Add ppc64le architecture
|
|
|
|
|
2013-09-15 11:58:52 +00:00
|
|
|
* Sun Sep 15 2013 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 2.6.2-2
|
|
|
|
- Fix minor build issue.
|
|
|
|
- Fix PRRN hotplug script location issue
|
|
|
|
|
2013-08-21 14:30:53 +00:00
|
|
|
* Wed Aug 21 2013 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 2.6.2
|
|
|
|
- Update to latest upstream 2.6.2
|
|
|
|
|
2013-08-04 05:06:03 +00:00
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-05-21 05:52:42 +00:00
|
|
|
* Tue May 21 2013 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 2.6.1-2
|
2013-05-21 05:54:05 +00:00
|
|
|
- Add ncurses-devel as build dependency
|
|
|
|
- Fix script location issue
|
2013-05-21 05:52:42 +00:00
|
|
|
|
2013-05-20 16:49:41 +00:00
|
|
|
* Mon May 20 2013 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 2.6.1
|
|
|
|
- Update to latest upstream 2.6.1
|
|
|
|
|
2013-02-14 18:17:52 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.3-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-09-26 15:02:50 +00:00
|
|
|
* Wed Sep 26 2012 Karsten Hopp <karsten@redhat.com> 2.4.3-6
|
|
|
|
- revert permissions fix, filter requirement instead
|
|
|
|
|
2012-09-24 15:55:24 +00:00
|
|
|
* Mon Sep 24 2012 karsten Hopp <karsten@redhat.com> 2.4.3-4
|
|
|
|
- fix permissions of servevent_parse.pl
|
|
|
|
|
2012-07-27 07:02:54 +00:00
|
|
|
* Fri Jul 27 2012 Lukáš Nykrýn <lnykryn@redhat.com> - 2.4.3-3
|
|
|
|
- rename .service file
|
|
|
|
- auto start rtas_errd (#843471)
|
|
|
|
|
2012-07-21 02:56:15 +00:00
|
|
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.3-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-05-04 13:52:40 +00:00
|
|
|
* Fri May 04 2012 Karsten Hopp <karsten@redhat.com> 2.4.3-1
|
|
|
|
- update to 2.4.3
|
|
|
|
|
2012-02-15 17:09:32 +00:00
|
|
|
* Wed Feb 15 2012 Karsten Hopp <karsten@redhat.com> 2.4.2-5
|
|
|
|
- don't strip binaries
|
2012-02-15 17:54:36 +00:00
|
|
|
- fix some build issues
|
2012-02-15 17:09:32 +00:00
|
|
|
|
2011-09-22 13:55:59 +00:00
|
|
|
* Thu Sep 22 2011 Karsten Hopp <karsten@redhat.com> 2.4.2-4
|
|
|
|
- fix preun and post install scriptlets
|
|
|
|
|
2011-09-09 14:03:31 +00:00
|
|
|
* Fri Sep 09 2011 Karsten Hopp <karsten@redhat.com> 2.4.2-3
|
|
|
|
- add buildrequirement systemd-units for _unitdir rpm macro
|
|
|
|
- move helper scripts to libexecdir/ppc64-diag
|
|
|
|
|
|
|
|
* Wed Sep 07 2011 Karsten Hopp <karsten@redhat.com> 2.4.2-2
|
|
|
|
- additional fixes for Fedora package review (bugzilla #736062)
|
|
|
|
|
|
|
|
* Wed Aug 17 2011 Karsten Hopp <karsten@redhat.com> 2.4.2-1
|
|
|
|
- initial Fedora version, based on IBM spec file with rpmlint cleanups
|
|
|
|
- move scripts to /usr/share/ppc-diag
|
|
|
|
- don't start service automatically after install
|