mcelog/mcelog.spec

84 lines
2.7 KiB
RPMSpec

Name: mcelog
Version: 146
Release: 1mamba
Summary: User space backend for logging machine check errors reported by the hardware to the kernel
Group: System/Kernel and Hardware
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.mcelog.org/
## GITSOURCE git://git.kernel.org/pub/scm/utils/cpu/mce/mcelog.git v114
Source: git://git.kernel.org/pub/scm/utils/cpu/mce/mcelog.git/v%{version}/mcelog-%{version}.tar.bz2
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
## AUTOBUILDREQ-END
%systemd_requires
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
mcelog is the user space backend for logging machine check errors reported by the hardware to the kernel. The kernel does the immediate actions (like killing processes etc.) and mcelog decodes the errors and manages various other advanced error responses like offlining memory, CPUs or triggering events. In addition mcelog also handles corrected errors, by logging and accounting them.
It primarily handles machine checks and thermal events, which are reported for errors detected by the CPU.
%debug_package
%prep
%setup -q
%build
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
install -d -m0755 %{buildroot}%{_mandir}/man5
%makeinstall
install -D -m0644 mcelog.service %{buildroot}%{_unitdir}/mcelog.service
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post
%systemd_post mcelog
systemctl -q daemon-reload
:
%preun
%systemd_preun mcelog
:
%postun
%systemd_postun mcelog
:
%files
%defattr(-,root,root)
%dir %{_sysconfdir}/mcelog
%config(noreplace) %{_sysconfdir}/mcelog/mcelog.conf
%config %{_sysconfdir}/mcelog/bus-error-trigger
%config %{_sysconfdir}/mcelog/cache-error-trigger
%config %{_sysconfdir}/mcelog/dimm-error-trigger
%config %{_sysconfdir}/mcelog/iomca-error-trigger
%config %{_sysconfdir}/mcelog/page-error-trigger
%config %{_sysconfdir}/mcelog/socket-memory-error-trigger
%config %{_sysconfdir}/mcelog/unknown-error-trigger
%{_sbindir}/mcelog
%{_unitdir}/mcelog.service
%{_mandir}/man5/mcelog.conf.5*
%{_mandir}/man5/mcelog.triggers.5*
%{_mandir}/man8/mcelog.8*
#%doc CHANGES README README.releases TODO
%changelog
* Thu Dec 29 2016 Automatic Build System <autodist@mambasoft.it> 146-1mamba
- automatic version update by autodist
* Tue Apr 19 2016 Automatic Build System <autodist@mambasoft.it> 136-1mamba
- automatic version update by autodist
* Tue Feb 09 2016 Automatic Build System <autodist@mambasoft.it> 129-1mamba
- automatic version update by autodist
* Mon Apr 20 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 114-1mamba
- package created using the webbuild interface