Update to latest upstream 2.6.1
This commit is contained in:
parent
e1cbcaff8a
commit
e9f8bfd59e
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
/ppc64-diag-2.4.2.tar.gz
|
/ppc64-diag-2.4.2.tar.gz
|
||||||
/ppc64-diag-2.4.3.tar.gz
|
/ppc64-diag-2.4.3.tar.gz
|
||||||
|
/ppc64-diag-2.6.1.tar.gz
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
Name: ppc64-diag
|
Name: ppc64-diag
|
||||||
Version: 2.4.3
|
Version: 2.6.1
|
||||||
Release: 7%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Linux for Power Platform Diagnostics
|
Summary: PowerLinux Platform Diagnostics
|
||||||
URL: http://sourceforge.net/projects/linux-diag/files/ppc64-diag/
|
URL: http://sourceforge.net/projects/linux-diag/files/ppc64-diag/
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
License: EPL
|
License: EPL
|
||||||
@ -9,22 +9,27 @@ ExclusiveArch: ppc ppc64
|
|||||||
BuildRequires: libservicelog-devel, flex, perl, byacc, librtas-devel
|
BuildRequires: libservicelog-devel, flex, perl, byacc, librtas-devel
|
||||||
BuildRequires: libvpd-devel, systemd-units
|
BuildRequires: libvpd-devel, systemd-units
|
||||||
Requires: servicelog, lsvpd
|
Requires: servicelog, lsvpd
|
||||||
|
# PRRN RTAS event notification handler depends on below librtas
|
||||||
|
# and powerpc-utils versions.
|
||||||
|
Requires: librtas >= 1.3.8
|
||||||
|
Requires: powerpc-utils >= 1.2.16
|
||||||
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
Source0: http://downloads.sourceforge.net/project/linux-diag/ppc64-diag/%{version}/%{name}-%{version}.tar.gz
|
Source0: http://downloads.sourceforge.net/project/linux-diag/ppc64-diag/%{version}/%{name}-%{version}.tar.gz
|
||||||
Source1: rtas_errd.service
|
Source1: rtas_errd.service
|
||||||
Patch0: ppc64-diag-2.4.2-messagecatalog-location.patch
|
Patch0: ppc64-diag-2.4.2-messagecatalog-location.patch
|
||||||
Patch1: ppc64-diag-2.4.2-chkconfig.patch
|
Patch1: ppc64-diag-2.4.2-chkconfig.patch
|
||||||
Patch2: ppc64-diag-2.4.3-scriptlocation.patch
|
Patch2: ppc64-diag-2.4.3-scriptlocation.patch
|
||||||
Patch3: ppc64-diag-unistd.patch
|
Patch3: ppc64-diag-unusedvar.patch
|
||||||
Patch4: ppc64-diag-unusedvar.patch
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Platform diagnostics for Linux for Power writes events reported by the
|
This package contains various diagnostic tools for PowerLinux.
|
||||||
System p or System i platform firmware to the service log, provides automated
|
These tools captures the diagnostic events from Power Systems
|
||||||
responses to urgent events such as environmental conditions and predictive
|
platform firmware, SES enclosures and device drivers, and
|
||||||
failures, and provides notifications of the event to system administrators
|
write events to servicelog database. It also provides automated
|
||||||
or connected service frameworks. Some error log analysis parameters can be
|
responses to urgent events such as environmental conditions and
|
||||||
configured in /etc/ppc64-diag/ppc64-diag.config.
|
predictive failures, if appropriate modifies the FRUs fault
|
||||||
|
indicator(s) and provides event notification to system
|
||||||
|
administrators or connected service frameworks.
|
||||||
|
|
||||||
# BZ#860040:
|
# BZ#860040:
|
||||||
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}\/usr\/libexec\/ppc64-diag\/servevent_parse.pl
|
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}\/usr\/libexec\/ppc64-diag\/servevent_parse.pl
|
||||||
@ -34,8 +39,7 @@ configured in /etc/ppc64-diag/ppc64-diag.config.
|
|||||||
%patch0 -p1 -b .msg_loc
|
%patch0 -p1 -b .msg_loc
|
||||||
%patch1 -p1 -b .chkconfig
|
%patch1 -p1 -b .chkconfig
|
||||||
%patch2 -p1 -b .script_loc
|
%patch2 -p1 -b .script_loc
|
||||||
%patch3 -p1 -b .unistd
|
%patch3 -p1 -b .unusevar
|
||||||
%patch4 -p1 -b .unusevar
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
@ -48,6 +52,8 @@ mkdir -p $RPM_BUILD_ROOT/%{_libexecdir}/%{name}
|
|||||||
mv -f $RPM_BUILD_ROOT%{_sysconfdir}/init.d/rtas_errd $RPM_BUILD_ROOT/%{_libexecdir}/%{name}/
|
mv -f $RPM_BUILD_ROOT%{_sysconfdir}/init.d/rtas_errd $RPM_BUILD_ROOT/%{_libexecdir}/%{name}/
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_unitdir}
|
mkdir -p $RPM_BUILD_ROOT/%{_unitdir}
|
||||||
install -m644 %{SOURCE1} $RPM_BUILD_ROOT/%{_unitdir}
|
install -m644 %{SOURCE1} $RPM_BUILD_ROOT/%{_unitdir}
|
||||||
|
mkdir $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}/ses_pages
|
||||||
|
ln -sfv %{_sbindir}/usysattn $RPM_BUILD_ROOT/%{_sbindir}/usysfault
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
@ -56,8 +62,10 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%defattr (-,root,root,-)
|
%defattr (-,root,root,-)
|
||||||
%doc COPYRIGHT
|
%doc COPYRIGHT
|
||||||
%dir %{_sysconfdir}/%{name}
|
%dir %{_sysconfdir}/%{name}
|
||||||
|
%dir %{_sysconfdir}/%{name}/ses_pages
|
||||||
%{_mandir}/man8/*
|
%{_mandir}/man8/*
|
||||||
%config(noreplace) %attr(644,root,root) %{_sysconfdir}/%{name}/ppc64-diag.config
|
%config(noreplace) %attr(644,root,root) %{_sysconfdir}/%{name}/ppc64-diag.config
|
||||||
|
%attr(744,root,root) %{_sysconfdir}/%{name}/prrn_hotplug
|
||||||
%attr(755,root,root) %{_sbindir}/*
|
%attr(755,root,root) %{_sbindir}/*
|
||||||
%dir %{_datadir}/%{name}
|
%dir %{_datadir}/%{name}
|
||||||
%dir %attr(755,root,root) %{_datadir}/%{name}/message_catalog/
|
%dir %attr(755,root,root) %{_datadir}/%{name}/message_catalog/
|
||||||
@ -66,6 +74,8 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%attr(755,root,root) %{_libexecdir}/%{name}/ppc64_diag_notify
|
%attr(755,root,root) %{_libexecdir}/%{name}/ppc64_diag_notify
|
||||||
#%attr(755,root,root) %{_libexecdir}/%{name}/ppc64_diag_servagent
|
#%attr(755,root,root) %{_libexecdir}/%{name}/ppc64_diag_servagent
|
||||||
%attr(755,root,root) %{_libexecdir}/%{name}/ppc64_diag_setup
|
%attr(755,root,root) %{_libexecdir}/%{name}/ppc64_diag_setup
|
||||||
|
%attr(755,root,root) %{_libexecdir}/%{name}/lp_diag_setup
|
||||||
|
%attr(755,root,root) %{_libexecdir}/%{name}/lp_diag_notify
|
||||||
%attr(644,root,root) %{_libexecdir}/%{name}/servevent_parse.pl
|
%attr(644,root,root) %{_libexecdir}/%{name}/servevent_parse.pl
|
||||||
%attr(644,root,root) %{_datadir}/%{name}/message_catalog/cxgb3
|
%attr(644,root,root) %{_datadir}/%{name}/message_catalog/cxgb3
|
||||||
%attr(644,root,root) %{_datadir}/%{name}/message_catalog/e1000e
|
%attr(644,root,root) %{_datadir}/%{name}/message_catalog/e1000e
|
||||||
@ -79,6 +89,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
%post
|
%post
|
||||||
# Post-install script --------------------------------------------------
|
# Post-install script --------------------------------------------------
|
||||||
|
%{_libexecdir}/%{name}/lp_diag_setup --register >/dev/null
|
||||||
%{_libexecdir}/%{name}/ppc64_diag_setup --register >/dev/null
|
%{_libexecdir}/%{name}/ppc64_diag_setup --register >/dev/null
|
||||||
if [ "$1" = "1" ]; then # first install
|
if [ "$1" = "1" ]; then # first install
|
||||||
systemctl -q enable rtas_errd.service
|
systemctl -q enable rtas_errd.service
|
||||||
@ -93,6 +104,7 @@ if [ "$1" = "0" ]; then # last uninstall
|
|||||||
systemctl stop rtas_errd.service
|
systemctl stop rtas_errd.service
|
||||||
systemctl -q disable rtas_errd.service
|
systemctl -q disable rtas_errd.service
|
||||||
%{_libexecdir}/%{name}/ppc64_diag_setup --unregister >/dev/null
|
%{_libexecdir}/%{name}/ppc64_diag_setup --unregister >/dev/null
|
||||||
|
%{_libexecdir}/%{name}/lp_diag_setup --unregister >/dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%triggerin -- librtas
|
%triggerin -- librtas
|
||||||
@ -103,6 +115,9 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon May 20 2013 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 2.6.1
|
||||||
|
- Update to latest upstream 2.6.1
|
||||||
|
|
||||||
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.3-7
|
* 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
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user